﻿/* ── Unit tabs (photo step) ── */
.unit-tab-strip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 6px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.unit-tab-strip::-webkit-scrollbar { display: none; }
.unit-tab {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--fw-semi);
  cursor: pointer; transition: all .15s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.unit-tab.active { border-color: var(--indigo); background: rgba(124,58,237,.1); color: var(--indigo-lt); }
.unit-tab-opts { display: flex; align-items: center; gap: 1px; margin-left: 2px; }
.unit-tab-opts button {
  background: none; border: none; padding: 1px 4px; cursor: pointer;
  color: inherit; opacity: .55; font-size: 12px; line-height: 1; border-radius: 3px;
  transition: opacity .12s;
}
.unit-tab-opts button:hover { opacity: 1; }
.unit-tab-add {
  flex-shrink: 0; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1.5px dashed var(--border); background: none; color: var(--text-4);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.unit-tab-add:hover { border-color: var(--indigo-lt); color: var(--indigo-lt); }

/* ── Showcase type selector ── */
.showcase-opts { display: flex; flex-direction: column; gap: 10px; }
.showcase-opt {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.showcase-opt:hover { border-color: var(--indigo-lt); }
.showcase-opt.active {
  border-color: var(--indigo); background: rgba(124,58,237,.08);
  box-shadow: 0 0 0 1px rgba(124,58,237,.2);
}
.showcase-opt-icon {
  flex-shrink: 0; margin-top: 2px; color: var(--text-3);
  display: flex; align-items: flex-start;
}
.showcase-opt-body { display: flex; flex-direction: column; gap: 3px; }
.showcase-opt-title {
  font-size: var(--fs-base); font-weight: var(--fw-semi); color: var(--text);
}
.showcase-opt-desc {
  font-size: var(--fs-xs); color: var(--text-3); line-height: var(--lh-base);
}
.showcase-opt.active .showcase-opt-icon { color: var(--indigo); }
.showcase-opt.active .showcase-opt-title { color: var(--indigo-lt); }

/* ── Custom grouped select ── */
.custom-sel { position: relative; }
.custom-sel-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text-3); font-size: var(--fs-sm); cursor: pointer;
  text-align: left; transition: border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.custom-sel-btn span { flex: 1; }
.custom-sel-btn.has-value { color: var(--text); }
.custom-sel.open .custom-sel-btn,
.custom-sel-btn:focus { outline: none; border-color: var(--indigo); }
.custom-sel-chevron { flex-shrink: 0; color: var(--text-4); transition: transform .2s; }
.custom-sel.open .custom-sel-chevron { transform: rotate(180deg); }
.custom-sel-panel {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; max-height: 260px; overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 4px;
  scrollbar-width: none;
}
.custom-sel-panel::-webkit-scrollbar { display: none; }
.cs-group-label {
  padding: 10px 10px 4px; pointer-events: none;
  font-size: 10px; font-weight: var(--fw-bold); color: var(--text-4);
  text-transform: uppercase; letter-spacing: .07em;
}
.cs-group-label:first-child { padding-top: 6px; }
.cs-option {
  display: block; width: 100%; text-align: left; border: none;
  padding: 9px 10px; border-radius: 8px;
  background: none; color: var(--text); font-size: var(--fs-sm);
  cursor: pointer; transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}
.cs-option:hover { background: var(--surface-2); }
.cs-option.selected {
  background: rgba(124,58,237,.1); color: var(--indigo-lt);
  font-weight: var(--fw-semi);
}

/* ── Pill selectors ── */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  flex: 1; padding: 9px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text-3); font-size: var(--fs-sm); font-weight: var(--fw-semi);
  cursor: pointer; transition: all .15s; white-space: nowrap; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { border-color: var(--indigo-lt); color: var(--indigo-lt); }
.pill.active {
  background: rgba(124,58,237,.14); border-color: var(--indigo);
  color: var(--indigo-lt); box-shadow: 0 0 0 1px rgba(124,58,237,.18);
}

