/* Reservations page — layout aligned with register.html reference */

.reservations-wrap-main {
    background: url("/images/ru-new.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    scroll-padding-top: 6.5rem;
}

.reservation-details-section {
    scroll-margin-top: 6.5rem;
}

.reservation-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #c3c8c1;
    padding-bottom: 0.5rem;
}

.reservation-section-header-split {
    justify-content: space-between;
    gap: 1.5rem;
}

.reservation-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #737973;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1b1c1a;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reservation-input::placeholder {
    color: #717973;
    opacity: 0.6;
}

.reservation-input:focus {
    outline: none;
    border-color: #8c5e34;
    box-shadow: 0 0 0 2px rgba(140, 94, 52, 0.25);
}

.reservation-input.reservation-input-invalid,
.reservation-input.invalid {
    border-color: #ba1a1a !important;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.25) !important;
}

fieldset.invalid {
    border: 1px solid #ba1a1a !important;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.25) !important;
}

.reservation-field-error {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #ba1a1a;
}

.reservation-input-icon {
    padding-left: 2.75rem;
}

.reservation-field-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #737973;
    font-size: 1.25rem;
    pointer-events: none;
}

.reservation-field-icon-top {
    top: 0.9rem;
    transform: none;
}

.signature-pad {
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
    background: #ffffff;
    border: 1px solid #737973;
    border-radius: 0.5rem;
}

.signature-pad.invalid {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.2);
}

.house-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #737973;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.house-option:hover,
.house-option:has(input:checked) {
    border-color: #8c5e34;
    background: rgba(140, 94, 52, 0.06);
    box-shadow: 0 0 0 1px rgba(140, 94, 52, 0.15);
}

.house-option input {
    margin-top: 0.2rem;
    accent-color: #8c5e34;
}

.house-option-limit {
    font-weight: 400;
    color: #434843;
}

.reservation-notice-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f5f3f0;
    border: 1px solid #c3c8c1;
    border-left: 4px solid #8c5e34;
    border-radius: 0.5rem;
}

.reservation-notice-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    color: #8c5e34;
}

.reservation-booking-notice-icon.material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.reservation-notice-box p {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.980rem;
    line-height: 1.5;
    color: #434843;
    font-style: italic;
}

.reservation-pdf-link {
    text-underline-offset: 2px;
}

.reservation-quote-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #c3c8c1;
    background: linear-gradient(135deg, #f7f5f0 0%, #eef2ee 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quote-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #434843;
    margin-bottom: 1.25rem;
}

.quote-summary-meta .material-symbols-outlined {
    font-size: 1.25rem;
    color: #8c5e34;
    vertical-align: middle;
}

.quote-summary-meta .quote-meta-dot {
    color: #c3c8c1;
    margin: 0 0.15rem;
}

.quote-breakdown-mockup {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote-period-block+.quote-period-block {
    margin-top: 0.5rem;
}

.quote-period-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #1b3022;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.quote-period-header .material-symbols-outlined {
    color: #8c5e34;
    font-size: 1.35rem;
}

.quote-period-title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b3022;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.quote-property-grid {
    display: grid;
    gap: 1rem;
}

.quote-property-card {
    background: rgba(249, 246, 240, 0.92);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(227, 226, 224, 0.55);
}

.quote-property-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quote-property-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.50rem;
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b3022;
    margin: 0;
    line-height: 1.2;
}

.quote-property-guests {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    color: #434843;
    margin-left: 0;
    line-height: 1;
}

.quote-property-guests .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
    color: #8c5e34;
}

.quote-line-guests {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #434843;
    margin-left: 0;
    line-height: 1;
}

.quote-line-guests .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
    color: #8c5e34;
}

.quote-property-card-total {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b3022;
    white-space: nowrap;
}

.quote-property-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    color: #434843;
}

.quote-property-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quote-property-line>span:first-child {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.50rem;
    min-width: 0;
}

.quote-property-line-detail {
    color: #737973;
    white-space: nowrap;
}

.quote-totals-panel {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.quote-totals-inner {
    text-align: right;
    min-width: min(100%, 20rem);
}

.quote-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(227, 226, 224, 0.45);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #434843;
}

.quote-totals-row span:last-child {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b3022;
    text-transform: none;
    letter-spacing: normal;
}

.quote-totals-grand-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #434843;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.quote-totals-grand-value {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #8c5e34;
}

