:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #777777;
  --muted-2: #bfbfbf;
  --panel: #000000;
  --panel-2: #111111;
  --line: #eaeaea;
  --radius: 0px; /* No rounding */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --accent: #D4AF37;
}

/* ---------------- GLOBAL RESETS ---------------- */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden !important;
}

body.page-template-wallace-realty-home .ast-container,
body.page-template-wallace-realty-home .site-content,
body.page-template-wallace-realty-home #primary,
body.page-template-wallace-realty-home .site-main,
body.page-template-wallace-realty-home .content-area {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
}

.wrw {
  width: 100%;
  margin: 0 auto;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  min-height: 65vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 40px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1460317442991-0ec209397118?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.45;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.95));
  z-index: -1;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Brand + Tagline */
.hero__brand {
  text-align: center;
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero__logo {
  width: 140px;
  height: auto;
  margin: 0 auto;
}

.hero__tag {
  font-family: 'Playfair Display', serif;
  text-align: center;
  color: #0b0b0b;
}

.hero__tag .cursive {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
}

.hero__tag .serif {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.hero__btn {
  background: var(--fg);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero__btn--ghost {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--fg);
}

.hero__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------- SEARCH CARD ---------------- */
.search-card {
  position: sticky;
  top: 24px;
  background: var(--panel);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.search-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
  color: #fff !important;
  border-bottom: 1px solid #fff;
  padding-bottom: 8px;
}

.checkset label,
.field label {
  color: #fff !important;
}

.checkset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkset label input {
  accent-color: var(--accent);
}

select,
input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  margin-top: 6px;
}

input::placeholder {
  color: #666;
}

.search-card select {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.search-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

/* Price Min/Max fields */
.range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range input[type="number"] {
  width: 100%;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.range input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

/* Search button */
.submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #007bff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  margin-top: 14px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* ---------------- SECTION LAYOUT ---------------- */
.section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 60px;
}

.section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 18px;
}

/* ---------------- FEATURED LISTINGS ---------------- */
.featured-section {
  margin-top: 90px;
  margin-bottom: 80px;
  padding: 0 40px;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.featured-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 600;
  color: #111;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-all {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--accent);
}

.arrows {
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrow-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: #111;
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.arrow-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.arrow-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.gold-divider {
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 12px 0 36px 0;
}

/* Single-row horizontal carousel */
.featured-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-carousel a {
  flex: 0 0 340px;
  text-decoration: none;
}

.featured-carousel article {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  height: 100%;
}

.featured-carousel article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(212,175,55,0.25);
  border-color: rgba(212,175,55,0.6);
}

.featured-carousel article img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.featured-carousel article:hover img {
  transform: scale(1.04);
}

.featured-carousel .info {
  padding: 18px 20px 24px;
  text-align: left;
}

.featured-carousel .price {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.featured-carousel .meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.featured-carousel .tag {
  display: inline-block;
  font-size: 12px;
  border: 1px solid #ccc;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f8f8f8;
  transition: all 0.3s ease;
}

.featured-carousel article:hover .tag {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ---------------- QUICK FILTER BUTTONS ---------------- */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.chip {
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ---------------- DISCOVER BY VILLAGE ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ Larger cards: fewer per row for more presence */
  gap: 24px; /* slightly wider spacing */
  margin-top: 50px;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.village {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3; /* ✅ Wider aspect for a cinematic look */
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.village:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.village img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 0;
}

.village:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.village::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
  z-index: 1;
}

.village span {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem; /* ✅ Larger, elegant text */
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.village:hover span {
  transform: translateY(-4px);
  opacity: 0.95;
}

/* ---------------- ANIMATIONS ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-in {
  opacity: 1;
  transform: none;
}
