/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Booking Wizard — Styles
   Extends style.css design tokens.
   All --var references resolve from :root in style.css.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Overlay (same pattern as modal-overlay) ── */
.booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: booking-fade-in 0.25s ease-out;
}

.booking-overlay.hidden { display: none; }

@keyframes booking-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* One shared left-panel presentation for every booking entry path. */
.booking-overlay.booking-panel-mode {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    animation: none;
}

/* Network and map entries use the same panel, while the transparent overlay
   captures background interaction and preserves outside-click dismissal. */
.booking-overlay.booking-panel-mode.booking-panel-standalone {
    pointer-events: auto;
}

.booking-panel-mode .booking-container {
    width: clamp(420px, 42vw, 720px);
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    background:
        radial-gradient(circle at 14% 4%, rgba(184, 225, 50, 0.16), transparent 22%),
        linear-gradient(150deg, #F9FAF5 0%, #F2F5F8 55%, #E9EEF5 100%);
    box-shadow: 28px 0 80px rgba(13, 31, 61, 0.18);
    pointer-events: auto;
    animation: booking-panel-enter 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes booking-panel-enter {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

.booking-panel-mode .wizard-header,
.booking-panel-mode .wizard-footer {
    background: rgba(249, 250, 245, 0.76);
}

.booking-panel-mode .wizard-body { background: transparent; }

/* ── Wizard Container ── */
.booking-container {
    background: #ffffff;
    border-radius: 32px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px -20px rgba(13, 31, 61, 0.3);
    overflow: hidden;
    animation: booking-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes booking-slide-up {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)   scale(1);    opacity: 1; }
}

/* ── Close Button ── */
.booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
}
.booking-close:hover {
    background: rgba(15, 23, 42, 0.12);
    color: var(--primary);
    transform: scale(1.05);
}

/* ── Wizard Header ── */
.wizard-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.wizard-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-deep);
    margin-bottom: 0;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.3px;
}
.wizard-title:focus { outline: none; }

/* ── Scrollable Step Body ── */
.wizard-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
    padding: 28px 32px;
    scroll-behavior: smooth;
}

/* ── Individual Steps ── */
.wizard-step { display: none; flex-direction: column; gap: 20px; animation: step-fade 0.3s ease-out; }
.wizard-step.active { display: flex; }

@keyframes step-fade {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
}

/* ── Form Fields ── */
.field-label {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.booking-service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-service-option {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid rgba(27, 59, 111, 0.15);
    border-radius: 999px;
    color: var(--primary);
    background: var(--bg-main);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.booking-service-option.active {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
}

.booking-service-option:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1px;
}

.form-field .required-star { color: #EF4444; margin-left: 2px; }

/* Compact text-entry fields keep their semantic labels visible inside the
   control. This removes a separate label row without relying on placeholders. */
.form-field--inset {
    position: relative;
    gap: 4px;
}

.form-field--inset > label {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 16px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.02em;
}

.form-field--inset > input {
    min-height: 52px;
    padding: 20px 16px 8px;
}

.form-field--inset > textarea {
    padding: 24px 16px 12px;
}

.form-field--inset:focus-within > label {
    color: var(--primary);
}

.form-field--inset.has-error > label {
    color: #B91C1C;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(248, 250, 252, 0.8);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(27, 59, 111, 0.08);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Select arrow */
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Validation states */
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(254, 242, 242, 0.5);
}

.form-field.is-valid input,
.form-field.is-valid textarea,
.form-field.is-valid select {
    border-color: rgba(34, 197, 94, 0.5);
}

.field-error {
    font-size: 12px;
    line-height: 1.35;
    color: #B91C1C;
    font-weight: 650;
    display: none;
}
.form-field.has-error .field-error { display: block; }

/* Radio groups have no placeholder, so urgency keeps one compact message. */
.booking-panel-mode #wizard-step-2 .booking-urgency-field .field-error {
    margin: 2px 2px 0;
    color: #B91C1C;
    font-size: 0.6875rem;
    line-height: 1.35;
}

/* Required text fields reuse their empty placeholder line for validation,
   avoiding a second visual row while keeping the real label persistent. */
.booking-panel-mode #wizard-step-2 .form-field--inset .field-error {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.booking-panel-mode #wizard-step-2 .form-field--inset.has-placeholder-error > input::placeholder {
    color: #B91C1C;
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1.2;
    opacity: 1;
}

.booking-panel-mode #wizard-step-2 .booking-urgency-field.has-error .pill-face {
    border-color: rgba(239, 68, 68, 0.64);
    background: rgba(254, 242, 242, 0.62);
}