/* ── Scan overlay ── */
.scan-overlay {
  display: none; position: fixed; inset: 0; z-index: 160;
  background: var(--bg); overflow-y: auto;
}
.scan-overlay.show { display: block; }
.scan-wrap { max-width: 540px; margin: 0 auto; padding-bottom: 60px; }
.scan-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-md); font-weight: var(--fw-semi); color: var(--text);
}
.scan-close-btn {
  background: none; border: none; color: var(--text-3);
  font-size: 14px; cursor: pointer; padding: 6px 4px;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.scan-close-btn:hover { color: var(--text); }
.scan-steps {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px 6px;
}
.scan-step {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border);
  color: var(--text-4); font-size: var(--fs-sm); font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.scan-step.active { background: var(--indigo); border-color: var(--indigo); color: white; }
.scan-step.done   { background: var(--green);  border-color: var(--green);  color: white; }
.scan-step-line   { width: 40px; height: 2px; background: var(--border); }
.scan-panel { padding: 0 0 8px; }
.scan-nav { position: sticky; bottom: 0; border-top: 1px solid var(--border-lt); border-bottom: none; }
.scan-confirm {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 24px 24px;
}
.scan-confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(16,185,129,.12); border: 2px solid var(--green);
  color: var(--green); font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.scan-confirm h2 { margin-bottom: 10px; }
.scan-confirm p  { color: var(--text-3); margin-bottom: 6px; font-size: var(--fs-md); }
.scan-confirm strong { color: var(--text); }
.scan-confirm-detail {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  text-align: left; width: 100%; margin: 16px 0 24px;
  font-size: var(--fs-base); color: var(--text-3);
}
.scan-confirm-detail p { margin-bottom: 6px; }
.scan-confirm-detail p:last-child { margin-bottom: 0; }

/* ── Step 3: Forms ── */
.card {
  margin: 0 16px 16px; background: var(--surface);
  border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.card-title {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--indigo-lt); margin-bottom: 14px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-4);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md); color: var(--text);
  background: var(--surface-2);
  outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field select option { background: var(--surface-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo);
  background: rgba(124,58,237,.06);
  box-shadow: 0 0 0 3px rgba(109,40,217,.18);
}
/* Chrome/Safari force a white input background once autofill kicks in
   (phone/name/email fields) unless the inset box-shadow trick overrides it --
   a huge shadow spread paints over the UA's own autofill background before
   it can render, and -webkit-text-fill-color re-colors the (still dark-themed)
   text since autofill ignores a plain `color` declaration. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 99999s ease-in-out 0s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row > .field { min-width: 0; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.floor-pair { display: flex; align-items: center; gap: 6px; }
.floor-pair input { flex: 1; min-width: 0; }
.floor-sep { color: var(--text-4); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.floor-hint { font-size: var(--fs-xs); color: var(--text-4); margin-top: 4px; letter-spacing: .3px; }

/* ── Prefixed / suffixed inputs (country code, currency, unit) ── */
.input-pfx {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.input-pfx:focus-within {
  border-color: var(--indigo);
  background: rgba(124,58,237,.06);
  box-shadow: 0 0 0 3px rgba(109,40,217,.18);
}
.input-pfx input[type="hidden"] { display: none; }
/* override .field select styles for prefix/suffix selects inside input-pfx */
.field .input-pfx .pfx-select,
.field .input-pfx .sfx-select {
  width: auto; border-radius: 0; border: none;
  padding: 0 6px 0 10px;
}
.field .input-pfx .sfx-select { padding: 0 10px 0 8px; }
.field .input-pfx input:not([type="hidden"]), .input-pfx input:not([type="hidden"]) {
  flex: 1; min-width: 0; width: auto;
  border: none; border-radius: 0; background: transparent;
  padding: 11px 12px; box-shadow: none;
  outline: none; font-size: 15px; color: var(--text); font-family: inherit;
}
.field .input-pfx input:not([type="hidden"]):focus, .input-pfx input:not([type="hidden"]):focus {
  border: none; background: transparent; box-shadow: none;
}
.pfx-select {
  border: none; border-right: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--text-3);
  font-size: 13px; font-weight: 600; padding: 0 6px 0 10px;
  cursor: pointer; outline: none; flex-shrink: 0;
  -webkit-appearance: none; appearance: none; font-family: inherit;
}
.sfx-select {
  border: none; border-left: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--text-3);
  font-size: 13px; font-weight: 600; padding: 0 10px 0 8px;
  cursor: pointer; outline: none; flex-shrink: 0;
  -webkit-appearance: none; appearance: none; font-family: inherit;
}
.btn-check {
  padding: 11px 16px; background: var(--indigo); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all .18s;
}
.btn-check:hover { background: var(--indigo-dk); }
.owner-found {
  display: none; align-items: center; gap: 8px; padding: 11px 13px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  font-size: 14px; color: #34d399; font-weight: 600;
}
.owner-found.show { display: flex; }
.btn-link {
  margin-left: auto; background: none; border: none;
  color: var(--indigo-lt); font-size: 13px; cursor: pointer; font-weight: 600;
}
.owner-profile-note {
  font-size: 12px; color: var(--text-3, rgba(255,255,255,.4)); margin: 4px 0 0;
}
.owner-profile-note .btn-link { margin-left: 4px; }


/* Review-page Description field sits directly in .step-body (Step 4), not
   nested inside a .card like every other .field in this wizard -- can't
   add horizontal margin to .field itself (it's used everywhere else
   already inset by its .card parent's own padding; adding margin there too
   would double it up), so it's scoped to just this instance instead. */
#reviewDescField { margin: 0 16px 12px; }

