/* ============================
   NUSANTARA REALTY — style.css
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --nav-height: 10px;
  --green: #2D5016;
  --green-mid: #4A7C28;
  --green-light: #7AAF52;
  --green-pale: #EFF5E8;
  --cream: #FAF7F0;
  --cream-dark: #F0EBE0;
  --charcoal: #1E2420;
  --charcoal-mid: #3A4240;
  --gray: #6B7B72;
  --gray-light: #D4DDD6;
  --white: #FFFFFF;
  --gold: #B8952A;
  --gold-pale: #FEF8EA;
  --shadow-sm: 0 1px 4px rgba(30, 36, 32, 0.07);
  --shadow-md: 0 4px 20px rgba(30, 36, 32, 0.10);
  --shadow-lg: 0 12px 40px rgba(30, 36, 32, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 66px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-light);
  border-radius: 3px;
}

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-light);
  height: 66px;
  transition: all .3s ease;
}

.nav.scrolled {
  background: rgba(250, 247, 240, 0.95) !important;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-logo-tagline {
  font-size: 11px;
  color: var(--gray);
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-mid);
  cursor: pointer;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--green-pale);
  color: var(--green);
}

.nav-cta {
  padding: 9px 20px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 66px 0 0;
  background: var(--cream);
  z-index: 199;
  padding: 24px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  width: 100%;
  text-align: left;
  font-size: 16px;
  padding: 13px 16px;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 80, 22, .25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: none;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--green-pale);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: none;
  color: var(--gray);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-sale {
  background: var(--green-pale);
  color: var(--green);
}

.badge-rent {
  background: var(--gold-pale);
  color: #8A6200;
}

.badge-new {
  background: #E8F4FF;
  color: #0055AA;
}

.badge-hot {
  background: #FFEAE8;
  color: #BB3300;
}

.badge-type {
  background: var(--cream-dark);
  color: var(--charcoal-mid);
}

/* ══════════════════════════════
   PROPERTY CARD
══════════════════════════════ */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.prop-thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-thumb-icon {
  font-size: 64px;
  opacity: .28;
}

.prop-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 30, 22, .55) 100%);
}

.prop-thumb-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prop-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
  transition: var(--transition);
  z-index: 2;
}

.prop-fav-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.prop-fav-btn.active {
  color: #e04040;
}

.prop-price-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--charcoal);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
}

.prop-body {
  padding: 16px 18px;
}

.prop-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  line-height: 1.3;
}

.prop-loc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prop-specs {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.prop-spec {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════
   SECTION LAYOUT
══════════════════════════════ */
.section {
  padding: 68px 24px;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--charcoal);
}

.section-sub {
  font-size: 15px;
  color: var(--gray);
  margin-top: 6px;
}

.see-all-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-all-btn:hover {
  text-decoration: underline;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .65);
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  margin-top: 12px;
}

.footer-col h4 {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--green);
  color: #fff;
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--charcoal);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  max-width: 320px;
  border-left: 4px solid transparent;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left-color: var(--green-light);
}

.toast.error {
  border-left-color: #e05050;
}

.toast.info {
  border-left-color: var(--gold);
}

/* ══════════════════════════════
   FAV COUNTER BADGE
══════════════════════════════ */
.fav-count-badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e04040;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.fav-count-badge.visible {
  display: flex;
}

/* ══════════════════════════════
   MAP EMBED WRAPPER
══════════════════════════════ */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  height: 340px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ══════════════════════════════
   FORM FIELDS
══════════════════════════════ */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color .18s;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--green);
}

.field-textarea {
  resize: vertical;
  min-height: 90px;
}

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

/* ══════════════════════════════
   HERO
══════════════════════════════ */

