/* ============================================
   ListedInFL.com — Design System
   Matches rem-ix.com: Bebas Neue + DM Sans
   Copper #C8A96E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream:      #F5F2ED;
  --cream-dark: #ECEAE5;
  --ink:        #1A1A1A;
  --ink-mid:    #4A4A4A;
  --ink-light:  #888888;
  --gold:       #C8A96E;
  --gold-dk:    #A8894E;
  --gold-pale:  #F2EAD8;
  --white:      #FFFFFF;
  --status-active:    #2D6A4F;
  --status-contract:  #9C6B1A;
  --status-sold:      #4A4A4A;
  --border:     rgba(26,26,26,0.1);
  --border-gold: rgba(200,169,110,0.3);

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  --max-w: 1280px;
  --page-pad: clamp(24px, 5vw, 80px);
  --section-gap: clamp(60px, 8vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.label-gold {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.section { padding: var(--section-gap) 0; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--page-pad);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1;
}
.nav-logo-name span { color: var(--gold-dk); }
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold-dk); }
.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 20px;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dk) !important; color: var(--white) !important; }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.status-active   { background: rgba(45,106,79,0.1);  color: var(--status-active); }
.status-contract { background: rgba(156,107,26,0.1); color: var(--status-contract); }
.status-sold     { background: rgba(74,67,59,0.1);   color: var(--status-sold); }

/* ── STATUS BANNER (listing page top) ── */
.status-banner {
  padding: 10px var(--page-pad);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  font-weight: 500;
}
.status-banner.active   { background: rgba(45,106,79,0.08);  color: var(--status-active); border-bottom: 1px solid rgba(45,106,79,0.15); }
.status-banner.contract { background: rgba(156,107,26,0.08); color: var(--status-contract); border-bottom: 1px solid rgba(156,107,26,0.15); }
.status-banner.sold     { background: rgba(74,67,59,0.06);   color: var(--status-sold); border-bottom: 1px solid var(--border); }

/* ── LISTING CARD ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.listing-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.listing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.88);
}
.listing-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.75);
}
.listing-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,0.85) 0%, rgba(28,25,22,0) 50%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.listing-card-status {
  position: absolute;
  top: 16px;
  left: 16px;
}
.listing-card-address {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}
.listing-card-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}
.listing-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.listing-card:hover .listing-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── AGENT CARD ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.agent-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(28,25,22,0.06);
}
.agent-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: var(--cream-dark);
  border: 2px solid var(--border-gold);
}
.agent-card-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-light);
}
.agent-card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.agent-card-brokerage {
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.agent-card-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.agent-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dk);
  background: var(--gold-pale);
  padding: 3px 10px;
}
.agent-card-listings {
  font-size: 12px;
  color: var(--ink-light);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.agent-card-listings strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── GOLD RULE ── */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.gold-rule-center { margin: 20px auto; }

/* ── FORM ── */
.form-field {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint {
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 6px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dk); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dk); color: var(--white); }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 56px var(--page-pad) 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
}
.footer-logo-name span { color: var(--gold); }
.footer-logo-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.footer-nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-nav-group h4 {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-nav-group a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-nav-group a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; }
.footer-remix {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-remix a {
  color: var(--gold);
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-remix a:hover { opacity: 0.8; }

/* ── PHOTO GALLERY ── */
.gallery-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2px;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  filter: brightness(0.85);
  transition: filter 0.2s;
}
.gallery-thumb:hover { filter: brightness(1); }

/* ── LISTING DETAIL ── */
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.listing-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  margin: 24px 0;
}
.listing-stat {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.listing-stat:last-child { border-right: none; }
.listing-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.listing-stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── SIDEBAR CARD ── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.filter-btn.active.status-filter-active   { background: var(--status-active); border-color: var(--status-active); }
.filter-btn.active.status-filter-contract { background: var(--status-contract); border-color: var(--status-contract); }
.filter-btn.active.status-filter-sold     { background: var(--status-sold); border-color: var(--status-sold); }

/* ── HERO BAND ── */
.hero-band {
  background: var(--ink);
  padding: clamp(60px, 8vw, 100px) var(--page-pad);
  text-align: center;
}
.hero-band .display-xl { color: var(--white); }
.hero-band .display-xl em { color: var(--gold); font-style: italic; }
.hero-band p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FEATURE TAGS ── */
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  color: var(--gold-dk);
  background: var(--gold-pale);
  padding: 5px 12px;
  font-weight: 500;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .listing-detail-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { gap: 32px; }
}
@media (max-width: 600px) {
  .listing-stats-row { flex-wrap: wrap; }
  .listing-stat { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .footer-top { flex-direction: column; }
}
