/* ==========================================
   TERRAGO — Styles principaux
   ========================================== */

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

:root {
  --green:       #1E6FA8;
  --green-light: #2A8AC7;
  --green-pale:  #E3F2FD;
  --dark:        #1A1A2E;
  --gray-900:    #111827;
  --gray-700:    #374151;
  --gray-500:    #6B7280;
  --gray-300:    #D1D5DB;
  --gray-100:    #F3F4F6;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.16);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--gray-700); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,111,168,.35); }
.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-pale); }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.btn-search {
  background: var(--green); color: var(--white);
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.btn-search:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-search svg { width: 18px; height: 18px; }
.btn-load { padding: 14px 40px; font-size: 15px; }

/* Phone in header */
.header-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header-phone:hover { background: var(--gray-100); color: var(--dark); }
.header-phone svg { width: 16px; height: 16px; }

/* Contact phones */
.contact-phones { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.phone-link {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 700; color: var(--green);
  transition: color var(--transition);
}
.phone-link:hover { color: var(--green-light); }
.phone-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; }
.logo-terra { color: var(--dark); }
.logo-go { color: var(--green); }
.logo-img { height: 48px; width: auto; object-fit: contain; }
.footer-brand .logo-img { height: 56px; background: var(--white); border-radius: 8px; padding: 4px 8px; }

.nav { display: flex; gap: 8px; margin: 0 auto; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: all var(--transition);
}
.nav a:hover { background: var(--gray-100); color: var(--dark); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }

.mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 16px 24px 20px; border-top: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-weight: 500; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 540px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0D3B6E 0%, #1E6FA8 40%, #2A8AC7 70%, #3BA0D8 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  background-size: 120px 120px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.05) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 64px 24px;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  color: var(--white); line-height: 1.15;
  max-width: 700px; margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-content p {
  font-size: 18px; color: rgba(255,255,255,.88);
  max-width: 540px; margin-bottom: 36px;
}

/* Search bar */
.search-bar {
  display: flex; align-items: center;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 8px 8px 0;
  max-width: 860px;
  overflow: hidden;
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; min-width: 0;
}
.search-field input, .search-field select {
  flex: 1; border: none; outline: none;
  font-size: 15px; color: var(--gray-900);
  background: transparent; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.search-field select { cursor: pointer; }
.search-field input::placeholder { color: var(--gray-500); }
.search-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: var(--green); fill: none; stroke-width: 2;
}
.search-divider { width: 1px; height: 32px; background: var(--gray-300); flex-shrink: 0; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-tags span {
  background: rgba(255,255,255,.18); color: var(--white);
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-tags span:hover { background: rgba(255,255,255,.30); }

/* ===== STATS ===== */
.stats { background: var(--dark); padding: 28px 0; }
.stats .container {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 40px; text-align: center;
}
.stat-item strong { font-size: 28px; font-weight: 800; color: var(--white); }
.stat-item span { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); }

/* ===== LISTINGS ===== */
.listings-section { padding: 64px 0; }
.listings-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.listings-header h2 { font-size: 28px; font-weight: 800; color: var(--dark); }
.listings-count { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.listings-controls { display: flex; gap: 12px; align-items: center; }
.listings-controls select {
  padding: 8px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14px;
  color: var(--gray-700); cursor: pointer; outline: none;
  background: var(--white);
}

.view-toggle { display: flex; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; }
.view-btn {
  padding: 8px 12px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--gray-500);
}
.view-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.view-btn.active { background: var(--green); color: var(--white); }
.view-btn:hover:not(.active) { background: var(--gray-100); }

/* Active filters */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-pale); color: var(--green);
  padding: 4px 12px; border-radius: 50px; font-size: 13px; font-weight: 500;
}
.filter-tag button { display: flex; align-items: center; color: var(--green); padding: 0; font-size: 16px; line-height: 1; }

/* Listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.listings-grid.list-view { grid-template-columns: 1fr; }

/* Card */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: var(--white);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px; letter-spacing: .5px;
}
.card-badge.available { background: var(--green); }
.card-badge.reserved { background: #F9A825; color: #1A1A2E; }
.card-badge.sold { background: #E53935; }
.card-fav {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 1;
}
.card-fav:hover { background: var(--white); transform: scale(1.1); }
.card-fav svg { width: 18px; height: 18px; stroke: var(--gray-500); fill: none; stroke-width: 2; }
.card-fav.liked svg { stroke: #E53935; fill: #E53935; }

.card-body { padding: 16px 18px 18px; }
.card-price { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.price-tax { font-size: 11px; font-weight: 500; color: var(--gray-500); vertical-align: middle; }
.card-title { font-size: 14px; color: var(--gray-700); font-weight: 500; margin-bottom: 8px; }
.card-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--gray-500); margin-bottom: 14px;
}
.card-location svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.card-specs { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--gray-100); padding-top: 14px; }
.spec { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gray-600); }
.spec svg { width: 15px; height: 15px; stroke: var(--green); fill: none; stroke-width: 2; flex-shrink: 0; }