/*
 * ╔══════════════════════════════════════════════════════╗
 * ║  FOTO HERO BANNER (halaman Beranda)                  ║
 * ╠══════════════════════════════════════════════════════╣
 * ║  Taruh foto di:                                      ║
 * ║    assets/images/hero/hero-home.jpg                  ║
 * ║  Ukuran ideal: 1440×600px ke atas (landscape)        ║
 * ║                                                      ║
 * ║  Cara ganti foto:                                    ║
 * ║  1. Ganti path di --hero-bg-image di bawah ini       ║
 * ║  2. Atau langsung ganti file fotonya saja            ║
 * ║     dengan nama hero-home.jpg                        ║
 * ║                                                      ║
 * ║  Kalau belum ada foto → otomatis pakai gradient      ║
 * ╚══════════════════════════════════════════════════════╝
 */

:root {
  /* ── GANTI PATH FOTO DI SINI ── */
  --hero-bg-image: url('../assets/images/hero/hero-home.webp');

  /* Opacity overlay gelap di atas foto (0 = transparan, 1 = hitam penuh) */
  /* Naikkan angka ini kalau teks susah dibaca, turunkan kalau foto terlalu gelap */
  --hero-overlay-opacity: 0.58;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--hero-bg-image, none) center/cover no-repeat,
    linear-gradient(135deg, var(--charcoal) 0%, #1a3a10 60%, var(--green) 100%);
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 72px 24px 60px;
}

.hero::before {
  /* Overlay gelap biar teks tetap terbaca di atas foto */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity));
  z-index: 0;
}

.hero-inner {
  z-index: 1;
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 56px);
  color: #fff;
  font-weight: 700;
  max-width: 640px;
  margin-bottom: 18px;
}

.hero h1 em {
  color: #A8D878;
  font-style: normal;
}

.hero-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #A8D878;
  display: block;
}

.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

/* search bar */
.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  max-width: 720px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.search-field {
  flex: 1;
  min-width: 130px;
}

.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

/* ══════════════════════════════
   LOCATION CARDS
══════════════════════════════ */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.loc-card {
  border-radius: var(--radius-lg);
  height: 150px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.loc-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.loc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, .6) 100%);
}

.loc-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 1;
}

.loc-card-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.loc-card-count {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin-top: 2px;
}

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--gray-light);
  cursor: default;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
}

/* ══════════════════════════════
   LISTINGS FILTER PAGE
══════════════════════════════ */
.listings-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.filter-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-light);
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  cursor: pointer;
}

.filter-option input[type=checkbox],
.filter-option input[type=radio] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.filter-option label {
  font-size: 14px;
  color: var(--charcoal-mid);
  cursor: pointer;
}

.range-row {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.range-row input {
  flex: 1;
  min-width: 0;
  width: 0;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  font-size: 13px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.range-row span{
  flex-shrink: 0;
}

.range-row input:focus {
  border-color: var(--green);
}

.bed-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.bed-btn {
  padding: 6px 13px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: none;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal-mid);
  cursor: pointer;
  transition: var(--transition);
}

.bed-btn.active,
.bed-btn:hover {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--gray);
}

.results-count strong {
  color: var(--charcoal);
}

.sort-sel {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  cursor: pointer;
}

/* ══════════════════════════════
   DETAIL PAGE
══════════════════════════════ */
.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--green);
  cursor: pointer;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 260px 130px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.gallery-main {
  grid-row: span 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-expand-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-loc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Playfair Display', serif;
  margin-bottom: 26px;
}

.detail-price span {
  font-size: 15px;
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.spec-item {
  text-align: center;
}

.spec-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.spec-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  display: block;
  font-family: 'Playfair Display', serif;
}

.spec-lbl {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  margin-top: 28px;
}

.detail-desc {
  font-size: 15px;
  color: var(--charcoal-mid);
  line-height: 1.75;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--charcoal-mid);
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  font-weight: 700;
}

.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  padding: 26px;
  position: sticky;
  top: 82px;
}

.agent-header {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}

.agent-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}

.agent-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

.agent-role {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.agent-rating {
  color: var(--gold);
  font-size: 12px;
  margin-top: 3px;
}

.agent-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 18px;
}

.agent-stat {
  text-align: center;
  flex: 1;
  padding: 13px 0;
  border-right: 1px solid var(--gray-light);
}

