/* Booking portal + admin booking UI */

.booking-admin .muted,
.book-checkout .muted,
.book-results .muted {
    color: var(--text-light);
}

.booking-admin .admin-header,
.book-checkout .admin-header,
.section .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.booking-admin .admin-actions,
.btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-row.tight {
    gap: 0.35rem;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.card-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.alert-error {
    background: #fdecea;
    color: #8a1f11;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.admin-links {
    list-style: none;
    padding: 0;
}

.admin-links li {
    margin: 0.75rem 0;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.data-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid .grow {
    grid-column: 1 / -1;
}

.form-check {
    display: flex;
    align-items: flex-end;
}

.ical-row {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .ical-row {
        grid-template-columns: 180px 1fr;
        align-items: end;
    }
}

.feed-meta {
    grid-column: 1 / -1;
    font-size: 0.85rem;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: var(--bg-light);
}

.status-confirmed { background: #e8f5e9; color: #1b5e20; }
.status-partially_paid { background: #fff8e1; color: #8a6d00; }
.status-pending_payment { background: #eceff1; color: #455a64; }

.inline-sync {
    margin: -0.5rem 0 1.5rem;
}

/* Guest book search */
.book-hero {
    background: linear-gradient(160deg, var(--color-sand-light), #fff 55%, var(--bg-cream));
    padding: 3.5rem 0 2.5rem;
}

.book-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.book-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.book-hero .lede {
    max-width: 36rem;
    color: var(--text-medium);
    margin-bottom: 1.75rem;
}

.book-search-form {
    display: grid;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    max-width: 720px;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
    .book-search-form {
        grid-template-columns: 1fr 1fr auto;
        align-items: end;
    }
}

.book-search-form .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.book-search-form input[type="date"],
.checkout-form input,
.checkout-form select,
.card-panel input,
.card-panel select,
.rule-form input,
.rule-form select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
}

.book-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.book-result-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.book-result-card.is-unavailable {
    opacity: 0.72;
}

.book-result-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-sand);
}

.book-result-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.book-result-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.price-line {
    font-size: 1.25rem;
}

.unavailable-label {
    color: var(--text-light);
    font-style: italic;
}

.pay-note {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.container.narrow {
    max-width: 720px;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-medium);
    text-decoration: none;
}

.pay-choices {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pay-choice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
}

.pay-choice:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.auth-toggle {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.breakdown-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.center {
    text-align: center;
}

.small {
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .book-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .data-table {
        font-size: 0.9rem;
    }
}

/* Admin menu + accounting */
.booking-admin {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 0 20px;
}

/* On desktop the logo hangs below the header, so clear it */
@media (min-width: 992px) {
    .booking-admin {
        margin-top: 6.5rem;
    }
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.75rem;
}

.admin-menu a {
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: var(--text-medium);
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
}

.admin-menu a.active,
.admin-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-menu .admin-menu-logout {
    margin-left: auto;
}

.alert-warning {
    background: #fff8e1;
    color: #6d5200;
}

.card-panel textarea,
.doc-actions textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.card-panel .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.card-panel .form-group small {
    display: block;
    margin-top: 0.3rem;
}

.card-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: 170px 150px 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-bar select,
.filter-bar input {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
}

.hp-panel summary {
    cursor: pointer;
    list-style: none;
}

.hp-panel summary::-webkit-details-marker {
    display: none;
}

.hp-panel summary h2 {
    display: inline;
    margin: 0;
}

.hp-panel summary::after {
    content: '▾';
    float: right;
    color: var(--text-light);
}

.hp-panel[open] summary {
    margin-bottom: 1rem;
}

.hp-search {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.line-items .col-desc { width: 52%; }
.line-items .col-qty { width: 10%; }
.line-items .col-price { width: 18%; }
.line-items .col-amount { width: 15%; }

.line-items td {
    vertical-align: middle;
}

.line-items input,
.line-items textarea {
    padding: 0.5rem 0.6rem;
}

.stay-items td {
    vertical-align: middle;
}

.stay-items input {
    padding: 0.5rem 0.6rem;
    min-width: 0;
}

.stay-items td:first-child input {
    min-width: 11rem;
}

.stay-items .col-num {
    width: 5.5rem;
}

.hp-results tbody tr[data-index] {
    cursor: pointer;
}

.hp-results tbody tr[data-index]:hover {
    background: var(--bg-light, #f8f4f0);
}

.hp-results tr.is-added {
    opacity: 0.6;
    cursor: default;
}

.hp-results th,
.hp-results td {
    vertical-align: middle;
}

.hp-results .col-check {
    width: 3.5rem;
    text-align: center;
}

.card-panel .hp-results input[type="checkbox"],
.card-panel input#hpWithCharges {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: inline-block;
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--primary-color, #4a7c8a);
    cursor: pointer;
    vertical-align: middle;
}

.card-panel input#hpWithCharges {
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

.card-panel .hp-results input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.5;
}

.hp-charges-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

#hpAddRow {
    align-items: center;
    margin-top: 0.75rem;
}

#hpStatus {
    margin: 0.5rem 0;
}

.stay-summary {
    margin-bottom: 0.6rem;
}

.line-amount {
    text-align: right;
    white-space: nowrap;
}

.totals-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.totals-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1.5rem;
    margin: 1.25rem 0 0 auto;
    max-width: 340px;
}

.totals-summary dt {
    color: var(--text-light);
}

.totals-summary dd {
    margin: 0;
    text-align: right;
}

.totals-summary .strong {
    font-weight: 600;
    color: var(--text-dark);
}

.doc-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.doc-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.doc-preview-grid h3,
.log-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.doc-preview-grid p {
    font-size: 0.9rem;
}

.log-heading {
    margin-top: 1.5rem;
}

.email-log {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.email-log li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-light);
}