.field-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Char counter */
.char-counter {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: -4px;
}
.char-counter.over-limit { color: #EF4444; }

/* ── Pill Radio Groups ── */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-label {
    position: relative;
    cursor: pointer;
}

.pill-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pill-face {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: rgba(248, 250, 252, 0.8);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.pill-label input:checked + .pill-face {
    border-color: var(--primary);
    background: rgba(27, 59, 111, 0.08);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(27, 59, 111, 0.08);
}

.pill-face:hover { border-color: rgba(27, 59, 111, 0.24); background: white; }
.pill-label:focus-within .pill-face { outline: 3px solid rgba(184, 225, 50, 0.4); outline-offset: 2px; }

/* Remove 300ms tap delay on mobile */
.pill-label,
.pill-face,
.wizard-next-btn,
.wizard-back-btn,
.booking-close,
.detect-location-btn {
    touch-action: manipulation;
}

/* ── Photo Upload ── */
.photo-upload-zone {
    border: 2px dashed rgba(27, 59, 111, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(27, 59, 111, 0.02);
    position: relative;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(27, 59, 111, 0.06);
}

.photo-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 0;
    box-shadow: none;
}

.photo-upload-icon {
    margin-bottom: 10px;
    color: var(--primary);
    opacity: 0.7;
}

.photo-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.photo-upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── Photo Thumbnails ── */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #F1F5F9;
    border: 1px solid var(--border-color);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-pdf {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px;
    text-align: center;
    word-break: break-all;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.photo-remove:hover { background: #EF4444; }

.photo-counter {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}
.photo-counter.at-limit   { color: var(--accent); }
.photo-counter.has-errors { color: #DC2626; }

/* ── Photo Thumbnail States ── */

/* Reading state — shows progress bar */
.thumb-reading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(3, 105, 161, 0.04);
    border: 1.5px dashed rgba(3, 105, 161, 0.2);
}

.thumb-filename {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    word-break: break-all;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.thumb-progress {
    width: 100%;
    height: 5px;
    background: rgba(3, 105, 161, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.thumb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transition: width 0.2s ease-out;
    width: 0%;
}

.thumb-pct {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

/* Ready state — brief success checkmark overlay */
.thumb-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.82);
    border-radius: 10px;
    color: white;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.thumb-check.fading { opacity: 0; }

/* Error state */
.thumb-error {
    background: rgba(254, 242, 242, 0.9);
    border: 1.5px solid rgba(239, 68, 68, 0.35);
}

.thumb-error-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px;
    color: #DC2626;
}

.thumb-error-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.thumb-error-reason {
    font-size: 9px;
    font-weight: 500;
    color: #B91C1C;
    text-align: center;
    line-height: 1.25;
}

/* ── Oversized File Inline Banner ── */
.photo-upload-banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    background: rgba(254, 235, 226, 0.95);
    border: 1px solid rgba(239, 100, 68, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #92400E;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 4px;
    animation: banner-slide-in 0.25s ease-out;
}
.photo-upload-banner.visible { display: flex; }

@keyframes banner-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.photo-upload-banner svg { flex-shrink: 0; margin-top: 1px; color: #D97706; }
.photo-upload-banner span { flex: 1; }

.photo-banner-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #92400E;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
    margin-top: -1px;
}
.photo-banner-dismiss:hover { opacity: 1; }

/* ── Conditional Field (hidden by JS) ── */
.conditional-field { display: none; }
.conditional-field.visible { display: flex; }

.booking-request-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(184, 225, 50, 0.58);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(246, 252, 229, 0.94), rgba(255, 255, 255, 0.72));
    box-shadow: 0 18px 42px -32px rgba(13, 31, 61, 0.35);
}

.booking-request-summary.hidden {
    display: none;
}

.booking-request-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #365314;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-request-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.booking-request-summary-list div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: start;
}

.booking-request-summary-list dt {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.booking-request-summary-list dd {
    min-width: 0;
    margin: 0;
    color: var(--primary-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* ── Step 3: Review Sections ── */
.review-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
}
.review-card:last-of-type { margin-bottom: 0; }

.review-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
/* Push edit link to far right */
.review-card-title .edit-link { margin-left: auto; }

.review-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 4px 10px;
    margin-bottom: 9px;
    font-size: 14px;
    align-items: baseline;
}
.review-row:last-child { margin-bottom: 0; }

.review-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.review-value {
    color: var(--primary);
    font-weight: 500;
}

.review-desc {
    font-size: 14px;
    color: var(--primary);
    line-height: 1.6;
    background: rgba(15, 23, 42, 0.03);
    padding: 10px 12px;
    border-radius: 10px;
    margin: 4px 0 10px;
    border: 1px solid var(--border-color);
}

.review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.review-photo-chip {
    background: rgba(3, 105, 161, 0.08);
    border: 1px solid rgba(3, 105, 161, 0.15);
    color: var(--accent);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
    text-transform: none;
    letter-spacing: 0;
}
.edit-link:hover { opacity: 0.7; }

/* Privacy note */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(3, 105, 161, 0.05);
    border: 1px solid rgba(3, 105, 161, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 12px;
}
.privacy-notice svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* ── Wizard Footer Nav ── */
.wizard-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(248, 250, 252, 0.9);
}

.wizard-back-btn {
    padding: 13px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.wizard-back-btn:hover { background: #F1F5F9; border-color: rgba(15,23,42,0.15); }
.wizard-back-btn.hidden-btn { visibility: hidden; pointer-events: none; }

.wizard-next-btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #0284C7);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px -4px rgba(3, 105, 161, 0.3);
}
.wizard-next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(3, 105, 161, 0.4);
}
.wizard-next-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner inside button ── */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Success State ── */
.booking-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    gap: 16px;
    flex: 1;
}
.booking-success.visible { display: flex; }

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 16px 32px -8px rgba(34, 197, 94, 0.4);
    animation: success-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes success-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.success-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.4px;
}

