/* Booking modal — tour checkout */

body.booking-modal-open {
    overflow: hidden;
}

.booking-modal[hidden] {
    display: none !important;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 16, 0.62);
    backdrop-filter: blur(4px);
}

.booking-modal__dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: min(92vh, 720px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.booking-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.booking-modal__head {
    padding-right: 2rem;
    margin-bottom: 0.85rem;
}

.booking-modal__kicker {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a5c3e;
    margin-bottom: 0.25rem;
}

.booking-modal__head h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    color: #111;
    margin: 0;
}

.booking-modal__tour {
    font-size: 0.82rem;
    color: #e68a3e;
    font-weight: 600;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.booking-modal__summary {
    background: linear-gradient(135deg, #f4f9f7 0%, #fff 100%);
    border: 1px solid rgba(26, 92, 62, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.booking-modal__summary-row,
.booking-modal__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    padding: 0.25rem 0;
}

.booking-modal__summary-total {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(26, 92, 62, 0.2);
    font-weight: 700;
}

.booking-modal__summary-total strong {
    font-size: 1.05rem;
    color: #1a5c3e;
}

.booking-modal__summary-row--addon {
    color: #3d5c4f;
}

.booking-modal__summary-row--addon small {
    opacity: 0.7;
    font-weight: 400;
}

.booking-modal__addons-pick {
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(26, 92, 62, 0.14);
    border-radius: 12px;
    background: #fafcfb;
}

.booking-modal__addons-title {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a3d32;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-modal__addons-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.booking-addon-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.booking-addon-option:hover {
    background: rgba(26, 92, 62, 0.06);
}

.booking-addon-option input {
    margin-top: 0.2rem;
    accent-color: #1a5c3e;
}

.booking-addon-option__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.86rem;
    color: #1a3d32;
}

.booking-addon-option__text strong {
    font-weight: 600;
}

.booking-addon-option__text em {
    font-style: normal;
    font-size: 0.78rem;
    color: #1a5c3e;
}

.booking-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.booking-field--full {
    grid-column: 1 / -1;
}

.booking-field span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #444;
}

.booking-field span em {
    color: #c0392b;
    font-style: normal;
}

.booking-field input,
.booking-field textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font: inherit;
    font-size: 0.84rem;
}

.booking-field input:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: #1a5c3e;
    box-shadow: 0 0 0 3px rgba(26, 92, 62, 0.12);
}

.booking-modal__methods {
    margin: 0.85rem 0 0.65rem;
    padding: 0.65rem 0.75rem;
    background: #faf9f7;
    border-radius: 10px;
}

.booking-modal__methods p {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.45rem;
}

.booking-modal__methods ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.booking-modal__methods li {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    color: #1a5c3e;
}

.booking-modal__error {
    font-size: 0.78rem;
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
}

.booking-modal__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a5c3e 0%, #134830 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.booking-modal__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 92, 62, 0.35);
}

.booking-modal__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.booking-modal__demo-note {
    font-size: 0.68rem;
    color: #888;
    text-align: center;
    margin-top: 0.55rem;
    line-height: 1.45;
}

/* Book Now button on tour cards */
.tour-btn-book {
    background: linear-gradient(135deg, #1a5c3e 0%, #22784f 100%);
    color: #fff;
}

.tour-btn-book:hover {
    background: linear-gradient(135deg, #134830 0%, #1a5c3e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 92, 62, 0.35);
}

.tour-card-actions--with-book {
    flex-wrap: wrap;
}

.tour-card-actions--with-book .tour-btn-book {
    flex: 1 1 calc(50% - 0.25rem);
}

.tour-card-actions--with-book .tour-btn-enquiry {
    flex: 1 1 calc(50% - 0.25rem);
}

.tour-card-actions--with-book .tour-btn-details {
    flex: 1 1 100%;
}

/* Sidebar booking widget */
.tour-booking-price-box {
    background: linear-gradient(135deg, #f4f9f7 0%, #fff 100%);
    border: 1px solid rgba(26, 92, 62, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
}

.tour-booking-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 0.2rem 0;
    color: #5c5348;
}

.tour-booking-price-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a5c3e;
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(26, 92, 62, 0.2);
}

.tour-booking-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a5c3e 0%, #134830 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tour-booking-pay-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tour-booking-pay-btn:hover {
    box-shadow: 0 6px 20px rgba(26, 92, 62, 0.3);
}

.tour-booking-divider {
    text-align: center;
    font-size: 0.68rem;
    color: #999;
    margin: 0.65rem 0;
    position: relative;
}

.tour-booking-divider::before,
.tour-booking-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.tour-booking-divider::before { left: 0; }
.tour-booking-divider::after { right: 0; }

@media (max-width: 480px) {
    .booking-modal__grid {
        grid-template-columns: 1fr;
    }
}
