/* Booking page column — beri ruang dari navbar sticky & pusatkan kontennya */
.book-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 36px 0 80px;
}
/* Layout 2 kolom: galeri+info di kiri, form (sticky) langsung terlihat di kanan */
.book-wrapper .booking-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 32px;
        align-items: start;
    }
.book-wrapper .booking-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-width: 0;
    }
.book-wrapper .booking-aside {
        position: -webkit-sticky;
        position: sticky;
        top: 96px;
        min-width: 0;
    }
.book-wrapper .swiper-gallery {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
.book-wrapper .main-swiper {
        width: 100%;
        height: 360px;
        -o-object-fit: cover;
           object-fit: cover;
        margin: 0 !important;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
    }
.book-wrapper .main-swiper .swiper-slide {
            position: relative;
            overflow: hidden;
        }
.book-wrapper .main-swiper img {
            width: 100%;
            height: 100%;
            -o-object-fit: cover;
               object-fit: cover;
        }
.book-wrapper .main-swiper .caption {
            position: absolute;
            bottom: 14px;
            left: 18px;
            z-index: 2;
            color: #F8F3EC;
            font-size: 24px;
            font-weight: 600;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        }
.book-wrapper .main-swiper .swiper-slide::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%);
            pointer-events: none;
        }
.book-wrapper .thumb-swiper {
        width: 100%;
        margin: 0 !important;
    }

.back-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.back-wrapper h2 {
        margin: 0;
        color: #000;
        font-size: 32px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.64px;
    }

.back-wrapper a {
        display: flex;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        border-radius: 999999px;
        background: rgba(0, 0, 0, 0.06);
        color: #000000;
        transition: background 0.2s ease, transform 0.2s ease;
    }

.back-wrapper a i {
            font-size: 22px;
        }

.back-wrapper a:hover {
        background: rgba(0, 0, 0, 0.12);
        transform: translateX(-2px);
    }

.thumb-swiper .swiper-slide {
    width: 200px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.thumb-swiper .swiper-slide .caption {
        position: absolute;
        bottom: 8px;
        left: 14px;
        z-index: 2;
        color: #F8F3EC;
        font-size: 15px;
        font-weight: 500;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #202020;
}

.thumb-swiper img {
    width: 100%;
    height: 130px;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.package-detail-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.package-detail-box p {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: -0.28px;
    }

.package-detail-box p i {
            font-size: 18px;
            flex: 0 0 auto;
        }

.package-detail-box button {
        display: inline-flex;
        flex: 0 0 auto;
        height: 38px;
        padding: 0 18px;
        justify-content: center;
        align-items: center;
        gap: 6px;
        border-radius: 66666px;
        background-color: #F8F3EC;
        border: 1px solid #202020;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -0.213px;
        color: #202020;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
    }

.package-detail-box button:hover {
        background-color: #202020;
        color: #F8F3EC;
    }

/* Form sebagai kartu elevated (tampilan premium) */
.booking-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}
.booking-form .form-eyebrow {
        text-transform: uppercase;
        letter-spacing: 3px;
        font-size: 12px;
        font-weight: 700;
        color: #b08d57;
    }
.booking-form h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        color: #202020;
        letter-spacing: -0.3px;
    }
.booking-form .form-lead {
        margin: -10px 0 4px;
        font-size: 14px;
        line-height: 1.6;
        color: #6f6a60;
    }
.booking-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
.booking-form .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #202020;
        letter-spacing: -0.2px;
    }
/* Ratakan blok full-width dengan baris tanggal (netralkan padding kolom Bootstrap) */
.booking-form .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }
.booking-form .row {
        margin-left: 0;
        margin-right: 0;
        row-gap: 18px;
    }
.booking-form .row > [class*="col-"]:first-child {
        padding-left: 0;
    }
.booking-form .row > [class*="col-"]:last-child {
        padding-right: 0;
    }
/* Mobile: kolom tanggal menumpuk vertikal — buang sisa gutter Bootstrap
       agar Check-in & Check-out sama lebar (full) & sejajar dgn field lain. */
@media (max-width: 767.98px) {
        .booking-form .row > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100%;
            padding-left: 0;
            padding-right: 0;
        }
    }

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e4ddd0;
    font-size: 15px;
    font-family: inherit;
    color: #202020;
    background-color: #faf7f1;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.booking-form input::-moz-placeholder {
    color: #a9a293;
}

.booking-form input::placeholder {
    color: #a9a293;
}

.booking-form input:hover,
.booking-form select:hover {
    border-color: #c9bfac;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #202020;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 32, 32, 0.08);
}

/* Panah dropdown kustom (konsisten lintas browser) */
.booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202020' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.booking-form input[readonly],
.booking-form input:disabled {
    background-color: #f1ece3;
    color: #6f6a60;
    cursor: default;
}

/* Input tanggal: ikon kalender bisa diklik penuh */
.booking-form input[type="date"] {
    cursor: pointer;
}