.quote-breakdown-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    /* margin-top: 0.75rem; */
    padding: 0.75rem 1rem;
    /* border-radius: 0.5rem; */
    background: rgba(255, 218, 214, 0.35);
    border-left: 4px solid #ba1a1a;
    color: #7f1d1d;
    font-size: 0.980rem;
    font-weight: 500;
}

.quote-breakdown-error-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.quote-breakdown-error-text {
    flex: 1;
    min-width: 0;
}

.text-error-info {
    font-size: 16px;
}

/* Reservation availability date picker */
.reservation-date-display {
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: transparent;
    padding-right: 2.75rem;
}

/* Segmented MM/DD/YYYY mask input (Date of Birth) */
.reservation-date-segmented-input {
    position: relative;
    display: flex;
    align-items: center;
    /* width: 40%; */
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0 0.75rem;
    background: #ffffff;
    border: 1px solid #c3c8c1;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reservation-date-segmented-input:focus-within {
    border-color: #8c5e34;
    box-shadow: 0 0 0 2px rgba(140, 94, 52, 0.25);
}

.reservation-date-segment-set {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-right: 2.75rem;
}

.reservation-date-segment {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    color: #434843;
    padding: 0.25rem 0;
}

.reservation-date-segment::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.reservation-date-segment:focus {
    outline: 2px solid rgba(140, 94, 52, 0.35);
    outline-offset: -1px;
    border-radius: 0.25rem;
}

.reservation-date-segment-sep {
    color: #9ca3af;
    flex: none;
}

/* DOB segmented input invalid state - mirrors other reservation-input fields */
.reservation-date-segmented-input:has(.reservation-input-invalid),
.reservation-date-segmented-input:has(.invalid) {
    border-color: #ba1a1a !important;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.25) !important;
}

.reservation-date-input-wrap {
    position: relative;
}

.reservation-date-trigger-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
    color: #8c5e34;
    z-index: 3;
}

.reservation-date-input-wrap:focus-within .reservation-date-trigger-icon {
    color: #6d4a29;
}

.reservation-date-input-wrap:focus-within .reservation-date-display {
    border-color: #8c5e34;
    box-shadow: 0 0 0 2px rgba(140, 94, 52, 0.25);
}

.reservation-date-picker {
    width: min(100vw - 2rem, 22rem);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #c3c8c1;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(27, 48, 34, 0.15);
    --res-cal-booked-bg: #fee2e2;
    --res-cal-tentative-bg: #fee2e2;
    /* tentative = same as booked */
    --res-cal-blocked-bg: #f1f3f4;
    --res-cal-available-bg: #d3e8d5;
    --res-cal-range-bg: rgba(140, 94, 52, 0.12);
    --res-cal-selected-border: #8c5e34;
}

.reservation-date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.res-date-month-label {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1b3022;
    text-align: center;
    flex: 1;
}

/* The DOB picker renders the header title as an interactive <button>.
   Match the Arrival calendar's header look (Playfair, bold, centered). */
button.res-date-month-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1b3022;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.res-date-month-label:hover,
button.res-date-month-label:focus-visible {
    background: #eef2ee;
    outline: 2px solid rgba(140, 94, 52, 0.35);
    outline-offset: 1px;
}

.res-date-month-label-text {
    display: inline-block;
    white-space: nowrap;
}

.res-date-month-label-caret {
    font-size: 1rem;
    line-height: 1;
    color: #6d4a29;
}

.res-date-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #434843;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.res-date-nav-btn:hover:not(:disabled) {
    background: #eef2ee;
}

.res-date-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.res-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

/* Month & year selection grids (drill-down from the header label).
   Fixed height so the popup doesn't jump when toggling day/month/year views;
   centered, evenly-spaced cells for a clean, modern look. */
#dobDatePicker .res-date-grid,
.res-date-month-grid,
.res-date-year-grid {
    min-height: 16rem;
}

.res-date-month-grid,
.res-date-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    text-align: center;
    align-content: center;
}