/* ── Review-page completeness checklist (Step 4) ── */
.review-checklist { margin: 0 16px 16px; }
.rcl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.rcl-title { font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-4); }
.rcl-count { font-size: 12px; font-weight: 700; color: var(--indigo-lt); }
.rcl-list { display: flex; flex-direction: column; gap: 6px; }
.rcl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.rcl-item:hover { background: var(--surface-3); }
.rcl-icon {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
}
.rcl-item--done .rcl-icon { background: rgba(52,211,153,.15); color: #34d399; }
.rcl-item--todo .rcl-icon { background: rgba(255,255,255,.06); color: var(--text-4); }
.rcl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rcl-label { font-size: 13px; font-weight: 700; color: var(--text); }
.rcl-detail { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcl-item--todo .rcl-detail { color: #fbbf24; }
.rcl-edit { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--indigo-lt); }

/* ── Review-page property heading — plain text, no card/background ── */
/* Side margin matches .card/.summary-card/.preview-toggle's own 16px inset
   convention -- this sits directly in .step-body (no .card wrapper), so it
   needs its own horizontal margin instead of inheriting one. */
.review-prop-heading { margin: 0 16px 16px; }
.rph-name { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.3; }
.rph-meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ── Review-page contact summary (read-only, always-required fields) ── */
.review-contact-summary { margin: 0 16px 16px; }
.rcs-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.rcs-item:hover { background: var(--surface-3); }
.rcs-icon { flex-shrink: 0; font-size: 16px; line-height: 1; }
.rcs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rcs-label { font-size: 13px; font-weight: 700; color: var(--text); }
.rcs-detail { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcs-edit { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--indigo-lt); }

/* ── Standard Listing Preview (Step 4) — Instagram 9:16 story format ── */
.lp-container { padding: 16px 0; background: none; border: none; box-shadow: none; overflow: visible; border-radius: 0; }
.lp-story {
  position: relative; max-width: 320px; width: 100%; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.55); background: #111;
  user-select: none; -webkit-user-select: none;
}
.lp-story-bg {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
  object-fit: cover; display: block;
  filter: blur(22px) brightness(0.55);
}
.lp-story-fg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.lp-story-prog {
  position: absolute; top: 14px; left: 12px; right: 12px;
  display: flex; gap: 4px; z-index: 3; pointer-events: none;
}
.lp-prog-bar {
  flex: 1; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.lp-prog-bar::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,.9); transform: scaleX(0); transform-origin: left;
}
.lp-prog-bar.lp-done::before { transform: scaleX(1); }
.lp-prog-bar.lp-active::before { animation: lp-fill 4s linear forwards; }
@keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-story-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 3px;
}
.lp-badge {
  align-self: flex-start; padding: 4px 11px; border-radius: 50px;
  background: var(--indigo); color: white; font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px;
}
.lp-story-name { font-size: var(--fs-sub); font-weight: var(--fw-black); color: white; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.lp-story-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.lp-story-price { font-size: 14px; font-weight: 700; color: var(--indigo-lt); margin-bottom: 4px; }
.lp-story-actions { display: flex; gap: 12px; margin-top: 10px; }
.lp-story-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 10px 8px; color: white; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; transition: background .15s;
}
.lp-story-btn:active { background: rgba(255,255,255,.22); }
.lp-story-btn svg { width: 22px; height: 22px; }
.lp-detail-panel, .lp-contact-panel {
  max-width: 320px; width: 100%; margin: 10px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
}
.lp-stats { display: flex; gap: 7px; flex-wrap: wrap; }
.lp-stat {
  flex: 1; min-width: 56px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.lp-stat-val { font-size: 14px; font-weight: 800; color: var(--text); }
.lp-stat-lbl { font-size: 9px; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .6px; text-align: center; }
.lp-detail-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 10px; }
/* inline stats row in story overlay */
.lp-story-stat-row {
  font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600;
  display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 1px; line-height: 1.6;
}
.lp-story-stat-row span { white-space: nowrap; }
.lp-story-stat-row span + span::before { content: ' · '; color: rgba(255,255,255,.4); }
/* amenities slide inside story card */
.lp-story-amen {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(160deg, rgba(20,10,50,.97) 0%, rgba(6,30,40,.97) 100%);
  padding: 52px 16px 20px; display: flex; flex-direction: column; overflow-y: auto;
  scrollbar-width: none;
}
.lp-story-amen::-webkit-scrollbar { display: none; }
.lp-story-amen-title {
  font-size: 10px; font-weight: 800; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px;
}
.lp-story-amen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lp-story-amen-chip {
  padding: 5px 10px; border-radius: 50px;
  background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.35);
  color: rgba(255,255,255,.85); font-size: 10px; font-weight: 600;
}
.lp-story-amen-desc {
  font-size: 11px; color: rgba(255,255,255,.55); line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px;
}
.lp-story-amen-extras { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lp-story-amen-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 5px;
}
.lp-story-amen-row-lbl { color: rgba(255,255,255,.4); font-weight: 500; }
.lp-story-amen-row-val { color: rgba(255,255,255,.85); font-weight: 700; }
/* No-photo fallback card (Step 4 preview, when scenes.length === 0) --
   reuses .lp-badge/.lp-story-name/.lp-story-meta/.lp-story-price, which are
   all styled for white text over a dark photo background (see .lp-story
   above) -- so this card needs its own dark background too, or that text
   would be invisible against the page's normal light surface. */
