#bookingModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 33, 17, 0.72);
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
}

#bookingModal.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#bookingModal .modal-container {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border-radius: 34px;
    border: 1px solid rgba(180, 147, 110, 0.26);
    background:
        linear-gradient(90deg, transparent 0 5rem, rgba(197, 121, 110, 0.26) 5rem 5.1rem, transparent 5.1rem),
        repeating-linear-gradient(180deg, rgba(255, 251, 244, 0.97) 0 2.35rem, rgba(221, 210, 194, 0.72) 2.35rem 2.43rem),
        linear-gradient(180deg, rgba(255, 251, 244, 0.995), rgba(245, 236, 221, 0.99));
    background-blend-mode: normal;
    box-shadow: 0 30px 80px rgba(53, 34, 18, 0.34);
    transform: scale(0.9) translateY(50px);
    transition: all 0.4s;
}

#bookingModal.active .modal-container {
    transform: scale(1) translateY(0);
}

#bookingModal .modal-container::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    bottom: 1rem;
    width: 3.4rem;
    border-radius: 26px;
    background: linear-gradient(180deg, #b08a62 0%, #906642 100%);
    box-shadow: inset -8px 0 16px rgba(62, 39, 18, 0.18), 0 16px 28px rgba(93, 65, 39, 0.14);
    z-index: 0;
}

#bookingModal .modal-container::after {
    content: "";
    position: absolute;
    right: 2rem;
    top: 1rem;
    width: 7rem;
    height: 1.35rem;
    border-radius: 8px;
    transform: rotate(4deg);
    background: rgba(236, 205, 157, 0.48);
    box-shadow: 0 10px 18px rgba(134, 98, 58, 0.12);
    pointer-events: none;
}

#bookingModal .modal-header,
#bookingModal .modal-body {
    position: relative;
    z-index: 1;
}

#bookingModal .modal-close {
    position: absolute;
    top: 1.35rem;
    right: 1.45rem;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(184, 145, 93, 0.96);
    color: #fffaf2;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    pointer-events: auto;
    box-shadow: 0 10px 22px rgba(99, 68, 40, 0.18);
    transition: all 0.3s;
}

#bookingModal .modal-close:hover {
    background: rgba(156, 117, 67, 0.98);
    transform: rotate(90deg);
}

#bookingModal .modal-header {
    padding: 2.5rem 2.8rem 1rem 6.35rem;
    background: transparent;
    text-align: left;
    color: #4a3c28;
}

#bookingModal .modal-header::before {
    content: "Adventure Planner";
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.55rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(169, 132, 91, 0.42);
    background: rgba(255, 248, 236, 0.8);
    color: #a88860;
    font-family: "Caveat", cursive;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

#bookingModal .modal-title {
    margin-bottom: 0.35rem;
    color: #4a3c28;
    font-family: "Caveat", cursive;
    font-size: clamp(3.1rem, 5vw, 4.4rem);
    line-height: 0.92;
    font-weight: 700;
    max-width: 10ch;
}

#bookingModal .modal-subtitle {
    color: #a88860;
    font-family: "Caveat", cursive;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

#bookingModal .modal-body {
    padding: 1rem 2.8rem 2.5rem 6.35rem;
    background: transparent;
}

#bookingModal .error-message {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(165, 72, 72, 0.2);
    border-radius: 16px;
    background: rgba(165, 72, 72, 0.12);
    color: #8c2f2f;
}

#bookingModal .error-message.show {
    display: block;
}

#bookingModal .form-group {
    margin-bottom: 1.55rem;
}

#bookingModal .form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #a88860;
    font-family: "Caveat", cursive;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
}

#bookingModal .form-input,
#bookingModal .form-select,
#bookingModal .form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(193, 162, 121, 0.42);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    color: #4a3c28;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

#bookingModal .form-input:focus,
#bookingModal .form-select:focus,
#bookingModal .form-textarea:focus {
    outline: none;
    border-color: rgba(186, 141, 77, 0.8);
    box-shadow: 0 0 0 4px rgba(201, 165, 130, 0.1);
}

