/* ===============================================================
   HavenGH — black & gold real estate theme
   Plain CSS, no framework. All custom properties live in :root.
   =============================================================== */

:root {
  /* Black & gold palette */
  --bg:             #0a0a0a;
  --bg-elev:        #131313;
  --card:           #181818;
  --card-hover:     #1f1f1f;
  --border:         rgba(212, 175, 55, 0.18);
  --border-strong:  rgba(212, 175, 55, 0.40);

  --gold:           #d4af37;     /* primary gold */
  --gold-light:     #e8c763;
  --gold-dark:      #a88828;
  --gold-soft:      rgba(212, 175, 55, 0.10);

  --ink:            #f5f1e6;     /* warm off-white */
  --ink-mute:       #b8b3a4;
  --ink-faint:      #7c7a72;

  --radius:         14px;
  --radius-sm:      10px;
  --shadow-lg:      0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow:         0 8px 24px -12px rgba(0, 0, 0, 0.6);

  --serif:          "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:           "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
img[loading] { background: var(--card); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* =============== Header =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0a0a;
}
.brand .brand-mark svg { width: 20px; height: 20px; }
.brand .brand-accent { color: var(--gold); }

.nav-links {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0a0a;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--card-hover); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* =============== Hero =============== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(500px, 70vh);
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}
@media (max-width: 480px) {
  .hero { min-height: 420px; padding: 4rem 0 2.5rem; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.55);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0.85) 100%);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-top: 0.75rem;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lead {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--ink-mute);
}

/* =============== Search bar =============== */
.search-bar {
  margin-top: 2.5rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .search-grid { grid-template-columns: repeat(5, 1fr); } }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.25rem;
}
.field select,
.field input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.search-bar .btn {
  align-self: end;
  height: 44px;
}

/* =============== Section heading =============== */
.section { margin-top: 5rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.25rem;
}
.section-head p { color: var(--ink-mute); margin: 0; }
.section-head a { color: var(--gold); font-size: 0.9rem; font-weight: 500; }
.section-head a:hover { color: var(--gold-light); }

/* =============== Property grid =============== */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .property-grid { grid-template-columns: 1fr 1fr 1fr; } }

.property-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.property-card .card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0e0e0e;
  overflow: hidden;
}
.property-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.property-card:hover .card-image img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-type {
  left: 0.85rem;
  background: rgba(10, 10, 10, 0.85);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}
/* Sold badge overrides the gold type badge with a red "Sold" label */
.badge-type.badge-sold {
  background: #c0392b;
  color: #fff;
  border-color: #e74c3c;
}

.sold-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-sm);
  color: #ff8b8b;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}
.badge-featured {
  right: 0.85rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0a0a;
}

.property-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.property-card .price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}
.property-card .title {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card .location {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--ink-mute);
}
.property-card .meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.property-card .meta .area { margin-left: auto; }
.property-card .meta svg { width: 16px; height: 16px; color: var(--gold); vertical-align: middle; margin-right: 0.3rem; }

/* =============== City tiles =============== */
.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 900px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
.city-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.city-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.city-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.city-tile:hover img { transform: scale(1.05); }
.city-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.1) 60%);
}
.city-tile .city-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.25rem;
}
.city-tile .city-label .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.city-tile .city-label .count { font-size: 0.85rem; color: var(--gold); }

/* =============== Why-us band =============== */
.band {
  margin-top: 6rem;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 880px) { .band-grid { grid-template-columns: 1fr 1fr; } }
