/* ======================================================= */
/* GENERAL Y LAYOUT */
/* ======================================================= */
.breadcrumb-section {
    background: #fdfaf8;
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #777;
}

.breadcrumb a {
    color: #101010;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #f47b20;
}

.breadcrumb a .current {
    color: #777;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover .current {
    color: #f47b20;
}

.breadcrumb i.fas {
    font-size: 10px;
    color: #9b9898;
    margin: 0 4px;
}

.breadcrumb a:hover + i.fas {
    color: #777;
}

.page-title {
    font-size: 45px;
    font-weight: 700;
    color: #534400;
    font-family: "Poppins", sans-serif !important;
    margin-top: 40px;
    margin-bottom: 30px;
}

.biking-content {
    padding: 40px 0;
}

.biking-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ======================================================= */
/* SIDEBAR FILTERS */
/* ======================================================= */
.filters {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 270px;
    margin-top: 30px;
    font-family: "Baumans", sans-serif;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-header h3 {
    color: rgb(90, 75, 20);
    font-weight: 600;
    font-size: 20px;
}

.clear-filters {
    border: none;
    background: none;
    color: rgb(255, 109, 126);
    font-size: 16px;
    font-weight: 500;
    font-family: "Poppins", sans-serif !important;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-filters:hover {
    color: rgb(255, 109, 126);
}

.filter-group {
    border-top: 1px solid #ddd;
    margin-top: 0;
    padding-top: 15px;
}

.filter-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.filter-accordion-toggle h4 {
    margin-bottom: 0;
    font-weight: 300 !important;
    font-size: 16px !important;
    line-height: 1.625 !important;
}

.filter-accordion-toggle .accordion-icon {
    font-size: 14px;
    color: #5a4d1f;
    transition: transform 0.3s ease;
}

.filter-content {
    max-height: 500px;
    opacity: 1;
    font-family: "Poppins", sans-serif !important;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s;
    padding-bottom: 10px;
}

.filter-group .accordion-icon {
    transform: rotate(180deg);
}

.filter-group.closed .filter-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding-bottom: 0;
}

.filter-group.closed .accordion-icon {
    transform: rotate(0deg);
}

.filter-content label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.filter-content label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.filter-content label span:first-of-type {
    flex: 1;
    text-align: left;
}

.filter-content label .count {
    margin-left: auto;
}

.slider-container {
    position: relative;
    height: 60px;
    margin-bottom: 12px;
    margin-top: 5px;
    display: block;
}

.slider-container .slider-background-track {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    width: 100%;
    height: 8px;
    background: #ffe4cc;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}

.slider-track-fill {
    position: absolute;
    height: 8px;
    background: #f47b20 !important;
    border-radius: 4px;
    top: 15px;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.slider-container input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 3px;
    height: 22px;
    background: transparent;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
    margin: 0;
    padding: 0;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid #f47b20 !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    position: relative;
    z-index: 10;
}

.slider-container input[type="range"]::-webkit-slider-thumb:active {
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid #f47b20 !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    position: relative;
    z-index: 10;
}

.slider-container input[type="range"]::-moz-range-thumb:active {
    cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
    height: 8px;
}

.slider-container input[type="range"]::-moz-range-track {
    background: transparent !important;
    border: none !important;
    height: 8px;
}

.price-range,
.duration-range {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
    pointer-events: none;
    margin: 0;
    padding: 0 2px;
}

.price-range span,
.duration-range span {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #333;
    font-weight: 700;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px;
    line-height: 1.5;
}

.filter-group.destination {
    position: relative;
}

.filter-group.destination::before {
    content: "";
    display: block;
    border-top: 1px solid #ddd;
    width: 100%;
    position: absolute;
    top: -3px;
    left: 0;
}

.filter-group h4 {
    color: #5a4d1f;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-group label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin: 6px 0;
    padding-left: 10px;
    padding-right: 0;
    line-height: 1.2;
}

.filter-group .count {
    color: #888;
    font-size: 13px;
}

input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-left: 0;
    position: relative;
    flex-shrink: 0;
}

input[type=checkbox]:checked {
    background-color: #fff5ed;
    border: 1px solid #f28b0c;
    box-shadow: 0 0 0 2px rgba(242, 139, 12, 0.3);
}

input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 3px solid #f28b0c;
    border-bottom: 3px solid #f28b0c;
    transform: rotate(45deg);
    top: 2px;
    left: 6px;
}