.success-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.success-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(3, 105, 161, 0.08);
    border: 1px solid rgba(3, 105, 161, 0.15);
    color: var(--accent);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}

.success-reference-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 59, 111, 0.08);
    border: 1px solid rgba(27, 59, 111, 0.14);
    color: var(--primary);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.success-profile-button {
    width: min(100%, 380px);
    min-height: 50px;
    margin-top: 4px;
    padding: 13px 24px;
}

.success-secondary-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.booking-success.booking-success--signup {
    display: block;
    overflow-y: auto;
    padding: 18px clamp(24px, 4vw, 48px) 28px;
    text-align: left;
}

.property-profile-signup {
    display: grid;
    width: min(100%, 620px);
    margin-inline: auto;
    gap: 14px;
}

.property-profile-back {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 850;
    cursor: pointer;
}

.property-profile-signup__intro {
    display: grid;
    gap: 5px;
}

.property-profile-signup__eyebrow {
    color: #4D6B16;
    font-size: 0.625rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.property-profile-signup__intro h2 {
    color: var(--primary-deep);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.property-profile-signup__intro > p:last-child {
    max-width: 58ch;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.property-profile-signup__intro strong { color: var(--primary-deep); }

.property-profile-points {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(184, 225, 50, 0.7);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(246, 252, 229, 0.98), rgba(255, 255, 255, 0.78));
}

.property-profile-points__amount {
    display: grid;
    min-width: 68px;
    min-height: 52px;
    place-items: center;
    color: var(--primary-deep);
    background: var(--accent);
    border-radius: 14px 6px 14px 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.property-profile-points > span:last-child {
    display: grid;
    gap: 2px;
}

.property-profile-points strong {
    color: var(--primary-deep);
    font-size: 0.8125rem;
}

.property-profile-points small {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    line-height: 1.35;
}

.property-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.property-profile-form label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--primary-deep);
    font-size: 0.6875rem;
    font-weight: 850;
}

.property-profile-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(27, 59, 111, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--primary-deep);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
}

.property-profile-form input[readonly] {
    background: rgba(233, 238, 245, 0.72);
    color: var(--text-secondary);
}

.property-profile-form input:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(184, 225, 50, 0.18);
}

.property-profile-form label small {
    color: var(--text-secondary);
    font-size: 0.59375rem;
    font-weight: 650;
    line-height: 1.25;
}

.property-profile-form__error {
    grid-column: 1 / -1;
    padding: 9px 11px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: 11px;
    background: rgba(254, 226, 226, 0.7);
    color: #991B1B;
    font-size: 0.6875rem;
    font-weight: 750;
}

.property-profile-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
}

.property-profile-signin {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: center;
}

.property-profile-signin a {
    color: var(--primary);
    font-weight: 850;
    text-underline-offset: 3px;
}

.property-profile-signin-handoff {
    align-content: start;
    padding-top: clamp(20px, 5vh, 52px);
}

.property-profile-signin-handoff .success-reference-tag {
    width: fit-content;
}

.property-profile-signin-handoff .property-profile-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
    text-decoration: none;
}

.property-profile-signin-handoff .success-secondary-button {
    justify-self: center;
}

/* ── Location Input Row (input + detect button) ── */
.location-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.location-input-row input {
    flex: 1;
    min-width: 0;
}

.detect-location-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: rgba(248, 250, 252, 0.8);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.detect-location-btn:hover {
    background: rgba(3, 105, 161, 0.08);
    border-color: rgba(3, 105, 161, 0.3);
    transform: scale(1.05);
}

.detect-location-btn:active {
    transform: scale(0.97);
}

/* ── Location Status Pill ── */
.location-status-pill {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 6px;
    width: fit-content;
    transition: all 0.25s;
}

.location-status-detecting {
    background: rgba(3, 105, 161, 0.08);
    color: var(--accent);
    border: 1px solid rgba(3, 105, 161, 0.2);
}