/* List view card */
.list-view .card { display: grid; grid-template-columns: 280px 1fr; }
.list-view .card-img-wrap { aspect-ratio: 4/3; height: auto; }
.list-view .card-body { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }

.load-more-wrap { text-align: center; margin-top: 40px; }

/* ===== MAP SECTION ===== */
.map-section { padding: 64px 0; background: var(--gray-100); }
.map-section h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.map-section > .container > p { color: var(--gray-500); margin-bottom: 28px; }

#map {
  width: 100%; height: 480px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-300);
  z-index: 1;
}

/* Marqueurs personnalisés */
.map-marker {
  background: var(--dark); color: var(--white);
  padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-md); cursor: pointer;
  border: 2px solid var(--white);
  transition: background var(--transition);
}
.map-marker:hover { background: var(--green); }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 80px 0; }
.how-section h2 { text-align: center; font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--gray-500); font-size: 16px; margin-bottom: 48px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  text-align: center; padding: 36px 28px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; background: var(--green); color: var(--white);
  border-radius: 50%; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-icon {
  width: 64px; height: 64px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 2; }
.step h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ===== TYPES ===== */
.types-section { padding: 80px 0; background: var(--gray-100); }
.types-section h2 { text-align: center; font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.type-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: all var(--transition);
  border: 1px solid var(--gray-100);
}
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.type-img { height: 160px; }
.type-residential { background: linear-gradient(135deg, #1E6FA8, #64B5F6); }
.type-commercial  { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.type-agricultural{ background: linear-gradient(135deg, #E65100, #FFA726); }
.type-wooded      { background: linear-gradient(135deg, #33691E, #8D6E63); }
.type-industrial  { background: linear-gradient(135deg, #37474F, #78909C); }
.type-info { padding: 16px 18px 20px; }
.type-info h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.type-info p { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.type-count { font-size: 12px; font-weight: 600; color: var(--green); }

/* ===== CTA / CONTACT ===== */
.cta-section { padding: 80px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.cta-text h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.cta-text p { color: var(--gray-500); line-height: 1.8; margin-bottom: 24px; font-size: 15px; }
.cta-text ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cta-text li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--gray-700);
}
.cta-text li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--green); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

.cta-form {
  background: var(--white); padding: 36px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.cta-form h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-900);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; font-size: 22px; }
.footer-brand .logo-terra { color: var(--white); }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.55); max-width: 280px; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--green); }
.social-links svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 2; }

.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 8px;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%);
  background: var(--white); border-radius: var(--radius);
  width: min(780px, 95vw); max-height: 90vh;
  overflow-y: auto; z-index: 2001;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: var(--gray-100);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.modal-close:hover { background: var(--gray-300); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--gray-700); fill: none; stroke-width: 2; }
.modal-content { padding: 0; }
/* Carousel */
.carousel { position: relative; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.carousel-track { width: 100%; height: 100%; }
.carousel-slide { display: none; width: 100%; height: 100%; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all var(--transition); z-index: 2;
}
.carousel-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none;
  transition: all var(--transition); cursor: pointer; padding: 0;
}
.carousel-dot.active { background: var(--white); transform: scale(1.25); }
.modal-body { padding: 28px 32px 32px; }
.modal-body h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.modal-price { font-size: 32px; font-weight: 800; color: var(--green); margin-bottom: 16px; }
.modal-price .price-tax { font-size: 14px; font-weight: 500; color: var(--gray-500); vertical-align: middle; }
.modal-specs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.modal-spec {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-100); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--gray-700);
}
.modal-spec svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; }
.modal-desc { font-size: 14px; color: var(--gray-500); line-height: 1.8; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; justify-content: center; padding: 14px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--dark); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  transform: translateY(20px); opacity: 0;
  transition: all .3s ease; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; margin-left: auto; }

  .search-bar { flex-direction: column; padding: 12px; gap: 0; border-radius: var(--radius); }
  .search-field { padding: 10px 4px; width: 100%; }
  .search-divider { display: none; }
  .btn-search { width: 100%; justify-content: center; margin-top: 8px; }

  .stat-item { padding: 10px 20px; }
  .stat-divider { height: 36px; }

  .listings-grid { grid-template-columns: 1fr; }
  .list-view .card { grid-template-columns: 1fr; }
  .list-view .card-img-wrap { height: 200px; }

  .types-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-content { padding: 48px 20px; }
  .stat-divider { display: none; }
  .stats .container { flex-direction: column; gap: 4px; }
  .stat-item { padding: 8px 0; }
}
