/* ═══════════════════════════════════════════
   Kehely utca 16 — Ingatlan weboldal
   Design: Világos editorial, mediterrán kertváros
   Fonts: Libre Baskerville + Plus Jakarta Sans
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --white:      #FEFEFC;
  --cream:      #F5F0E8;
  --cream-dark: #EDE6D9;
  --sand:       #D9CFC0;
  --terra:      #C05A3A;    /* primary accent — terracotta */
  --terra-light:#E8896E;
  --terra-pale: #F7EAE5;
  --olive:      #5A6B44;    /* secondary — olive green */
  --olive-light:#8FA070;
  --olive-pale: #EDF0E8;
  --charcoal:   #1C1C1C;
  --dark:       #2E2A26;
  --mid:        #6B6358;
  --light:      #A09890;
  --rule:       rgba(28,28,28,0.10);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography scale ── */
.display {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--terra); }

h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 em { font-style: italic; color: var(--terra); }

h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--terra);
  flex-shrink: 0;
}

p.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--mid);
  max-width: 640px;
}

/* ── Layout ── */
.container { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--flush { padding: 0; }

/* ── Sticky Bar ── */
#sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(253,253,251,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  height: 60px;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
#sticky.visible { transform: translateY(0); }
#sticky .inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sticky-address {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-params {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.sticky-param {
  padding: 0 20px;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.sticky-param:first-child { border-left: 1px solid var(--rule); }
.sticky-param .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.sticky-param .lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 2px;
}
.sticky-cta {
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.sticky-cta:hover { background: var(--terra-light); }

/* ── Hero ── */
#hero {
  min-height: 100svh;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 56px 80px 48px;
  position: relative;
  z-index: 2;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-photo-main {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-main.placeholder {
  background: linear-gradient(135deg, #c8d8b0 0%, #a8c490 30%, #d4c8a0 70%, #e8d8b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}
.hero-photo-main.placeholder svg { opacity: 0.5; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--olive-pale);
  border: 1px solid rgba(90,107,68,0.25);
  color: var(--olive);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  align-self: flex-start;
}
.hero-title { margin-bottom: 32px; }
.hero-price-block { margin-bottom: 48px; }
.hero-price {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-price-sub {
  font-size: 14px;
  color: var(--mid);
  margin-top: 6px;
}
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.hero-stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--rule);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat .num {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
}
.hero-stat .unit { font-size: 13px; color: var(--mid); margin-top: 3px; }
.hero-photo-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: rgba(0,0,0,0.2);
}
.strip-photo {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.strip-photo img, .strip-photo .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.strip-photo:hover img, .strip-photo:hover .ph { transform: scale(1.06); }
.strip-photo:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }
.strip-photo .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.ph-1 { background: linear-gradient(135deg,#a8905870,#c8a87050); }
.ph-2 { background: linear-gradient(135deg,#90a87850,#a0b88050); }
.ph-3 { background: linear-gradient(135deg,#b8907050,#c8a06050); }
.ph-4 { background: linear-gradient(135deg,#a0985050,#b8b07050); }
.strip-label {
  position: absolute; bottom: 6px; left: 8px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Protected Contact Info ── */
.contact-reveal {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.contact-reveal .cl-val {
  color: var(--terra);
  font-weight: 600;
  transition: color 0.2s;
}
.contact-reveal:hover .cl-val {
  color: var(--terra-light);
}
.contact-reveal.revealed .cl-val {
  color: var(--charcoal);
}

/* ── Params Grid ── */
#params {
  background: var(--charcoal);
  padding: 0;
}
.params-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.param-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s;
}
.param-item:last-child { border-right: none; }
.param-item:hover { background: rgba(255,255,255,0.04); }
.param-icon {
  font-size: 22px;
  margin-bottom: 12px;
  opacity: 0.75;
}
.param-val {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.param-unit { font-size: 14px; color: rgba(255,255,255,0.45); }
.param-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-top: 7px;
}

/* ── Description ── */
#description {
  background: var(--white);
}
.desc-inner {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: start;
}
.desc-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
}
.desc-text p { margin-bottom: 20px; }
.desc-text strong { color: var(--charcoal); font-weight: 600; }
.desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.dtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}
.dtag:hover { border-color: var(--terra); background: var(--terra-pale); }
.dtag .ti { font-size: 15px; }
.detail-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.detail-card-head {
  background: var(--terra);
  padding: 20px 24px;
  color: #fff;
}
.detail-card-head h3 { color: #fff; font-size: 18px; }
.detail-card-head p { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.detail-rows { padding: 8px 0; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.dr-key { color: var(--mid); font-weight: 400; }
.dr-val { color: var(--charcoal); font-weight: 600; text-align: right; }
.dr-val.good { color: var(--olive); }

/* ── Map ── */
#map-section { background: var(--cream); }
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.map-toggle {
  display: flex;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  overflow: hidden;
}
.map-btn {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.map-btn.active { background: var(--terra); color: #fff; }
.map-btn:not(.active) { background: transparent; color: var(--mid); }
.map-btn:not(.active):hover { background: var(--cream-dark); }
.map-frame-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 440px;
  border: 1px solid var(--sand);
  transition: opacity 0.3s;
}
.map-frame-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.map-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── POI Grid ── */
#poi { background: var(--cream); padding-top: 0; }
.poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.poi-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.poi-card:hover {
  border-color: var(--terra);
  box-shadow: 0 4px 16px rgba(192,90,58,0.10);
  transform: translateY(-2px);
}
.poi-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ic-blue   { background: #EEF4FF; }
.ic-green  { background: #EEF5EE; }
.ic-orange { background: #FFF4EE; }
.ic-purple { background: #F5EEFF; }
.ic-red    { background: #FFF0EE; }
.ic-teal   { background: #EEF8F8; }
.poi-name { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.2; }
.poi-dist { font-size: 12px; color: var(--mid); margin-top: 3px; }
.poi-time { font-size: 11px; font-weight: 700; color: var(--terra); margin-top: 3px; letter-spacing: 0.04em; }

/* ── Room Visualizer ── */
#visualizer { background: var(--white); }
.viz-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cream-dark);
  margin: 36px 0 32px;
}
.viz-tab {
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.viz-tab.active { color: var(--terra); border-bottom-color: var(--terra); }
.viz-tab:hover:not(.active) { color: var(--mid); }
.viz-panel { display: none; }
.viz-panel.active { display: block; }
.viz-comparison {
  position: relative;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sand);
}
.viz-images {
  position: relative;
  width: 100%;
  height: 100%;
}
.viz-before, .viz-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viz-after {
  clip-path: inset(0 50% 0 0);
}
.viz-slider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 4px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  z-index: 10;
}
.viz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid var(--terra);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.viz-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid var(--terra);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.viz-labels {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}
.viz-label {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--rule);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
  color: var(--dark);
}
.viz-label-after {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--terra);
  color: var(--terra);
}
.viz-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.viz-fact {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 14px 16px;
}
.vf-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); }
.vf-val { font-family: 'Libre Baskerville', serif; font-size: 20px; color: var(--dark); margin-top: 3px; }

/* ── Comparison Table ── */
#comparison { background: var(--cream); }
.compare-wrap {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--white);
}
.compare-scroll { overflow-x: auto; }
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}
.compare-table thead tr {
  background: var(--charcoal);
  color: #fff;
}
.compare-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.compare-table th:last-child { border-right: none; }
.compare-table th.this-col { background: var(--terra); }
.compare-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--cream); }
.compare-table td {
  padding: 13px 18px;
  border-right: 1px solid var(--rule);
  color: var(--dark);
  white-space: nowrap;
}
.compare-table td:last-child { border-right: none; }
.compare-table td.this-col {
  background: rgba(192,90,58,0.05);
  font-weight: 700;
  color: var(--terra);
}
.compare-table .row-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--cream);
}
.tag-best {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 5px;
  vertical-align: middle;
}
.tag-avg {
  display: inline-block;
  background: #E8B84B;
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 5px;
  vertical-align: middle;
}
.tag-bad {
  display: inline-block;
  background: #d46a50;
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 5px;
  vertical-align: middle;
}
.market-bar {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.market-item { text-align: center; }
.market-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); }
.market-val { font-family: 'Libre Baskerville', serif; font-size: 24px; color: var(--dark); margin-top: 4px; }
.market-val.highlight { color: var(--terra); }
.market-sep { width: 1px; height: 40px; background: var(--sand); flex-shrink: 0; }
.market-note { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ── Calculators ── */
#calculators { background: var(--white); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.calc-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 12px;
  overflow: hidden;
}
.calc-card-head {
  background: var(--dark);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.calc-card-head .ch-icon { font-size: 26px; }
.calc-card-head .ch-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 400;
}
.calc-body { padding: 28px; }
.calc-field { margin-bottom: 18px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 9px;
}
.calc-label .cv { color: var(--terra); font-weight: 700; font-size: 13px; }
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--terra) var(--pct,0%), var(--sand) var(--pct,0%));
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--terra);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(192,90,58,0.35);
  cursor: pointer;
}
.calc-result {
  background: var(--charcoal);
  border-radius: 8px;
  padding: 22px;
  margin-top: 20px;
}
.calc-res-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.calc-res-val {
  font-family: 'Libre Baskerville', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--terra-light);
  line-height: 1;
}
.calc-res-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }
.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.cb-item {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 10px 12px;
}
.cb-label { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cb-val { font-size: 15px; font-weight: 700; color: #fff; margin-top: 3px; }
.calc-disclaimer {
  font-size: 11px;
  color: var(--light);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* ── Business Card / Contact ── */
#contact { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-text h2 { margin-bottom: 20px; }
.contact-text p { font-size: 16px; color: var(--mid); line-height: 1.75; margin-bottom: 16px; }
.listing-meta {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 32px;
}
.lm-item .lm-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light);
}
.lm-item .lm-val { font-size: 14px; font-weight: 600; color: var(--mid); margin-top: 2px; }

.agent-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,28,28,0.08);
}
.agent-card-top {
  background: linear-gradient(135deg, var(--terra) 0%, #a04828 100%);
  padding: 36px 36px 32px;
  color: #fff;
  position: relative;
}
.agent-card-top::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 24px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
}
.agent-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.agent-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
}
.agent-role { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.agent-card-body { padding: 12px 36px 36px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { opacity: 0.75; }
.cl-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cl-icon.phone { background: var(--terra-pale); }
.cl-icon.email { background: var(--olive-pale); }
.cl-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light); }
.cl-val { font-size: 16px; font-weight: 600; color: var(--dark); margin-top: 2px; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  padding: 40px 0;
  border-top: 3px solid var(--terra);
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  color: var(--terra-light);
}
.footer-brand small { display: block; font-size: 11px; color: rgba(255,255,255,0.3); font-family: 'Plus Jakarta Sans', sans-serif; margin-top: 3px; font-style: normal; letter-spacing: 0.06em; }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; line-height: 1.7; }