#bookingModal .date-picker-shell {
    position: relative;
}

#bookingModal .date-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
}

#bookingModal .date-picker-trigger::after {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    border-right: 2px solid rgba(139, 115, 85, 0.88);
    border-bottom: 2px solid rgba(139, 115, 85, 0.88);
    transform: rotate(45deg) translateY(-0.14rem);
    transition: transform 0.2s ease;
}

#bookingModal .date-picker-trigger.is-open::after {
    transform: rotate(-135deg) translateY(-0.08rem);
}

#bookingModal .date-picker-trigger.is-placeholder {
    color: #8b7355;
}

#bookingModal .date-picker-popover {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    z-index: 15;
    padding: 1rem;
    border: 1px solid rgba(193, 162, 121, 0.34);
    border-radius: 22px;
    background: rgba(255, 251, 244, 0.98);
    box-shadow: 0 22px 38px rgba(90, 61, 34, 0.16);
    backdrop-filter: blur(12px);
}

#bookingModal .date-picker-popover[hidden] {
    display: none !important;
}

#bookingModal .date-picker-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

#bookingModal .date-picker-nav {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(193, 162, 121, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #4a3c28;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bookingModal .date-picker-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(120, 84, 47, 0.12);
}

#bookingModal .date-picker-title {
    text-align: center;
    color: #4a3c28;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#bookingModal .date-picker-weekdays,
#bookingModal .date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

#bookingModal .date-picker-weekdays {
    margin-bottom: 0.5rem;
    color: #8b7355;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

#bookingModal .date-picker-day,
#bookingModal .date-picker-day--blank {
    min-height: 2.8rem;
    border-radius: 14px;
}

#bookingModal .date-picker-day {
    border: 1px solid rgba(193, 162, 121, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #4a3c28;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#bookingModal .date-picker-day:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(120, 84, 47, 0.12);
}

#bookingModal .date-picker-day--blank {
    background: transparent;
    border: none;
    pointer-events: none;
}

#bookingModal .date-picker-day.is-past {
    opacity: 0.34;
    cursor: not-allowed;
}

#bookingModal .date-picker-day.is-partial {
    border-color: rgba(194, 104, 89, 0.24);
    background: rgba(201, 112, 96, 0.12);
    color: #a14b3f;
}

#bookingModal .date-picker-day.is-unavailable {
    border-color: rgba(168, 63, 63, 0.24);
    background: rgba(177, 63, 63, 0.16);
    color: #9b3131;
    cursor: not-allowed;
}

#bookingModal .date-picker-day.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, #c9a582, #a88860);
    color: #fff;
    box-shadow: 0 12px 22px rgba(201, 165, 130, 0.28);
}

#bookingModal .date-picker-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1px rgba(201, 165, 130, 0.8);
}

#bookingModal .date-picker-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 0.9rem;
    color: #8b7355;
    font-size: 0.76rem;
}

#bookingModal .date-picker-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#bookingModal .date-picker-legend-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(193, 162, 121, 0.24);
    background: rgba(255, 255, 255, 0.82);
}

#bookingModal .date-picker-legend-swatch--open {
    background: rgba(255, 255, 255, 0.82);
}

#bookingModal .date-picker-legend-swatch--partial {
    border-color: rgba(194, 104, 89, 0.24);
    background: rgba(201, 112, 96, 0.12);
}

#bookingModal .date-picker-legend-swatch--unavailable {
    border-color: rgba(168, 63, 63, 0.24);
    background: rgba(177, 63, 63, 0.16);
}

@media (max-width: 640px) {
    #bookingModal .date-picker-popover {
        padding: 0.8rem;
    }

    #bookingModal .date-picker-weekdays,
    #bookingModal .date-picker-grid {
        gap: 0.28rem;
    }

    #bookingModal .date-picker-day,
    #bookingModal .date-picker-day--blank {
        min-height: 2.35rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    #bookingModal .date-picker-legend {
        gap: 0.55rem 0.75rem;
        font-size: 0.72rem;
    }
}

