/* ==========================================================
   Domus Toscana Real Estate — Stylesheet
   Palette: verde scuro #1F4E3D | oro #C9A961 | grigio caldo #F5F2ED | nero #1A1A1A
   Font: Playfair Display (titoli) + Inter (testo)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1F4E3D;
  --green-dark:   #163829;
  --green-light:  #2a6b55;
  --gold:         #C9A961;
  --gold-hover:   #b8943f;
  --gold-light:   #e8d5a3;
  --warm-bg:      #F5F2ED;
  --warm-card:    #FDFBF8;
  --warm-border:  #E8E3D8;
  --black:        #1A1A1A;
  --text-muted:   #6B6457;
  --text-light:   #9C9180;
  --white:        #FFFFFF;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:    0 2px 8px rgba(26,26,26,0.08);
  --shadow-md:    0 4px 16px rgba(26,26,26,0.12);
  --shadow-lg:    0 12px 32px rgba(26,26,26,0.16);
  --shadow-xl:    0 24px 64px rgba(26,26,26,0.20);

  --radius:       4px;
  --container:    1200px;
  --transition:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--warm-bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.nav-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,169,97,0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--green);
}
.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 9px 18px;
}

/* ==========================================================
   HERO (HOME)
   ========================================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1523217582562-09d0def993a6?w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 640px;
}

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

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Search Bar */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 700px;
  box-shadow: var(--shadow-xl);
}

.search-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-right: 1px solid var(--warm-border);
}

.search-field:last-of-type { border-right: none; }

.search-field label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.search-field select,
.search-field input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.search-bar .btn {
  white-space: nowrap;
}

/* ==========================================================
   SECTION HEADERS
   ========================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================
   PROPERTY CARDS
   ========================================================== */
.properties-section {
  padding: 88px 0;
  background: var(--warm-bg);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

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

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

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--green);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.card-badge.affitto {
  background: var(--green);
  color: var(--white);
}

.card-energy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--black);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius);
}

.card-energy.A { background: #1a7a2e; }
.card-energy.B { background: #4a9e2f; }
.card-energy.C { background: #a0c030; color: var(--black); }
.card-energy.D { background: #e0c020; color: var(--black); }
.card-energy.E { background: #e07820; }
.card-energy.F { background: #e04020; }

.card-body {
  padding: 20px;
}

.card-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.card-price span {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-location::before {
  content: '📍';
  font-size: 0.8rem;
}

.card-features {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--warm-border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-feature {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}

/* ==========================================================
   SERVICES SECTION
   ========================================================== */
.services-section {
  padding: 88px 0;
  background: var(--green);
}

.services-section .section-header h2 { color: var(--white); }
.services-section .section-eyebrow { color: var(--gold); }
.services-section .section-header p { color: rgba(255,255,255,0.7); }

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

.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: background var(--transition), transform var(--transition);
}

.service-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-link:hover { gap: 10px; }

/* ==========================================================
   STATS / WHY US
   ========================================================== */
.stats-section {
  padding: 88px 0;
  background: var(--warm-card);
  border-top: 1px solid var(--warm-border);
  border-bottom: 1px solid var(--warm-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--gold);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  padding: 88px 0;
  background: var(--warm-bg);
  text-align: center;
}

.cta-box {
  background: var(--green);
  border-radius: var(--radius);
  padding: 64px 40px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--gold);
  opacity: 0.08;
  border-radius: 50%;
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================
   PAGE HERO (interni)
   ========================================================== */
.page-hero {
  background: var(--green);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ==========================================================
   LISTING LAYOUT (vendita/affitto)
   ========================================================== */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 56px 0;
  align-items: start;
}

/* Sidebar Filters */
.filters-sidebar {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.filters-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--black);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.filter-checkbox:hover { background: var(--warm-bg); }

.filter-checkbox input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--black);
  background: var(--warm-bg);
  outline: none;
  transition: border-color var(--transition);
}

.filter-range input:focus { border-color: var(--gold); }

.filter-select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--black);
  background: var(--warm-bg);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--gold); }

.filters-btn {
  width: 100%;
  margin-top: 8px;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--warm-border);
}

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

/* ==========================================================
   IMMOBILE DETAIL
   ========================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 56px 0;
  align-items: start;
}

/* Gallery */
.gallery {
  margin-bottom: 32px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  height: 420px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-thumb {
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.gallery-thumb.active { border-color: var(--gold); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img { transform: scale(1.08); }

/* Detail content */
.detail-price-header {
  margin-bottom: 28px;
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.25;
}

.detail-location {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--warm-border);
  border-bottom: 1px solid var(--warm-border);
  margin: 24px 0;
}

.detail-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-feature .feat-val {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green);
}

.detail-feature .feat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-description h3,
.detail-characteristics h3,
.detail-map-section h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.detail-description p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.chars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.char-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--black);
  padding: 10px 14px;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
}

.char-icon { font-size: 1.1rem; }

.planimetria-placeholder {
  background: var(--warm-border);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
  border: 2px dashed var(--warm-border);
}

.map-placeholder {
  background: var(--warm-border);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
  border: 2px dashed var(--warm-border);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sidebar detail */
.detail-sidebar {}

.agent-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.agent-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info .agent-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 2px;
}

.agent-info .agent-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.agent-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 16px;
}

/* Contact Form */
.contact-form-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--warm-bg);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

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

/* ==========================================================
   CONTACTS PAGE
   ========================================================== */
.contact-page {
  padding: 72px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.office-details {
  margin-bottom: 40px;
}

.office-details h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.office-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--black);
}

.office-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.agents-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.agent-mini-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.agent-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-mini-info .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--black);
}

.agent-mini-info .role,
.agent-mini-info .tel {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.valuation-form-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}

.valuation-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.valuation-form-card > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

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

.footer-brand .logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .logo-sub {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,169,97,0.3);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom-row p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* Demo badge */
.demo-badge {
  background: var(--gold);
  color: var(--green);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-badge a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
}

.demo-badge a:hover { color: var(--black); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .valuation-form-card { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 16px;
    border-bottom: 2px solid var(--gold);
  }
  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; position: relative; }

  .hero { min-height: 500px; }
  .search-bar { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid var(--warm-border); }
  .search-field:last-of-type { border-bottom: none; }

  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-main { height: 260px; }
  .chars-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .agents-list { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}
