:root {
  color-scheme: dark;
  --background: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --ink: #e8e8f0;
  --muted: rgba(255, 255, 255, 0.55);
  --primary: #6c8fff;
  --primary-dark: #8fa8ff;
  --accent: #47d7c8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-brand: 'BankGothic', 'Bank Gothic', 'Impact', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --glow-primary: 0 0 18px rgba(108, 143, 255, 0.55), 0 0 40px rgba(108, 143, 255, 0.2);
  --glow-accent:  0 0 18px rgba(71, 215, 200, 0.5),  0 0 40px rgba(71, 215, 200, 0.15);
  --text-shadow-heading: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════
   BANK GOTHIC — Brand / Heading Font
   ════════════════════════════════════════ */
@font-face {
  font-family: 'BankGothic';
  src: url('/assets/fonts/BankGothicLight.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'BankGothic';
  src: url('/assets/fonts/BankGothicMdBT.ttf') format('truetype');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'BankGothic';
  src: url('/assets/fonts/BankGothicBold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}

/* Bank Gothic is reserved for high-impact brand moments only.
   Applied via specific selectors below, NOT as a global heading rule. */

/* General headings: keep body font, add subtle depth shadow */
h1, h2, h3, h4 {
  text-shadow: var(--text-shadow-heading);
}

/* Utility — apply brand font to any element explicitly */
.font-brand { font-family: var(--font-brand) !important; }

/* ── Global form element dark styling ── */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
textarea,
select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
select {
  color-scheme: dark;
}
select option {
  background: #16162a;
  color: #fff;
}
label {
  color: rgba(255, 255, 255, 0.7);
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at 20% 0%, #1e1b4b 0%, #0f0f1a 55%, #060610 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.background-orbs span {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.background-orbs span:nth-child(1) {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(68, 97, 255, 0.6), transparent 60%);
  top: -160px;
  left: -100px;
}

.background-orbs span:nth-child(2) {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(71, 215, 200, 0.5), transparent 60%);
  bottom: 0;
  right: -100px;
  animation-delay: 4s;
}

.background-orbs span:nth-child(3) {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(182, 120, 255, 0.5), transparent 60%);
  top: 40%;
  right: 15%;
  animation-delay: 8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(8, 8, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), var(--glass-shine);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.logo small {
  display: block;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

/* Brand name text (set via class in navbar.php) */
.logo-brand-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(108, 143, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(108, 143, 255, 0.3), rgba(71, 215, 200, 0.2));
  box-shadow: var(--shadow);
  font-weight: 700;
}

/* PNG logo (replaces the AA monogram) */
.logo-img {
  width: 40px;
  height: 40px;
 /* border-radius: 14px; */
  object-fit: cover;
  box-shadow: var(--shadow);
 /* border: 1px solid rgba(255,255,255,0.55);*/
}

.logo-img-big {
  width: 90px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Ghost pill buttons — transparent with circular border */
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.88rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, text-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  border-color: rgba(108, 143, 255, 0.75);
  color: #fff;
  background: rgba(108, 143, 255, 0.08);
  box-shadow: var(--glow-primary);
  text-shadow: 0 0 10px rgba(180, 200, 255, 0.7);
}

.button {
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.button.primary {
  background: linear-gradient(135deg, #4461ff, #6c7cff);
  color: white;
  box-shadow: 0 8px 24px rgba(68, 97, 255, 0.4), 0 0 0 1px rgba(108, 143, 255, 0.2);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(68, 97, 255, 0.55), var(--glow-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  border-color: rgba(71, 215, 200, 0.6);
  color: #fff;
  background: rgba(71, 215, 200, 0.08);
  box-shadow: var(--glow-accent);
  text-shadow: 0 0 10px rgba(71, 215, 200, 0.6);
  transform: translateY(-1px);
}

.button.yellow {
  background: rgba(245, 187, 39, 1.0);
  border: 1px solid var(--glass-border);
}

.button.danger {
  background: rgba(255, 120, 120, 0.2);
  border: 1px solid rgba(255, 120, 120, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem 8vw 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 1rem 0;
  font-family: var(--font-brand);
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(108, 143, 255, 0.35), 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  font-family: var(--font-brand);
  font-weight: 500;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(71, 215, 200, 0.6);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-actions {
  margin: 1.8rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-stats h3 {
  font-size: 1.6rem;
}

.hero-card .glass-card {
  padding: 2rem;
}

.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.55),
    var(--glass-shine);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.viewer-mini {
  margin-top: 1.4rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.2), rgba(71, 215, 200, 0.25));
  position: relative;
  overflow: hidden;
  height: 220px;
}

.viewer-mini-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
}

.viewer-mini-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(8, 8, 18, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.25);
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--glass-shine);
  color: var(--ink);
}

.viewer-section,
.plans-section,
.accounts-section,
.dashboard-section {
  padding: 3.5rem 8vw;
}

.section-title {
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-family: var(--font-brand);
  letter-spacing: 0.06em;
  text-shadow: 0 0 30px rgba(108, 143, 255, 0.25), 0 3px 16px rgba(0, 0, 0, 0.5);
}

.section-title p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.viewer-shell {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.viewer-canvas {
  position: relative;
  background: radial-gradient(circle at top, #1f2a44, #0c1220);
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  flex: 1 1 0;
  min-width: 0;
}

.viewer-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-hud {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.hud-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ============================================
   Map Sidebar + Fullscreen Overlay (dual-mode)
   ============================================ */

/* Tab handle — only visible in fullscreen overlay mode */
.overlay-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  background: rgba(10, 18, 32, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.overlay-tab:hover {
  background: rgba(10, 18, 32, 0.85);
  border-color: rgba(255,255,255,0.2);
}
.overlay-tab svg { flex-shrink: 0; }

.overlay-tab--right {
  border-radius: 10px 0 0 10px;
  padding: 10px 8px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(-100%) translateY(-50%);
  flex-direction: column;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}
.overlay-tab--right svg { transform: rotate(90deg); }
.overlay-tab--right span { letter-spacing: 0.06em; }

/* Body panel */
.overlay-body {
  background: rgba(10, 18, 32, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
}
.overlay-body--right {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
}

.overlay-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.overlay-toolbar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  flex: 1;
}

/* 360° / 3D view mode toggle */
.view-mode-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.view-mode-seg {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.1);
}
.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.view-mode-btn.active {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}
.view-mode-btn:not(.active):hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

/* Quality toggle (Low / High) — same shape as view-mode-seg but subtler accent */
.quality-toggle-seg {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.1);
}
.quality-toggle-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0 6px 0 7px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.quality-toggle-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.quality-toggle-btn.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.quality-toggle-btn:not(.active):hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.overlay-pin-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.overlay-pin-btn svg { width: 16px; height: 16px; }
.overlay-pin-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.overlay-pin-btn.active {
  background: rgba(68, 97, 255, 0.35);
  border-color: rgba(68, 97, 255, 0.6);
  color: #fff;
}

/* ── SIDEBAR MODE (default) — sits beside the viewer canvas ── */
.overlay-floorplan {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: row;
  /* no transform — always visible */
}
/* Tab handle hidden in sidebar mode */
.overlay-floorplan .overlay-tab--right { display: none; }
/* Pin button not needed in sidebar mode */
.overlay-floorplan .overlay-pin-btn { display: none; }
.overlay-floorplan .overlay-body--right {
  flex: 1;
  min-width: 0;
  border-radius: 0 24px 24px 0;
  border-left: none;
  max-height: none;
}
.overlay-floorplan .floorplanWrap {
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; /* inherit from base, override for sidebar */
}
.overlay-floorplan .floorplanImg {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

/* Story segment buttons */
.map-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.map-seg .segBtn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
  font-family: inherit;
}
.map-seg .segBtn:hover { background: rgba(255,255,255,0.16); }
.map-seg .segBtn.active {
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.9), rgba(108, 124, 255, 0.8));
  color: white;
  border-color: rgba(68, 97, 255, 0.5);
}

.room-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.02);
  margin-bottom: 0.75rem;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: rgba(68,97,255,0.5);
  background: rgba(68,97,255,0.06);
}
.upload-zone-icon {
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.5rem;
}
.upload-zone p {
  margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.5);
}
.upload-browse-link {
  color: rgba(68,97,255,0.9); cursor: pointer; text-decoration: underline;
  background: none; border: none; font: inherit; padding: 0;
}
.upload-zone-hint {
  display: block; font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 0.35rem;
}

