/* ============================================
   LEGACY REAL ESTATE — MAIN STYLESHEET
   ============================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Variables & Reset
   2.  Base / Body
   3.  Navigation
   4.  Buttons
   5.  Section Utilities
   6.  Hero
   7.  Search Bar
   8.  Category Grid
   9.  Partner / About
  10.  Property Cards
  11.  Stats Row
  12.  Services
  13.  Why Choose Us
  14.  Cities Grid
  15.  Experts
  16.  Testimonials Slider
  17.  News / Articles
  18.  App Section
  19.  CTA Banner
  20.  Footer
  21.  Tabs
  22.  Listings Page — Hero
  23.  Listings Page — Layout & Sidebar
  24.  Listings Page — Toolbar & Grid
  25.  Listings Page — Pagination
  26.  Scroll Animations
  27.  Responsive / Media Queries
   ============================================ */


/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */

:root {
  --green:       #1a6b3c;
  --green-dark:  #154f2d;
  --green-light: #e8f5ee;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --bg-light:    #f8f9fa;
  --bg-dark:     #1a3a28;
  --border:      #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}


/* ============================================
   2. BASE / BODY
   ============================================ */

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  padding-top: 110px;
  overflow-x: hidden;
}


/* ============================================
   2.5 FORM CONTROLS
   ============================================ */

input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

/* Dropdowns: kill the default OS arrow, use a custom green chevron */
select {
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a6b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
}

select option {
  background: #fff;
  color: var(--text);
}

select option:hover,
select option:checked {
  background: var(--green);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Hide the browser's default search clear/decoration controls */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}



/* ============================================
   3. NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* --- Top utility bar --- */
.nav-topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 60px;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled .nav-topbar {
  height: 0;
  opacity: 0;
  padding: 0 60px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.topbar-left span,
.topbar-left a,
.topbar-right a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-left a:hover,
.topbar-right a:hover {
  color: #fff;
}

.topbar-left i,
.topbar-right i {
  margin-right: 6px;
  color: #5ec98f;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-social a {
  font-size: 13px;
}

.topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

/* --- Main bar --- */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 60px;
  background: #fff;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(26, 107, 60, 0.3);
}

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

.nav-logo-text b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text);
}

.nav-logo-text small {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--green);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Actions: search + CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search-input {
  width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border 0.3s ease;
}

.nav-search.open .nav-search-input {
  width: 200px;
  padding: 9px 12px;
  opacity: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-right: 8px;
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search.open .nav-search-input:focus {
  border-color: var(--green);
}

.nav-search-btn,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.nav-search-btn:hover,
.mobile-menu-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 8px;
}