/* ── Floor Plans ── */
.floorplans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.floorplan-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--cream);
}
.floorplan-item img {
  width: 100%;
  height: auto;
  display: block;
}
.floorplan-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--dark);
}

/* ── Hero Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Scroll anchor offset (accounts for sticky bar) ── */
section[id], #poi { scroll-margin-top: 68px; }

/* ── Touch optimizations ── */
button, .viz-tab, .strip-photo, .contact-reveal, .map-btn, .dtag, .poi-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Responsive ── */

/* Tablet / small desktop */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 80px 32px 48px; }
  .hero-right { min-height: 420px; }
  .params-grid { grid-template-columns: repeat(3, 1fr); }
  .desc-inner { grid-template-columns: 1fr; gap: 40px; }
  .detail-card { position: static; }
  .calc-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 13px; }
}

/* Mobile landscape / large phones */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }

  /* Hero */
  .hero-left { padding: 52px 20px 36px; }
  .hero-right { min-height: 360px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; }
  .hero-photo-strip { height: 120px; }

  /* Params */
  .params-grid { grid-template-columns: repeat(2, 1fr); }
  .param-item { padding: 24px 20px; }
  .param-val { font-size: 22px; }

  /* Sticky */
  .sticky-params { display: none; }

  /* Map */
  .map-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .map-frame-wrap { height: 340px; }
  .map-btn { padding: 11px 18px; min-height: 44px; }

  /* Visualizer */
  .viz-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .viz-tabs::-webkit-scrollbar { display: none; }
  .viz-tab { white-space: nowrap; flex-shrink: 0; padding: 13px 22px; min-height: 44px; }
  .viz-comparison { height: 320px; }
  .viz-facts { grid-template-columns: repeat(2, 1fr); }

  /* Market comparison */
  .market-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
  .market-sep { width: 32px; height: 1px; }
  .market-val { font-size: 20px; }

  /* POI */
  .poi-grid { grid-template-columns: 1fr 1fr; }

  /* Floor plans */
  .floorplans-grid { grid-template-columns: 1fr; }

  /* Calculators */
  .calc-res-val { font-size: 30px; }

  /* Contact */
  .listing-meta { flex-wrap: wrap; gap: 16px; }
  .agent-card-top { padding: 28px 24px 24px; }
  .agent-card-body { padding: 8px 24px 28px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-note { text-align: center; }
}