/* Kartu estimasi harga (pengganti input) */
.est-card {
    border: 1px solid #e8dfce;
    border-radius: 16px;
    padding: 18px 20px;
    background: #faf7f1;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.est-card.is-active {
    border-color: #b08d57;
    background: linear-gradient(180deg, #fffdf9, #fbf4e8);
    box-shadow: 0 10px 28px rgba(176, 141, 87, 0.14);
}
.est-card .est-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.est-card .est-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6f6a60;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.est-card .est-label i { font-size: 18px; color: #b08d57; }
.est-card .est-total {
    font-size: 26px;
    font-weight: 800;
    color: #202020;
    letter-spacing: -0.5px;
    line-height: 1;
    text-align: right;
}
.est-card.is-active .est-total { color: #9c7c4b; }
.est-card .est-detail {
    margin-top: 8px;
    font-size: 13px;
    color: #8a8377;
}

.booking-btn {
    display: inline-flex;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 99999px;
    background: #202020;
    color: #F8F3EC;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-btn i {
    font-size: 20px;
}

.booking-btn:hover {
    background: #2c2c2c;
    color: #F8F3EC;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(32, 32, 32, 0.25);
}

.booking-btn:active {
    transform: translateY(0);
}

.booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hide conditional fields by default */
.conditional-field {
    display: none;
}

.conditional-field.show {
    display: block;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.info-text i {
    font-size: 16px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
}

.capacity-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.capacity-info.warning {
    color: #ff9800;
}

.capacity-info.error {
    color: #dc3545;
}

.capacity-info i {
    font-size: 14px;
}

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #f8f3ec;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #202020;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-body {
    color: #333;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 16px;
    font-size: 14px;
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #202020;
    margin: 20px 0 12px 0;
}

.modal-body h4:first-of-type {
    margin-top: 8px;
}

.modal-body ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    font-size: 14px;
}

.see-details-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.see-details-link:hover {
    text-decoration: underline;
}

/* Tambahkan CSS ini ke dalam \3c style> yang sudah ada */

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    background: #f8f3ec;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background-color: #e8e3dc;
    border-color: #bbb;
}

.language-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.language-btn i {
    font-size: 16px;
}

.language-btn::after {
    content: none;
    /* Remove default Bootstrap arrow */
}

/* Dropdown positioning - ke kiri agar tidak scroll */
.language-switcher .dropdown-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    min-width: 180px;
    padding: 8px 0;
    margin-top: 4px;
    /* Position ke kiri */
    right: 0;
    left: auto;
}

.language-switcher .dropdown-item {
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.language-switcher .dropdown-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .language-switcher .dropdown-menu {
        min-width: 160px;
        right: -10px;
    }

    .language-switcher .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-conflict-error {
    display: block !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.date-conflict-error ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.date-conflict-error li {
    margin-bottom: 0.25rem;
    color: #dc3545;
}

.is-invalid.date-conflict {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== Booking page — tampilan mobile (tablet & ponsel) ===== */
@media (max-width: 991px) {
    .book-wrapper {
        padding: 28px 0 64px;
        gap: 24px;
    }

    /* Tablet/ponsel: jadi 1 kolom. Form ditaruh PALING ATAS (aksi utama),
       galeri foto turun di bawahnya sebagai pendukung. */
    .book-wrapper .booking-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .book-wrapper .booking-aside {
        position: static;
        top: auto;
        order: 1;
    }

    .book-wrapper .booking-main {
        order: 2;
    }

    .main-swiper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .book-wrapper {
        padding: 20px 0 48px;
        gap: 24px;
    }

    .back-wrapper {
        gap: 14px;
    }

    .back-wrapper h2 {
        font-size: 22px;
        letter-spacing: -0.4px;
    }

    .back-wrapper a {
        width: 40px;
        height: 40px;
    }

    .back-wrapper a i {
        font-size: 20px;
    }

    .main-swiper {
        height: 220px;
        border-radius: 14px;
    }

    .main-swiper .caption {
        font-size: 18px;
        bottom: 10px;
        left: 14px;
    }

    .thumb-swiper .swiper-slide {
        width: 150px;
        border-radius: 12px;
    }

    .thumb-swiper img {
        height: 100px;
    }

    .package-detail-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .package-detail-box button {
        width: 100%;
    }

    .booking-form {
        padding: 20px;
        border-radius: 18px;
        gap: 18px;
    }

    .booking-form h2 {
        font-size: 19px;
    }

    .booking-form input,
    .booking-form select {
        font-size: 16px; /* >=16px mencegah iOS auto-zoom saat fokus */
        padding: 13px 14px;
    }

    .booking-form select {
        padding-right: 42px;
    }

    .booking-btn {
        height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-swiper {
        height: 190px;
    }

    .thumb-swiper .swiper-slide {
        width: 130px;
    }

    .thumb-swiper img {
        height: 90px;
    }
}