/* ─── Upload Thumbnail Grid ─── */
.upload-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 0.75rem;
}
.upload-thumb-grid:empty { display: none; }
.upload-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 1;
  background: rgba(0,0,0,0.3);
}
.upload-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.upload-thumb-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(220,50,50,0.85); color: #fff;
  border: none; cursor: pointer; font-size: 13px; line-height: 22px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.upload-thumb:hover .upload-thumb-del { opacity: 1; }
.upload-thumb-uploading::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
}
.upload-thumb-uploading::before {
  content: '⏳'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); z-index: 1; font-size: 20px;
}

/* ─── URL Input Row ─── */
.upload-url-row {
  display: flex; gap: 6px; margin-bottom: 0.5rem; align-items: center;
}
.upload-url-row input[type="text"] {
  flex: 1; padding: 8px 12px; font-size: 0.85rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #fff; font-family: inherit;
}

/* ─── Viewpoint Cards ─── */
.viewpoint-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0.75rem; }
.viewpoint-list:empty::after {
  content: 'No viewpoints yet. Upload 360° images or add URLs.';
  display: block; padding: 1rem; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.3);
}
.viewpoint-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 6px 10px;
  transition: border-color 0.15s;
}
.viewpoint-card:hover { border-color: rgba(255,255,255,0.18); }
.viewpoint-card.is-default { border-color: rgba(68,97,255,0.4); background: rgba(68,97,255,0.06); }
.viewpoint-thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  background: rgba(0,0,0,0.3); flex-shrink: 0;
}
.viewpoint-info { flex: 1; min-width: 0; }
.viewpoint-name {
  display: block; width: 100%; padding: 4px 8px; font-size: 0.85rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-family: inherit; margin-bottom: 2px;
}
.viewpoint-url-hint {
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.viewpoint-actions { display: flex; gap: 4px; flex-shrink: 0; }
.viewpoint-actions .btn { padding: 4px 8px; font-size: 0.8rem; min-width: 28px; }
.viewpoint-default-btn { color: rgba(255,255,255,0.4); }
.viewpoint-default-btn.active { color: #ffd700; }

.plans-grid,
.account-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

/* Home page: stack 'How it works' above 'Request a Scan' */
#accounts .account-grid {
  grid-template-columns: 1fr;
}

.plan-card,
.listing-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--glass-shine);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 143, 255, 0.3);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 143, 255, 0.12), var(--glass-shine);
}

