/* Skyline Realty — luxury real estate demo */
:root {
  --navy: #0c1a2e;
  --navy-2: #152a45;
  --gold: #c9a962;
  --gold-2: #dfc07a;
  --cream: #f7f4ef;
  --cream-2: #ebe5da;
  --text: #1a2838;
  --muted: #5c6b7a;
  --line: #d9d2c6;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(12, 26, 46, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.page {
  width: min(1180px, 94%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 26, 46, .94);
  border-bottom: 1px solid rgba(201, 169, 98, .2);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--white);
}

.logo-mark {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.logo-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav .active { color: var(--gold); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.header-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12,26,46,.92) 0%, rgba(12,26,46,.72) 48%, rgba(12,26,46,.35) 100%),
    url("https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: end;
}

.hero-copy { color: var(--white); }

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-2);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 480px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.hero-stats span {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.search-panel {
  background: var(--white);
  padding: 28px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.search-panel h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.search-grid label span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.search-grid select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  width: 100%;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,169,98,.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 16px;
  font-size: 13px;
}

.btn-sm { padding: 10px 16px; font-size: 13px; width: auto; }

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.trust-strip span::before {
  content: "◆ ";
  color: var(--gold);
  font-size: 8px;
  vertical-align: middle;
}

/* Sections */
.section { padding: 72px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
}

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.chip.active,
.chip:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(12,26,46,.06);
  transition: transform .2s, box-shadow .2s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-card[hidden] { display: none; }

.property-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.property-card:hover .property-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(12,26,46,.82);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

.badge-hot { background: var(--gold); color: var(--navy); }
.badge-new { background: #2d6a4f; }

.compare-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}

.property-card:hover .compare-btn,
.compare-btn.active { opacity: 1; }

.compare-btn.active {
  background: var(--navy);
  color: var(--gold);
}

.property-body { padding: 18px 20px 22px; }

.property-meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.property-body h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}

.property-specs {
  display: flex;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.property-specs li:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: var(--line);
}

.link-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.link-arrow:hover { color: var(--navy); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--muted);
}

/* Compare bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.2);
}

.compare-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.compare-inner strong { display: block; font-size: 14px; }
.compare-inner span { font-size: 12px; color: var(--gold); }

#compare-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

#compare-list li {
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  font-size: 12px;
}

.compare-clear {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

/* Map */
.map-section {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}

.map-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.map-copy h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
}

.map-copy p {
  margin: 0 0 24px;
  color: rgba(255,255,255,.7);
}

.map-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-a { background: var(--gold); }
.dot-b { background: #6ba3c7; }
.dot-c { background: #8fbc8f; }

.map-canvas {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: 8px;
  overflow: hidden;
  background:
  linear-gradient(180deg, rgba(21,42,69,.3), rgba(12,26,46,.85)),
  url("https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1000&q=80") center/cover;
  border: 1px solid rgba(201,169,98,.25);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: inherit;
}

.pin-a { background: var(--gold); color: var(--navy); }
.pin-b { background: #6ba3c7; color: var(--navy); }
.pin-c { background: #8fbc8f; color: var(--navy); }

.map-pin:hover { transform: translate(-50%, -100%) scale(1.05); }

.map-tooltip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  border-radius: 6px;
}

.map-tooltip strong { display: block; margin-bottom: 4px; }
.map-tooltip span { font-size: 13px; color: var(--muted); }

/* Tour */
.tour-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.tour-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}

.tour-featured { grid-row: span 1; }

.tour-viewer,
.video-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.tour-viewer img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  padding: 14px 24px;
  border: 2px solid var(--white);
  border-radius: 4px;
  background: rgba(12,26,46,.55);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.tour-viewer.touring .tour-play { display: none; }

.video-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}

.tour-info,
.tour-card h3 {
  padding: 16px 18px 20px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.tour-info p {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
}

.about-copy > p {
  margin: 0 0 28px;
  color: var(--muted);
}

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.value-list li span {
  flex-shrink: 0;
  width: 36px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.value-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.value-list p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.agent-panel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.agent-panel > img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.agent-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  background: rgba(255,255,255,.95);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.agent-card p {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.agent-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
}

.agent-card span {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Testimonial */
.testimonial {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0 auto 24px;
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
}

.person {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.person strong { display: block; color: var(--navy); }
.person span { font-size: 13px; color: var(--muted); }

/* Consult */
.consult {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}

.consult-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.consult-copy h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.consult-copy > p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.72);
}

.contact-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gold);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  color: var(--white);
}

.consult-form input::placeholder,
.consult-form textarea::placeholder { color: rgba(255,255,255,.45); }

.consult-form textarea {
  min-height: 96px;
  resize: vertical;
}

.consult-form .btn-gold { width: auto; align-self: flex-start; }

/* Footer */
.footer {
  background: #081220;
  color: rgba(255,255,255,.72);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p { margin: 14px 0 0; font-size: 14px; }

.footer h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

.footer a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner,
  .map-layout,
  .about-grid,
  .consult-inner { grid-template-columns: 1fr; }

  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(201,169,98,.2);
  }

  .main-nav.open { display: flex; }

  .header-cta { display: none; }

  .hero { min-height: auto; padding: 40px 0 56px; }

  .property-grid,
  .tour-grid { grid-template-columns: 1fr; }

  .tour-featured { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

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

  .trust-strip { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