input[type=checkbox]:hover {
    box-shadow: 0 0 0 6px rgba(242, 139, 12, 0.2);
}

input[type=checkbox]:not(:hover):checked {
    box-shadow: none;
}

input[type=checkbox]:focus {
    outline: none;
}

/* ======================================================= */
/* RIGHT COLUMN & CONTROLS */
/* ======================================================= */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    box-shadow: none;
    width: 100%;
}

.top-controls .fa-list,
.top-controls .fa-th-large,
.top-controls .fa-th {
    color: #000;
}

.icon-grid-9 {
    display: inline-grid;
    grid-template-columns: repeat(3, 4px);
    grid-template-rows: repeat(3, 4px);
    gap: 3px;
    width: max-content;
    margin-left: -10px;
    padding: 2px;
    vertical-align: middle;
    margin-top: -2px;
    cursor: pointer;
}

.icon-grid-9 div {
    width: 4px;
    height: 4px;
    background-color: #888;
    border-radius: 1px;
    display: inline-block;
    transition: background-color 0.2s;
}

.icon-grid-9:hover div {
    background-color: #555;
}

.search-bar {
    font-family: "Poppins" , sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    padding: 8px 12px;
    border-radius: 20px;
    flex: 1 1 320px;
    min-width: 180px;
}

.search-bar .search-icon-png {
    width: 19px;
    height: 19px;
    margin-right: 0;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.sort-view {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.sort-select {
    font-family: "Poppins" , sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button.active {
    background: #f47b20;
    border-color: #f47b20;
    color: #fff;
}

.view-toggle button.active i,
.view-toggle button.active .icon-grid-9 div {
    color: #fff;
    background-color: #fff;
}

.view-toggle button:hover:not(.active) {
    background: #f5f5f5;
}

/* ======================================================= */
/* PACKAGE CARDS LAYOUT - LIST VIEW */
/* ======================================================= */
.packages.list-view {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.package-card {
    display: grid;
    grid-template-columns: 281px 1fr 230px;
    grid-template-rows: auto auto;
    gap: 20px 25px;
    align-items: start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ======================================================= */
/* PACKAGE CARDS LAYOUT - GRID VIEW */
/* ======================================================= */
.packages.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.package-card-grid {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.package-card-grid:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ======================================================= */
/* CAROUSEL (IMAGEN Y NAVEGACIÓN) - LIST VIEW */
/* ======================================================= */
.carousel-container {
    position: relative;
    width: 281px;
    height: 281px;
    border-radius: 10px;
    overflow: hidden;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    box-shadow: none;
}

.carousel-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50px);
}

.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.0) 0%, transparent 60px),
        linear-gradient(to left, rgba(0, 0, 0, 0.0) 0%, transparent 60px);
    transition: background 0.3s ease-out;
}

.carousel-container:hover::after {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, transparent 80px),
        linear-gradient(to left, rgba(0, 0, 0, 0.1) 0%, transparent 80px);
}

.carousel-images {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.carousel-images img {
    width: 281px;
    height: 281px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ======================================================= */
/* CAROUSEL - GRID VIEW */
/* ======================================================= */
.grid-carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.grid-carousel-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50px);
}

.grid-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.0) 0%, transparent 60px),
        linear-gradient(to left, rgba(0, 0, 0, 0.0) 0%, transparent 60px);
    transition: background 0.3s ease-out;
}

.grid-carousel-container:hover::after {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, transparent 80px),
        linear-gradient(to left, rgba(0, 0, 0, 0.1) 0%, transparent 80px);
}

.grid-carousel-container .carousel-images {
    height: 300px;
}

.grid-carousel-container .carousel-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Pin de ubicación removido del overlay */