.lp-nophoto-card {
  max-width: 320px; width: 100%; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a2e, #111);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  padding: 32px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.lp-nophoto-card .lp-badge { align-self: center; }
.lp-nophoto-icon { font-size: 40px; opacity: .8; margin-bottom: 6px; }
.lp-nophoto-desc { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; margin: 12px 0 0; }
.lp-nophoto-note { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 16px; }
/* contact panel — no phone */
.lp-contact { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.lp-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(124,58,237,.12); border: 1.5px solid var(--indigo);
  color: var(--indigo-lt); font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lp-contact-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.lp-contact-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-contact-role { font-size: 11px; color: var(--text-4); }
.lp-contact-wa-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 10px; background: #25d366; color: white;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}

/* ── Step 4: Summary ── */
.summary-card {
  margin: 0 16px 16px; background: var(--surface);
  border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.sum-row {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border-lt);
}
.sum-row:last-child { border-bottom: none; }
.sum-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.sum-icon.photos   { background: rgba(124,58,237,.12); }
.sum-icon.property { background: rgba(16,185,129,.1);  }
.sum-icon.owner    { background: rgba(251,146,60,.1);  }
.sum-text h4 { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); margin-bottom: 3px; }
.sum-text p  { font-size: var(--fs-sm); color: var(--text-3); line-height: var(--lh-base); }
.btn-publish {
  display: block; width: calc(100% - 32px); margin: 0 16px 12px; padding: 17px;
  background: var(--indigo); color: white; border: none;
  border-radius: var(--radius); font-size: var(--fs-sub); font-weight: var(--fw-black);
  cursor: pointer; transition: all .22s; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(109,40,217,.45); letter-spacing: .2px;
}
.btn-publish:hover { background: var(--indigo-dk); box-shadow: 0 6px 26px rgba(109,40,217,.55); transform: translateY(-1px); }
.btn-publish:disabled { opacity: .45; transform: none; }
.btn-edit {
  display: block; width: calc(100% - 32px); margin: 0 16px 28px; padding: 13px;
  background: transparent; color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius); font-size: var(--fs-md); font-weight: var(--fw-semi);
  cursor: pointer; text-align: center; transition: all .18s;
}
.btn-edit:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