.res-date-month-cell,
.res-date-year-cell {
    min-height: 3.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: #1b3022;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.res-date-month-cell:hover:not(:disabled),
.res-date-year-cell:hover:not(:disabled) {
    background: #dcebe0;
    box-shadow: 0 0 0 1px rgba(140, 94, 52, 0.25);
    transform: translateY(-1px);
}

.res-date-month-cell:disabled,
.res-date-year-cell:disabled {
    color: #c3c8c1;
    cursor: not-allowed;
    opacity: 0.45;
}

.res-date-month-cell.res-date-cell-selected,
.res-date-year-cell.res-date-cell-selected {
    background: #8c5e34;
    color: #f9f6f0;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #6d4a29;
}

.res-date-weekday {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #737973;
    padding: 0.25rem 0;
}

.res-date-cell {
    min-height: 2.25rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: #434843;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.res-date-cell-outside {
    color: #c3c8c1;
    background: transparent;
}

.res-date-cell-available,
.res-date-cell-selectable {
    background: var(--res-cal-available-bg);
    color: #1b3022;
    cursor: pointer;
}

.res-date-cell-available:hover:not(:disabled),
.res-date-cell-selectable:hover:not(:disabled) {
    filter: brightness(0.97);
}

/* Other-month (prev/next) days in the Date of Birth calendar — not selectable.
   Mirrors the arrival picker's .res-date-cell-outside styling. */
.res-date-other-month {
    color: #c3c8c1;
    background: transparent;
    cursor: not-allowed;
}

/* Date of Birth: clear mouseover on selectable dates (same green theme).
   Scoped to this picker so the shared arrival rule is untouched, and
   excluded from the already-selected date so it keeps its brown fill. */
#dobDatePicker .res-date-cell-available:not(.res-date-cell-selected):not(:disabled):hover {
    background: #c0d6c6;
    box-shadow: 0 0 0 1px rgba(140, 94, 52, 0.35);
}

.res-date-cell-booked {
    background-color: var(--res-cal-blocked-bg);
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.13) 0px,
            rgba(148, 163, 184, 0.13) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
    color: #9ca3af;
    font-weight: 500;
    cursor: not-allowed;
}

/* tentative = same visual as booked */
.res-date-cell-tentative {
    background-color: var(--res-cal-blocked-bg);
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.13) 0px,
            rgba(148, 163, 184, 0.13) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
    color: #9ca3af;
    font-weight: 500;
    cursor: not-allowed;
}

/* blocked = diagonal hatching on muted stone (matches lodge calendar) */
.res-date-cell-blocked {
    background-color: var(--res-cal-blocked-bg);
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.13) 0px,
            rgba(148, 163, 184, 0.13) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
    color: #9ca3af;
    font-weight: 500;
    cursor: not-allowed;
}

.res-date-cell-disabled {
    background-color: #f1f3f4;
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.13) 0px,
            rgba(148, 163, 184, 0.13) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
    color: #9ca3af;
    font-weight: 500;
    cursor: not-allowed;
}

/* past dates = plain disabled (matches lodge calendar past-day style) */
.res-date-cell-past {
    background: transparent;
    color: #bfc1c9;
    font-weight: 400;
    cursor: not-allowed;
}

.res-date-cell-today {
    box-shadow: inset 0 0 0 2px #93c5fd;
}

.res-date-cell-in-range {
    background: var(--res-cal-range-bg);
    color: #1b3022;
}

.res-date-cell-arrival,
.res-date-cell-departure {
    background: #8c5e34;
    color: #f9f6f0;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #6d4a29;
}

.res-date-cell-arrival.res-date-cell-in-range,
.res-date-cell-departure.res-date-cell-in-range {
    background: #8c5e34;
    color: #f9f6f0;
}

/* selected date (Date of Birth picker) = brown highlight like arrival/departure */
.res-date-cell-selected {
    background: #8c5e34;
    color: #f9f6f0;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #6d4a29;
}

.res-date-picker-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #737973;
}

/* Inline submit feedback lives in /css/form-ux.css (shared with other forms). */

/* ── Date picker legend ─────────────────────────────────────────────────── */
.res-date-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.625rem;
    border-top: 1px solid #e7e9e5;
}

.res-date-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #737973;
    white-space: nowrap;
}

.res-date-legend-swatch {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
}

.res-date-legend-swatch.available {
    background: #d3e8d5;
    border-color: #a7c5ab;
}

.res-date-legend-swatch.booked {
    background-color: #e5e7eb;
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.25) 0px,
            rgba(148, 163, 184, 0.25) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
}

/* blocked swatch = diagonal stripe on stone base */
.res-date-legend-swatch.blocked {
    background-color: #e5e7eb;
    background-image: repeating-linear-gradient(135deg,
            rgba(148, 163, 184, 0.25) 0px,
            rgba(148, 163, 184, 0.25) 4px,
            transparent 4px,
            transparent 8px);
    border-color: #d1d5db;
}