/* Booking Modal Styles */
/* Matches original React BookingModal design */

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.booking-modal.modal-open {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.booking-modal-content {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.booking-modal.modal-open .booking-modal-content {
    transform: scale(1);
}

.booking-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s, background-color 0.2s;
    z-index: 10;
}

.booking-modal-close:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.booking-modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.booking-modal-icon {
    display: inline-block;
    background-color: var(--brand-green);
    color: white;
    border-radius: 9999px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.booking-modal-title {
    font-size: 1.875rem;
    font-weight: bold;
    font-family: sans-serif;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.booking-modal-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.booking-modal-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: white;
    color: #111827;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(122, 105, 96, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Date picker styling */
.form-input-date {
    padding-right: 2.75rem;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A6960' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.2rem;
}

.form-input-date::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 1.5rem;
    height: 100%;
    cursor: pointer;
}

.form-input-date:focus::-webkit-calendar-picker-indicator,
.form-input-date:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Select dropdown styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230E8040' stroke-width='1.5' 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 0.85rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    color: #111827;
}

/* Number input with stepper controls */
.number-input {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.number-input:focus-within {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(122, 105, 96, 0.1);
}

.number-input .number-btn {
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    background: transparent;
    color: var(--brand-green);
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.number-input .number-btn:hover {
    background-color: rgba(14, 128, 64, 0.08);
}

.number-input .number-btn:active {
    background-color: rgba(14, 128, 64, 0.14);
}

.number-input .number-field {
    flex: 1;
    border: none;
    box-shadow: none;
    text-align: center;
    font-weight: 600;
    padding: 0;
    min-width: 3.5rem;
}

.number-input .number-field:focus {
    outline: none;
    box-shadow: none;
}

.number-field::-webkit-outer-spin-button,
.number-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-field {
    -moz-appearance: textfield;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.booking-modal-submit {
    width: 100%;
    background-color: var(--brand-gold);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: filter 0.3s, background-color 0.3s;
    margin-top: 0.5rem;
    position: relative;
}

.booking-modal-submit:hover:not(:disabled) {
    filter: brightness(0.95);
}

.booking-modal-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.submit-loading {
    display: inline-block;
}

.submit-loading.hidden {
    display: none;
}

/* Full-screen booking success */
.booking-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 28, 18, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.booking-success-overlay.is-open {
    opacity: 1;
}
.booking-success-card {
    width: min(520px, 100%);
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3faf5 100%);
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(14, 128, 64, 0.12);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.booking-success-overlay.is-open .booking-success-card {
    transform: translateY(0) scale(1);
}
.booking-success-tick {
    margin: 0 auto 1.25rem;
    width: 120px;
    height: 120px;
}
.booking-success-ring {
    stroke: #0E8040;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: bookingRing 0.7s ease forwards 0.1s;
}
.booking-success-check {
    stroke: #0E8040;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: bookingCheck 0.45s ease forwards 0.55s;
}
@keyframes bookingRing {
    to { stroke-dashoffset: 0; }
}
@keyframes bookingCheck {
    to { stroke-dashoffset: 0; }
}
.booking-success-card h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #12301f;
}
.booking-success-sub {
    margin: 0 auto;
    max-width: 34ch;
    color: #4b6355;
    font-size: 1.05rem;
    line-height: 1.55;
}
.booking-success-id {
    margin: 1rem 0 0;
    color: #6b7f72;
    font-size: 0.92rem;
}
.booking-success-id strong {
    color: #0E8040;
    font-weight: 700;
}
.booking-success-btn {
    margin-top: 1.75rem;
    min-width: 160px;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #0E8040;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}
.booking-success-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toast-message {
    flex: 1;
    color: #374151;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s, background-color 0.2s;
}

.toast-close:hover {
    color: #374151;
    background-color: #f3f4f6;
}

/* Pricing Summary Card */
.room-pricing-summary {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.room-pricing-summary.hidden {
    display: none;
}

.room-type-image-preview {
    margin: 0 0 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.room-type-image-preview.hidden {
    display: none;
}

.room-type-image-preview__stage {
    position: relative;
}

.room-type-image-preview__img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-type-image-preview__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-type-image-preview__nav.hidden {
    display: none;
}

.room-type-image-preview__nav--prev {
    left: 0.5rem;
}

.room-type-image-preview__nav--next {
    right: 0.5rem;
}

.room-type-image-preview__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
}

.room-type-image-preview__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
}

.room-type-image-preview__dot.is-active {
    background: #0E8040;
}

.pricing-summary-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-green);
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
}

.pricing-row.sub-row {
    font-size: 0.75rem;
    margin-top: -0.25rem;
}

.text-muted {
    color: #6b7280;
}

.discount-row {
    color: #15803d; /* Green */
    font-weight: 500;
}

.discount-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pricing-row.total-row {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    font-weight: bold;
    font-size: 1.05rem;
    color: #111827;
}

.total-value {
    color: var(--brand-green);
}


