/* Real Estate page. Uses the colour variables from style.css */
body.estate-page { display: block; height: auto; }

.estate-page .lang-switch { position: static; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 2rem;
  background: rgba(17, 22, 30, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.topbar-brand em { font-style: normal; color: var(--gold); }
.topbar-mark { height: 2.4rem; width: auto;  }

.topbar-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar-nav a:hover { color: var(--gold); }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(rgba(14, 19, 27, 0.8), rgba(14, 19, 27, 0.8)), url("../assets/placeholder-estate.svg") center / cover;
}
.hero-inner { max-width: 42rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero p { color: var(--ink-soft); font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-solid { background: var(--gold); color: var(--on-gold); }
.btn-solid:hover { background: transparent; color: var(--gold); }
.btn-outline { color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--on-gold); }

/* Sections */
.section { padding: 5rem 1.5rem; max-width: 72rem; margin: 0 auto; text-align: center; }
.section-alt { max-width: none; background: var(--surface); }
.section-alt > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.section h2 { font-family: var(--serif); font-weight: normal; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.section h2::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin: 1rem auto 0; }
.section-lead { color: var(--ink-soft); margin: 1.2rem 0 2.5rem; }
.section-more { margin-top: 2.5rem; }

/* Property cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.8rem; text-align: left; }
.card {
  display: block;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-empty { background: transparent; border: 1px dashed var(--line); min-height: 18rem; }
.card.card-empty:hover { transform: none; box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: #232c39 url("../assets/placeholder-estate.svg") center / cover; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.3rem 0.8rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-gold); }
.badge-sale { background: var(--gold); }
.badge-rent { background: var(--ink); color: var(--bg); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body h3 { font-family: var(--serif); font-weight: normal; font-size: 1.25rem; margin-bottom: 0.3rem; }
.card-loc { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 0.8rem; color: var(--ink-soft); }
.card-meta strong { color: var(--gold); font-size: 1.1rem; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; margin-top: 3rem; text-align: left; }
.why-num { font-family: var(--serif); color: var(--gold); letter-spacing: 0.2em; }
.why-item h3 { font-family: var(--serif); font-weight: normal; font-size: 1.2rem; margin: 0.6rem 0; }
.why-item p { color: var(--ink-soft); line-height: 1.6; }

/* Contact */
.contact-cards { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  min-width: 16rem; padding: 1.6rem 2rem;
  background: var(--surface); border: 1px solid var(--gold-line);
  color: var(--ink); text-decoration: none;
  transition: background 0.3s ease;
}
.contact-card:hover { background: var(--surface-hover); }
.contact-label { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-card strong { font-family: var(--serif); font-weight: normal; font-size: 1.25rem; }

/* Footer */
.footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--gold-line); color: var(--ink-soft); font-size: 0.85rem; }
.footer-mark { height: 2.4rem; margin-bottom: 0.8rem;  }

@media (max-width: 700px) {
  .topbar { padding: 0.6rem 1rem; justify-content: center; }
  .topbar-nav { gap: 1rem; justify-content: center; }
  .section { padding: 3.5rem 1.2rem; }
}
