:root {
  --navy: #0A1930;
  --navy-light: #142A4D;
  --navy-border: #22375E;
  --blue: #1656C9;
  --blue-dark: #0F3D8F;
  --orange: #F5821F;
  --green: #1E8449;
  --red: #C0392B;
  --purple: #6A3FC2;
  --text: #1F2937;
  --text-muted: #64748B;
  --text-soft: #94A3B8;
  --border: #E2E8F0;
  --off-white: #F7F9FC;
  --white: #FFFFFF;
  --shadow: 0 20px 45px -20px rgba(10, 25, 48, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-solid {
  background: var(--blue);
  color: var(--white);
}
.btn-solid:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--white); font-size: 19px; font-weight: 800; }
.brand-name span { color: var(--orange); }
.brand-tagline {
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}
.nav-link:hover { color: #fff; }
.nav-link--disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.5);
}
.nav-link--disabled:hover { color: rgba(255, 255, 255, 0.5); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 64px 0 0;
}

.hero-dots {
  position: absolute;
  top: 40px;
  right: 6%;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-copy h1 {
  color: var(--white);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-copy h1 .accent { color: var(--orange); }

.hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}
.trust-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(30, 132, 73, 0.25);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Find a PG finder card (sits above the dashboard mockup, in
   normal flow -- NOT overlapping it. An earlier absolute-positioned
   version covered the mockup's own KPI numbers, which read as broken
   rather than "floating"). ---------- */

.pg-finder-card {
  position: relative;
  display: block;
  width: 250px;
  margin: 0 0 20px auto;
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.pg-finder-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: conic-gradient(from 0deg, var(--orange), transparent 30%, var(--orange) 60%, transparent 90%);
  opacity: 0.55;
  filter: blur(9px);
  z-index: -1;
  animation: pg-finder-spin 5s linear infinite;
}
@keyframes pg-finder-spin { to { transform: rotate(360deg); } }
.pg-finder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FDECDC;
  color: #B4600A;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pg-finder-badge .dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pg-finder-pulse 1.6s ease-in-out infinite;
}
@keyframes pg-finder-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.6); } }
.pg-finder-card h3 { color: var(--navy); font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.pg-finder-card p { color: var(--text-muted); font-size: 12px; margin: 0 0 14px; line-height: 1.5; }
.pg-finder-btn {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.pg-finder-btn:hover { background: var(--blue-dark); }
@media (prefers-reduced-motion: reduce) {
  .pg-finder-card::before { animation: none; }
  .pg-finder-badge .dot-pulse { animation: none; }
}
@media (max-width: 640px) {
  .pg-finder-card { position: static; width: auto; margin-bottom: 20px; }
}

/* ---------- Dashboard mockup ---------- */

.mockup-wrap { position: relative; }

.mockup {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  transform: translateY(20px);
}

.mockup-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 18px 12px;
}
.mockup-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.mockup-brand img { width: 20px; height: 20px; }

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 2px;
}
.mockup-nav-item.active {
  background: var(--blue);
  color: #fff;
}

.mockup-main { flex: 1; padding: 18px 20px; min-width: 0; }