.plan-card.highlight {
  border: 1px solid rgba(108, 143, 255, 0.45);
  border-top-color: rgba(108, 143, 255, 0.65);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(108, 143, 255, 0.1), var(--glass-shine);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tag {
  background: rgba(71, 215, 200, 0.15);
  color: #47d7c8;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.plan-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.plan-card li::before {
  content: "✦";
  margin-right: 0.5rem;
  color: var(--primary);
}

.account-grid label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-grid input {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.request-options {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.option-card {
  border-radius: 18px;
  border: 1px solid rgba(108, 143, 255, 0.2);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 600;
}

.option-card.active {
  border-color: rgba(68, 97, 255, 0.6);
  box-shadow: 0 12px 30px rgba(68, 97, 255, 0.18);
}

/* Checkbox-style option card */
.option-card--checkbox {
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.option-card--checkbox input[type="checkbox"] {
  display: none;
}
.option-card-check-wrap {
  flex-shrink: 0;
}
.option-card-check-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(68, 97, 255, 0.4);
  background: rgba(255,255,255,0.1);
  position: relative;
  transition: all 0.18s;
  vertical-align: middle;
}
.option-card--checkbox.checked .option-card-check-box {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  border-color: #ff6b35;
}
.option-card--checkbox.checked .option-card-check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.option-card--checkbox.checked {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}
.option-card-text {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
}

.estimate {
  display: flex;
  justify-content: space-between;
  background: rgba(71, 215, 200, 0.2);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.listing-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 3rem 8vw 4rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.2) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.site-footer strong {
  font-family: var(--font-brand);
  letter-spacing: 0.06em;
  font-size: 1rem;
  text-shadow: var(--text-shadow-heading);
}

.site-footer h4 {
  font-family: var(--font-brand);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-shadow: var(--text-shadow-heading);
}

.site-footer p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .listing-header-row {
    flex-direction: column;
  }
  .listing-agent-card--header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .listing-agent-card--header .agent-info {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 1rem 6vw;
  }

  .hero {
    padding: 3rem 6vw 2rem;
  }

  .viewer-section,
  .plans-section,
  .accounts-section,
  .dashboard-section {
    padding: 3rem 6vw;
  }
}

/* --- Agent Alabama integration extras (v16) --- */

/* Utility text/layout helpers used by PHP pages */
.muted { color: var(--muted) !important; }
.row { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 6vw; }

/* Make HUD pills/buttons more readable on bright scenes */
.viewer-hud .pill,
.viewer-hud .icon-button,
.viewer-hud .toggle {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.viewer-hud .pill.subtle {
  background: rgba(0, 0, 0, 0.28);
}

/* Make tuning panel always usable */
.tuning-panel {
  max-height: min(70vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
}

/* Listing pages: iframe stage */
.viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Prevent iOS Safari scroll/zoom fighting the viewer */
.viewer-canvas iframe,
.viewer-canvas canvas,
.viewer-canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Small utility */
.hidden { display: none !important; }

/* Simple listing cards grid override for real DB listings */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.listing-tile {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--glass-shine);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 0.6rem;
}

.listing-tile .meta { color: var(--muted); font-size: 0.92rem; }
.listing-tile .pillrow { display:flex; gap:.5rem; flex-wrap:wrap; }
.listing-tile .pillrow .pill { color:white; }

/* Listing page controls (kept compatible with existing listing.js) */
.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.seg {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.segBtn {
  background: rgba(68, 97, 255, 0.1);
  border: 1px solid rgba(68, 97, 255, 0.22);
  color: var(--primary-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
}

.segBtn.active {
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.9), rgba(108, 124, 255, 0.8));
  color: white;
  border-color: rgba(68, 97, 255, 0.35);
}

.floorplanWrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  min-height: 220px;
}

.floorplanImg {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
}

.floorplanOverlay {
  position: absolute;
  inset: 0;
}

.roomPin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.85);
  background: linear-gradient(135deg, rgba(68,97,255,0.95), rgba(71,215,200,0.9));
  box-shadow: 0 10px 18px rgba(15, 22, 43, 0.18);
  cursor: pointer;
}