/* Dark overlay behind the slide-in mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Slide-in mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--border);
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-links {
  list-style: none;
  padding: 12px 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--green);
  background: #f7faf9;
}

.mobile-nav-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 0;
  padding: 12px 16px !important;
  background: var(--green);
  color: #fff !important;
  border-radius: 8px;
  border-bottom: none !important;
  text-align: center;
  justify-content: center;
}

.mobile-nav-links a i {
  width: 20px;
  margin-right: 10px;
  color: var(--green);
  text-align: center;
}

.mobile-nav-btn i {
  width: auto;
  margin-right: 0;
  color: #fff;
}

/* Contact + social block at the bottom of the mobile menu */
.mobile-menu-contact {
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.mobile-menu-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mobile-menu-contact p:last-of-type {
  margin-bottom: 0;
}

.mobile-menu-contact p i {
  width: 18px;
  color: var(--green);
  text-align: center;
}

.mobile-menu-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-menu-contact a:hover {
  color: var(--green);
}

.mobile-menu-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.mobile-menu-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-social a:hover {
  background: var(--green);
  color: #fff;
}

/* Lock page scroll while mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   4. BUTTONS
   ============================================ */

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline-green {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}


/* ============================================
   5. SECTION UTILITIES
   ============================================ */

section {
  padding: 72px 60px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

.center-header {
  text-align: center;
  margin-bottom: 48px;
}


/* ============================================
   6. HERO
   ============================================ */

.hero {
  background:
    linear-gradient(rgba(10, 30, 18, 0.60), rgba(10, 30, 18, 0.60)),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1400') center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hero-content {
  max-width: 540px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-desc-mobile {
  display: none;
}


/* ============================================
   7. SEARCH BAR
   ============================================ */

.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.search-bar select,
.search-bar input {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-light);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar select {
  padding-right: 36px;
  background-color: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}

.search-bar select:focus,
.search-bar input:focus {
  border-color: var(--green-dark);
}


/* ============================================
   8. CATEGORY GRID
   ============================================ */

.category-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cat-card {
  flex: 1;
  min-width: 110px;
  background: var(--bg-light);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cat-card:hover,
.cat-card.active {
  background: var(--green-light);
  border-color: var(--green);
}

.cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 20px;
  color: var(--green);
}

.cat-card.active .cat-icon {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.cat-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}


/* ============================================
   9. PARTNER / ABOUT
   ============================================ */

.partner {
  background: var(--bg-light);
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partner-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.partner-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.stat-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.stat-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--green);
}

.partner-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.partner-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.checklist {
  list-style: none;
  margin-bottom: 28px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 7px 0;
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}


/* ============================================
   10. PROPERTY CARDS
   ============================================ */

.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prop-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.prop-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.prop-img {
  position: relative;
}

.prop-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}

.prop-badge.rent {
  background: #e05a2b;
}

.prop-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}

.prop-fav:hover,
.prop-fav.liked {
  color: #e05a2b;
}

.prop-body {
  padding: 14px;
}

.prop-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.prop-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.prop-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.prop-meta {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.prop-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.prop-meta span i {
  font-size: 12px;
  color: var(--green);
}


/* ============================================
   11. STATS ROW
   ============================================ */

.stats-row {
  background: #fff;
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item-icon {
  font-size: 18px;
  color: var(--green);
  margin-bottom: 6px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================
   12. SERVICES
   ============================================ */

.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--green-light);
  font-size: 24px;
  color: var(--green);
}

.service-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================
   13. WHY CHOOSE US
   ============================================ */

.why {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.why-card {
  text-align: center;
  padding: 20px 16px;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--green-light);
  font-size: 22px;
  color: var(--green);
}

.why-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ============================================
   14. CITIES GRID
   ============================================ */

.cities {
  background: var(--bg-light);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.city-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

a.city-card {
  display: block;
  text-decoration: none;
}

.city-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

.city-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  padding: 22px 12px 12px;
}

.city-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.city-count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}


/* ============================================
   15. EXPERTS
   ============================================ */

.experts {
  background: #fff;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expert-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(26, 107, 60, 0.18);
}

/* Photo + hover overlay */
.expert-photo {
  position: relative;
  aspect-ratio: 3 / 3.2;
  overflow: hidden;
  background: var(--bg-light);
}

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

.expert-card:hover .expert-img {
  transform: scale(1.08);
}

.expert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 79, 45, 0.95), rgba(26, 107, 60, 0.4) 45%, rgba(0, 0, 0, 0) 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.expert-card:hover .expert-overlay {
  opacity: 1;
}

.expert-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expert-socials {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.expert-card:hover .expert-socials {
  opacity: 1;
  transform: translateY(0);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.expert-card:hover .social-btn:hover {
  background: #fff;
  color: var(--green);
  transform: translateY(-3px);
}

/* Info strip */
.expert-info {
  position: relative;
  text-align: center;
  padding: 18px 20px 20px;
  background: #fff;
  border-top: 3px solid var(--green);
}

.expert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.expert-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* Touch devices: keep socials visible (no hover) */
@media (hover: none) {
  .expert-overlay {
    opacity: 1;
  }

  .expert-socials {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   16. TESTIMONIALS SLIDER
   ============================================ */

.testimonials {
  background: var(--bg-light);
}

.testimonials-slider-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  flex: 1 1 calc(50% - 12px);
}

.stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 48px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
}

.author-title {
  font-size: 12px;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slider-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.active {
  background: var(--green);
}


/* ============================================
   17. NEWS / ARTICLES
   ============================================ */

.news {
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 18px;
}

.news-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}


/* ============================================
   18. APP SECTION
   ============================================ */

.app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 60px;
  background:  
  url('/img/real-bg.svg') center / cover no-repeat;
}

.app-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.app-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}