.error-text {
    color: #8a1f11;
    font-weight: 600;
}

.phone-field {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-field input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.phone-cc {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.6rem 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white, #fff);
    white-space: nowrap;
    font-size: 1rem;
}

.phone-cc::after {
    content: "";
    position: absolute;
    right: 0.65rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.phone-cc select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

.phone-cc:focus-within {
    outline: 2px solid var(--primary-color, #2c5f5d);
    outline-offset: 1px;
}

.edit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.edit-summary h2,
.booking-edit .card-panel h2 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.booking-edit .card-panel h2:not(:first-of-type) {
    margin-top: 1.5rem;
}

.price-modes .check-line {
    align-items: center;
    margin-bottom: 0.5rem;
}

.amount-input {
    width: 8rem;
    margin-left: 0.4rem;
    padding: 0.3rem 0.5rem;
}

.form-grid .grow-2 {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid .grow-2 {
        grid-column: 1 / -1;
    }
}

.warning-text {
    color: #7a5b00;
}

.id-review-form {
    margin-top: 0.4rem;
}

.id-review-form input[type="text"] {
    width: 100%;
    margin: 0.3rem 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.delete-form {
    margin-top: 1.25rem;
}

.link-danger {
    background: none;
    border: none;
    color: #8a1f11;
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
}

.admin-header h1 .status-pill {
    vertical-align: middle;
    margin-left: 0.5rem;
}

.status-draft { background: #eceff1; color: #455a64; }
.status-sent { background: #e3f2fd; color: #0d47a1; }
.status-paid,
.status-accepted { background: #e8f5e9; color: #1b5e20; }
.status-declined,
.status-cancelled { background: #fdecea; color: #8a1f11; }

@media (max-width: 960px) {
    .doc-layout,
    .totals-grid {
        grid-template-columns: 1fr;
    }

    .hp-search,
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hp-search,
    .filter-bar,
    .doc-preview-grid {
        grid-template-columns: 1fr;
    }

    .admin-menu .admin-menu-logout {
        margin-left: 0;
    }
}

/* Client booking portal */
.portal-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.portal-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.portal-bar-title {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
@media (min-width: 992px) {
    /* The header logo hangs down over the left of this bar on desktop. */
    .portal-bar-inner { padding-left: 236px; }
}
.portal-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}
.portal-bar-links a {
    color: var(--text-medium);
    text-decoration: none;
}
.portal-bar-links a:hover { color: var(--primary-color); }
.portal-section { padding-top: 2.5rem; }
.portal-section h1 { font-weight: 400; margin-bottom: 0.75rem; }

.card-panel input[type="radio"],
.card-panel input[type="checkbox"],
.checkout-form input[type="radio"],
.checkout-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    flex: 0 0 auto;
    accent-color: var(--primary-color);
}
.big-check { width: 1.35rem !important; height: 1.35rem; }

.form-section {
    border: 0;
    padding: 0;
    margin: 0 0 1.5rem;
}
.form-section legend {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.portal-form .form-group { margin-bottom: 1rem; }
.portal-form .form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.field-error { display: block; color: #b3261e; font-size: 0.85rem; margin-top: 0.3rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
}
.choice-pill:has(input:checked) { border-color: var(--primary-color); background: var(--bg-light); }
.check-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.92rem;
    cursor: pointer;
}
.check-line input { margin-top: 0.25rem; width: 1.15rem !important; height: 1.15rem; }
.terms-highlight {
    background: #fdf6e7;
    border-left: 3px solid #c9a227;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.check-line.terms-accept {
    margin-bottom: 0.4rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.98rem;
    line-height: 1.6;
}
.check-line.terms-accept input { width: 1.3rem !important; height: 1.3rem; flex: 0 0 auto; }
.check-line.terms-accept a { color: var(--primary-color); font-weight: 600; }
.terms-version { margin: 0 0 1.25rem; }
.portal-divider { border: 0; border-top: 1px solid var(--border-light); margin: 1.5rem 0; }
.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* Date range search */
.range-search {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-width: 820px;
    overflow: hidden;
}
.range-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}
.range-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.85rem 1.1rem;
    background: none;
    border: 0;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.range-field-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}
.range-field-value { font-size: 1rem; color: var(--text-dark); }
.range-guests select {
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 1rem;
    background: none;
    cursor: pointer;
}
.range-submit {
    grid-column: 1 / -1;
    border-radius: 0;
    margin: 0;
}
.range-submit:disabled { opacity: 0.55; cursor: not-allowed; }
@media (min-width: 768px) {
    .range-bar { grid-template-columns: 1fr 1fr 0.8fr auto; }
    .range-field { border-bottom: 0; }
    .range-submit { grid-column: auto; padding-left: 1.75rem; padding-right: 1.75rem; }
}
.range-calendar { padding: 1rem 1.1rem 0.75rem; }
.range-search.is-collapsed .range-calendar { display: none; }
.range-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.range-hint { margin: 0; color: var(--primary-color); font-weight: 600; text-align: center; }
.range-nav {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}
.range-nav:disabled { opacity: 0.3; cursor: default; }
.range-months {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .range-months { grid-template-columns: 1fr 1fr; }
}
.range-month h4 { text-align: center; font-weight: 600; margin: 0 0 0.5rem; font-size: 1rem; }
.range-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}
.range-dow {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.3rem 0;
}
.range-day {
    aspect-ratio: 1 / 1;
    max-height: 2.9rem;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-dark);
}
.range-day:hover:not(:disabled) { outline: 1px solid var(--text-dark); }
.range-day:disabled { color: #c9c2ba; text-decoration: line-through; cursor: default; }
.range-day.is-today { font-weight: 700; }
.range-day.is-in-range,
.range-day.is-preview { background: var(--color-sand-light); border-radius: 0; }
.range-day.is-preview { background: #f1ece6; }
.range-day.is-start,
.range-day.is-end,
.range-day.is-preview-end { background: var(--primary-color); color: #fff; }
.range-calendar-foot { text-align: right; padding: 0.5rem 0 0.25rem; font-size: 0.9rem; }

.results-heading h2 { font-weight: 400; margin-bottom: 0.25rem; }
.unavailable-heading { margin-top: 2.5rem; font-weight: 400; font-size: 1.15rem; }
.unavailable-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.unavailable-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }

.breakdown-total {
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    margin-top: 0.25rem;
}
.booking-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.25rem;
    margin: 1rem 0 1.5rem;
}
.booking-facts dt { color: var(--text-light); }
.booking-facts dd { margin: 0; font-weight: 600; }
.id-callout {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.id-callout h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.id-upload-options {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin: 1.25rem 0;
}
@media (min-width: 560px) {
    .id-upload-options { grid-template-columns: 1fr 1fr; }
}
.id-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-cream);
    font: inherit;
    cursor: pointer;
    color: var(--text-dark);
}
.id-option:hover { border-color: var(--primary-color); background: var(--bg-light); }
.id-option-icon { font-size: 2rem; }
.id-preview { margin: 1.25rem 0; }
.id-preview img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    display: block;
    margin-bottom: 0.5rem;
}

.guest-bookings { display: grid; gap: 1rem; margin-bottom: 2rem; }
.guest-booking-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    align-items: flex-start;
}
.guest-booking h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }

