/* ===================================================
   ecoDir AI — Responsive Stylesheet
   =================================================== */

/* ── Variables ── */
:root {
  --primary:      #1b4332;
  --primary-light:#2d6a4f;
  --secondary:    #40916c;
  --accent:       #52b788;
  --light-green:  #95d5b2;
  --pale-green:   #d8f3dc;
  --white:        #ffffff;
  --off-white:    #f8faf8;
  --light-gray:   #f1f5f1;
  --mid-gray:     #e0e8e0;
  --gray:         #6c757d;
  --dark-gray:    #495057;
  --dark:         #1a2e1a;
  --text:         #2c3e2c;
  --border:       #d1e8d1;
  --shadow:       0 2px 16px rgba(27,67,50,.10);
  --shadow-md:    0 4px 24px rgba(27,67,50,.14);
  --shadow-lg:    0 8px 40px rgba(27,67,50,.18);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --transition:   all .25s ease;
  --header-h:     72px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--secondary); }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Skip link ── */
.skip-link { position: absolute; top: -999px; left: 8px; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ── Container ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: .75rem; }
.text-muted   { color: var(--gray); }
.text-primary { color: var(--primary-light); }
.text-center  { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: .9rem; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary-light); border-color: var(--primary-light); }
.btn-outline:hover { background: var(--primary-light); color: #fff; }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-green   { background: var(--pale-green); color: var(--primary); }
.badge-gray    { background: var(--light-gray);  color: var(--gray); }
.badge-blue    { background: #e0f2fe; color: #0369a1; }
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-not-verified { background: #fef3c7; color: #92400e; }
.badge-ai { background: #ede9fe; color: #5b21b6; }

/* ── ─────────────────────────── ── */
/* ── HEADER                      ── */
/* ── ─────────────────────────── ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header-logo img { height: 38px; width: auto; object-fit: contain; }
.site-brand  { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.site-brand .brand-icon { font-size: 1.4rem; }
.main-nav    { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link    { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text); background: none; border: none; font-size: .9rem; transition: var(--transition); }
.nav-link:hover { background: var(--pale-green); color: var(--primary); }
.nav-cta     { margin-left: 8px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; min-width: 280px; max-height: 420px; overflow-y: auto; z-index: 999; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.open { display: grid; }
.dropdown-item { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .85rem; color: var(--text); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.dropdown-item:hover { background: var(--pale-green); color: var(--primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 12px 0; max-height: 80vh; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-link  { padding: 12px 20px; font-weight: 500; color: var(--text); border: none; background: none; text-align: left; font-size: .95rem; }
.mobile-nav-link:hover { background: var(--pale-green); color: var(--primary); }
.mobile-nav-sub   { padding: 10px 36px; font-size: .875rem; color: var(--dark-gray); display: block; }
.mobile-nav-sub:hover { background: var(--pale-green); color: var(--primary); }
.mobile-nav-details summary { list-style: none; }
.mobile-nav-details summary::-webkit-details-marker { display: none; }
.mobile-cta { background: var(--primary-light) !important; color: #fff !important; margin: 8px 16px; border-radius: 50px; text-align: center; }

/* ── ─────────────────────────── ── */
/* ── HERO                         ── */
/* ── ─────────────────────────── ── */
main#main-content { min-height: 60vh; }
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%); color: #fff; padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { color: var(--light-green); }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }

/* Hero search */
.hero-search { display: flex; gap: 0; max-width: 680px; margin: 0 auto; background: #fff; border-radius: 50px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-search input { flex: 1; border: none; padding: 16px 24px; font-size: 1rem; color: var(--text); outline: none; min-width: 0; }
.hero-search select { border: none; border-left: 1px solid var(--border); padding: 16px 16px; font-size: .9rem; color: var(--gray); background: #fff; outline: none; max-width: 180px; }
.hero-search button { background: var(--primary-light); color: #fff; border: none; padding: 16px 28px; font-size: 1rem; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.hero-search button:hover { background: var(--primary); }

.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stat  { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--light-green); }
.hero-stat-lbl { font-size: .85rem; opacity: .8; }

/* ── ─────────────────────────── ── */
/* ── SECTIONS                     ── */
/* ── ─────────────────────────── ── */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark p { color: #fff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--primary); margin-bottom: 10px; }
.section-header p  { color: var(--gray); max-width: 560px; margin: 0 auto; }
.section-header .section-cta { margin-top: 16px; }

/* ── Category grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border-radius: var(--radius); background: #fff; border: 2px solid var(--border); transition: var(--transition); text-align: center; cursor: pointer; }
.cat-card:hover { border-color: var(--cat-color, var(--accent)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-icon  { font-size: 2.2rem; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--cat-color, var(--accent)) 15%, #fff); display: flex; align-items: center; justify-content: center; }
.cat-name  { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-count { font-size: .75rem; color: var(--gray); }

/* ── Listing cards ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.listing-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.listing-card-img { height: 180px; background: linear-gradient(135deg, var(--pale-green), var(--mid-gray)); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.listing-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.listing-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.listing-card-cat  { font-size: .75rem; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .5px; }
.listing-card-name { font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.listing-card-tagline { font-size: .875rem; color: var(--gray); flex: 1; }
.listing-card-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--gray); margin-top: 4px; flex-wrap: wrap; }
.listing-card-meta span { display: flex; align-items: center; gap: 3px; }
.listing-card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ── Search & Filters ── */
.search-bar-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
.search-bar-row  { display: flex; gap: 12px; flex-wrap: wrap; }
.search-bar-row input,
.search-bar-row select { flex: 1; min-width: 160px; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); background: var(--off-white); outline: none; transition: var(--transition); }
.search-bar-row input:focus,
.search-bar-row select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(82,183,136,.15); }
.search-bar-row .btn { flex-shrink: 0; }

/* ── Listing detail ── */
.listing-detail-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 48px 0 32px; }
.listing-detail-header h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.listing-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 40px 0; }
.listing-main  {}
.listing-aside { display: flex; flex-direction: column; gap: 20px; }

.detail-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.detail-section h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--pale-green); }