/* ── Dialogs ── */
/* ── Custom link-room picker ── */
.link-picker-overlay {
  display: none; position: fixed; inset: 0; z-index: 210;
  /* height (not just inset:0) so `top:0` + explicit height overrides `bottom:0`
     -- 100dvh tracks the visual viewport, shrinking when the mobile keyboard
     opens, instead of staying pinned to the full layout viewport height and
     letting the keyboard cover the bottom of a vertically-centered dialog */
  height: 100dvh;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.link-picker-overlay.show { display: flex; }
.link-picker {
  background: var(--surface-2); border-radius: 20px;
  border: 1px solid var(--border);
  padding: 16px 0 18px; width: calc(100% - 32px); max-width: 420px;
  max-height: 90dvh; overflow: hidden auto;
  animation: slideUp .22s cubic-bezier(.22,.68,0,1.2);
}
.link-picker-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 0 14px 12px; border-bottom: 1px solid var(--border-light);
}
.link-picker-head svg { color: var(--indigo-lt); flex-shrink: 0; }
.link-picker-head span { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.link-picker-close {
  background: none; border: none; color: var(--text-4);
  font-size: 20px; cursor: pointer; padding: 2px 6px; line-height: 1;
  border-radius: 6px; transition: background .15s;
}
.link-picker-close:hover { background: rgba(239,68,68,.12); color: #ef4444; }
.link-picker-grid {
  display: flex; flex-direction: row; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 14px 4px;
}
.link-picker-grid::-webkit-scrollbar { display: none; }
.link-picker-body { padding: 0 14px 4px; }
.link-scene-opt {
  flex: none; width: 110px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color .18s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.link-scene-opt:hover { border-color: var(--indigo); transform: translateY(-2px); }
.link-scene-opt:active { transform: scale(.97); }
.link-scene-opt img {
  width: 100%; height: 80px; object-fit: cover; display: block;
}
.link-scene-opt-name {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dialog-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  z-index: 200; align-items: flex-end; justify-content: center;
}
.dialog-backdrop.show { display: flex; }
.dialog {
  background: var(--surface-2); border-radius: 22px 22px 0 0;
  border: 1px solid var(--border);
  padding: 22px 18px 28px; width: 100%; max-width: 500px;
  max-height: 82vh; overflow-y: auto;
  animation: slideUp .24s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 -4px 40px rgba(0,0,0,.5);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.dialog-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.dialog-head h3 { font-size: var(--fs-sub); font-weight: var(--fw-black); color: var(--text); }
.dialog-close {
  background: var(--surface-3); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all .15s;
}
.dialog-close:hover { background: rgba(239,68,68,.15); color: #ef4444; }
.dialog-sub { font-size: var(--fs-base); color: var(--text-3); margin-bottom: 14px; }
.dialog .field { margin-bottom: 14px; }
.dialog-scene-list {
  display: flex; flex-direction: row; gap: 10px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
}
.dialog-scene-list::-webkit-scrollbar { display: none; }
.dialog-scene-opt {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 8px 10px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  cursor: pointer; transition: all .18s; -webkit-tap-highlight-color: transparent;
  background: var(--surface); width: 96px;
}
.dialog-scene-opt:hover {
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.07);
}
.dialog-scene-opt img { width: 80px; height: 52px; object-fit: cover; border-radius: 6px; }
.dialog-scene-opt span { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 80px; }
.btn-dialog-ok {
  width: 100%; padding: 14px;
  background: var(--indigo); color: white; border: none;
  border-radius: var(--radius-sm); font-size: var(--fs-md); font-weight: var(--fw-bold);
  cursor: pointer; margin-top: 8px; transition: all .18s;
  box-shadow: 0 2px 12px rgba(109,40,217,.4);
}
.btn-dialog-ok:hover { background: var(--indigo-dk); box-shadow: 0 4px 18px rgba(109,40,217,.5); }

/* ── Publish overlay ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(10px);
  z-index: 300; overflow-y: auto; padding: 20px;
}
.overlay.show { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.overlay-card {
  background: var(--surface-2); border-radius: 22px;
  border: 1px solid var(--border);
  padding: 30px 22px; width: 100%; max-width: 390px;
  text-align: center; box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.spinner {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--indigo);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-card h2 { font-size: var(--fs-heading); font-weight: var(--fw-black); color: var(--text); margin-bottom: 6px; }
.overlay-card p { color: var(--text-3); font-size: var(--fs-base); }
.pub-step {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  font-size: var(--fs-base); color: var(--text-4); text-align: left;
}
.pub-step.done   { color: #34d399; }
.pub-step.active { color: var(--text); font-weight: 700; }
.qr-wrap {
  width: 180px; height: 180px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 3px solid rgba(124,58,237,.3);
  display: flex; align-items: center; justify-content: center;
}
.qr-wrap img, .qr-wrap canvas { width: 180px !important; height: 180px !important; display: block; }
.qr-or {
  font-size: 12px; color: var(--text-4); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin: 10px 0;
}
.result-code {
  display: inline-block;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--radius-sm); padding: 9px 24px;
  font-size: 26px; font-weight: 800; letter-spacing: 2px;
  margin: 14px 0; color: var(--indigo-lt);
}
.share-row { display: flex; gap: 9px; margin: 12px 0; }
.share-row input {
  flex: 1; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  background: var(--surface); color: var(--text); outline: none;
}
.btn-copy {
  padding: 11px 18px; background: var(--teal); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.btn-copy:hover { background: #0284c7; }
.btn-new {
  margin-top: 14px; width: 100%; padding: 13px;
  background: var(--indigo); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-wa-publish {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; border-radius: var(--radius-sm);
  background: #25d366; color: #fff; font-size: var(--fs-md); font-weight: var(--fw-bold);
  text-decoration: none; transition: background .18s;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.btn-wa-publish:hover { background: #1ebe5d; }

/* ── Preview mode toggle (Phone / Web) ── */
.preview-toggle {
  display: flex; gap: 6px; padding: 0 16px 14px;
  max-width: 360px; margin: 0 auto;
}
.ptab {
  flex: 1; padding: 8px 12px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text-3); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.ptab.active {
  background: rgba(124,58,237,.14); border-color: var(--indigo);
  color: var(--indigo-lt); box-shadow: 0 0 0 1px rgba(124,58,237,.18);
}

/* ── Web preview — proper property listing page ── */
.lp-webpage-frame {
  max-width: 380px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.07);
}
/* browser chrome */
.lp-browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.lp-browser-dots { display: flex; gap: 5px; }
.lp-browser-dot  { width: 8px; height: 8px; border-radius: 50%; }
.lp-browser-dot:nth-child(1) { background: #ff5f57; }
.lp-browser-dot:nth-child(2) { background: #febc2e; }
.lp-browser-dot:nth-child(3) { background: #28c840; }
.lp-browser-url {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 6px;
  padding: 4px 10px; font-size: 10px; color: rgba(255,255,255,.45);
  font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* page body */
.lp-webpage {
  background: var(--bg); overflow-y: auto; max-height: 72vh;
  scrollbar-width: none;
}
.lp-webpage::-webkit-scrollbar { display: none; }
/* hero photo */
.lp-wp-hero {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #111; overflow: hidden; cursor: pointer;
}
.lp-wp-hero-bg {
  position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
  object-fit: cover; filter: blur(16px) brightness(0.5);
}
.lp-wp-hero-fg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.lp-wp-photo-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  background: rgba(0,0,0,.6); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 5px;
}
.lp-wp-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.lp-wp-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.35); transition: all .2s; cursor: pointer;
}
.lp-wp-dot.active { background: rgba(255,255,255,.9); transform: scale(1.3); }
/* page content sections */
.lp-wp-body { padding: 0; }
.lp-wp-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.lp-wp-section:last-child { border-bottom: none; }
/* header section */
.lp-wp-badge {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  background: var(--indigo); color: white; font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.lp-wp-title { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.lp-wp-location { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
/* price section */
.lp-wp-price-row { display: flex; align-items: baseline; gap: 8px; }
.lp-wp-price { font-size: 22px; font-weight: 900; color: var(--indigo-lt); }
.lp-wp-price-label { font-size: 11px; color: var(--text-4); font-weight: 500; }
/* key stats row */
.lp-wp-stats { display: flex; gap: 0; }
.lp-wp-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 10px 6px; border-right: 1px solid var(--border);
}
.lp-wp-stat:last-child { border-right: none; }
.lp-wp-stat-icon { font-size: 15px; }
.lp-wp-stat-val { font-size: 13px; font-weight: 700; color: var(--text); }
.lp-wp-stat-lbl { font-size: 9px; color: var(--text-4); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
/* description */
.lp-wp-sec-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.lp-wp-desc { font-size: 12px; color: var(--text-2); line-height: 1.65; }
/* features grid */
.lp-wp-features { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-wp-feature {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  font-size: 11px; color: var(--text-2); font-weight: 500;
}
/* contact / agent card */
.lp-wp-contact {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(6,182,212,.06) 100%);
  border: 1px solid rgba(124,58,237,.2); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 12px;
}
.lp-wp-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white;
}
.lp-wp-agent-info { flex: 1; min-width: 0; }
.lp-wp-agent-name { font-size: 13px; font-weight: 700; color: var(--text); }
.lp-wp-agent-role { font-size: 10px; color: var(--text-4); margin-top: 1px; }
.lp-wp-agent-phone { font-size: 11px; color: var(--indigo-lt); font-weight: 600; margin-top: 2px; }
.lp-wp-cta-row { display: flex; gap: 8px; }
.lp-wp-cta {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border-radius: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); border: none; cursor: pointer; transition: all .15s;
}
.lp-wp-cta-call { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.lp-wp-cta-wa   { background: #25d366; color: white; }
.lp-wp-cta-call:hover { border-color: var(--indigo); color: var(--indigo-lt); }
.lp-wp-cta-wa:hover   { background: #1ebe5d; }
/* web listing — rental info table rows */
.lp-wp-price-lbl { font-size: 10px; color: var(--text-4); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.lp-wp-price-na { font-size: 14px; font-weight: 600; color: var(--text-3); font-style: italic; }
.lp-wp-rental { display: flex; flex-direction: column; }
.lp-wp-rental-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.lp-wp-rental-row:last-child { border-bottom: none; }
.lp-wp-rental-lbl { color: var(--text-3); font-weight: 500; }
.lp-wp-rental-val { color: var(--text); font-weight: 700; }

.err-box {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm); padding: 11px;
  font-size: 13px; color: #fca5a5; margin: 10px 0; text-align: left; word-break: break-all;
}
.btn-retry {
  width: 100%; padding: 13px; background: #ef4444; color: white; border: none;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 9px;
}

/* ── Location pick button ── */
.loc-pick-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px dashed rgba(124,58,237,.4);
  background: rgba(124,58,237,.06); color: var(--indigo-lt);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .18s; -webkit-tap-highlight-color: transparent;
}
.loc-pick-btn:hover { background: rgba(124,58,237,.12); border-color: var(--indigo); }
.loc-pick-btn svg { flex-shrink: 0; }

/* ── Location search (inside map picker) ── */
.loc-search-wrap { position: relative; display: flex; align-items: center; }
.loc-search-icon { position: absolute; left: 12px; color: var(--text-4); pointer-events: none; flex-shrink: 0; }
.loc-search-wrap input { padding-left: 34px !important; }

/* Location selected chip */
.loc-selected {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 8px 10px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px; font-size: 12px; color: var(--text-2);
}
.loc-selected svg { flex-shrink: 0; color: var(--indigo-lt); }
.loc-selected span { flex: 1; line-height: 1.4; }
.loc-clear-btn {
  background: none; border: none; color: var(--text-4);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px;
  flex-shrink: 0;
}
.loc-clear-btn:hover { color: var(--text); }

/* ── Nominatim search results dropdown ── */
.map-search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  max-height: 220px; overflow-y: auto;
}
.map-search-result {
  display: block; width: 100%; text-align: left;
  padding: 10px 13px; font-size: 13px; color: var(--text-2);
  background: none; border: none; border-bottom: 1px solid var(--border-lt);
  cursor: pointer; line-height: 1.4;
}
.map-search-result:last-child { border-bottom: none; }
.map-search-result:hover, .map-search-result:focus { background: rgba(124,58,237,.12); color: var(--text); outline: none; }

/* Google Places Autocomplete dark theme overrides */
.pac-container {
  z-index: 9999 !important;
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important; box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
  font-family: inherit !important; margin-top: 4px !important;
}
.pac-item {
  padding: 10px 14px !important; border-top: 1px solid var(--border-lt) !important;
  cursor: pointer; font-size: 14px !important; color: var(--text-3) !important;
  background: transparent !important; transition: background .12s;
}
.pac-item:first-child { border-top: none !important; }
.pac-item:hover, .pac-item-selected { background: rgba(124,58,237,.1) !important; }
.pac-item-query { color: var(--text) !important; font-size: 14px !important; font-weight: 600 !important; }
.pac-icon, .pac-logo::after, .hdpi .pac-icon { display: none !important; }
.pac-matched { font-weight: 700 !important; color: var(--indigo-lt) !important; }

/* ── Upload progress bar ── */
.upload-progress-wrap {
  width: 100%; background: var(--border);
  border-radius: 50px; height: 6px; margin: 12px 0 4px; overflow: hidden;
}
.upload-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-lt));
  border-radius: 50px; transition: width .3s ease;
}
.upload-progress-pct { font-size: 12px; color: var(--text-4); text-align: right; }

/* ── WhatsApp card preview ── */
.wa-preview-wrap { margin: 12px 0 4px; text-align: left; }
.wa-preview-label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-4);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px;
}
.wa-bubble {
  background: #1a2a1e; border: 1px solid rgba(37,211,102,.2);
  border-radius: 10px 10px 10px 2px; overflow: hidden;
}
.wa-text {
  padding: 12px 14px 8px; font-size: 13px; color: #e0e0e0; line-height: 1.7;
}
.wa-text strong { color: #fff; font-weight: 700; }
.wa-footer {
  padding: 0 14px 10px; font-size: 11px; color: #25d366;
  word-break: break-all; opacity: .8;
}
.wa-btns { display: flex; border-top: 1px solid rgba(255,255,255,.07); }
.wa-btn {
  flex: 1; padding: 11px 6px; text-align: center;
  font-size: 14px; color: #25d366; font-weight: 600;
}
.wa-btn + .wa-btn { border-left: 1px solid rgba(255,255,255,.07); }

/* ── Drag-and-drop reorder ── */
.photo-item[draggable] { cursor: grab; }
.photo-item[draggable]:active { cursor: grabbing; }
.photo-item.dragging { opacity: .3; border-style: dashed !important; }
.photo-item.drag-over {
  border-color: var(--indigo) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,.35) !important;
  transform: scale(1.04);
  transition: transform .12s;
}

/* ── Amenity chips ── */
.amenity-grid {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 14px;
}
.amenity-chip {
  padding: 6px 13px; border-radius: 50px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); color: var(--text-3);
  background: rgba(255,255,255,.04); transition: all .15s; user-select: none;
  white-space: nowrap;
}
.amenity-chip:hover { border-color: var(--indigo-lt); color: var(--text-1); }
.amenity-chip.selected {
  background: rgba(124,58,237,.18); border-color: var(--indigo);
  color: var(--indigo-lt); font-weight: 600;
}
.amenity-chip.custom { display: inline-flex; align-items: center; gap: 6px; }