.status-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.raw-json {
    background: var(--bg-cream);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    overflow: auto;
    max-height: 320px;
}
.inline-form { display: inline-block; margin-top: 0.4rem; }
.guest-more summary { cursor: pointer; color: var(--primary-color); }
.range-guests { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .range-guests { grid-column: auto; }
}

.party-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.party-row .form-group { margin-bottom: 0.25rem; }

/* Guest date change */
.change-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.change-compare > div {
    background: var(--bg-cream);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}
.change-compare h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin: 0 0 0.35rem; }
.change-compare p { margin: 0; }
@media (max-width: 560px) {
    .change-compare,
    .party-row { grid-template-columns: 1fr; }
}
.price-warning {
    background: #fdf6e7;
    border-left: 3px solid #c9a227;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}
.price-warning.is-lower { background: #e8f5e9; border-left-color: #2e7d32; }
.change-dates-form { margin-top: 1.25rem; }
.change-dates-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
@media (max-width: 480px) {
    .change-dates-form .form-row { grid-template-columns: 1fr; }
}

.live-update-bar {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    background: #2f3b40;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    max-width: calc(100vw - 2rem);
}
.live-update-bar[hidden] { display: none; }

/* Admin ID lightbox */
.id-lightbox {
    border: 0;
    border-radius: 12px;
    padding: 0;
    width: min(960px, 94vw);
    max-height: 92vh;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.id-lightbox::backdrop { background: rgba(20, 24, 28, 0.72); }
.id-lightbox [hidden] { display: none !important; }
.id-lightbox-inner { display: flex; flex-direction: column; max-height: 92vh; }
.id-lightbox-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light, #e5e5e5);
}
.id-lightbox-head h2 { font-size: 1.1rem; margin: 0; }
.id-lightbox-head p { margin: 0.15rem 0 0; font-size: 0.9rem; }
.id-lightbox-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.id-lightbox-actions form { margin: 0; }
.id-lightbox-close {
    background: none;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0 0.25rem;
}
.id-lightbox-body {
    flex: 1;
    overflow: auto;
    background: #f3f1ee;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 1rem;
}
.id-lightbox-body img { max-width: 100%; max-height: 72vh; display: block; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
.id-lightbox-body iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.id-lightbox-reject { padding: 0.75rem 1.25rem 1rem; border-top: 1px solid var(--border-light, #e5e5e5); }
.id-lightbox-reject form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.id-lightbox-reject input[type="text"] { flex: 1 1 260px; padding: 0.4rem 0.6rem; }

/* Search results: apartment card extras */
button.book-result-image {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: zoom-in;
}
.book-result-photos {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(20, 24, 28, 0.7);
    color: #fff;
    font-size: 0.8rem;
}
.book-result-photos .icon { width: 16px; height: 16px; }
.btn-view-apt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-view-apt:hover,
.btn-view-apt:focus-visible {
    background: var(--primary-color);
    color: #fff;
    outline: none;
}
.book-result-summary { flex: 1; margin: 0.25rem 0 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--text-light); }
.book-result-body button.btn[data-book] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: stretch;
    margin-top: 0.25rem;
    cursor: pointer;
}
.book-result-body button.btn[data-book] .icon { width: 18px; height: 18px; }

/* Address suggestions on the guest details form */
.address-lookup { position: relative; }
.address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}
.address-suggestions [role="option"] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    line-height: 1.35;
}
.address-suggestions [role="option"] strong { font-weight: 600; color: var(--text-dark); }
.address-suggestions [role="option"] span { font-size: 0.85rem; color: var(--text-light); }
.address-suggestions [role="option"]:hover,
.address-suggestions [role="option"].is-active { background: var(--bg-light); }
.address-suggestions-credit {
    padding: 0.35rem 0.85rem 0.2rem;
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
}