.band h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.band ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.band li { display: flex; gap: 0.85rem; align-items: start; color: var(--ink-mute); }
.band li .check {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.band li .check svg { width: 12px; height: 12px; }
.band-image {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.band-image img { width: 100%; height: 100%; object-fit: cover; }

/* =============== Listings page =============== */
.page-head {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-head p { color: var(--ink-mute); margin: 0; }

.empty {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty h3 { color: var(--gold); margin-bottom: 0.5rem; }
.empty p { color: var(--ink-mute); margin: 0; }

/* =============== Property detail =============== */
.crumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 1.5rem 0;
}
.crumbs a:hover { color: var(--gold); }
.crumbs .current { color: var(--ink-mute); }
.crumbs .sep { color: var(--ink-faint); }

.detail-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .detail-head {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 2rem;
  }
}
.detail-head h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-top: 0.4rem;
  line-height: 1.15;
}
.detail-price-block {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
@media (min-width: 768px) {
  .detail-price-block {
    text-align: right;
    border-top: none;
    padding-top: 0;
  }
}
.detail-price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.1;
}
.detail-price .sub,
.detail-price-block .sub {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-weight: 400;
  margin-top: 0.4rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
}

.gallery {
  display: grid;
  gap: 0.75rem;
}
.gallery-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-thumbs { grid-template-columns: repeat(5, 1fr); } }
.gallery-thumbs button {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--card);
  transition: border-color 0.2s;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs button:hover { border-color: var(--border-strong); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat .value {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--serif);
  margin-top: 0.25rem;
  text-transform: capitalize;
}

.detail-section { margin-top: 2.5rem; }
.detail-section h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.detail-section p { color: var(--ink-mute); line-height: 1.7; }

/* Categorized photo gallery (under "Photos" on property detail) */
.photo-section { margin-top: 1.5rem; }
.photo-section:first-child { margin-top: 0; }
.photo-section-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-tile {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: var(--card);
  cursor: zoom-in;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.photo-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.photo-tile:hover img { transform: scale(1.05); }

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
@media (min-width: 640px) { .amenity-list { grid-template-columns: repeat(3, 1fr); } }
.amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink);
}
.amenity-list li .check {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}
.amenity-list li .check svg { width: 11px; height: 11px; }

