/* HERO SECTION */
.paquetes-hero {
    min-height: 80vh;
    background: url('../img/paquetes/FONDOPAQUETES.webp') no-repeat center center/cover;
    position: relative;
    padding-top: 80px;
    /* Space for fixed navbar */
}

/* OVERLAY */
.paquetes-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* SEARCH BOX */
.search-box-container {
    background-color: #fff;
    border-radius: 24px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 2.5rem !important;
}

.search-tabs h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.search-tabs .btn-tab {
    border: none;
    background: transparent;
    color: #444;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s;
}

.search-tabs .btn-tab:hover,
.search-tabs .btn-tab.active {
    background-color: #eef3f7;
    color: var(--primary-color, #0d6efd);
}

.search-input-group .input-group-text {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}

.search-input-group .form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.search-input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-radius: 8px;
}

.btn-white {
    background-color: #fff;
    border-color: #ced4da;
    color: #495057;
    border-radius: 8px;
    /* Standardize with inputs */
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active,
.show>.btn-white.dropdown-toggle {
    background-color: #fff;
    border-color: #ced4da;
    color: #495057;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    /* Focus ring like inputs */
}

.search-input-group {
    height: 60px;
    /* Force height conformity */
    transition: all 0.3s ease;
}

.search-input-group:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

.search-input-group .form-control,
.search-input-group .input-group-text,
.search-input-group .btn-white {
    height: 100%;
}

.btn-search {
    background-color: #07606b;
    border: none;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #05454d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 96, 107, 0.3) !important;
}


.btn-search:hover {
    background-color: #77c0c0;
    color: white;
}

/* PACKAGES CARDS */
.package-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.package-card .card-img-top {
    transition: opacity 0.3s;
}


/* CALENDAR */

/* CALENDAR */
.calendar-grid .row {
    --bs-gutter-x: 0;
}

.calendar-grid .col {
    flex: 0 0 14.2857%;
    /* 100/7 */
    max-width: 14.2857%;
    width: 14.2857%;
    /* Fallback */
    padding: 0.6rem 0;
    /* More breathing room */
    cursor: pointer;
    font-size: 0.95rem;
    /* Slightly larger */
    position: relative;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.calendar-grid .col:hover:not(.empty):not(.bg-primary) {
    background-color: #f2f5fa;
    color: #4300D2;
    border-radius: 8px;
    /* Rounded hover */
}

/* Selected states logic matching Despegar */
.calendar-grid .bg-primary {
    background-color: #4300D2 !important;
    color: white !important;
}

.calendar-grid .bg-primary.rounded-start-circle {
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
}

.calendar-grid .bg-primary.rounded-end-circle {
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

.calendar-grid .bg-opacity-10 {
    background-color: rgba(67, 0, 210, 0.1) !important;
    color: black !important;
}

.calendar-grid .opacity-25 {
    opacity: 0.3;
    pointer-events: none;
}


.rounded-top-left-4 {
    border-top-left-radius: 1rem !important;
    /* Matches bootstrap rounded-4 */
}

/* PACKAGE DETAIL PAGE */
.package-gallery-swiper {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.package-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e9ecef;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #2D6059;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #2D6059;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    /* Space for fixed navbar */
}

.price-card {
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D6059;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


.bg-snow {
    background-color: #fdfdfd !important;
}




/* Custom width for calendar dropdown container to override bootstrap default if needed media queries */
@media (max-width: 768px) {
    .dropdown-menu[style*="width: 650px"] {
        width: 90vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* SEARCH RESULTS SECTION */
.filter-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    /* Custom Scrollbar styling could be added here */
}

.filter-group {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Swiper Navigation Customization para Ofertas */
.packages-swiper {
    position: relative;
    /* Expandimos el contenedor para que las flechas tengan su espacio
       pero los cards sigan alineados con el contenido de la página */
    margin-left: -60px;
    margin-right: -60px;
    padding-left: 60px;
    padding-right: 60px;
    /* Aseguramos que el contenido extra no sea accesible por scroll lateral */
    overflow: hidden;
}

#offers-swiper .swiper-button-next,
#offers-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    color: #2D6059; /* Verde bosque de la marca */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: 50%;
    margin-top: -24px;
    border: 1px solid #eee;
    z-index: 10;
}

#offers-swiper .swiper-button-next:after,
#offers-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 900;
}

#offers-swiper .swiper-button-next {
    right: 5px; /* Dentro del espacio generado por margin/padding */
}

#offers-swiper .swiper-button-prev {
    left: 5px;
}

#offers-swiper .swiper-button-next:hover,
#offers-swiper .swiper-button-prev:hover {
    background: #2D6059;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 96, 89, 0.3);
}

/* Pagination dots style matching the brand */
#offers-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #2D6059;
    opacity: 0.2;
}