.roomsList {
  display: grid;
  gap: 0.5rem;
}

.roomRow {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.roomRow:hover {
  border-color: rgba(108, 143, 255, 0.35);
  box-shadow: 0 12px 24px rgba(68, 97, 255, 0.12);
}

.photoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.photoTile {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.62);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(140, 200, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: all 180ms ease;
  z-index: 9999;
  font-size: 0.9rem;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Admin tables */
.tableWrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

.table th,
.table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 0.92rem;
}

.table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
}

.nowrap { white-space: nowrap; }

.btnlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(68,97,255,0.22);
  background: rgba(68,97,255,0.10);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.btnlink.primary {
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.9), rgba(108, 124, 255, 0.8));
  color: white;
  border-color: rgba(68,97,255,0.35);
}

.btnlink.danger {
  background: rgba(255, 120, 120, 0.18);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ff8a8a;
}

/* Back-compat buttons from earlier prototype (admin pages) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 97, 255, 0.22);
  background: rgba(68,97,255,0.10);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.9), rgba(108, 124, 255, 0.8));
  color: white;
  border-color: rgba(68,97,255,0.35);
}

.btn.small { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.btn.danger {
  background: rgba(255, 120, 120, 0.18);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ff8a8a;
}

/* ===== Mobile Navbar Improvements ===== */