/* -- Nearby places preview (auto-detected via OSM Overpass at the pinned location) -- */
.nearby-places-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nearby-place-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 13px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); color: var(--text-2);
}
.nearby-place-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearby-place-dist { flex-shrink: 0; font-weight: 700; color: var(--indigo-lt); }
.nearby-places-loading { font-size: 12px; color: var(--text-3); padding: 4px 2px; }

/* -- Manual "add your own" rows (custom amenities + custom nearby places) -- */
.add-inline-row { display: flex; gap: 8px; margin-top: 4px; }
.add-inline-row input, .add-inline-row select {
  width: auto; flex: 1; min-width: 0; padding: 8px 11px; font-size: 12.5px;
}
/* Nearby row wraps to 2 lines: name gets the full first line, category +
   km + Add share the second -- a single crammed line left the name field
   too narrow to actually read what was typed. */
.add-nearby-row { flex-wrap: wrap; }
.add-nearby-row input#customNearbyName { flex: 1 1 100%; }
/* overflow:hidden is required, not cosmetic -- a <select>'s rendered width
   otherwise floors at its selected option's content width regardless of
   min-width:0, so a long option (e.g. "Railway Station") pushed the row past
   its available width and wrapped +Add onto a 3rd line. This forces the
   browser to actually shrink/truncate it so category+distance+Add stay on
   one line together. */