.agent-stat:last-child {
  border-right: none;
}

.agent-stat .n {
  font-size: 19px;
  font-weight: 700;
  color: var(--charcoal);
  font-family: 'Playfair Display', serif;
}

.agent-stat .l {
  font-size: 11px;
  color: var(--gray);
}

.contact-form-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.contact-field {
  margin-bottom: 12px;
}

.contact-field label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: border-color .18s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--green);
}

.contact-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ══════════════════════════════
   BLOG
══════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.blog-thumb {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-thumb-icon {
  font-size: 56px;
  opacity: .25;
}

.blog-cat-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green);
  color: #fff;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-body {
  padding: 20px 22px;
}

.blog-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  margin-bottom: 48px;
  cursor: pointer;
  transition: var(--transition);
}

.blog-featured:hover {
  box-shadow: var(--shadow-md);
}

.blog-featured-thumb {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green);
  margin-bottom: 12px;
}

.blog-featured-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--charcoal);
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  margin-bottom: 14px;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Blog detail */
.blog-detail-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-detail-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
}

.blog-detail-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--charcoal);
  font-family: 'Playfair Display', serif;
  margin-bottom: 14px;
  line-height: 1.25;
}

.blog-detail-meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.blog-detail-content p {
  font-size: 16px;
  color: var(--charcoal-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-detail-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 32px 0 14px;
}

.blog-detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 24px 0 10px;
}

.blog-detail-content ul,
.blog-detail-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.blog-detail-content li {
  font-size: 15px;
  color: var(--charcoal-mid);
  line-height: 1.7;
  margin-bottom: 6px;
}

.blog-detail-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 16px;
  color: var(--charcoal);
  font-style: italic;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-hero {
  background: linear-gradient(135deg, var(--charcoal), #1a3a10 60%, var(--green));
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero h1 {
  font-size: clamp(26px, 5vw, 48px);
  color: #fff;
  max-width: 640px;
  margin: 0 auto 16px;
}

.about-hero p {
  color: rgba(255, 255, 255, .65);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  text-align: center;
  padding-bottom: 22px;
  transition: var(--transition);
}

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

.team-photo {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  padding: 14px 14px 4px;
  font-family: 'Playfair Display', serif;
}

.team-role {
  font-size: 13px;
  color: var(--gray);
  padding: 0 14px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.value-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  border: 1px solid rgba(74, 124, 40, .15);
}

.value-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.value-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.value-desc {
  font-size: 14px;
  color: var(--charcoal-mid);
  line-height: 1.55;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}

.stat-block {
  text-align: center;
}

.stat-block .big {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--green);
  display: block;
  line-height: 1;
}

.stat-block .lbl {
  font-size: 14px;
  color: var(--gray);
  margin-top: 6px;
}

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info>p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.contact-detail p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  padding: 34px;
}

.contact-form-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ══════════════════════════════
   FAVORITES PAGE
══════════════════════════════ */
.favorites-hero {
  background: var(--charcoal);
  padding: 40px 24px;
}

.favorites-hero h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  max-width: 1240px;
  margin: 0 auto;
}

.favorites-hero p {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  max-width: 1240px;
  margin: 4px auto 0;
}

.empty-state {
  text-align: center;
  padding: 72px 24px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 18px;
}

.empty-state-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.empty-state-desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ══════════════════════════════
   CTA BAND
══════════════════════════════ */
.cta-band {
  background: var(--charcoal);
  padding: 72px 24px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.cta-band h2 em {
  color: #A8D878;
  font-style: normal;
}

.cta-band p {
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listings-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
    height: 260px;
  }

  .gallery-thumb {
    display: none;
  }

  .gallery-main {
    grid-row: 1;
  }

  .features-list {
    grid-template-columns: 1fr 1fr;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-thumb {
    min-height: 220px;
  }
}

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

  .hamburger {
    display: flex;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-stats {
    gap: 20px;
  }

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

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

  .features-list {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 36px 20px;
  }

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