.contact-list  { display: flex; flex-direction: column; gap: 12px; }
.contact-item  { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.contact-icon  { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.hours-table td { padding: 6px 0; vertical-align: top; }
.hours-table td:first-child { font-weight: 600; width: 80px; }

/* FAQ */
.faq-item    { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 14px 0; font-weight: 600; font-size: .9rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faq-question::after { content: '+'; font-size: 1.2rem; flex-shrink: 0; color: var(--secondary); transition: var(--transition); }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer  { padding: 0 0 14px; font-size: .875rem; color: var(--dark-gray); display: none; }
.faq-answer.open { display: block; }

/* Verification */
.verify-box { text-align: center; padding: 20px; }
.verify-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.verify-stamp.verified     { background: #d1fae5; color: #065f46; border: 2px solid #6ee7b7; }
.verify-stamp.not-verified { background: #fef3c7; color: #92400e; border: 2px solid #fcd34d; }
.verify-count { font-size: .8rem; color: var(--gray); margin-bottom: 12px; }

/* Map */
.map-container { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-large     { height: 480px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; cursor: pointer; transition: var(--transition); }
.gallery-grid img:hover { opacity: .85; transform: scale(1.02); }

/* Social links */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link  { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pale-green); color: var(--primary); font-size: 1rem; transition: var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ── Add Listing Form ── */
.form-card  { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-steps { display: flex; gap: 0; margin-bottom: 32px; overflow-x: auto; }
.form-step  { flex: 1; text-align: center; padding: 12px 8px; border-bottom: 3px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--gray); min-width: 80px; transition: var(--transition); white-space: nowrap; }
.form-step.active   { color: var(--primary); border-color: var(--primary-light); }
.form-step.completed{ color: var(--secondary); border-color: var(--accent); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--dark-gray); margin-bottom: 6px; }
.form-label .req { color: #e74c3c; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); background: #fff; outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82,183,136,.15); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-control.auto-filled { background: #f0faf4; color: var(--primary); border-color: var(--accent); font-weight: 600; cursor: default; }
.form-hint { font-size: .78rem; color: var(--gray); margin-top: 4px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-panel  { display: none; }
.form-panel.active { display: block; }

/* ── Search results layout ── */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.results-with-map { display: grid; grid-template-columns: 1fr 420px; gap: 24px; }
.map-sticky { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); max-height: 700px; }
.results-count { font-size: .875rem; color: var(--gray); margin-bottom: 16px; }
.results-count strong { color: var(--text); }

/* AI results section */
.ai-results-section { border: 2px solid #c4b5fd; border-radius: var(--radius); overflow: hidden; }
.ai-results-header   { background: #ede9fe; padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.ai-results-header h3 { font-size: .9rem; color: #5b21b6; margin: 0; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a,
.pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .875rem; font-weight: 500; transition: var(--transition); }
.pagination a:hover { background: var(--pale-green); border-color: var(--accent); }
.pagination .active { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

/* ── View toggle ── */
.view-toggle { display: flex; gap: 4px; }
.view-btn    { padding: 8px 14px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; color: var(--gray); transition: var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

/* ── Page banner ── */
.page-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 48px 0; }
.page-banner h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.page-banner p  { color: rgba(255,255,255,.8); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ── Stats bar ── */
.stats-bar { background: var(--pale-green); padding: 24px 0; border-top: 1px solid var(--mid-gray); border-bottom: 1px solid var(--mid-gray); }
.stats-bar-inner { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-lbl  { font-size: .8rem; color: var(--gray); font-weight: 500; }

/* ── How it works ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card  { text-align: center; padding: 32px 20px; }
.step-num   { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); color: #fff; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-icon  { font-size: 2.4rem; margin-bottom: 12px; }
.step-card h3 { color: var(--primary); margin-bottom: 8px; }

/* ── CTA section ── */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 64px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── AdSense ── */
.adsense-wrap { margin: 28px 0; text-align: center; }
/* Collapse margin when ad unit is unfilled (AdSense sets display:none on <ins>) */
.adsense-wrap:has(ins[style*="none"]) { margin: 0; }
.adsense-label { font-size: .7rem; color: var(--gray); margin-bottom: 4px; }

/* ── Scroll-to-top ── */
.scroll-top { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); color: #fff; border: none; font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover   { background: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .875rem; opacity: .75; margin-top: 12px; }
.footer-logo-link { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo-link .brand-name { color: #fff; font-size: 1.1rem; }
.footer-logo-link .brand-icon.large { font-size: 1.4rem; }
.footer-powered { font-size: .8rem; margin-top: 10px; }
.footer-powered a { color: var(--accent); }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; letter-spacing: .5px; text-transform: uppercase; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: rgba(255,255,255,.65); font-size: .875rem; transition: var(--transition); }
.site-footer ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .8rem; opacity: .6; margin: 0; }
.footer-disclaimer { font-style: italic; }

/* ── Alerts / Toasts ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .875rem; display: flex; align-items: flex-start; gap: 8px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ── Loading spinner ── */
.spinner { width: 40px; height: 40px; border: 4px solid var(--pale-green); border-top-color: var(--primary-light); border-radius: 50%; animation: spin .7s linear infinite; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { text-align: center; color: var(--gray); font-size: .9rem; }

/* ── Video embed ── */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Logo upload / preview ── */
.logo-preview { width: 100px; height: 100px; border-radius: var(--radius-sm); background: var(--light-gray); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; cursor: pointer; transition: var(--transition); }
.logo-preview:hover { border-color: var(--accent); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Inline map address field ── */
#address-autocomplete { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ── Tag chips ── */
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; background: var(--pale-green); color: var(--primary); border-radius: 50px; font-size: .78rem; font-weight: 600; }

/* ── No results ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3  { color: var(--dark-gray); margin-bottom: 8px; }
.empty-state p   { color: var(--gray); max-width: 400px; margin: 0 auto 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .results-with-map { grid-template-columns: 1fr; }
  .map-sticky { position: static; height: 350px; max-height: none; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .listing-aside { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 56px 0 40px; }
  .hero-search { flex-direction: column; border-radius: var(--radius); background: transparent; box-shadow: none; gap: 10px; overflow: visible; }
  .hero-search input,
  .hero-search select,
  .hero-search button { border-radius: var(--radius-sm) !important; border: none; box-shadow: var(--shadow); width: 100%; }
  .hero-search input,
  .hero-search select { background: #fff; }
  .hero-search button { background: var(--primary-light); color: #fff; padding: 14px 28px; }
  .hero-stats  { gap: 20px; }
  .hero-stat-num { font-size: 1.6rem; }
  .cat-grid    { grid-template-columns: repeat(3, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row,
  .form-grid-3 { grid-template-columns: 1fr; }
  .form-steps  { gap: 4px; }
  .form-step   { padding: 10px 4px; font-size: .72rem; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .listing-aside { display: flex; flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
  .section { padding: 40px 0; }
}
@media (max-width: 500px) {
  .cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stats-bar-inner { gap: 20px; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer, .scroll-top, .btn, .adsense-wrap { display: none !important; }
  body { color: #000; }
}