.add-nearby-row select#customNearbyCategory { flex: 1 1 90px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-nearby-row select#customNearbyDist { flex: 0 0 82px; }
.add-nearby-row .add-inline-btn { flex-shrink: 0; }
/* Doc row wraps to 2 lines: file picker gets the full first line (it's the
   required part), optional name + Add share the second. */
.add-doc-row { flex-wrap: wrap; }
.add-doc-row input#customDocFile {
  flex: 1 1 100%; padding: 6px 8px; font-size: 11.5px;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit;
}
/* The native "Choose File" control is a separate pseudo-element the browser
   renders inside the input -- can't be reached with a plain background/color
   on the input itself, needs its own rule to match .add-inline-btn's pill
   style instead of the default OS button. */
.add-doc-row input#customDocFile::file-selector-button,
.add-doc-row input#customDocFile::-webkit-file-upload-button {
  margin-right: 10px; padding: 6px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--indigo);
  background: rgba(124,58,237,.15); color: var(--indigo-lt);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.add-doc-row input#customDocFile::file-selector-button:hover,
.add-doc-row input#customDocFile::-webkit-file-upload-button:hover {
  background: rgba(124,58,237,.28);
}
.add-doc-row input#customDocName { flex: 1 1 auto; }
.add-inline-btn {
  flex-shrink: 0; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--indigo);
  background: rgba(124,58,237,.15); color: var(--indigo-lt); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.add-inline-btn:hover { background: rgba(124,58,237,.28); }
