:root {
  --bg: #FAFAF7;
  --white: #FFFFFF;
  --green: #6DA06F;
  --green-dark: #416C47;
  --sand: #E8E2D2;
  --gray: #ECECEC;
  --text: #1A1A1A;
  --muted: #667075;
  --shadow: 0 25px 60px rgba(65, 108, 71, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

nav a {
  margin: 0 12px;
  font-weight: 600;
  color: #2d362e;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover { background: rgba(109,160,111,0.12); color: var(--green-dark); }
.sub-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0 12px;
  width: min(1180px, 94vw);
  margin: 0 auto;
}
.sub-nav a {
  font-weight: 600;
  color: #2f3a33;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(109,160,111,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(120deg, var(--green), var(--green-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(109,160,111,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn.secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid rgba(65,108,71,0.2);
  box-shadow: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(109,160,111,0.25); }
.btn.icon { gap: 8px; }
.btn.icon span { font-weight: 800; }
.btn.nav-cta { padding: 12px 22px; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,56,30,0.12) 0%, rgba(250,250,247,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text);
  text-align: center;
  width: min(900px, 92vw);
  background: rgba(255,255,255,0.7);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 50px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero p.lead {
  margin: 0 0 18px;
  color: #2f3a33;
  font-weight: 500;
}

.search-bar {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  align-items: center;
  margin-top: 12px;
}

.search-bar input {
  flex: 1;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #F7F6F2;
  font-size: 16px;
}
.search-bar select {
  flex: 1;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #F7F6F2;
  font-size: 16px;
}
.search-results {
  display: none;
  margin-top: 12px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(109,160,111,0.12);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 28px;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}

.section-lead { color: #425047; margin-bottom: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.listing-card {
  background: var(--white);
  border-radius: 18px;
  padding: 0 0 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  border: 1px solid rgba(65,108,71,0.05);
  position: relative;
}

.listing-card .thumb {
  position: relative;
  padding-top: 64%;
  border-radius: 14px;
  overflow: hidden;
}

.listing-card .thumb.large {
  padding-top: 70%;
  border-radius: 16px 16px 0 0;
}

.listing-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.listing-card .price-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--green-dark);
  padding: 7px 9px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.listing-card h3 {
  margin: 6px 16px 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card .pill { margin: 10px 16px 0 16px; display: inline-flex; }

.listing-card .meta {
  color: #4a534d;
  font-weight: 600;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 16px;
}
.listing-card .excerpt {
  padding: 0 16px;
  color: #4a534d;
  font-weight: 500;
  font-size: 13px;
  min-height: 52px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card .cta-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 0 16px;
  padding-bottom: 6px;
}

.pill {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f0f3ed;
  color: #2f3a33;
  font-weight: 600;
  font-size: 13px;
}
.pill.ghost {
  background: #f2f5f0;
  border: 1px solid rgba(65,108,71,0.12);
  color: #2d362e;
}
.breadcrumb { color: #4a534d; font-weight: 600; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.breadcrumb a { color: var(--green-dark); }
.breadcrumb span:last-child { padding-right: 6px; }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filter-panel {
  background: var(--white);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.05);
  position: sticky;
  top: 90px;
  align-self: start;
}

.filter-panel h4 { margin: 4px 0 10px; font-size: 16px; letter-spacing: -0.01em; }

.filter-group { margin-bottom: 16px; }
.filter-panel .select-full {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f7f6f2;
  font-weight: 600;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #2f3a33;
}

.filter-option input { accent-color: var(--green); }

.filter-option.disabled { opacity: 0.45; cursor: not-allowed; }

.filter-option:hover:not(.disabled) { background: #f4f7f0; }

.range {
  width: 100%;
  accent-color: var(--green);
}

.hero-slider, .image-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.5s ease;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.slider-controls button {
  border: none;
  background: rgba(255,255,255,0.7);
  color: var(--green-dark);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.slider-bullets {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-bullets span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(65,108,71,0.45);
}

.slider-bullets span.active { background: var(--green-dark); }
.slider-frame img { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; }
.thumb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.thumb-strip img { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.thumb-strip img.active { border-color: var(--green-dark); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  background: #111;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.category-card {
  background: linear-gradient(120deg, #eef5ec, #f5efe2);
  border-radius: 16px;
  padding: 16px;
  display: block;
  color: #1f2a23;
  border: 1px solid rgba(65,108,71,0.1);
  box-shadow: var(--shadow);
}
.category-card h3 { margin: 6px 0 0; }

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.05);
  display: flex;
  flex-direction: column;
}

.blog-card .blog-thumb { position: relative; }
.blog-card .blog-thumb img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px 16px 0 0; }
.blog-card .pill.corner { position: absolute; top: 12px; left: 12px; }

.blog-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.blog-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }

.blog-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }

.article {
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.05);
}

.article h1 { margin: 0 0 6px; font-family: 'Playfair Display', 'Cormorant Garamond', serif; letter-spacing: -0.02em; }

.article .meta { color: #4b564e; font-weight: 600; margin-bottom: 12px; }

.article img.hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 14px; margin: 12px 0; }
.article img.hero-img.wide { height: 280px; object-fit: cover; }

.map-card {
  background: linear-gradient(135deg, #e4efdf, #f7f3e7);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.1);
}

.map-graphic {
  position: relative;
  min-height: 240px;
  background: radial-gradient(circle at 20% 20%, rgba(109,160,111,0.12), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(65,108,71,0.12), transparent 34%),
              #f4f6f1;
  border-radius: 16px;
  overflow: hidden;
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--green-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(109,160,111,0.15);
  cursor: pointer;
}

.map-legend { display: flex; flex-wrap: wrap; gap: 10px; }

footer {
  margin-top: 50px;
  background: var(--white);
  padding: 28px 0 34px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

footer .footer-inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
footer .footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
footer .footer-links a { color: #2d362e; font-weight: 600; }

.cta-banner {
  background: linear-gradient(120deg, #e6f0e6, #f5efe2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.cta-banner h3 {
  margin: 0;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
}

.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-links a { padding: 8px 12px; background: var(--white); border-radius: 12px; border: 1px solid rgba(65,108,71,0.12); font-weight: 600; color: #2d362e; }

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #3f4d44;
}

.highlight {
  background: var(--white);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.05);
  font-weight: 700;
  color: var(--green-dark);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.sitemap-block {
  background: var(--white);
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(65,108,71,0.08);
}
.sitemap-block .region-link { font-weight: 700; color: var(--green-dark); display: inline-block; margin-bottom: 8px; }

.hero-small {
  background: linear-gradient(120deg, #edf4eb, #f6f1e5);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.hero-small img { height: 240px; object-fit: cover; border-radius: 16px; }

ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.clean li { position: relative; padding-left: 14px; }
ul.clean li::before { content: '•'; position: absolute; left: 0; color: var(--green-dark); font-weight: 700; }
.line-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tagline { color: #425047; font-weight: 600; }
.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--green-dark);
  padding: 7px 9px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.price-badge { font-size: 13px; }

@media (max-width: 1080px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .filter-panel { position: relative; top: auto; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .map-card { grid-template-columns: 1fr; }
  .hero-small { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }
  .search-bar { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