/* Compact mobile header for listing pages */
@media (max-width: 768px) {
  :root{ --mobile-header-h: 64px; }
  body{ padding-top: var(--mobile-header-h); }
  main{ padding-top: 0; }

  /* Make navbar much more compact on mobile */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 18, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* Hidden state when scrolling down */
  .site-header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  
  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.6rem 4vw;
    gap: 0.5rem;
  }
  
  /* Hide logo text on mobile, show only icon */
  .logo span {
    display: none;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  
  /* Hide nav links on mobile to save space */
  .nav-links {
    display: none;
  }
  
  /* Smaller CTA button */
  .nav .button.primary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Push content below fixed header */
  main {
    padding-top: 52px;
  }
  
  /* Viewer section adjustments */
  .viewer-section {
    padding: 1rem 3vw !important;
  }
  
  .section-title {
    margin-bottom: 0.75rem;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .section-title p {
    font-size: 0.85rem;
  }
  
  /* Make viewer canvas taller on mobile */
  .viewer-canvas {
    min-height: 50vh;
    aspect-ratio: auto;
    max-height: none;
  }
  
  /* On mobile, stack map sidebar below viewer */
  .viewer-shell {
    flex-direction: column;
  }
  .overlay-floorplan {
    width: 100% !important;
    border-radius: 0 0 24px 24px;
  }
  .overlay-floorplan .overlay-body--right {
    border-radius: 0 0 24px 24px !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
    border-top: none !important;
  }
  .viewer-canvas {
    border-radius: 24px 24px 0 0 !important;
  }
  
  .seg {
    gap: 0.4rem;
  }
  
  .segBtn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Very small screens (iPhone SE, etc) */
@media (max-width: 380px) {
  .nav {
    padding: 0.5rem 3vw;
  }
  
  .nav .button.primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  main {
    padding-top: 48px;
  }
}

/* Landscape mobile - minimize header even more */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    position: relative;
  }
  
  .nav {
    padding: 0.4rem 4vw;
  }
  
  .logo-img {
    width: 28px;
    height: 28px;
  }
  
  main {
    padding-top: 0;
  }
  
  .viewer-canvas {
    min-height: 70vh;
  }
}

/* ===== Fullscreen Viewer Button ===== */
.fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fullscreen-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.05);
}

.fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Embed Copy Button (next to fullscreen) ---- */
.embed-copy-btn {
  position: absolute;
  bottom: 12px;
  right: 60px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.embed-copy-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.05);
}
.embed-copy-btn.active {
  background: rgba(201,168,76,0.25);
  border-color: rgba(201,168,76,0.5);
}

/* ---- Embed Popover ---- */
.embed-popover {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 12px;
  z-index: 30;
  width: 420px;
  max-width: calc(100vw - 24px);
  background: rgba(15,15,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: embedPopIn 0.18s ease-out;
}
.embed-popover.open { display: block; }

@keyframes embedPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.embed-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.embed-popover-header span {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.embed-popover-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.embed-popover-close:hover { color: #fff; }

.embed-popover-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.embed-popover-code-wrap {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}
.embed-popover-code {
  margin: 0;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.72rem;
  color: rgba(201,168,76,0.9);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
}

.embed-popover-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.12);
  color: #c9a84c;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.embed-popover-copy-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.5);
}
.embed-popover-copy-btn.copied {
  background: rgba(76,175,80,0.15);
  border-color: rgba(76,175,80,0.4);
  color: #66bb6a;
}

/* ---- Embed Mode (full-viewport viewer) ---- */
body.embed-mode {
  background: #0b0b0f;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.embed-mode main {
  padding: 0;
  margin: 0;
}
body.embed-mode .viewer-section {
  padding: 0 !important;
  max-width: none;
}
body.embed-mode .viewer-shell {
  border-radius: 0;
  height: 100vh;
  max-height: 100vh;
}
body.embed-mode .viewer-canvas {
  border-radius: 0 !important;
  aspect-ratio: auto !important;
}
/* In embed mode, show the map sidebar just like the normal page */
body.embed-mode .overlay-floorplan {
  display: flex;
}

/* Floorplan drawer toggle button — no longer needed (replaced by overlay tabs) */
.floorplan-toggle-btn {
  display: none !important;
}


/* Fullscreen mode styles */
.viewer-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0;
  display: block !important;
}


.viewer-fullscreen .viewer-canvas {
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  width: 100% !important;
}

.viewer-fullscreen .fullscreen-btn {
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  z-index: 50;
}

.viewer-fullscreen .fullscreen-btn svg {
  width: 24px;
  height: 24px;
}

.viewer-fullscreen .embed-copy-btn {
  bottom: 20px;
  right: 76px;
  width: 48px;
  height: 48px;
  z-index: 50;
}
.viewer-fullscreen .embed-copy-btn svg {
  width: 22px;
  height: 22px;
}