.location-status-detected {
    background: rgba(34, 197, 94, 0.08);
    color: #15803D;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.location-status-error {
    background: rgba(239, 68, 68, 0.07);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.location-status-action {
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.location-status-action:hover {
    opacity: 0.75;
}

.location-status-action:active {
    transform: scale(0.97);
}

/* Google Places suggestions dropdown must sit above the booking overlay */
.pac-container {
    z-index: 5000 !important;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.35);
    font-family: 'Manrope', sans-serif;
}

/* Spinning icon for detecting state */
.loc-spin {
    animation: loc-spin-anim 1s linear infinite;
    display: block;
}

@keyframes loc-spin-anim {
    to { transform: rotate(360deg); }
}

/* ── Guided Journey 2: match the Journey 1 visual system ── */
.booking-panel-mode .booking-container {
    font-family: 'Manrope', sans-serif;
}

.booking-panel-mode .booking-close {
    top: clamp(22px, 3vh, 34px);
    right: clamp(24px, 3vw, 40px);
    width: 44px;
    height: 44px;
    background: rgba(27, 59, 111, 0.07);
    color: var(--primary);
}

.booking-panel-mode .wizard-header {
    padding: clamp(24px, 4vh, 48px) clamp(28px, 4vw, 56px) 0;
    border-bottom: 0;
    background: transparent;
}

.booking-panel-mode .wizard-title {
    max-width: 82%;
    margin: 0;
    color: var(--primary-deep);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.625rem, 2.8vw, 2.375rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.booking-panel-mode .wizard-body {
    padding: clamp(26px, 4vh, 44px) clamp(28px, 4vw, 56px);
    background: transparent;
}

.booking-panel-mode .wizard-step {
    gap: clamp(18px, 2.4vh, 28px);
}

.booking-panel-mode .step-heading {
    color: var(--primary);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.booking-panel-mode .field-label,
.booking-panel-mode .form-field label {
    margin-bottom: 4px;
    color: var(--primary-deep);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.booking-panel-mode .field-hint,
.booking-panel-mode .char-counter {
    color: var(--text-secondary);
    font-size: 0.625rem;
    font-weight: 650;
}

.booking-panel-mode .form-row {
    gap: 16px;
}

.booking-panel-mode .form-field {
    gap: 8px;
}

.booking-panel-mode .form-field input,
.booking-panel-mode .form-field textarea,
.booking-panel-mode .form-field select {
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid rgba(27, 59, 111, 0.14);
    border-radius: 16px;
    background: rgba(249, 250, 245, 0.82);
    color: var(--primary-deep);
    font-size: 0.875rem;
    font-weight: 650;
    box-shadow: 0 14px 34px -30px rgba(13, 31, 61, 0.42);
}

.booking-panel-mode .form-field textarea {
    min-height: 118px;
    line-height: 1.5;
}

.booking-panel-mode .form-field--inset {
    gap: 4px;
}

.booking-panel-mode .form-field--inset > label {
    top: 8px;
    left: 16px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.625rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.booking-panel-mode .form-field--inset > input {
    padding: 20px 16px 8px;
}

.booking-panel-mode .form-field--inset-textarea > textarea {
    min-height: 88px;
    padding: 24px 16px 12px;
}

.booking-panel-mode .form-field--inset:focus-within > label {
    color: var(--primary);
}

.booking-panel-mode .form-field--inset.has-error > label {
    color: #B91C1C;
}

.booking-panel-mode .form-field input:focus,
.booking-panel-mode .form-field textarea:focus,
.booking-panel-mode .form-field select:focus {
    border-color: var(--accent-strong);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(184, 225, 50, 0.18),
        0 18px 36px -30px rgba(13, 31, 61, 0.45);
}

.booking-panel-mode .booking-service-options,
.booking-panel-mode .pill-group {
    gap: 10px;
}

.booking-panel-mode .booking-service-option,
.booking-panel-mode .pill-face {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(27, 59, 111, 0.14);
    border-radius: 999px;
    background: rgba(249, 250, 245, 0.82);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
    box-shadow: 0 12px 28px -26px rgba(13, 31, 61, 0.4);
}

.booking-panel-mode .booking-service-option.active,
.booking-panel-mode .pill-label input:checked + .pill-face {
    border-color: var(--primary);
    background: var(--primary);
    color: #F9FAF5;
    box-shadow: 0 16px 30px -22px rgba(27, 59, 111, 0.72);
}

.booking-panel-mode .pill-face:hover,
.booking-panel-mode .booking-service-option:hover {
    border-color: rgba(27, 59, 111, 0.26);
    background: #fff;
}

.booking-panel-mode .pill-label input:checked + .pill-face:hover,
.booking-panel-mode .booking-service-option.active:hover {
    background: var(--primary);
    color: #F9FAF5;
}

.booking-panel-mode .pill-label:focus-within .pill-face,
.booking-panel-mode .booking-service-option:focus-visible {
    outline: 3px solid rgba(184, 225, 50, 0.42);
    outline-offset: 2px;
}

.booking-panel-mode .location-input-row {
    gap: 10px;
}

.booking-panel-mode .detect-location-btn {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(27, 59, 111, 0.14);
    border-radius: 16px;
    background: rgba(249, 250, 245, 0.82);
    color: var(--accent-strong);
}

.booking-panel-mode .detect-location-btn:hover {
    border-color: var(--accent-strong);
    background: rgba(246, 252, 229, 0.95);
}

.booking-panel-mode .booking-request-summary {
    padding: 18px;
    border: 1px solid rgba(184, 225, 50, 0.55);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(246, 252, 229, 0.96), rgba(255, 255, 255, 0.7));
}

.booking-panel-mode .booking-request-summary-header {
    color: #365314;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
}

.booking-panel-mode .booking-request-summary-list {
    gap: 12px;
}

.booking-panel-mode .booking-request-summary-list div {
    grid-template-columns: minmax(92px, 0.34fr) 1fr;
}

.booking-panel-mode .booking-request-summary-list dt {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 800;
}

.booking-panel-mode .booking-request-summary-list dd {
    color: var(--primary-deep);
    font-size: 0.75rem;
    font-weight: 750;
}

.booking-panel-mode .photo-upload-zone {
    padding: 26px;
    border: 1.5px dashed rgba(27, 59, 111, 0.18);
    border-radius: 18px;
    background: rgba(249, 250, 245, 0.66);
}

.booking-panel-mode .photo-upload-zone:hover,
.booking-panel-mode .photo-upload-zone.drag-over {
    border-color: var(--accent-strong);
    background: rgba(246, 252, 229, 0.72);
}

.booking-panel-mode .photo-upload-title {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 850;
}

.booking-panel-mode .review-card,
.booking-panel-mode .privacy-notice {
    border-color: rgba(27, 59, 111, 0.12);
    border-radius: 18px;
    background: rgba(249, 250, 245, 0.74);
    box-shadow: 0 16px 38px -32px rgba(13, 31, 61, 0.42);
}

.booking-panel-mode .review-card-title {
    color: var(--primary);
    font-weight: 850;
    letter-spacing: 0.1em;
}

.booking-panel-mode .review-desc {
    border-color: rgba(27, 59, 111, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-panel-mode .edit-link {
    color: var(--primary);
    font-weight: 850;
}

.booking-panel-mode .wizard-footer {
    padding: 16px clamp(28px, 4vw, 56px) 24px;
    border-top: 0;
    background: linear-gradient(180deg, rgba(242, 245, 248, 0), rgba(233, 238, 245, 0.92) 42%);
}

.booking-panel-mode .wizard-back-btn.hidden-btn {
    display: none;
}

.booking-panel-mode .wizard-back-btn {
    min-height: 52px;
    padding: 13px 18px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 850;
}

.booking-panel-mode .wizard-back-btn:hover {
    background: rgba(27, 59, 111, 0.06);
}

.booking-panel-mode .wizard-next-btn {
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 15px;
    background: var(--accent);
    color: var(--primary-deep);
    font-size: 0.875rem;
    font-weight: 850;
    box-shadow: 0 18px 34px -20px rgba(109, 137, 26, 0.7);
}

.booking-panel-mode .wizard-next-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #C8EE39;
    box-shadow: 0 20px 36px -22px rgba(109, 137, 26, 0.76);
}

.booking-panel-mode .wizard-next-btn:disabled {
    background: rgba(184, 225, 50, 0.46);
    color: rgba(27, 59, 111, 0.48);
    opacity: 1;
}

.booking-panel-mode .btn-spinner {
    border-color: rgba(27, 59, 111, 0.22);
    border-top-color: var(--primary-deep);
}

.booking-panel-mode .success-icon {
    background: var(--accent);
    color: var(--primary-deep);
    box-shadow: 0 18px 34px -22px rgba(109, 137, 26, 0.68);
}

.booking-panel-mode .success-title {
    color: var(--primary-deep);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 2.55vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.045em;
}

.booking-panel-mode .success-email-tag,
.booking-panel-mode .success-reference-tag {
    border-color: rgba(27, 59, 111, 0.12);
    background: rgba(249, 250, 245, 0.82);
    color: var(--primary);
}

/* Keep the map handoff journey compact without flattening its hierarchy. */
.booking-panel-mode .booking-close {
    font-size: 1.0625rem;
}

.booking-panel-mode .field-error,
.booking-panel-mode .photo-upload-hint,
.booking-panel-mode .photo-counter,
.booking-panel-mode .location-status-pill,
.booking-panel-mode .review-card-title,
.booking-panel-mode .review-photo-chip,
.booking-panel-mode .edit-link {
    font-size: 0.625rem;
}

.booking-panel-mode .photo-upload-banner,
.booking-panel-mode .review-label,
.booking-panel-mode .privacy-notice,
.booking-panel-mode .success-reference-tag {
    font-size: 0.6875rem;
}

.booking-panel-mode .review-row,
.booking-panel-mode .review-desc,
.booking-panel-mode .success-email-tag {
    font-size: 0.75rem;
}

.booking-panel-mode .success-body {
    font-size: 0.8125rem;
}

/* Short desktop panels keep the full first activation screen visible without
   reducing touch targets or hiding any customer fields. */
@media (min-width: 768px) and (max-height: 1024px) {
    .booking-panel-mode .wizard-header {
        padding: 16px clamp(24px, 3vw, 40px) 0;
    }

    .booking-panel-mode .booking-close {
        top: 16px;
        right: clamp(20px, 2.5vw, 32px);
    }

    .booking-panel-mode .wizard-title {
        font-size: 1.75rem;
        line-height: 1;
    }

    .booking-panel-mode .wizard-body {
        overflow-y: auto;
        padding: 12px clamp(24px, 3vw, 40px) 8px;
    }

    .booking-panel-mode #wizard-step-2.active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
    }

    .booking-panel-mode #wizard-step-2 > .booking-request-summary,
    .booking-panel-mode #wizard-step-2 > .booking-urgency-field,
    .booking-panel-mode #wizard-step-2 > .booking-photos-field,
    .booking-panel-mode #wizard-step-2 > .form-row,
    .booking-panel-mode #wizard-step-2 > .form-field--inset-textarea {
        grid-column: 1 / -1;
    }

    .booking-panel-mode .booking-request-summary {
        gap: 8px;
        padding: 12px;
        border-radius: 14px;
    }

    .booking-panel-mode .booking-request-summary-header {
        font-size: 0.5625rem;
        letter-spacing: 0.1em;
    }

    .booking-panel-mode .booking-request-summary-list {
        gap: 4px;
    }

    .booking-panel-mode .booking-request-summary-list div {
        grid-template-columns: 76px 1fr;
        gap: 8px;
    }

    .booking-panel-mode .booking-request-summary-list dt,
    .booking-panel-mode .booking-request-summary-list dd {
        font-size: 0.625rem;
        line-height: 1.35;
    }

    .booking-panel-mode .booking-urgency-field,
    .booking-panel-mode .booking-photos-field {
        gap: 4px;
    }

    .booking-panel-mode .booking-urgency-field .pill-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .booking-panel-mode .booking-urgency-field .pill-label,
    .booking-panel-mode .booking-urgency-field .pill-face {
        width: 100%;
    }

    .booking-panel-mode .booking-urgency-field .pill-face {
        min-height: 44px;
        justify-content: center;
        gap: 4px;
        padding: 6px 8px;
        font-size: 0.625rem;
        white-space: nowrap;
    }

    .booking-panel-mode .booking-urgency-field .pill-face svg {
        width: 14px;
        height: 14px;
    }

    .booking-panel-mode .photo-upload-zone {
        display: grid;
        min-height: 68px;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 12px;
        padding: 10px 14px;
        border-radius: 14px;
        text-align: left;
    }

    .booking-panel-mode .photo-upload-icon {
        grid-row: 1 / 3;
        margin: 0;
    }

    .booking-panel-mode .photo-upload-icon svg {
        width: 24px;
        height: 24px;
    }

    .booking-panel-mode .photo-upload-title {
        align-self: end;
        margin: 0;
        font-size: 0.6875rem;
    }

    .booking-panel-mode .photo-upload-hint {
        align-self: start;
        font-size: 0.5625rem;
    }

    .booking-panel-mode .photo-preview-grid:empty,
    .booking-panel-mode .photo-counter:empty,
    .booking-panel-mode .char-counter:empty {
        display: none;
    }

    .booking-panel-mode .form-row {
        gap: 12px;
    }

    .booking-panel-mode .form-field input,
    .booking-panel-mode .form-field textarea,
    .booking-panel-mode .form-field select {
        min-height: 48px;
        border-radius: 12px;
    }

    .booking-panel-mode .form-field--inset > label {
        top: 7px;
        left: 14px;
    }

    .booking-panel-mode .form-field--inset > input {
        padding: 18px 14px 6px;
    }

    .booking-panel-mode .form-field--inset-textarea > textarea {
        height: 56px;
        min-height: 56px;
        padding: 18px 14px 6px;
        font-size: 0.75rem;
        line-height: 1.2;
        resize: none;
    }

    .booking-panel-mode .wizard-footer {
        padding: 8px clamp(24px, 3vw, 40px) 12px;
    }

    .booking-panel-mode .wizard-next-btn {
        min-height: 48px;
        padding-block: 10px;
    }
}

/* ── Mobile Styles ── */
@media (max-width: 767px) {
    .booking-overlay.booking-panel-mode .booking-container {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .booking-panel-mode .form-field input,
    .booking-panel-mode .form-field textarea,
    .booking-panel-mode .form-field select {
        font-size: 1rem;
    }

    .booking-success.booking-success--signup {
        padding: 12px 22px 24px;
    }
}

@media (max-width: 600px) {
    .booking-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .booking-container {
        border-radius: 32px 32px 0 0;
        max-height: 95vh;
        max-width: 100%;
        animation: booking-sheet-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .booking-overlay.booking-panel-mode .booking-container {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        animation: booking-panel-enter 420ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes booking-sheet-up {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    /* Pull close button into the header row alongside the title */
    .booking-close {
        position: static;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: rgba(15, 23, 42, 0.08);
        color: var(--primary);
        font-size: 22px;
        border-radius: 50%;
    }

    /* Make wizard-header a flex row: title on left, close button on right */
    .wizard-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px 18px 14px;
    }

    /* Keep the title flexible beside the close button */
    .wizard-header-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        gap: 10px;
    }

    .wizard-body   { padding: 18px 18px; }
    .wizard-footer { padding: 14px 18px; }

    .wizard-step { gap: 16px; }
    .form-row { grid-template-columns: 1fr; }

    .pill-face {
        padding: 8px 13px;
        font-size: 13px;
    }

    .photo-upload-zone {
        padding: 16px;
    }

    .property-profile-form { grid-template-columns: 1fr; }

    .property-profile-form__error,
    .property-profile-submit { grid-column: 1; }
}

/* Very small screens (SE, 320px) */
@media (max-width: 380px) {
    .wizard-title { font-size: 17px; }

    .pill-face {
        padding: 7px 11px;
        font-size: 12px;
        gap: 4px;
    }

    .pill-face svg {
        width: 14px;
        height: 14px;
    }
}

/* Preserve the complete activation hierarchy in short tablet-width touch
   viewports. This mirrors the desktop compact composition while retaining
   mobile-sized controls and a visible title row. */
@media (min-width: 480px) and (max-width: 767px) and (min-height: 650px) {
    .booking-overlay.booking-panel-mode .booking-container {
        height: 100dvh;
        max-height: 100dvh;
    }

    .booking-panel-mode .wizard-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 22px 8px;
    }

    .booking-panel-mode .wizard-header-content {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
    }

    .booking-panel-mode .wizard-title {
        max-width: none;
        font-size: 1.75rem;
        line-height: 1;
    }

    .booking-panel-mode .booking-close {
        position: static;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .booking-panel-mode .wizard-body {
        overflow-y: auto;
        padding: 8px 22px 6px;
    }

    .booking-panel-mode #wizard-step-2.active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 12px;
    }

    .booking-panel-mode #wizard-step-2 > .booking-request-summary,
    .booking-panel-mode #wizard-step-2 > .booking-urgency-field,
    .booking-panel-mode #wizard-step-2 > .booking-photos-field,
    .booking-panel-mode #wizard-step-2 > .form-row,
    .booking-panel-mode #wizard-step-2 > .form-field--inset-textarea {
        grid-column: 1 / -1;
    }

    .booking-panel-mode .booking-request-summary {
        gap: 6px;
        padding: 10px;
        border-radius: 13px;
    }

    .booking-panel-mode .booking-request-summary-header {
        font-size: 0.5625rem;
        letter-spacing: 0.1em;
    }

    .booking-panel-mode .booking-request-summary-list {
        gap: 3px;
    }

    .booking-panel-mode .booking-request-summary-list div {
        grid-template-columns: 72px 1fr;
        gap: 7px;
    }

    .booking-panel-mode .booking-request-summary-list dt,
    .booking-panel-mode .booking-request-summary-list dd {
        font-size: 0.625rem;
        line-height: 1.3;
    }

    .booking-panel-mode .booking-urgency-field,
    .booking-panel-mode .booking-photos-field {
        gap: 4px;
    }

    .booking-panel-mode .booking-urgency-field .pill-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .booking-panel-mode .booking-urgency-field .pill-label,
    .booking-panel-mode .booking-urgency-field .pill-face {
        width: 100%;
    }

    .booking-panel-mode .booking-urgency-field .pill-face {
        min-height: 44px;
        justify-content: center;
        gap: 4px;
        padding: 6px;
        font-size: 0.625rem;
        white-space: nowrap;
    }

    .booking-panel-mode .booking-urgency-field .pill-face svg {
        width: 14px;
        height: 14px;
    }

    .booking-panel-mode .photo-upload-zone {
        display: grid;
        min-height: 64px;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 12px;
        padding: 8px 12px;
        border-radius: 13px;
        text-align: left;
    }

    .booking-panel-mode .photo-upload-icon {
        grid-row: 1 / 3;
        margin: 0;
    }

    .booking-panel-mode .photo-upload-icon svg {
        width: 24px;
        height: 24px;
    }

    .booking-panel-mode .photo-upload-title {
        align-self: end;
        margin: 0;
        font-size: 0.6875rem;
    }

    .booking-panel-mode .photo-upload-hint {
        align-self: start;
        font-size: 0.5625rem;
    }

    .booking-panel-mode .photo-preview-grid:empty,
    .booking-panel-mode .photo-counter:empty,
    .booking-panel-mode .char-counter:empty {
        display: none;
    }

    .booking-panel-mode .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .booking-panel-mode .form-field input,
    .booking-panel-mode .form-field textarea,
    .booking-panel-mode .form-field select {
        min-height: 48px;
        border-radius: 12px;
    }

    .booking-panel-mode .form-field--inset > label {
        top: 7px;
        left: 14px;
    }

    .booking-panel-mode .form-field--inset > input {
        padding: 18px 14px 6px;
    }

    .booking-panel-mode .form-field--inset-textarea > textarea {
        height: 56px;
        min-height: 56px;
        padding: 18px 14px 6px;
        font-size: 0.75rem;
        line-height: 1.2;
        resize: none;
    }

    .booking-panel-mode .wizard-footer {
        padding: 8px 22px 10px;
    }

    .booking-panel-mode .wizard-next-btn {
        min-height: 48px;
        padding-block: 10px;
    }
}

@media (min-width: 480px) and (max-width: 767px) and (min-height: 720px) {
    .booking-panel-mode #wizard-step-2.active {
        gap: 8px 12px;
    }

    .booking-panel-mode .booking-request-summary {
        gap: 8px;
        padding: 12px;
    }

    .booking-panel-mode .booking-urgency-field,
    .booking-panel-mode .booking-photos-field {
        gap: 5px;
    }

    .booking-panel-mode .photo-upload-zone {
        min-height: 72px;
        padding-block: 10px;
    }

    .booking-panel-mode .form-field input,
    .booking-panel-mode .form-field textarea,
    .booking-panel-mode .form-field select {
        min-height: 52px;
    }

    .booking-panel-mode .form-field--inset-textarea > textarea {
        height: 64px;
        min-height: 64px;
    }
}

/* Spend genuinely unused activation-form height on a calmer field rhythm.
   The class is applied only when the compact form leaves at least 104px free,
   so short screens retain the no-scroll layout above. */
.booking-panel-mode .booking-container.booking-roomy #wizard-step-2.active {
    gap: 12px 14px;
}

.booking-panel-mode .booking-container.booking-roomy .booking-request-summary {
    gap: 10px;
    padding: 14px;
}

.booking-panel-mode .booking-container.booking-roomy .booking-urgency-field,
.booking-panel-mode .booking-container.booking-roomy .booking-photos-field {
    gap: 8px;
}

.booking-panel-mode .booking-container.booking-roomy .photo-upload-zone {
    min-height: 84px;
    padding-block: 12px;
}

.booking-panel-mode .booking-container.booking-roomy .form-field input,
.booking-panel-mode .booking-container.booking-roomy .form-field textarea,
.booking-panel-mode .booking-container.booking-roomy .form-field select {
    min-height: 56px;
}

.booking-panel-mode .booking-container.booking-roomy .form-field--inset-textarea > textarea {
    height: 72px;
    min-height: 72px;
}

/* Very tall panels receive a second spacing tier so the form uses the room
   instead of clustering against the header. */
.booking-panel-mode .booking-container.booking-airy #wizard-step-2.active {
    gap: 16px;
}