.mockup-main-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mockup-kpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.mockup-kpi-label { font-size: 9px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.mockup-kpi-value { font-size: 15px; font-weight: 800; color: var(--text); margin-top: 4px; }
.mockup-kpi-delta { font-size: 9.5px; color: var(--green); margin-top: 3px; }

.mockup-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.mockup-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.mockup-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.mockup-card-title span { font-weight: 500; color: var(--text-soft); font-size: 10px; }

.mockup-donut {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: conic-gradient(var(--blue) 0% 67%, var(--green) 67% 86%, var(--orange) 86% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-donut-inner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.mockup-donut-inner small { font-size: 7px; font-weight: 500; color: var(--text-soft); }

.mockup-legend { font-size: 9.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.mockup-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mockup-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.mockup-dues-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--off-white);
}
.mockup-dues-row:last-child { border-bottom: none; }
.mockup-dues-row b { color: var(--text); font-weight: 600; }
.mockup-dues-row em { color: var(--text-soft); font-style: normal; }

/* ---------- Compact feature strip ---------- */

.strip {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 28px 0;
}
.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 14px;
  border-left: 1px solid var(--border);
}
.strip-item:first-child { border-left: none; }
.strip-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strip-icon svg { width: 17px; height: 17px; }
.strip-text h4 { font-size: 12.5px; font-weight: 700; margin: 0 0 3px; color: var(--text); }
.strip-text p { font-size: 11px; color: var(--text-muted); margin: 0; line-height: 1.35; }

/* ---------- Stats bar ---------- */

.stats {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 0;
}
.stat-item { text-align: center; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Shortcuts row ---------- */

.shortcuts { padding: 36px 0; }
.shortcuts-inner {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.shortcut:hover { background: var(--off-white); }
.shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.shortcut-icon svg { width: 20px; height: 20px; }
.shortcut span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-align: center; }

/* ---------- Features section ---------- */

.features { background: var(--off-white); padding: 64px 0 76px; }
.features-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.features-head h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0 0 10px; text-wrap: balance; }
.features-head p { color: var(--text-muted); font-size: 15px; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 24px -18px rgba(10, 25, 48, 0.18);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.feature-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.icon-blue { background: #E8F0FE; color: var(--blue); }
.icon-orange { background: #FDECDC; color: var(--orange); }
.icon-green { background: #E5F3EA; color: var(--green); }
.icon-purple { background: #EDE7FA; color: var(--purple); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); padding: 40px 0 26px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--navy-border);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links span, .footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
}

.nav-link--active { color: #fff; font-weight: 700; }

/* ---------- Help Center ---------- */

.help-hero { text-align: center; padding: 56px 0 40px; }

.help-shell {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 90px;
}

.help-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
}

.help-group { margin-bottom: 22px; }
.help-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.help-link:hover { color: var(--blue); }
.help-link--active { color: var(--blue); font-weight: 700; }
.help-link--disabled { color: var(--text-soft); cursor: default; }
.help-link--disabled:hover { color: var(--text-soft); }
.help-soon {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-soft); background: var(--off-white); border: 1px solid var(--border);
  border-radius: 10px; padding: 1px 6px; flex-shrink: 0;
}

.help-article { flex: 1; min-width: 0; max-width: 680px; }
.help-crumb { font-size: 12px; color: var(--text-soft); margin-bottom: 12px; font-weight: 600; }
.help-crumb b { color: var(--text-muted); }
.help-article h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 12px; text-wrap: balance; }
.help-lede { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0 0 34px; max-width: 62ch; }

.help-step { display: flex; gap: 16px; margin-bottom: 28px; max-width: 62ch; }
.help-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.help-step h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 3px 0 6px; }
.help-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.help-callout {
  background: #EAF1FC; border-left: 3px solid var(--blue); border-radius: 8px;
  padding: 14px 18px; font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 30px 0; max-width: 62ch;
}
.help-callout b { color: var(--blue-dark); }

.help-more {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 62ch;
}
.help-more-title { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.help-more p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.help-more a { color: var(--blue); font-weight: 700; }

.help-sub { font-size: 17px; font-weight: 800; color: var(--navy); margin: 34px 0 14px; max-width: 62ch; }
.help-sub:first-of-type { margin-top: 0; }

.help-fields { max-width: 62ch; margin-bottom: 8px; }
.help-field { padding: 11px 0; border-top: 1px solid var(--border); }
.help-field:first-child { border-top: none; }
.help-field b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.help-field span { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.help-note {
  background: var(--off-white); border-radius: 8px; padding: 12px 16px; font-size: 13px;
  color: var(--text-muted); line-height: 1.6; margin: 18px 0; max-width: 62ch;
}

ul.help-list { max-width: 62ch; margin: 0 0 20px; padding-left: 20px; }
ul.help-list li { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
ul.help-list b { color: var(--text); }

@media (max-width: 860px) {
  .help-shell { flex-direction: column; }
  .help-sidebar { width: 100%; position: static; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mockup-wrap { order: -1; }
  .mockup { transform: none; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .strip-item:nth-child(4) { border-left: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .shortcuts-inner { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 18px 24px 22px;
    border-bottom: 1px solid var(--navy-border);
  }
  .hero-copy h1 { font-size: 32px; }
  .mockup { flex-direction: column; }
  .mockup-sidebar { width: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 12px; }
  .mockup-brand { display: none; }
  .mockup-nav-item { white-space: nowrap; }
  .mockup-kpis { grid-template-columns: repeat(2, 1fr); }
  .mockup-row { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: none; }
  .shortcuts-inner { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Find a PG: search + results ---------- */

.pg-search-hero { background: var(--navy); padding: 48px 0 40px; }
.pg-search-hero h1 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 8px; text-wrap: balance; }
.pg-search-hero p { color: #AEC0DA; font-size: 14px; margin: 0 0 22px; }
.pg-search-bar {
  display: flex;
  gap: 10px;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 10px;
  flex-wrap: wrap;
}
.pg-search-field {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border-radius: 9px;
  border: none;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
}
.pg-search-go {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 26px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.pg-search-go:hover { background: #D96F13; }

.pg-results-section { padding: 40px 0 60px; }
.pg-results-count { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.pg-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}
.pg-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pg-card-photo {
  height: 140px;
  background: linear-gradient(135deg, #E8EEF9, #C9D9F5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
}
.pg-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pg-card-price {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 25, 48, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
}
.pg-card-body { padding: 14px; }
.pg-card-body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--navy); }
.pg-card-loc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pg-card-amenities { font-size: 13px; display: flex; gap: 7px; flex-wrap: wrap; }
.pg-empty, .pg-error { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }

@media (max-width: 900px) { .pg-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pg-results-grid { grid-template-columns: 1fr; } .pg-search-field { min-width: 100%; } }

/* ---------- PG detail page ---------- */

/* overflow: hidden on the grid container itself, not just the individual
   cells -- a tall/portrait source photo in .pg-gallery-main had no clipping
   of its own and no explicit height to constrain it against, so it grew
   past the gallery's fixed height and visually bled down over the location/
   contact content below it instead of being cropped to its box. */
/* Owner photos are almost always portrait phone shots (3:4 or taller);
   at 340px tall against a ~1.6fr-wide main cell, the box's aspect ratio
   was roughly 2:1 -- object-fit: cover had to zoom in ~3x over the source
   photo's own proportions, cropping away most of the actual building/
   signage and leaving only a tight, unrecognizable sliver. Taller boxes
   bring the crop much closer to the source photo's real proportions. */
.pg-detail-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; height: 440px; overflow: hidden; }
.pg-detail-gallery .pg-gallery-main { background: linear-gradient(135deg, #E8EEF9, #C9D9F5); overflow: hidden; height: 100%; }
.pg-detail-gallery .pg-gallery-sub { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; height: 100%; }
.pg-detail-gallery .pg-gallery-cell { background: linear-gradient(135deg, #E8EEF9, #C9D9F5); overflow: hidden; position: relative; }
.pg-detail-gallery img, .pg-detail-gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A video thumbnail (gallery or amenity) -- the <video> shows its first
   frame as a natural static preview with no autoplay needed; the play
   badge is the only thing marking it as playable rather than a photo. */
.pg-video-thumb { position: relative; width: 100%; height: 100%; cursor: pointer; }
.pg-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 25, 48, 0.65); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; padding-left: 2px;
}
.pg-gallery-more {
  position: absolute; inset: 0; background: rgba(10, 25, 48, 0.6);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Photo lightbox: click any PG photo to preview it full-size
   with Next/Prev, covering every photo on the page in one sequence ---------- */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6, 12, 24, 0.92);
  align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 26px; font-weight: 700; cursor: pointer; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #E3E9F1; font-size: 13px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}

.pg-detail-body { padding: 40px 0 70px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.pg-detail-title { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.pg-detail-loc { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pg-detail-loc:hover { color: var(--blue); }
.pg-detail-h { font-size: 16px; font-weight: 800; color: var(--navy); margin: 28px 0 12px; }
.pg-detail-desc { font-size: 14px; color: var(--text); line-height: 1.75; }
.pg-amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-amenity-card { text-align: center; }
.pg-amenity-photo { height: 70px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(135deg, #E8EEF9, #C9D9F5); overflow: hidden; }
.pg-amenity-photo img, .pg-amenity-photo video { width: 100%; height: 100%; object-fit: cover; }
.pg-amenity-card span { font-size: 12px; font-weight: 700; color: var(--text); }

.pg-sidebar { background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; align-self: start; position: sticky; top: 90px; }
.pg-sidebar-price { font-size: 26px; font-weight: 800; color: var(--blue); }
.pg-sidebar-price span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pg-sidebar-sharing { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.pg-sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 20px 0 10px; }
.pg-sidebar-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.pg-sidebar-contact:hover { border-color: var(--blue); }
.pg-sidebar-contact-name { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.pg-sidebar-contact-role { display: block; font-size: 11px; color: var(--text-muted); }
.pg-sidebar-contact-num { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--blue); }
/* Address-only fallback (no coordinates on file) -- a plain decorative
   pin, never claiming to be a real map since there's nothing to plot. */
.pg-sidebar-map { display: block; height: 120px; border-radius: 10px; margin-top: 14px; background: repeating-linear-gradient(0deg, #EEF2F8, #EEF2F8 13px, #E4EAF3 13px, #E4EAF3 14px), repeating-linear-gradient(90deg, #EEF2F8, #EEF2F8 13px, #E4EAF3 13px, #E4EAF3 14px); border: 1px solid var(--border); position: relative; text-decoration: none; }
.pg-sidebar-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 24px; }
.pg-sidebar-map-hint { position: absolute; right: 8px; bottom: 8px; background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); font-size: 10.5px; font-weight: 700; color: var(--blue); text-decoration: none; }

/* Real map (coordinates on file) -- an actual Google Map, not a
   decorative placeholder. */
.pg-sidebar-map-wrap { position: relative; height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-top: 14px; }
.pg-sidebar-map-embed { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 900px) {
  .pg-detail-body { grid-template-columns: 1fr; }
  .pg-detail-gallery { height: 340px; }
  .pg-amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Google Play download badge -- standard black badge shape, alongside the
   hero's other CTAs. Uses the actual multi-color Play triangle, not a
   plain icon-font glyph, so it reads as the real store badge. */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px 10px 13px;
  text-decoration: none;
}
.play-badge:hover { background: #1a1a1a; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge .pb-small { font-size: 9.5px; color: #cfd3d9; }
.play-badge .pb-big { font-size: 15px; font-weight: 600; margin-top: 1px; }

/* Vino (wine shop app) button in the hero */
.vino-cta {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 20px;
  padding: 10px 16px 10px 10px; border-radius: 999px; text-decoration: none;
  background: rgba(122, 28, 52, 0.9); color: #fff; font-size: 14.5px;
  border: 1px solid rgba(255, 255, 255, 0.25); transition: transform .15s, background .15s;
}
.vino-cta:hover { background: #7a1c34; transform: translateY(-1px); }
.vino-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vino-cta-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.vino-cta-txt b { font-weight: 800; }