/* In fullscreen, overlay-floorplan becomes absolute overlay */
.viewer-fullscreen .overlay-floorplan {
  position: absolute !important;
  z-index: 25 !important;
  top: 0;
  right: 0;
  bottom: 80px;
  width: min(380px, 50%);
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: row;
}
.viewer-fullscreen .overlay-floorplan * { pointer-events: auto; }
.viewer-fullscreen .overlay-floorplan .overlay-tab--right { display: flex !important; }
.viewer-fullscreen .overlay-floorplan .overlay-pin-btn { display: flex !important; }
.viewer-fullscreen .overlay-floorplan .overlay-body--right {
  border-radius: 16px 0 0 16px !important;
  border-left: 1px solid rgba(255,255,255,0.1) !important;
  border-right: none !important;
  max-height: 100% !important;
}
.viewer-fullscreen .overlay-floorplan:hover,
.viewer-fullscreen .overlay-floorplan.visible,
.viewer-fullscreen .overlay-floorplan.pinned {
  transform: translateX(0) !important;
}


/* Fullscreen exit hint */
.fullscreen-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 50;
}

.viewer-fullscreen .fullscreen-hint {
  opacity: 1;
  animation: fadeOutHint 3s ease forwards;
}

@keyframes fadeOutHint {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* (old floorplan toggle removed — now using overlay tabs) */

/* ================================================================
   DEMO LOAD GATE (homepage click-to-load overlay)
   ================================================================ */
.demo-load-gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(15, 22, 43, 0.85) 0%, rgba(10, 14, 30, 0.95) 100%);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  transition: opacity 0.35s ease;
}

.demo-load-gate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  max-width: 380px;
  padding: 2rem;
}

.demo-load-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.15), rgba(71, 215, 200, 0.1));
  border: 1px solid rgba(68, 97, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(108, 180, 255, 0.9);
  margin-bottom: 0.5rem;
  animation: demoIconPulse 3s ease-in-out infinite;
}

@keyframes demoIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(68, 97, 255, 0.2); }
  50% { box-shadow: 0 0 0 16px rgba(68, 97, 255, 0); }
}

.demo-load-gate-content h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.demo-load-gate-content p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin: 0;
}

.demo-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
}

.demo-load-btn svg {
  flex-shrink: 0;
}

.demo-load-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.2rem;
}

/* ================================================================
   DEBUG TOGGLE BUTTON (parent-side, in viewer-canvas)
   ================================================================ */
.debug-toggle-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.debug-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.debug-toggle-btn.debug-on {
  border-color: rgba(0, 255, 0, 0.5);
  color: #0f0;
  background: rgba(0, 30, 0, 0.75);
}
.debug-toggle-btn.debug-on svg {
  stroke: #0f0;
}
.debug-toggle-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* ================================================================
   FOV SLIDER (parent-side, bottom-left of viewer-canvas, 3D mode only)
   ================================================================ */
.fov-slider-wrap {
  position: absolute;
  bottom: 62px;
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(71, 215, 200, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.fov-slider-label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  user-select: none;
}
.fov-slider-input {
  width: 90px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.fov-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(71, 215, 200, 0.9);
  box-shadow: 0 0 6px rgba(71, 215, 200, 0.5);
  cursor: pointer;
}
.fov-slider-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(71, 215, 200, 0.9);
  box-shadow: 0 0 6px rgba(71, 215, 200, 0.5);
  border: none;
  cursor: pointer;
}
.viewer-fullscreen .fov-slider-wrap {
  bottom: 70px;
  left: 20px;
}

/* ================================================================
   CAMERA DEBUG OVERLAY (parent-side, on top of viewer-canvas)
   ================================================================ */
/* ================================================================
   EXTERIOR PHOTO CAROUSEL (Basic plan — inside .viewer-canvas)
   ================================================================ */
.ext-carousel {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #0c1220;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  outline: none;
}

.ext-carousel-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

/* Left / Right arrows */
.ext-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.ext-carousel-arrow:hover {
  background: rgba(0,0,0,0.7);
}
.ext-carousel-arrow svg { width: 22px; height: 22px; }
.ext-carousel-prev { left: 12px; }
.ext-carousel-next { right: 12px; }

/* Counter pill (top-right) */
.ext-carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
}

/* Thumbnail tray wrapper — slides up from bottom on hover */
.ext-carousel-tray-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

/* Show tray when hovering the lower 30% of the carousel, or when pinned */
.ext-carousel:hover .ext-carousel-tray-wrapper,
.ext-carousel-tray-wrapper.pinned {
  transform: translateY(0);
  pointer-events: auto;
}

