.libre-font {
  font-family: 'Libre Baskerville', serif;
}

:root {
    --primary-red: #d8232a;
    --text-dark: #2d2d2d;
    --text-light: #888888;
    --bg-gray: #fff8f5;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-gray);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 60px;
    height: auto;
    padding: 5px 0;
    width: 100%;
    background: url('assert/banner des.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.522);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-section::before {
        background: rgba(0, 0, 0, 0.3);
    }
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

/* --- Navigation Tabs --- */
.category-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.category-tabs a {
    position: relative;
    padding: 10px 5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-tabs a:hover { color: var(--primary-red); }
.category-tabs a.is-selected { color: #ffffff; }

.category-tabs a.is-selected::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 4px;
    background: var(--primary-red);
    border-radius: 10px;
}

/* --- Search Panel --- */
.search-panel {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 100px;
    padding: 8px 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    width: 100%;
    border: 1px solid #efefef;
    box-sizing: border-box;
}

.filter-node {
    position: relative;
    flex: 1;
    padding: 12px 20px;
    border-right: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 50px;
}

.filter-node:hover { background: #fcfcfc; }
.filter-node:last-of-type { border-right: none; }

.node-trigger { display: flex; align-items: center; gap: 12px; }
.glyph-highlight { color: var(--primary-red); font-size: 24px; }

.meta-label small {
    display: block;
    color: var(--text-light);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.meta-label b {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    white-space: nowrap;
}

/* --- Search Button --- */
.action-trigger {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 35, 42, 0.2);
    margin-left: 10px;
}

.action-trigger:hover {
    background: #b51d23;
    transform: scale(1.02);
}

/* --- Dropdowns --- */
.overlay-panel {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 110%; left: 0;
    background: white;
    min-width: 280px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 24px;
    z-index: 1000;
    border: 1px solid #eee;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.filter-node:hover .overlay-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.field-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 8px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
}

.dropdown-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.range-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .hero-section { padding: 11px 0; }
    .search-panel { flex-direction: column; border-radius: 20px; padding: 15px; }
    .filter-node { width: 100%; border-right: none; border-bottom: 1px solid #eee; }
    .action-trigger { width: 100%; margin: 10px 0 0 0; justify-content: center; }
}

.budget-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.budget-col .col-label{
  font-size:11px;font-weight:700;color:#888;
  text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;
}
.node-trigger{display:flex;align-items:center;gap:12px;}
.glyph{color:#d8232a;font-size:24px}

.meta-label small{
  display:block;color:#888;
  font-size:10px;text-transform:uppercase;letter-spacing:.8px;margin-bottom:2px;
}
.meta-label b{
  display:block;color:#2d2d2d;
  font-size:14px;white-space:nowrap;font-weight:500;
}

.action-trigger{
  background:#d8232a;color:#fff;border:none;
  padding:16px 28px;border-radius:50px;
  display:flex;align-items:center;gap:8px;
  font-size:15px;font-weight:700;cursor:pointer;
  transition:all .25s;white-space:nowrap;
  margin-left:8px;flex-shrink:0;
}
.action-trigger:hover{background:#b51d23;transform:scale(1.02)}

/* Dropdown */
.overlay-panel{
  display:none;
  position:absolute;top:calc(100% + 14px);left:0;
  background:#fff;min-width:260px;
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.15);
  padding:20px;z-index:1000;
  border:1px solid #eee;
  animation:fadeDown .2s ease-out;
}
.overlay-panel.open{display:block}

@keyframes fadeDown{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.panel-title{font-size:12px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.6px;margin-bottom:12px}

.scroll-list{max-height:200px;overflow-y:auto}
.scroll-list::-webkit-scrollbar{width:3px}
.scroll-list::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}

.item-row{
  padding:10px 12px;font-size:14px;border-radius:8px;cursor:pointer;
  transition:background .15s,color .15s;
}
.item-row:hover{background:#fff0f0;color:#d8232a}

.field-input{
  width:100%;padding:10px 12px;
  border:1px solid #e0e0e0;border-radius:10px;
  font-family:inherit;font-size:13px;
  margin-bottom:10px;outline:none;
  color:#2d2d2d;background:#fff;
}
.field-input:focus{border-color:#d8232a}

/* ===== NAV BUTTONS ===== */
.btn-premium {
  position: relative;
  overflow: hidden;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 700;
  color: white;
  background: linear-gradient(105deg, #b42628, #e64b2e, #ff6a4b);
  background-size: 200% auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(180, 38, 40, 0.25);
  font-size: 0.9rem;
}

.btn-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-premium:hover::before {
  left: 125%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 38, 40, 0.35);
}

.btn-login-elegant {
  position: relative;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  background: transparent;
  color: #1e1b18;
  border: 1.5px solid #d9c3ae;
  transition: all 0.25s ease;
  font-size: 0.85rem;
  backdrop-filter: blur(2px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login-elegant:hover {
  background: #86530010;
  border-color: #865300;
  color: #865300;
  transform: scale(1.02);
}

/* ===== MOBILE DRAWER ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80%, 320px);
  background: #fff8f5;
  box-shadow: -12px 0 40px rgba(30, 27, 24, 0.2);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-weight: 600;
  border-bottom: 1px solid #e9e1dc;
  color: #1e1b18;
  font-family: 'Manrope', sans-serif;
  transition: 0.2s;
  text-decoration: none;
  font-size: 0.95rem;
}

.drawer-link:hover {
  color: #b42628;
  padding-left: 6px;
}

body.drawer-open {
  overflow: hidden;
}

/* ===== CITY DROPDOWN ===== */
.nav-city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 760px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 50;
  border: 1px solid #e9e1dc;
}

.nav-city-trigger:hover .nav-city-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-city-dropdown .district-search {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #e9e1dc;
  border-radius: 40px;
  font-size: 0.8rem;
  outline: none;
  margin-bottom: 1rem;
  color: #1e1b18;
  background: #fff8f5;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.nav-city-dropdown .district-search:focus {
  border-color: #b42628;
}

.nav-city-dropdown .district-group-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #b42628;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.nav-city-dropdown .district-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px 4px;
}

.nav-city-dropdown .district-item {
  font-size: 0.78rem;
  color: #534434;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-city-dropdown .district-item:hover {
  background: #fdf0f0;
  color: #b42628;
}

@media (max-width: 1280px) {
  .nav-city-dropdown {
    width: 560px;
  }

  .nav-city-dropdown .district-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(135deg, #1e1b18, #b42628);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.section-header p {
  font-size: 0.85rem;
  color: #534434;
  margin-top: 0.5rem;
}

.section-pad {
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 3.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-pad {
    padding: 4rem 3rem;
  }
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b42628;
  font-weight: 700;
  border-bottom: 2px solid rgba(180, 38, 40, 0.3);
  text-decoration: none;
  font-size: 0.9rem;
  transition: gap 0.2s;
}

.view-all-link:hover {
  gap: 14px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-section {
    position: relative;
  }

  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.674);
    z-index: 1;
  }

  .hero-section > * {
    position: relative;
    z-index: 2;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===== HERO SLIDER ===== */
.hero-slider-section {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1512;
}

.hero-slider-container {
  width: 100%;
  height: 200px;
  position: relative;
}

.hero-slider-item {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-slider-item img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slider-next,
.hero-slider-prev {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.hero-slider-next::after,
.hero-slider-prev::after {
  font-size: 18px;
  color: #b42628;
  font-weight: 700;
}

.hero-slider-next {
  right: 16px;
}

.hero-slider-prev {
  left: 16px;
}

.hero-slider-next:hover,
.hero-slider-prev:hover {
  background: #b42628;
}

.hero-slider-next:hover::after,
.hero-slider-prev:hover::after {
  color: white;
}

.hero-slider-pagination {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-slider-pagination .swiper-pagination-bullet {
  background: white;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  transition: all 0.3s;
}

.hero-slider-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #b42628;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .hero-slider-item img {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-slider-item img {
    max-height: 260px;
  }

  .hero-slider-next,
  .hero-slider-prev {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero-slider-item img {
    max-height: 200px;
  }
}

/* ===== SEARCH PANEL ===== */
:root {
  --primary-accent: #d8232a;
  --primary-hover: #b51d22;
  --soft-tint: #fff1f2;
  --ui-border: #e5e7eb;
  --base-dark: #1f2937;
  --base-muted: #6b7280;
}

.top-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 10px;
}

.category-tabs {
  display: flex;
  gap: 32px;
  position: relative;
}

.category-tabs a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  padding: 0 4px 4px 4px;
  transition: color 0.3s ease;
  position: relative;
}

.category-tabs a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.category-tabs a.is-selected {
  color: rgb(255, 0, 0);
}

.category-tabs a.is-selected::after {
  transform: scaleX(1);
  transform-origin: left;
}

.search-panel {
    width: 100%;
    max-width: 876px;
    background: white;
    border-radius: 60px;
    display: flex;
    padding: 2px 10px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    border: none;
    transition: transform 0.3s ease;
    gap: 0;
    align-items: center;
}

@media (max-width: 768px) {
  .search-panel {
    border-radius: 24px;
    flex-direction: column;
    gap: 1px;
    padding: 0;
  }
}

.filter-node {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 80px;
  border-right: 1px solid #f0f0f0;
}

.filter-node:hover {
  background: #f9fafb;
}

.filter-node:last-of-type {
  border-right: none;
}

@media (max-width: 768px) {
  .filter-node {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 15px 12px;
    border-radius: 0;
  }

  .filter-node:last-of-type {
    border-bottom: none;
  }
}

.node-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.meta-label {
  flex: 1;
}

.meta-label small {
  display: block;
  font-size: 10px;
  color: var(--base-muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-label b {
  font-size: 15px;
  color: var(--base-dark);
}

.glyph-highlight {
  color: var(--primary-accent);
}

.action-trigger {
  background: var(--primary-accent);
  color: white;
  border: none;
  padding: 5px 39px;
  height: 52px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.action-trigger:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .action-trigger {
    width: calc(100% - 24px);
    justify-content: center;
    margin: 12px;
    height: 50px;
  }
}

.overlay-panel {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: 280px;
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  border: 1px solid var(--ui-border);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.filter-node.is-open .overlay-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tag-bubble {
  background: var(--soft-tint);
  color: var(--primary-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  font-family: inherit;
  color: var(--base-dark);
  outline: none;
  font-size: 14px;
}

.field-input:focus {
  border-color: var(--primary-accent);
}

/* ===== PROPERTY CARDS ===== */
.latest-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1280px) {
  .latest-properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .latest-properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .latest-properties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.property-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.property-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #f5f0eb;
  overflow: hidden;
}

.property-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.property-card:hover .property-img-wrapper img {
  transform: scale(1.06);
}

.property-id {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgb(255, 158, 24);
  backdrop-filter: blur(6px);
  color: black;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  letter-spacing: 0.6px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(216, 35, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.property-price {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(180, 38, 40, 0.92);
  backdrop-filter: blur(5px);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.25rem 0.9rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Manrope', sans-serif;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-desc {
  padding: 0.9rem 1rem 1rem;
}

.property-desc p {
  font-size: 0.85rem;
  color: #2c241e;
  line-height: 1.4;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.property-desc p .material-symbols-outlined {
  font-size: 1rem;
  color: #b42628;
  flex-shrink: 0;
  margin-top: 1px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #867462;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e9e1dc;
  font-weight: 500;
}

.property-location .material-symbols-outlined {
  font-size: 0.9rem;
}

/* ===== SWIPER CARDS ===== */
.property-swiper-container {
  margin-top: -12px;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1.5rem 0;
}

.property-swiper,
.blog-swiper {
  width: 100%;
  overflow: visible;
}

.property-swiper .swiper-slide,
.blog-swiper .swiper-slide {
  height: auto;
}

.property-card-swiper {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-card-swiper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.property-card-swiper .property-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #f5f0eb;
  overflow: hidden;
}

.property-card-swiper .property-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.property-card-swiper:hover .property-img-wrapper img {
  transform: scale(1.06);
}

.swiper-nav-custom {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
}

.swiper-btn-prev-custom,
.swiper-btn-next-custom {
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e9e1dc;
  color: #b42628;
}

.swiper-btn-prev-custom:hover,
.swiper-btn-next-custom:hover {
  background: #b42628;
  color: white;
  border-color: #b42628;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .swiper-nav-custom {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.18);
}

.blog-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #f5f0eb;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.08);
}

.blog-date {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #ffdad6;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 40px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.3px;
}

.blog-content {
  padding: 1rem 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.blog-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: #1e1b18;
  font-family: 'Manrope', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.78rem;
  color: #534434;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #867462;
  border-top: 1px solid #e9e1dc;
  padding-top: 0.7rem;
}

.blog-meta .material-symbols-outlined {
  font-size: 0.95rem;
  color: #b42628;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #e9e1dc;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  color: #1e1b18;
  transition: color 0.2s;
  gap: 1rem;
}

.faq-question:hover {
  color: #b42628;
}

.faq-question span:first-child {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: -0.2px;
  flex: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #b42628;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  color: #534434;
  font-size: 0.85rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-grid-container {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .faq-grid-container {
    padding: 1rem 1.2rem;
  }
}

/* ===== EXPLORE LOCALITIES ===== */
.explore-localities-wrapper {
  background: linear-gradient(135deg, #fef7f2 0%, #fef0ea 100%);
  border-radius: 2rem;
  padding: 3rem 2rem;
  margin: 2rem auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .explore-localities-wrapper {
    padding: 2rem 1.2rem;
    border-radius: 1.5rem;
  }
}

.locality-card-modern {
  background: white;
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.locality-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(180, 38, 40, 0.2);
}

.locality-top {
  padding: 1.6rem 1.5rem 1rem;
  position: relative;
}

.locality-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #1e1b18;
}

.locality-title a {
  color: #bdc3c7;
  transition: 0.2s;
}

.locality-title a:hover {
  color: #b42628;
}

.price-range-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #865300;
  margin-top: 0.5rem;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.rating-modern {
  background: #f3f0ec;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
}

.rating-modern b {
  color: #2c241e;
}

.rating-modern b::after {
  content: " ★";
  color: #f5a623;
  font-weight: 600;
}

.locality-footer-link {
  background: #fef4ef;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  text-decoration: none;
  transition: background 0.2s;
  border-top: 1px solid rgba(180, 38, 40, 0.08);
}

.locality-footer-link span {
  font-weight: 700;
  font-size: 0.85rem;
  color: #b42628;
}

.locality-footer-link i {
  background: #b42628;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  font-size: 0.75rem;
}

.locality-card-modern:hover .locality-footer-link i {
  transform: translateX(5px);
}

.locality-nav-btns {
  display: flex;
  gap: 12px;
}

.loc-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e9e1dc;
  color: #b42628;
}

.loc-nav-btn:hover {
  background: #b42628;
  color: white;
  border-color: #b42628;
}

/* ===== POST PROPERTY BANNER ===== */
.post-property-banner {
  background: #db4437;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: 'Nunito', sans-serif;
  gap: 20px;
}

.post-property-banner h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.post-property-banner p {
  margin: 15px 0 0;
  font-size: 20px;
  color: #ffffff;
  opacity: 0.95;
}

.post-property-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffc439;
  color: #333;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.post-property-btn:hover {
  transform: scale(1.04);
}

.post-property-badge {
  background: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .post-property-banner {
    padding: 30px 20px;
  }

  .post-property-banner h2 {
    font-size: 28px;
  }

  .post-property-banner p {
    font-size: 16px;
  }

  .post-property-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}



.section-header {
  position: relative;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 10px;
  padding-left: 50px;
  padding-right: 50px;
}

.header-left {
  display: inline-block;
}

.header-left h1 {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.header-left p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.header-right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.swiper-btn-prev-custom,
.swiper-btn-next-custom {
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #b42628;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

/* post property */
.post-banner {
  margin-top: -65px;
  background: #d83a34;
  color: #fff;
  padding: 2px 68px 23px 61px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.post-banner-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.free-text {
  font-family: 'Damion', cursive;
  font-size: 50px;
  font-weight: 400;
  margin-left: 8px;
}

.post-banner-content p {
  margin-top: -5px;
  font-size: 14px;
  color: #ffeaea;
}

.post-banner-action {
  margin-top: 21px;
}

.post-btn {
  background: #ff9c14;
  color: #333;
  padding: 10px 10px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.badge {
  background: #eee;
  color: #333;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .post-banner {
    padding: 20px 41px;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-banner-content {
    width: 100%;
  }

  .post-banner-content h2 {
    font-size: 28px;
    line-height: 1.4;
  }

  .free-text {
    display: block;
    font-size: 45px;
    margin-left: 0;
    margin-top: -5px;
  }

  .post-banner-content p {
    font-size: 13px;
    margin-top: 8px;
  }

  .post-banner-action {
    width: 100%;
    margin-top: 15px;
  }

  .post-btn {
    padding: 10px 15px;
    border-radius: 30px;
  }
}

@media (max-width: 480px) {
  .post-banner-content h2 {
    font-size: 20px;
  }

  .free-text {
    font-size: 30px;
  }
}

.damion-font {
  font-family: 'Damion', cursive;
}

.explore-localities-wrapper {
  padding-top: 2px;
  padding-bottom: 68px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .explore-localities-wrapper {
    padding-top: 2px;
    padding-bottom: 68px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

.locality-title {
  color: #000;
}

.locality-title a {
  color: inherit;
}

body.drawer-open .mobile-post-btn {
  display: none !important;
}

/* View All Section */
.view-all-container {
    margin-bottom: 10px;
    text-align: center;
    margin-top: -2px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #b42628;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.view-all-link:hover {
  color: #8e1f21;
}

.view-all-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.listing-view-all {
    margin-bottom: 20px;
    text-align: center;
    margin-top: 28px;
}

.listing-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #b42628;
  text-decoration: none;
  transition: 0.3s;
}

.listing-btn .material-symbols-outlined {
  font-size: 16px;
  transition: 0.3s;
}

.listing-btn:hover {
  color: #8e1f21;
}

.listing-btn:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.hero-subtitle {
    text-align: center;
    line-height: 1.6;
}

.tamil-highlight {
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .header-right {
        width: 100%;
        left: 0;
        right: 0;
        justify-content: space-between;
        padding: 0 10px;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: -99px;
        text-align: center;
    }
}

.hero-subtitle {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 2px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 25px;
  }
}

.highlight {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  color: #f31e1e;
  font-size: 25px;
}

@media (min-width: 640px) {
  .highlight {
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .highlight {
    font-size: 25px;
  }
}

@media (max-width: 768px) {
  .mobile-post-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4d4f, #d8232a);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
}

.mobile-post-btn:active {
  transform: translateX(-50%) scale(0.95);
}

:root {
  --red: #c8102e;
  --red-light: #fff0f2;
  --navy: #0f1f3d;
  --bg: #f4f1ee;
  --card: #ffffff;
  --text: #111;
  --muted: #6b7280;
  --border: #e2ddd8;
  --green: #1a7a4a;
  --gold: #b8860b;
}

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 99px;
  max-width: 1421px;
  margin: 34px auto;
  /*padding: 0 20px;*/
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
    width: 323px !important;
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  position: sticky;
  top: 76px;
}

.sidebar-title {
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sidebar-sub {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.filter-section { margin-bottom: 22px; }

.filter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}



.radio-group { display: flex; flex-direction: column; gap: 7px; }

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color .2s, background .2s;
}

.radio-item.active {
  border: 1px solid #cccccc !important;
}

.radio-item input { accent-color: var(--red); }

.select-wrap { position: relative; }

.select-wrap select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  appearance: none;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 13px;
}

/* Desktop price range */
.price-range-wrap { padding: 4px 0; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.price-range-value { font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 10px; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) var(--val, 60%), #e2ddd8 var(--val, 60%), #e2ddd8 100%);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(200,16,46,.4);
}

.btn-apply {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s;
  font-family: inherit;
  letter-spacing: .2px;
}

.btn-apply:hover { background: #a00d24; }

/* ── TOOLBAR ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.view-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: all .2s;
}

.view-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.results-count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mobile-filter-btn { display: none; }

/* ── CARDS ── */
.cards { display: flex; flex-direction: column; gap: 16px; }
.cards.grid-view { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: box-shadow .25s, transform .2s;
  animation: fadeUp .4s ease both;
}

.cards.grid-view .card {
  grid-template-columns: 1fr;
}

.card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-img { position: relative; overflow: hidden; height: 190px; z-index: 1; }
.cards.grid-view .card-img { height: 160px; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.card:hover .card-img img { transform: scale(1.04); }

.id-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #ff9e17 !important; /* darker */
  color: #000 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0.5px !important;
  backdrop-filter: none !important; /* remove blur */
  z-index: 999 !important; /* top layer */
}

.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 214px !important;
}

.sheet-select-wrap:last-of-type {
  margin-bottom: 16px;
}

.tag-sale { background: var(--red); color: #fff; }
.tag-type { background: var(--navy); color: #fff; }
.card-title { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text); }
.cards.grid-view .card-title { font-size: 12px; }
.card-loc { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.card-meta { display: flex; gap: 20px; margin-top: 2px; flex-wrap: wrap; }
.meta-label { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.meta-value { font-size: 18px; font-weight: 700; color: var(--red); margin-top: 2px; }
.meta-value.area { font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 4px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }

.btn-deal {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  flex: 1;
}

.btn-deal:hover { background: #07122a; }

.btn-share {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--muted);
  transition: all .2s;
}

.btn-share:hover { border-color: var(--red); color: var(--red); }

/* ════════════════════════
   MOBILE BOTTOM SHEET
   ════════════════════════ */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  opacity: 0;
  transition: opacity .3s;
}

.filter-overlay.open { opacity: 1; }

.filter-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 400;
  padding: 0 0 env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,1,.56,1);
  max-height: 90vh;
  overflow-y: auto;
}

.filter-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  background: #ddd;
  border-radius: 10px;
  margin: 12px auto 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.sheet-header h3 {
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.sheet-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}

.sheet-body {
  padding: 10px 16px 18px;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0ece8;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 4px;
}

.seg-btn {
  padding: 11px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
  transition: all .2s;
}

.seg-btn.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.sheet-select-wrap { position: relative; margin-top: 6px; }

.sheet-select-wrap select {
  width: 100%;
  padding: 13px 42px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  appearance: none;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
}

.sheet-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.sheet-field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 18px 0 8px;
}

/* Price range in sheet */
.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.price-display-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.price-display-label {
  font-size: 11px;
  color: var(--muted);
}

.range-track {
  position: relative;
  height: 6px;
  background: #e2ddd8;
  border-radius: 6px;
  margin: 8px 0 4px;
}

.range-fill {
  position: absolute;
  height: 100%;
  background: var(--red);
  border-radius: 6px;
  left: 0;
  width: var(--fill, 60%);
}

.mob-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: absolute;
  top: 0; left: 0;
  margin: 0;
}

.mob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(200,16,46,.35);
  margin-top: -8px;
}

/* Budget chips */
.budget-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.budget-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all .18s;
}

.budget-chip.active {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}

.sheet-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 30px 20px 18px;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.btn-reset {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.btn-sheet-apply {
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}

.btn-sheet-apply:hover { background: #a00d24; }

/* ── Filter chips (mobile toolbar) ── */
.filter-chips { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.chip {
  background: var(--red-light);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chip-x { cursor: pointer; font-size: 13px; line-height: 1; }


.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: inherit;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: color .2s;
}

.bnav-item svg { width: 20px; height: 20px; }
.bnav-item.active { color: var(--red); }

.bnav-item.filter-nav-btn {
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  flex-direction: row;
  text-transform: none;
  letter-spacing: 0;
}

/* ══════════════
   RESPONSIVE
   ══════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-login { display: none; }
  .btn-post { font-size: 11.5px; padding: 7px 11px; }

  .layout {
    grid-template-columns: 1fr;
    margin: 17px auto;
    padding: 0 12px;
    padding-bottom: 82px;
  }

  .sidebar { display: none; }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
  }

  .filter-chips { display: flex; }

  .cards { display: flex; flex-direction: column; gap: 14px; }
  .card { grid-template-columns: 1fr; }
  .card-img { height: 185px; }

  .cards.grid-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cards.grid-view .card { grid-template-columns: 1fr; }
  .cards.grid-view .card-img { height: 130px; }
  .cards.grid-view .card-body { padding: 11px 12px; gap: 6px; }
  .cards.grid-view .card-title {
    font-size: 11px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cards.grid-view .meta-value { font-size: 14px; }
  .cards.grid-view .card-meta { gap: 10px; }
  .cards.grid-view .btn-deal { font-size: 11px; padding: 7px 10px; }
  .cards.grid-view .btn-share { display: none; }
  .cards.grid-view .card-loc { font-size: 10.5px; }
  .cards.grid-view .tag { font-size: 9px; padding: 2px 7px; }

  /*.bottom-nav { display: block; }*/
  .filter-overlay { display: block; }
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: rgb(168, 22, 22) !important;
    border-color: rgb(168, 22, 22) !important;
}



/* Desktop + List view only */
@media (min-width: 1024px){
  .cards:not(.grid-view) .btn-deal {
    flex: unset !important;
    width: auto !important;
    display: inline-block !important;

    padding: 8px 50px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
  }
}