.desc-suggest-btn {
  float: right; text-transform: none; letter-spacing: normal;
  padding: 2px 9px; font-size: 11px;
}
.chip-remove-x, .nearby-place-remove {
  flex-shrink: 0; cursor: pointer; color: var(--text-4); font-weight: 700; line-height: 1;
}
.chip-remove-x:hover, .nearby-place-remove:hover { color: #f87171; }

/* ── Tenant preference pills ── */
#fieldsTenantPref { margin-bottom: 14px; }
.tenant-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tenant-pill {
  padding: 6px 14px; border-radius: 50px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); color: var(--text-3);
  background: rgba(255,255,255,.04); transition: all .15s; user-select: none;
  white-space: nowrap;
}
.tenant-pill.active {
  background: rgba(124,58,237,.18); border-color: var(--indigo);
  color: var(--indigo-lt); font-weight: 600;
}


/* ── Embed code display ── */
.embed-code-wrap {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px; margin-bottom: 14px; text-align: left;
}
.embed-code-label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-4);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.embed-code-area {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #a3bffa; font-family: 'Courier New', monospace;
  font-size: 11px; line-height: 1.5; padding: 10px; resize: none;
  height: 80px; margin-bottom: 10px;
}
.embed-code-area:focus { outline: none; border-color: var(--indigo); }
.embed-tour-url {
  font-size: 12px; color: var(--text-4); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.embed-tour-url a { color: var(--indigo-lt); word-break: break-all; }

/* ── Upgrade modal ── */
.upgrade-boxes {
  display: flex; gap: 10px; margin-bottom: 4px;
}
.upgrade-box {
  flex: 1; min-width: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(109,40,217,.12));
  border: 1px solid rgba(124,58,237,.35); border-radius: 16px;
  padding: 16px 12px; text-align: center;
}
.upgrade-plan-name {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--indigo-lt);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.upgrade-price {
  font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 14px;
}
.upgrade-price span { font-size: 14px; font-weight: 400; color: var(--text-4); }
.upgrade-features {
  list-style: none; margin: 0 0 18px; padding: 0; text-align: left;
  display: inline-block;
}
.upgrade-features li { font-size: 13px; color: var(--text-3); padding: 3px 0; }
.upgrade-features li::before { color: var(--indigo-lt); margin-right: 6px; }
.btn-upgrade {
  width: 100%; padding: 12px; border-radius: 50px;
  background: linear-gradient(135deg, var(--indigo-dk), var(--indigo));
  color: #fff; font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-upgrade:hover { opacity: .88; }