/* Also show when the carousel itself is hovered near the bottom */
.ext-carousel-tray-wrapper:hover {
  transform: translateY(0);
  pointer-events: auto;
}

/* Pin button */
.ext-carousel-pin {
  position: absolute;
  top: -44px;
  right: 8px;
  z-index: 15;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  pointer-events: auto;
}
.ext-carousel-pin:hover { background: rgba(0,0,0,0.7); }
.ext-carousel-pin.active {
  background: rgba(68, 97, 255, 0.7);
  border-color: rgba(68, 97, 255, 0.5);
}
.ext-carousel-pin svg { width: 18px; height: 18px; }

/* The scrollable thumbnail strip */
.ext-carousel-tray {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}
.ext-carousel-tray::-webkit-scrollbar { height: 5px; }
.ext-carousel-tray::-webkit-scrollbar-track { background: transparent; }
.ext-carousel-tray::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }

.ext-carousel-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.6;
  background: #000;
  padding: 0;
}
.ext-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ext-carousel-thumb:hover { opacity: 0.9; }
.ext-carousel-thumb.active {
  border-color: rgba(68, 97, 255, 0.9);
  opacity: 1;
}

/* ============================================
   Listing Header Row (title + stats + agent inline)
   ============================================ */

.listing-header-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.listing-header-left {
  flex: 1;
  min-width: 0;
}

/* Agent card in header — compact horizontal layout */
.listing-agent-card--header {
  flex-shrink: 0;
  width: 260px;
  flex-direction: row;
  text-align: left;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
}
.listing-agent-card--header .agent-photo {
  width: 56px;
  height: 56px;
}
.listing-agent-card--header .agent-info {
  align-items: flex-start;
}
.listing-agent-card--header .agent-name {
  font-size: 0.92rem;
}
.listing-agent-card--header .agent-company {
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.listing-agent-card--header .agent-contact-btn {
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
}

/* Description section below viewer */
.listing-description-section {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--glass-shine);
}

/* Stats bar — price, beds, baths, sqft */
.listing-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stat-item {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 110px;
  box-shadow: var(--glass-shine);
}

.stat-item.stat-price {
  background: linear-gradient(135deg, rgba(68, 97, 255, 0.12), rgba(71, 215, 200, 0.10));
  border-color: rgba(68, 97, 255, 0.25);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  text-shadow: var(--text-shadow-heading);
}

.stat-price .stat-value {
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* (listing-details-grid removed — agent card now in header row) */

/* Meta tags (property type, year, lot, MLS) */
.detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-tag {
  background: rgba(68, 97, 255, 0.08);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

/* Listing type badge (For Sale, For Rent, Airbnb, etc.) */
.listing-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.listing-type-sale {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.listing-type-rental {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
.listing-type-short_term {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
}
.listing-type-other {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Description text */
.listing-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* External link chips */
.listing-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.external-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.external-link-chip:hover {
  background: rgba(68, 97, 255, 0.08);
  border-color: rgba(68, 97, 255, 0.3);
  transform: translateY(-1px);
}

.external-link-chip svg {
  flex-shrink: 0;
}

/* Agent card */
.listing-agent-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  box-shadow: var(--shadow);
}

.agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(68, 97, 255, 0.2);
}

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.agent-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.agent-company {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.agent-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.agent-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--primary);
  background: rgba(68, 97, 255, 0.06);
  border: 1px solid rgba(68, 97, 255, 0.15);
}

.agent-contact-btn:hover {
  background: rgba(68, 97, 255, 0.12);
  border-color: rgba(68, 97, 255, 0.3);
  transform: translateY(-1px);
}

.agent-contact-btn svg {
  flex-shrink: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 980px) {
  .listing-header-row {
    flex-direction: column;
  }
  .listing-agent-card--header {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .listing-stats-bar {
    gap: 0.4rem;
  }
  .stat-item {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    padding: 0.7rem 1rem;
  }
  .stat-value {
    font-size: 1.15rem;
  }
  .listing-agent-card--header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .listing-agent-card--header .agent-info {
    align-items: center;
  }
  .listing-agent-card--header .agent-contact-links {
    justify-content: center;
  }
}


/* =========================
   Home: Hero actions
   ========================= */
.hero-actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin: 1.25rem 0 0;
}

/* =========================
   Gallery carousel (home)
   ========================= */
.gallery-shell{
  position:relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), var(--glass-shine);
  border: 1px solid rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(16px);
}
.gallery-viewport{
  overflow:hidden;
  border-radius: 18px;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.25);
}
.gallery-track{
  display:flex;
  width:100%;
  height:100%;
  transform: translateX(0%);
  transition: transform 420ms ease;
}
.gallery-img{
  width:100%;
  height:100%;
  flex: 0 0 100%;
  object-fit: cover;
  display:block;
}
.gallery-img--fallback{
  object-fit: contain;
  padding: 2.25rem;
  opacity: .9;
}