.booking-panel-mode .booking-container.booking-airy .booking-request-summary {
    gap: 12px;
    padding: 16px;
}

.booking-panel-mode .booking-container.booking-airy .booking-urgency-field,
.booking-panel-mode .booking-container.booking-airy .booking-photos-field {
    gap: 10px;
}

.booking-panel-mode .booking-container.booking-airy .photo-upload-zone {
    min-height: 100px;
    padding-block: 16px;
}

.booking-panel-mode .booking-container.booking-airy .form-field input,
.booking-panel-mode .booking-container.booking-airy .form-field textarea,
.booking-panel-mode .booking-container.booking-airy .form-field select {
    min-height: 64px;
}

.booking-panel-mode .booking-container.booking-airy .form-field--inset-textarea > textarea {
    height: 88px;
    min-height: 88px;
}

@media (min-width: 768px) {
    .booking-panel-mode .booking-container.booking-airy .wizard-header {
        padding-top: clamp(40px, 5.5vh, 64px);
        padding-bottom: 8px;
    }

    .booking-panel-mode .booking-container.booking-airy .wizard-title {
        max-width: calc(100% - 72px);
        font-size: clamp(1.45rem, 2.2vw, 2.375rem);
        line-height: 1.02;
        white-space: nowrap;
    }

    .booking-panel-mode .booking-container.booking-airy .booking-request-summary {
        gap: 14px;
        padding: 24px;
    }

    .booking-panel-mode .booking-container.booking-airy .booking-request-summary-list {
        gap: 14px;
    }
}