/* iPhone SE / small phones (375px and below) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }

  /* Hero — tighten everything */
  .hero-left { padding: 40px 16px 28px; }
  .hero-right { min-height: 280px; }
  .hero-photo-strip { height: 100px; }
  .hero-badge { font-size: 10px; margin-bottom: 16px; }
  .display { font-size: 42px; }
  .hero-title { margin-bottom: 20px; }
  .hero-price { font-size: 28px; }
  .hero-price-block { margin-bottom: 28px; }
  .hero-price-sub { font-size: 12px; }
  .hero-stats { padding-top: 20px; }

  /* Params */
  .params-grid { grid-template-columns: 1fr 1fr; }
  .param-item { padding: 20px 16px; }
  .param-val { font-size: 20px; }
  .param-label { font-size: 10px; }

  /* Map */
  .map-frame-wrap { height: 280px; }

  /* Visualizer */
  .viz-comparison { height: 240px; }
  .viz-tab { padding: 12px 18px; font-size: 12px; }
  .vf-val { font-size: 17px; }

  /* POI */
  .poi-grid { grid-template-columns: 1fr; }

  /* Market */
  .market-bar { padding: 18px 20px; }
  .market-val { font-size: 18px; }

  /* Calculators */
  .calc-body { padding: 20px; }
  .calc-res-val { font-size: 26px; }
  .cb-label { font-size: 9px; }
  .cb-val { font-size: 13px; }

  /* Contact card */
  .agent-card-top { padding: 24px 20px 20px; }
  .agent-card-body { padding: 8px 20px 24px; }
  .agent-name { font-size: 22px; }
  .contact-link { gap: 10px; padding: 14px 0; }
  .cl-icon { width: 38px; height: 38px; font-size: 18px; }
  .cl-val { font-size: 14px; }

  /* Tables */
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 12px; }
}