.gallery-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 3;
}
.gallery-btn svg{ width: 20px; height:20px; }
.gallery-btn:hover{ background: rgba(0,0,0,.5); }
.gallery-btn--left{ left: 14px; }
.gallery-btn--right{ right: 14px; }

.gallery-dots{
  display:flex;
  justify-content:center;
  gap:.45rem;
  margin-top:.85rem;
}
.gallery-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.18);
  cursor:pointer;
}
.gallery-dot.active{
  background: rgba(255,255,255,.9);
}

/* Mobile: reduce button overlap */
@media (max-width: 640px){
  .gallery-btn{ width: 40px; height: 40px; }
  .gallery-btn--left{ left: 10px; }
  .gallery-btn--right{ right: 10px; }
}

/* =========================
   Listings: sort row
   ========================= */
.section-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
}
.sort-wrap{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-left:auto;
}
.sort-label{
  font-size:.9rem;
  opacity:.8;
}
.sort-select{
  padding: .55rem .7rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  outline:none;
}
.sort-select:focus{
  border-color: rgba(255,255,255,.28);
}


/* =========================
   Listings: clickable cards w/ thumbnail (2-up)
   ========================= */
.listings-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.25rem;
}
@media (max-width: 920px){
  .listings-grid{ grid-template-columns: 1fr; }
}

.listing-card-link{
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--glass-shine);
  backdrop-filter: blur(16px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.listing-card-link:hover{
  transform: translateY(-3px);
  border-color: rgba(108, 143, 255, 0.3);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 28px rgba(108, 143, 255, 0.12);
}

.listing-card-inner{
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 180px;
}

.listing-thumb-wrap{
  position: relative;
  background: linear-gradient(135deg, rgba(68,97,255,0.18), rgba(71,215,200,0.14));
  overflow: hidden;
}
.listing-thumb{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.listing-thumb--fallback{
  object-fit: contain !important;
  padding: 1.6rem;
  opacity: 0.9;
  background: rgba(0,0,0,0.15);
}

/* Listing type badge overlaid on card thumbnail */
.listing-card-type-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.listing-card-body{
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing-card-title{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
}
.listing-card-location{
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.listing-card-meta{
  font-size: 0.95rem;
}
.listing-card-price{
  color: var(--primary);
  font-weight: 800;
}
.listing-card-sep{
  opacity: 0.6;
  margin: 0 0.25rem;
}

.listing-card-cta{
  display:flex;
  justify-content:flex-start;
}

/* Mobile: stack thumbnail on top */
@media (max-width: 520px){
  .listing-card-inner{ grid-template-columns: 1fr; }
  .listing-thumb-wrap{ height: 170px; }
}

/* ── Request Received Modal ─────────────────────────────────── */
.req-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.req-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.req-modal-card {
  position: relative;
  background: rgba(16, 16, 36, 0.88);
  border: 1px solid rgba(108, 143, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(108, 143, 255, 0.12), var(--glass-shine);
  padding: 2.8rem 2.4rem 2.2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}
.req-modal-overlay.visible .req-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.req-modal-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.req-modal-check {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 14px rgba(108, 143, 255, 0.5)) drop-shadow(0 0 28px rgba(71, 215, 200, 0.25));
}
.req-check-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.req-check-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}
.req-modal-overlay.visible .req-check-circle,
.req-modal-overlay.visible .req-check-tick {
  stroke-dashoffset: 0;
}
.req-modal-title {
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #8fa8ff, #47d7c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.req-modal-body {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.req-modal-btn {
  min-width: 160px;
}