/* HEART ICON Y TOOLTIP */
.heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: #3675B8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.heart-icon:hover {
    background: white;
    border: none;
    transform: scale(1.1);
}

.heart-icon:hover i {
    color: #f47b20;
}

.heart-icon i {
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.heart-icon i.fas {
    color: #f47b20;
}

.heart-icon::before {
    content: "Add to wishlist";
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background: #1F1F1F;
    color: #CACAA9;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    font-weight: 500;
}

.heart-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 52px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1F1F1F;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.heart-icon:hover::before,
.heart-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* CAROUSEL CONTROLS (Flechas) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
}

.carousel-container:hover .carousel-btn,
.grid-carousel-container:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
}

.carousel-btn:hover {
    background: transparent;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 0px;
}

.carousel-btn.next {
    right: 0px;
}

.carousel-btn i {
    color: #fff;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* CAROUSEL INDICATORS (Puntos) */
.carousel-indicators {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: flex;
    justify-content: center;
    transform: none;
    gap: 8px;
    z-index: 5;
    background: transparent;
    padding: 0;
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ======================================================= */
/* CARD BODY (Contenido Principal) - LIST VIEW */
/* ======================================================= */
.card-body {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.card-body p {
    font-family: "Poppins", sans-serif !important;
    font-size: 16px !important;
    color: rgb(28, 32, 17) !important;
    font-weight: 400;
}

.card-body .tour-overview {
    text-align: justify;
    text-justify: inter-word;
    height: auto;
    min-height: 28.8px;
    margin-bottom: 10px;
}

.card-body .location {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    font-size: 0;
    height: auto;
}

.card-body h2 {
    font-size: 20px;
    color: #534400;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 28px;
}

.package-title-link {
    color: #534400;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: inherit;
}

.package-title-link:hover {
    color: #f47b20;
}

.card-body > p:first-of-type {
    padding-left: 12px;
    border-left: 3px solid #ddd;
    color: #666;
    margin-bottom: 12px;
}

.custom-location-pin {
    width: 15px;
    height: 15px;
    fill: transparent;
    stroke: #AFB4B6;
    stroke-width: 50;
    vertical-align: middle;
    margin-right: 6px;
    background-color: transparent;
    border-radius: 50%;
    padding: 0;
}

.location-link {
    text-decoration: none;
    transition: color 0.2s;
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.card-body .location .separator {
    color: #898888;
    margin: 0 5px 0 1px;
    padding: 0;
    font-size: 14px;
    display: inline;
}

.location-link i {
    color: #666;
    transition: color 0.2s;
    font-size: 14px;
}

.location-link strong {
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
    margin: 0;
    padding: 0;
    display: inline;
    font-size:16px;
}

.location-link:hover i,
.location-link:hover strong {
    color: #f47b20;
}

/* ======================================================= */
/* GRID CARD CONTENT */
/* ======================================================= */
.grid-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grid-card-content h2 {
    font-size: 18px;
    color: #534400;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

.see-more-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.see-more-btn:hover {
    background: transparent;
    border-color: #f47b20;
    color: #f47b20;
}

.see-more-btn:hover i {
    color: #f47b20;
}

.see-more-btn i {
    font-size: 12px;
    transition: transform 0.3s, color 0.2s;
}

.expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.expandable-content .tour-overview {
    font-family: "Poppins", sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    /*color: #555;*/
    color: rgb(28, 32, 17) !important;
    height: auto;
    min-height: 28.8px;
    text-align: justify;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid #ddd;
}

.expandable-content .location-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333;
}

.custom-location-pin-small {
    width: 14px;
    height: 14px;
    fill: transparent;
    stroke: #AFB4B6;
    stroke-width: 50;
    flex-shrink: 0;
}

/* ======================================================= */
/* SIDE INFO (Duración, Precio, Botón) - LIST VIEW */
/* ======================================================= */
.side-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    grid-row: 1 / 2;
    grid-column: 3 / 4;
}

.details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.details .duration {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.details .duration strong {
    display: block;
    font-family: "Poppins" , sans-serif !important;
    font-weight: 400 !important;
    color: rgba(15, 29, 35, 0.64) !important;
    font-size: 14px !important;
}

.details .duration span {
    font-family: "Poppins" , sans-serif !important;
    font-weight: 600 !important;
    color: rgb(0, 0, 0);
    font-size: 16px;
}

.details .price strong {
    font-family: "Poppins" , sans-serif !important;
    font-weight: 700 !important;
    color: rgb(28, 32, 17) !important;
    font-size: 22px !important;
}

.btn-view {
    width: 100%;
    display: block;
    background-color: #f47b20;
    text-align: center;
    color: #fff;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-view:hover {
    background-color: #e66a12;
    color: #fff;
}

/* ======================================================= */
/* GRID BOTTOM SECTION */
/* ======================================================= */
.grid-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grid-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration-grid {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.duration-grid strong {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: rgba(15, 29, 35, 0.64);
    font-size: 14px;
}

.duration-grid span {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: rgb(0, 0, 0);
    font-size: 16px;
}

.price-grid strong {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: rgb(28, 32, 17);
    font-size: 22px;
}

.btn-view-grid {
    width: 100%;
    display: block;
    background-color: #f47b20;
    text-align: center;
    color: #fff;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    transition: background 0.2s;
}

.btn-view-grid:hover {
    background-color: #e66a12;
    color: #fff;
}

/* Next Departures - LIST VIEW */
.departures {
    font-size: 13px;
    color: #777;
}

.departures strong {
    font-family: "Poppins" , sans-serif !important;
    display: block;
    color: rgba(15, 29, 35, 0.64);
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 14px;
}

.departures ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.departures ul li {
    font-family: "Poppins" , sans-serif !important;
    display: block;
    margin: 6px 0;
    color: #999;
    font-size: 14px !important;
    font-weight: 400 !important;
    overflow: hidden;
}

.departures ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #4ade80;
    font-size: 13px;
    line-height: 1.2;
    text-shadow: 0 0 0.8px #4ade80;
    float: left;
    margin-right: 6px;
}

.departures ul li > span:first-of-type {
    display: inline-block;
    font-weight: 400;
    color: #999;
    line-height: 1.2;
}

.departures ul li .status {
    font-family: "Poppins" , sans-serif !important;
    color: #999;
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin-left: 20px;
    margin-top: 2px;
}

/* Next Departures - GRID VIEW */
.departures-grid {
    font-size: 13px;
    color: #777;
}

.departures-grid strong {
    font-family: "Poppins", sans-serif;
    display: block;
    color: rgba(15, 29, 35, 0.64);
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 14px;
}

.departures-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.departures-grid ul li {
    font-family: "Poppins", sans-serif;
    display: block;
    margin: 4px 0;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
}

.departures-grid ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #4ade80;
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 0 0.8px #4ade80;
    float: left;
    margin-right: 6px;
}

.departures-grid ul li > span:first-of-type {
    display: inline-block;
    font-weight: 400;
    color: #999;
    line-height: 1.2;
    font-size: 13px;
}

.departures-grid ul li .status {
    font-family: "Poppins", sans-serif;
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
    display: inline;
    margin-left: 4px;
}

/* ======================================================= */
/* AVAILABILITY SECTION - LIST VIEW */
/* ======================================================= */
.availability-section {
    grid-column: 1 / span 3;
    grid-row: 2 / 3;
    background: transparent;
    padding: 10px 0 0 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.availability-label {
    font-family: "Poppins" , sans-serif !important;
    font-size: 14px;
    color: rgba(15, 29, 35, 0.64);
    font-weight: 500;
    flex-shrink: 0;
}

.months {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.month {
    padding: 3px 0;
    background: transparent;
    color: #999;
    border-radius: 0;
    font-size: 12px;
    cursor: default;
    transition: all 0.3s;
    font-weight: 400;
}

.month.available {
    font-family: "Poppins" , sans-serif !important;
    background: transparent;
    color: #333;
    font-size: 12px;
    font-weight: 400;
}

/* ======================================================= */
/* AVAILABILITY SECTION - GRID VIEW */
/* ======================================================= */
.availability-section-grid {
    background: transparent;
    padding: 12px 0 0 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.availability-section-grid .availability-label {
    font-family: "Poppins", sans-serif !important;
    font-size: 14px;
    color: rgba(15, 29, 35, 0.64);
    font-weight: 500;
}

.availability-section-grid .months {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

/* ======================================================= */
/* PAGINATION */
/* ======================================================= */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.page {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f3f3f3;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.page:hover {
    background: #f47b20;
    color: #fff;
}

.page.active {
    background: #f47b20;
    color: #fff;
}

/* ======================================================= */
/* RESPONSIVE */
/* ======================================================= */
@media (max-width: 991px) {
    .biking-layout {
        grid-template-columns: 1fr;
    }

    /* LOS FILTROS APARECEN PRIMERO (ARRIBA) */
    .filters {
        width: 100%;
        order: 1;
        margin-top: 0;
        margin-bottom: 20px;
        position: relative;
        top: 0;
    }

    /* LOS TOURS APARECEN DESPUÉS (ABAJO) */
    .right-column {
        order: 2;
    }

    .top-controls {
        position: relative;
        top: 0;
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 1 1 100%;
        min-width: 100%;
        order: 1;
        margin-bottom: 10px;
    }

    .sort-view {
        flex: 1 1 100%;
        order: 2;
        justify-content: space-between;
    }

    /* REESTRUCTURAR PACKAGE CARD PARA MÓVIL - VISTA LIST */
    .package-card {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    /* HACER QUE TODOS LOS ELEMENTOS SEAN VISIBLES Y EN ORDEN */
    .carousel-container {
        width: 100%;
        height: 300px;
        order: 1;
    }

    .card-body {
        order: 2;
        width: 100%;
    }

    .side-info {
        order: 3;
        width: 100%;
    }

    .availability-section {
        order: 4;
        width: 100%;
    }

    .carousel-images img {
        width: 100%;
        height: 300px;
    }

    /* ASEGURAR QUE SIDE-INFO SEA VISIBLE EN MÓVIL */
    .side-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* AJUSTAR DETAILS PARA QUE SE VEA BIEN EN MÓVIL */
    .details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .packages.grid-view {
        grid-template-columns: 1fr;
    }

    /* AJUSTAR EL ANCHO DEL CONTENIDO EN TARJETAS */
    .card-body h2 {
        font-size: 18px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .card-body .tour-overview {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .location-link strong {
        font-size: 14px;
        word-wrap: break-word;
    }

    /* GRID VIEW EN MÓVIL */
    .grid-card-content {
        padding: 15px;
    }

    .grid-card-content h2 {
        font-size: 16px;
        word-wrap: break-word;
    }

    .expandable-content .tour-overview {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .btn-view,
    .btn-view-grid {
        padding: 10px 20px;
        font-size: 14px;
    }

    .carousel-container,
    .grid-carousel-container {
        height: 250px;
    }

    .carousel-images img {
        height: 250px;
    }

    .grid-carousel-container .carousel-images img {
        height: 250px;
    }

    .availability-section,
    .availability-section-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .months {
        gap: 6px;
    }

    .month {
        padding: 4px 8px;
        font-size: 11px;
    }

    .package-card {
        padding: 12px;
    }

    .grid-card-content {
        padding: 12px;
    }

    /* REDUCIR TAMAÑOS DE TEXTO EN MÓVIL PEQUEÑO */
    .card-body h2 {
        font-size: 16px;
    }

    .card-body .tour-overview,
    .expandable-content .tour-overview {
        font-size: 13px !important;
    }

    .location-link strong {
        font-size: 13px;
    }

    .details .duration strong,
    .duration-grid strong {
        font-size: 13px !important;
    }

    .details .duration span,
    .duration-grid span {
        font-size: 15px;
    }

    .details .price strong,
    .price-grid strong {
        font-size: 20px !important;
    }

    /* AJUSTAR CONTROLES SUPERIORES */
    .top-controls {
        padding: 10px;
    }

    .sort-select {
        font-size: 13px;
        padding: 6px 8px;
    }

    .view-toggle button {
        padding: 6px 10px;
    }
}