#bookingModal .form-textarea {
    resize: vertical;
    min-height: 100px;
}

#bookingModal .guest-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(193, 162, 121, 0.42);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.48);
}

#bookingModal .guest-item {
    padding: 1rem 0.9rem;
    border: 1px solid rgba(193, 162, 121, 0.2);
    border-radius: 18px;
    background: rgba(255, 250, 241, 0.62);
    text-align: center;
}

#bookingModal .guest-label {
    color: #4a3c28;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
}

#bookingModal .guest-description {
    margin-bottom: 1rem;
    color: #8b7355;
    font-size: 0.9rem;
}

#bookingModal .quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#bookingModal .qty-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(180, 141, 67, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(250, 224, 129, 0.92) 0%, rgba(228, 190, 92, 0.96) 100%),
        repeating-linear-gradient(8deg, rgba(177, 132, 48, 0.1) 0 2px, rgba(177, 132, 48, 0) 2px 7px);
    color: #4c3317;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.76), 0 10px 18px rgba(154, 120, 67, 0.16);
    transition: all 0.3s;
}

#bookingModal .qty-btn:hover {
    background:
        linear-gradient(180deg, rgba(247, 216, 111, 0.96) 0%, rgba(221, 180, 74, 1) 100%),
        repeating-linear-gradient(8deg, rgba(177, 132, 48, 0.1) 0 2px, rgba(177, 132, 48, 0) 2px 7px);
    transform: translateY(-2px);
}

#bookingModal .qty-btn:active {
    transform: scale(0.95);
}

#bookingModal .qty-btn:disabled {
    background: rgba(212, 195, 168, 0.95);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

#bookingModal .qty-display {
    min-width: 60px;
    color: #4a3c28;
    font-family: "Playfair Display", serif;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

#bookingModal .total-display {
    margin: 1.75rem 0;
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(193, 162, 121, 0.34);
    border-radius: 22px;
    background: rgba(255, 248, 236, 0.72);
    color: #4a3c28;
    text-align: left;
    box-shadow: 0 14px 24px rgba(116, 84, 47, 0.08);
}

#bookingModal .total-label {
    margin-bottom: 0.4rem;
    color: #a88860;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#bookingModal .total-amount {
    color: #4a3c28;
    font-family: "Playfair Display", serif;
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
}

#bookingModal .form-actions {
    margin-top: 2rem;
}

#bookingModal .booking-terms-note {
    margin: 1rem 0 0;
    color: #7b6448;
    font-size: 0.88rem;
    line-height: 1.65;
}

#bookingModal .booking-terms-note a {
    color: #8f6530;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

#bookingModal .btn-submit {
    width: 100%;
    min-height: 60px;
    padding: 1rem 1.6rem;
    border: 1px solid rgba(180, 141, 67, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(250, 224, 129, 0.92) 0%, rgba(228, 190, 92, 0.96) 100%),
        repeating-linear-gradient(8deg, rgba(177, 132, 48, 0.1) 0 2px, rgba(177, 132, 48, 0) 2px 7px),
        repeating-linear-gradient(-9deg, rgba(255, 240, 177, 0.18) 0 1px, rgba(255, 240, 177, 0) 1px 8px);
    color: #4c3317;
    font-family: "Caveat", cursive;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.76), 0 16px 26px rgba(154, 120, 67, 0.18);
    transition: all 0.3s;
}

#bookingModal .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.82), 0 20px 30px rgba(154, 120, 67, 0.22);
}

#bookingSuccessModal.booking-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(49, 33, 17, 0.56);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

#bookingSuccessModal.booking-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#bookingSuccessModal .booking-success-card {
    position: relative;
    width: min(560px, 100%);
    padding: 2rem;
    border-radius: 30px;
    border: 1px solid rgba(193, 162, 121, 0.26);
    background:
        radial-gradient(circle at top right, rgba(250, 224, 129, 0.34), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 238, 225, 0.98));
    box-shadow: 0 28px 60px rgba(53, 34, 18, 0.24);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s ease;
    overflow: hidden;
}