#offers-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Ajuste para móviles y pantallas medianas */
@media (max-width: 1200px) {
    .packages-swiper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        overflow: visible; /* Permitir ver que hay más contenido al hacer scroll */
    }
    #offers-swiper .swiper-button-next,
    #offers-swiper .swiper-button-prev {
        display: none;
    }
}
.filter-group:last-child {
    border-bottom: none;
}

.horizontal-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent;
}

.horizontal-card .card-img-left {
    width: 280px;
    object-fit: cover;
    min-height: 220px;
}

/* Tablet-specific adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .horizontal-card {
        max-height: 300px;
        /* Limit total card height */
    }

    .horizontal-card .card-img-left {
        width: 280px;
        height: 300px;
        /* Fixed height matching card */
        min-height: auto;
        max-height: 300px;
    }

    .horizontal-card .card-body {
        padding: 1.25rem !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .horizontal-card .card-body>div:first-child {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .horizontal-card h4 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.5rem !important;
        order: 2;
    }

    .horizontal-card .card-body>div:first-child>div:first-child {
        order: 1;
        margin-bottom: 0.5rem;
    }

    .horizontal-card .card-body>div:first-child>div:nth-child(3) {
        order: 3;
        margin-bottom: 0.5rem !important;
    }

    .horizontal-card .card-body>div:first-child>div:nth-child(4) {
        order: 4;
        margin-bottom: 0.5rem !important;
    }

    .horizontal-card .card-body>div:first-child>p {
        order: 5;
        margin-bottom: 0.75rem !important;
    }

    .horizontal-card p,
    .horizontal-card .small {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .horizontal-card .border-start {
        border-left: none !important;
        border-top: 1px solid #e9ecef;
        padding-left: 0 !important;
        padding-top: 1rem;
        margin-top: auto;
        text-align: left !important;
        min-width: 100%;
        order: 6;
    }

    .horizontal-card .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 991.98px) {

    /* Tablet/Mobile Adjustments */
    .horizontal-card {
        flex-direction: column;
    }

    .horizontal-card .card-img-left {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .horizontal-card .card-body {
        padding: 1rem !important;
        /* Reduce padding on mobile */
    }

    .horizontal-card .border-start {
        border-left: none !important;
        border-top: 1px solid #f0f0f0;
        padding-left: 0 !important;
        padding-top: 1rem;
        margin-top: 1rem;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    /* Offcanvas adjustments */
    .offcanvas-lg {
        border-radius: 0 16px 16px 0;
        /* Rounded corners on mobile menu */
    }

    .offcanvas-lg .offcanvas-body {
        padding: 0;
        /* Keep at 0, padding handled by filter-sidebar */
    }

    .offcanvas-lg .filter-sidebar {
        padding: 1.5rem 2rem;
        /* Add proper padding for mobile */
    }

    .offcanvas-lg .filter-group {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        /* Ensure separator is visible */
    }

    .offcanvas-lg .form-check {
        margin-bottom: 0.75rem;
        /* Better vertical spacing between options */
        display: flex;
        /* Better alignment for verify */
        align-items: center;
        gap: 0.5rem;
    }

    .offcanvas-lg .form-check-input {
        margin-top: 0;
        /* Remove default top margin for flex alignment */
        width: 1.25em;
        /* Slightly larger targets */
        height: 1.25em;
    }

    .offcanvas-lg .form-check-label {
        color: #444;
    }
}