.app-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.app-btn i {
  font-size: 17px;
}

.app-img img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 14px;
}


/* ============================================
   19. CTA BANNER
   ============================================ */

.cta-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 60px;
  background: var(--bg-light);
}

.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.cta-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
}


/* ============================================
   20. FOOTER
   ============================================ */

footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 60px 28px;
  border-top: 3px solid var(--green);
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-brand .nav-logo-text b {
  color: #fff;
}

.footer-brand .nav-logo-text small {
  color: #5ec98f;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 340px;
}

.footer-contact {
  margin-bottom: 22px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-contact p i {
  width: 18px;
  color: #5ec98f;
  text-align: center;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5ec98f;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  position: relative;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 14px;
}

.footer-col ul li a:hover::before {
  width: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-credit {
  color: #5ec98f;
  font-weight: 600;
}


/* ============================================
   21. TABS
   ============================================ */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab:hover,
.tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}


/* ============================================
   22. LISTINGS PAGE — HERO
   ============================================ */

.listings-hero {
  background:
    linear-gradient(rgba(10, 30, 18, 0.55), rgba(10, 30, 18, 0.45)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1400') center / cover no-repeat;
  padding: 64px 60px;
  text-align: center;
  color: #fff;
}

.listings-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.listings-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}


/* ============================================
   23. LISTINGS PAGE — LAYOUT & SIDEBAR
   ============================================ */

.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 48px 60px;
}

.filter-sidebar {
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.filter-sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

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

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

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-light);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group select {
  padding-right: 36px;
  background-color: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.price-range {
  display: flex;
  gap: 8px;
}

.price-range input {
  flex: 1;
}

.filter-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}


/* ============================================
   24. LISTINGS PAGE — TOOLBAR & GRID
   ============================================ */

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.listings-count {
  font-size: 14px;
  color: var(--text-muted);
}