#bookingSuccessModal.active .booking-success-card {
    transform: translateY(0) scale(1);
}

#bookingSuccessModal .booking-success-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.55rem;
    background: linear-gradient(180deg, rgba(250, 224, 129, 0.96), rgba(201, 165, 130, 0.92));
}

#bookingSuccessModal .booking-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 145, 93, 0.26);
    background: rgba(255, 248, 236, 0.82);
    color: #a88860;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#bookingSuccessModal .booking-success-badge::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(250, 224, 129, 0.92), rgba(228, 190, 92, 0.96));
    color: #4c3317;
    font-size: 0.82rem;
    font-weight: 800;
}

#bookingSuccessModal .booking-success-title {
    margin: 1rem 0 0.4rem;
    color: #4a3c28;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 0.95;
}

#bookingSuccessModal .booking-success-badge::before {
    content: "\2713";
}

#bookingSuccessModal .booking-success-lead {
    margin: 0;
    color: #6b5535;
    font-size: 1rem;
    line-height: 1.6;
}

#bookingSuccessModal .booking-success-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.4rem 0 1.2rem;
}

#bookingSuccessModal .booking-success-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(193, 162, 121, 0.2);
    background: rgba(255, 255, 255, 0.62);
}

#bookingSuccessModal .booking-success-item span {
    display: block;
    margin-bottom: 0.32rem;
    color: #a88860;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#bookingSuccessModal .booking-success-item strong {
    color: #4a3c28;
    font-size: 1rem;
    line-height: 1.45;
}

#bookingSuccessModal .booking-success-message {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(193, 162, 121, 0.18);
    background: rgba(255, 248, 236, 0.74);
    color: #6b5535;
    line-height: 1.6;
}

#bookingSuccessModal .booking-success-actions {
    margin-top: 1.35rem;
    display: flex;
    justify-content: flex-end;
}

#bookingSuccessModal .booking-success-close {
    min-width: 140px;
    min-height: 54px;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(180, 141, 67, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(250, 224, 129, 0.92) 0%, rgba(228, 190, 92, 0.96) 100%),
        repeating-linear-gradient(8deg, rgba(177, 132, 48, 0.1) 0 2px, rgba(177, 132, 48, 0) 2px 7px);
    color: #4c3317;
    font-family: "Caveat", cursive;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.76), 0 14px 24px rgba(154, 120, 67, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bookingSuccessModal .booking-success-close:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.82), 0 18px 28px rgba(154, 120, 67, 0.22);
}

@media (max-width: 968px) {
    #bookingModal .guest-selector {
        grid-template-columns: 1fr;
    }

    #bookingModal .modal-container {
        margin: 1rem;
        max-height: 85vh;
    }

    #bookingModal .modal-container::before,
    #bookingModal .modal-container::after {
        display: none;
    }

    #bookingModal .modal-header {
        padding: 2rem 1.55rem 0.85rem;
    }

    #bookingModal .modal-body {
        padding: 0.9rem 1.55rem 2rem;
    }

    #bookingSuccessModal .booking-success-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #bookingModal .modal-container {
        border-radius: 20px;
        margin: 0.5rem;
    }

    #bookingModal .modal-title {
        font-size: 2.7rem;
        max-width: 100%;
    }

    #bookingModal .modal-subtitle,
    #bookingModal .form-label {
        font-size: 1.2rem;
    }

    #bookingModal .guest-selector {
        gap: 0.85rem;
    }

    #bookingSuccessModal .booking-success-card {
        padding: 1.4rem;
        border-radius: 22px;
    }

    #bookingSuccessModal .booking-success-actions {
        justify-content: stretch;
    }

    #bookingSuccessModal .booking-success-close {
        width: 100%;
    }
}

@media (max-width: 400px) {
    #bookingModal .modal-container {
        margin: 0.25rem;
    }

    #bookingModal .modal-header {
        padding: 1.8rem 1.1rem 0.7rem;
    }

    #bookingModal .modal-body {
        padding: 0.75rem 1.1rem 1.5rem;
    }
}