.agent-card {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.agent-card .agent-label { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.agent-card .agent-name { font-family: var(--serif); font-size: 1.4rem; margin-top: 0.4rem; font-weight: 600; }
.agent-card .agent-role { color: var(--ink-mute); font-size: 0.9rem; }
.agent-card dl { margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; gap: 0.7rem; }
.agent-card dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.agent-card dt { color: var(--ink-mute); }
.agent-card dd { margin: 0; color: var(--gold); }
.agent-card dd a:hover { color: var(--gold-light); text-decoration: underline; }
.agent-card .btn { width: 100%; margin-top: 0.6rem; }

/* =============== Contact page =============== */
.contact-grid {
  display: grid;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.5rem;
}
.contact-info > p { color: var(--ink-mute); max-width: 40ch; margin-top: 1rem; }
.contact-list { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .label { color: var(--gold); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-row a:hover { color: var(--gold); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form .field input,
.contact-form .field textarea {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.contact-form .field label { color: var(--gold); }
.contact-form .legal { font-size: 0.78rem; color: var(--ink-faint); margin-top: -0.3rem; }

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 0.8rem;
}
.success .check-circle {
  width: 60px; height: 60px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
}
.success .check-circle svg { width: 28px; height: 28px; }
.success h2 { font-size: 1.6rem; }
.success p { color: var(--ink-mute); max-width: 40ch; }

/* =============== Footer =============== */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { font-size: 0.9rem; color: var(--ink-mute); transition: color 0.2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: 0.9rem; color: var(--ink-mute); margin: 1rem 0 0; }
.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

/* =============== Utilities =============== */
.flex { display: flex; }
.gap-3 { gap: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.text-mute { color: var(--ink-mute); }
.text-gold { color: var(--gold); }
.hidden { display: none !important; }

/* ===============================================================
   Mobile menu (hamburger)
   =============================================================== */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: var(--gold-soft); border-color: var(--gold); }
.menu-toggle svg { width: 22px; height: 22px; }

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobile-menu .close-btn svg { width: 22px; height: 22px; }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.mobile-menu a {
  display: block;
  padding: 1rem 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .menu-cta {
  margin-top: 2rem;
  display: block;
  text-align: center;
}

/* ===============================================================
   Floating WhatsApp button
   =============================================================== */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float .label { display: none; }
@media (min-width: 640px) {
  .wa-float .label { display: inline; }
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: 1px solid transparent;
}
.btn-wa:hover { background: #1fb858; }

/* ===============================================================
   Favorites heart
   =============================================================== */
.fav-btn {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.fav-btn:hover { background: var(--bg); color: var(--gold); transform: scale(1.05); }
.fav-btn svg { width: 18px; height: 18px; transition: fill 0.2s; }
.fav-btn.active { color: var(--gold); }
.fav-btn.active svg { fill: var(--gold); }

/* Bigger heart on the property detail page */
.fav-btn-lg {
  position: static;
  width: auto;
  height: auto;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.fav-btn-lg:hover { background: var(--gold-soft); color: var(--gold); transform: none; }

/* ===============================================================
   Image lightbox
   =============================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease-out;
}
.lightbox.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img-wrap {
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.15s;
}
.lightbox-btn:hover { background: var(--gold); color: #0a0a0a; }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-btn.prev { left: 1rem; }
.lightbox-btn.next { right: 1rem; }
@media (max-width: 480px) {
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-btn svg { width: 20px; height: 20px; }
  .lightbox-btn.prev { left: 0.5rem; }
  .lightbox-btn.next { right: 0.5rem; }
  .lightbox-btn.close { top: 0.75rem; right: 0.75rem; }
}
.lightbox-btn.close {
  top: 1.5rem;
  right: 1.5rem;
  transform: none;
}
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: rgba(10, 10, 10, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.gallery-main { cursor: zoom-in; position: relative; }
.gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.15), transparent 30%);
  pointer-events: none;
  border-radius: var(--radius);
}

/* ===============================================================
   Detail page action row (favorites + share + WA)
   =============================================================== */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ===============================================================
   Favorites page empty state
   =============================================================== */
.favorites-empty {
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.favorites-empty svg {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.favorites-empty h3 { color: var(--gold); font-size: 1.5rem; }
.favorites-empty p { color: var(--ink-mute); margin: 0.5rem 0 1.5rem; }

/* ===============================================================
   Admin panel
   =============================================================== */
.admin-body { background: var(--bg); }

.admin-pill {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}

/* Login screen */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--bg);
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}
.admin-login-card .brand { font-size: 1.3rem; }
.login-title { font-size: 1.6rem; margin-top: 0.4rem; }
.login-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Forms (shared by login + editor) */
.admin-form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.admin-form label { color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-form .req { color: var(--gold); margin-left: 0.15rem; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.admin-form .hint { font-size: 0.78rem; color: var(--ink-faint); margin: 0; }
.admin-form .checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}
.admin-form .checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.admin-form .checkbox-row span { color: var(--ink); }

.form-error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #ff8b8b;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Dashboard table */
.py-4 { padding-top: 2rem; padding-bottom: 4rem; }

.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 1.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
.admin-table th,
.admin-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th {
  background: var(--bg-elev);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(212, 175, 55, 0.04); }
.admin-table .row-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.admin-table .actions { text-align: right; white-space: nowrap; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .empty-cell { text-align: center; padding: 3rem 1rem; color: var(--ink-mute); }
.pill-tiny {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-left: 0.4rem;
}
.pill-sold {
  background: rgba(192, 57, 43, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(192, 57, 43, 0.3);
}
.pill-pending {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.btn-mini {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-left: 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-mini:hover { background: var(--gold-soft); color: var(--gold-light); }

.btn-back {
  background: none;
  border: none;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  cursor: pointer;
}
.btn-back:hover { color: var(--gold-light); }

.btn-danger {
  background: rgba(220, 38, 38, 0.15);
  color: #ff8b8b;
  border: 1px solid rgba(220, 38, 38, 0.4);
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.25); color: #fff; }

/* Editor form grid */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-col-full { grid-column: 1 / -1; }
}
.admin-grid .field { margin-bottom: 0; }

.admin-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.admin-actions .btn-danger { margin-right: auto; }

/* Photo uploader */
.photo-uploader {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.7rem 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.upload-btn:hover { background: var(--gold-soft); border-color: var(--gold); }

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}
.photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 10, 10, 0.85);
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.photo-remove:hover { background: #c0392b; color: white; }

/* ===============================================================
   Static pages (about, privacy, terms)
   =============================================================== */
.static-page { padding-top: 3rem; padding-bottom: 4rem; }
.static-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.4rem; }
.static-page h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.static-page p,
.static-page li { color: var(--ink-mute); line-height: 1.75; }
.static-page p { margin-top: 1rem; }
.static-page strong { color: var(--ink); }
.static-page ul { padding-left: 1.25rem; }
.static-page ul li { margin-top: 0.4rem; }
.static-page .updated { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.6rem; }
.static-page a { color: var(--gold); }
.static-page a:hover { color: var(--gold-light); text-decoration: underline; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 720px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.about-stats .stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.about-stats .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.about-stats .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.4rem; }

/* ===============================================================
   404 page
   =============================================================== */
.not-found-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.not-found-page .big-404 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}
.not-found-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 0.5rem;
}
.not-found-page .lead {
  color: var(--ink-mute);
  max-width: 38ch;
  margin-top: 1rem;
  line-height: 1.7;
}
.not-found-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===============================================================
   Mobile responsive overrides
   =============================================================== */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  .hero h1 { max-width: 100%; }
  .hero p.lead { max-width: 100%; font-size: 0.95rem; }

  .search-bar { padding: 0.75rem; margin-left: 0; margin-right: 0; }
  .search-bar .btn { width: 100%; }

  .city-grid { grid-template-columns: 1fr; gap: 0.875rem; }

  .section { margin-top: 3.5rem; }
  .section-head { flex-direction: column; align-items: start; gap: 0.5rem; }

  .band { margin-top: 4rem; padding: 2.5rem 0; }
  .band-image { aspect-ratio: 4/3; }

  .contact-grid { gap: 2rem; }
  .contact-info h1 { margin-top: 0; }
  .contact-form { padding: 1.5rem; }
  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; }

  .detail-head { padding: 1.25rem; }
  .detail-price-block { text-align: left; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  .agent-card { position: static; margin-top: 1.5rem; }

  .crumbs { font-size: 0.78rem; flex-wrap: wrap; }

  .page-head { padding: 2rem 0 1rem; }

  .site-footer { margin-top: 4rem; }
  .footer-grid { gap: 0; padding-top: 2rem; padding-bottom: 2rem; }
  .footer-grid > div { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
  .footer-grid > div:last-child { border-bottom: none; }
  .site-footer h4 { margin-bottom: 0.75rem; }
  .site-footer p { margin-top: 0.75rem; }
  .copyright { line-height: 1.5; }

  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }

  .property-card .card-image { aspect-ratio: 4 / 3; }
  .property-card .meta { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .property-grid { gap: 1rem; }
  .property-card .card-body { padding: 1rem; }
  .property-card .price { font-size: 1.2rem; }
  .property-card .meta { font-size: 0.78rem; gap: 0.75rem; }

  .photo-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .photo-section-title { font-size: 0.72rem; }

  .amenity-list { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .amenity-list li { padding: 0.55rem 0.7rem; font-size: 0.82rem; }

  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; justify-content: center; }

  .contact-form .btn-primary { width: 100%; justify-content: center; }

  .not-found-actions .btn { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stats .stat-box { padding: 1rem; }
  .about-stats .num { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 0.85rem; }
  .copyright { padding: 1.25rem 0.85rem; }
  .admin-login { padding: 1.5rem 0.85rem; }

  .city-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
}

