/* ─── Estate Theme ───────────────────────────────────────
 * A green-themed Hugo theme for selling a property.
 * The palette evokes a golf-course setting — fresh greens,
 * warm sand tones, and clean whites.
 * ──────────────────────────────────────────────────────── */

/* ── Variables ─────────────────────────────────────── */

:root {
  --green-900: #1a3c2a;
  --green-800: #1f5c3a;
  --green-700: #2d7a4f;
  --green-600: #3b9b63;
  --green-500: #4cb878;
  --green-400: #6fcf97;
  --green-300: #a3e0b7;
  --green-200: #d0f0da;
  --green-100: #e8f7ee;

  --sand-600: #a68b5b;
  --sand-400: #d4c5a9;
  --sand-200: #f0e8d8;
  --sand-100: #f7f2e8;

  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --black: #000000;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --max-width: 72rem;
  --content-width: 48rem;
  --menu-height: 4rem;

  --shadow-sm: 0 1px 3px rgba(26, 60, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 60, 42, 0.12);
  --shadow-lg: 0 8px 30px rgba(26, 60, 42, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 200ms ease;
}

/* ── Reset ─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--sand-100);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-500);
}

/* ── Header & Navigation ───────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green-600);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--menu-height);
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--green-800);
}

.site-title a:hover {
  color: var(--green-600);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.main-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-menu li a:hover,
.main-menu li a.active {
  background: var(--green-100);
  color: var(--green-700);
}

/* ── Language Switcher ─────────────────────────────── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--gray-200);
}

.lang-switcher a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.lang-switcher a:hover {
  background: var(--green-100);
  color: var(--green-700);
}

.lang-switcher a.active {
  background: var(--green-600);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--green-800);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Hero Section (homepage) ───────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 50%, var(--green-400) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  max-width: var(--content-width);
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* ── Main Content ──────────────────────────────────── */

.content-wrapper {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-800);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content blockquote {
  border-left: 4px solid var(--green-400);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--gray-700);
}

.page-content hr {
  border: none;
  border-top: 2px solid var(--green-200);
  margin: 2.5rem 0;
}

/* ── Image gallery (light class) ───────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

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

/* ── Google Maps container ─────────────────────────── */

.map-container {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* ── Feature cards (highlights) ────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.city-crest {
  height: 48px;
  width: auto;
  display: inline-block;
}

.store-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-800);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ── Key details (price, location badges) ──────────── */

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--green-300);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.detail-badge .label {
  font-weight: 400;
  color: var(--gray-500);
}

.detail-badge .value {
  font-weight: 600;
  color: var(--green-800);
}

.detail-badge.highlight {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.detail-badge.highlight .value {
  color: var(--white);
}

/* ── Footer ────────────────────────────────────────── */

.site-footer {
  background: var(--green-900);
  color: var(--green-200);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--green-400);
}

.site-footer a:hover {
  color: var(--green-300);
}

/* ── 404 Page ──────────────────────────────────────── */

.page-404 {
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-404 h1 {
  font-size: 4rem;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* ── Responsive ────────────────────────────────────── */

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

  .nav-wrapper {
    position: absolute;
    top: var(--menu-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 3px solid var(--green-600);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms ease, opacity 200ms ease;
  }

  .nav-wrapper.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
  }

  .main-menu li a {
    padding: 0.75rem 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .page-content h2 {
    font-size: 1.25rem;
  }

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

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