.listings-count strong {
  color: var(--text);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-wrap label {
  font-size: 13px;
  color: var(--text-muted);
}

.sort-wrap select {
  padding: 9px 34px 9px 12px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  background-color: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-wrap select:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.view-btn:hover,
.view-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* ============================================
   25. LISTINGS PAGE — PAGINATION
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.page-btn:hover:not(.active) {
  border-color: var(--green);
  color: var(--green);
}


/* ============================================
   26. SCROLL ANIMATIONS
   ============================================ */

@keyframes fadeInTop {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-top,
.anim-slide-left,
.anim-slide-right {
  opacity: 0;
}

.anim-fade-top.in-view {
  opacity: 1;
  animation: fadeInTop 0.7s ease;
}

.anim-slide-left.in-view {
  opacity: 1;
  animation: slideInLeft 0.7s ease;
}

.anim-slide-right.in-view {
  opacity: 1;
  animation: slideInRight 0.7s ease;
}

.anim-stagger.in-view {
  animation-delay: calc(var(--stagger-index, 0) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade-top,
  .anim-slide-left,
  .anim-slide-right {
    opacity: 1;
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================
   27. RESPONSIVE / MEDIA QUERIES
   ============================================ */

@media (max-width: 1200px) {
  .nav-topbar,
  .nav-main {
    padding-left: 30px;
    padding-right: 30px;
  }

  .topbar-left,
  .topbar-right {
    gap: 16px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-search.open .nav-search-input {
    width: 150px;
  }

  .props-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  body {
    padding-top: 64px;
  }

  .nav-topbar {
    display: none;
  }

  .nav-main {
    padding: 0 20px;
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-search {
    position: static;
  }

  .nav-search-input {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-search.open .nav-search-input {
    width: auto;
    margin-right: 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  section,
  .stats-row,
  .app-section,
  .cta-banner,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 0 20px;
    min-height: 500px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    text-align: left;
    margin-right: 20px;
  }

  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-inner,
  .app-section,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-track {
    gap: 16px;
  }

  .testimonial-card {
    flex: 1 1 100%;
  }

  .listings-layout {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  section {
    padding: 48px 20px;
  }

  .hero {
    min-height: 460px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    margin-right: 20px;
  }

  .hero-desc-full {
    display: none;
  }

  .hero-desc-mobile {
    display: block;
    font-size: 14px;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar select,
  .search-bar input {
    width: 100%;
    min-width: 0;
  }

  .search-bar .btn-primary {
    justify-content: center;
  }

  .props-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .why-grid,
  .experts-grid {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .section-title {
    font-size: 24px;
  }

  .partner-text h2,
  .app-text h2,
  .cta-text h2 {
    font-size: 24px;
  }

  .listings-hero {
    padding: 40px 20px;
  }

  .listings-hero h1 {
    font-size: 28px;
  }

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

  .listings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-wrap {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .cities-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    padding: 20px;
  }

  .price-range {
    flex-direction: column;
  }

  .listings-count {
    width: 100%;
  }

  .detail-hero h1 {
    font-size: 24px;
  }
}

/* ============================================
   28. PROPERTY CARDS — NAME LINK & DETAILS BUTTON
   ============================================ */

.prop-name {
  color: var(--text);
  text-decoration: none;
}

.prop-name:hover {
  color: var(--green);
}

.prop-more {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.prop-more:hover {
  background: var(--green);
  color: #fff;
}

/* ============================================
   29. LISTINGS PAGE — LIST VIEW
   ============================================ */

.listings-grid.list-view {
  grid-template-columns: 1fr;
}

.listings-grid.list-view .prop-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
}

.listings-grid.list-view .prop-img img {
  height: 220px;
}

@media (max-width: 900px) {
  .listings-grid.list-view .prop-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   30. PROPERTY DETAILS PAGE
   ============================================ */

.detail-hero {
  background:
    linear-gradient(rgba(10, 30, 18, 0.55), rgba(10, 30, 18, 0.45)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1400') center / cover no-repeat;
  padding: 48px 60px;
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 18px;
}

.back-link:hover {
  color: #fff;
}

.detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 48px 60px;
  background: var(--bg-light);
}

.gallery {
  margin-bottom: 8px;
}

.gallery-main {
  border-radius: 14px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
  transition: border-color 0.2s, opacity 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: var(--green);
  opacity: 1;
}

.detail-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
}

.detail-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.detail-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.feature-item i {
  font-size: 18px;
  color: var(--green);
  width: 22px;
  text-align: center;
}

.feature-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-value {
  font-size: 14px;
  font-weight: 600;
}

.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--green-light);
  border: 1px solid rgba(26, 107, 60, 0.2);
  color: var(--green-dark);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
}

.amenity-chip i {
  font-size: 12px;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.d-price {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.d-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.d-badges .prop-badge {
  position: static;
}

.d-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}

.d-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.d-meta-row span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--green-light);
  color: var(--green);
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.d-call-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.agent-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.agent-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
}

.agent-name {
  font-size: 14px;
  font-weight: 700;
}

.agent-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.agent-box a {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.enquiry-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.enquiry-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.enquiry-box input,
.enquiry-box textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enquiry-box textarea {
  resize: vertical;
  min-height: 90px;
}

.enquiry-box input:focus,
.enquiry-box textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.form-note {
  font-size: 13px;
  margin-top: 10px;
}

.similar-section {
  background: #fff;
  padding: 72px 60px;
}

@media (max-width: 900px) {
  .detail-hero {
    padding: 36px 20px;
  }

  .detail-hero h1 {
    font-size: 26px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .gallery-main img {
    height: 320px;
  }

  .similar-section {
    padding: 48px 20px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main img {
    height: 240px;
  }

  .gallery-thumb {
    width: 76px;
    height: 60px;
  }
}