/* ============================================================
   fermierul.online — Fermierii României (farmers directory)
   ============================================================ */

body{
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(201,169,97,.10), transparent 60%),
    radial-gradient(800px 700px at -10% 30%, rgba(45,74,43,.06), transparent 60%),
    var(--cream);
  min-height:100vh;
  overflow-x:hidden;
}

.fer-container{
  max-width:1200px;margin:0 auto;
  padding:0 28px;
  width:100%;
}

/* ============================================================
   PATTERN
   ============================================================ */
.fer-pattern{
  position:absolute;inset:0;pointer-events:none;z-index:0;
  opacity:.55;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'><g fill='none' stroke='%232D4A2B' stroke-width='0.6' opacity='.18'><path d='M55 24 L66 35 L55 46 L44 35 Z'/><path d='M22 55 L33 66 L22 77 L11 66 Z'/><path d='M88 55 L99 66 L88 77 L77 66 Z'/><circle cx='55' cy='55' r='1.4' fill='%232D4A2B'/><path d='M0 55 L18 55 M92 55 L110 55 M55 0 L55 18 M55 92 L55 110'/></g></svg>");
  background-size:130px 130px;
  -webkit-mask-image:radial-gradient(ellipse at center top, rgba(0,0,0,.6), transparent 75%);
          mask-image:radial-gradient(ellipse at center top, rgba(0,0,0,.6), transparent 75%);
}

/* ============================================================
   HEADER (identic cu platforma)
   ============================================================ */
.fer-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,253,248,.85);
  -webkit-backdrop-filter:blur(10px);
          backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.fer-header-inner{
  max-width:1280px;margin:0 auto;
  padding:14px 28px;
  display:grid;grid-template-columns:auto 1fr auto;
  gap:24px;align-items:center;
}
.fer-brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink)}
.fer-brand-mark{
  width:38px;height:38px;border-radius:11px;
  background:var(--green);color:var(--cream);
  display:grid;place-items:center;
  box-shadow:0 6px 16px rgba(45,74,43,.20);
}
.fer-brand-text{font-family:var(--ff-serif);font-size:20px;font-weight:600;letter-spacing:-.01em}
.fer-brand-name{color:var(--ink)}
.fer-brand-dot{color:var(--clay);font-weight:700}
.fer-brand-tld{color:var(--green)}
.fer-nav{display:flex;gap:6px;align-items:center;justify-content:center}
.fer-nav-link{
  font-size:13.5px;font-weight:500;color:var(--ink-2);
  padding:8px 12px;border-radius:8px;
  transition:background .15s ease, color .15s ease;
}
.fer-nav-link:hover{background:var(--green-soft);color:var(--green)}
.fer-nav-link.is-active{background:var(--green);color:var(--cream)}
.fer-header-right{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.fer-menu-btn{display:none;width:38px;height:38px;border-radius:50%;background:transparent;color:var(--ink-2);border:1px solid transparent}
.fer-menu-btn:hover{background:var(--cream-2);color:var(--green)}

/* ============================================================
   BUTTONS (system)
   ============================================================ */
.btn-fer{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 16px;border-radius:999px;
  font-size:13px;font-weight:600;font-family:inherit;
  border:1px solid transparent;cursor:pointer;
  transition:all .2s ease;
  line-height:1;white-space:nowrap;text-decoration:none;
}
.btn-fer .ic{width:15px;height:15px}
.btn-fer:disabled{opacity:.6;cursor:not-allowed}
.btn-fer-primary{background:var(--green);color:var(--cream);box-shadow:0 6px 16px rgba(45,74,43,.20)}
.btn-fer-primary:hover:not(:disabled){background:var(--green-2);transform:translateY(-1px);box-shadow:0 8px 20px rgba(45,74,43,.28)}
.btn-fer-secondary{background:var(--paper);color:var(--ink-2);border-color:var(--line);box-shadow:var(--shadow-1)}
.btn-fer-secondary:hover{border-color:var(--green);color:var(--green)}
.btn-fer-ghost{background:transparent;color:var(--ink-2);border-color:var(--line)}
.btn-fer-ghost:hover{border-color:var(--green);color:var(--green);background:var(--green-soft)}
.btn-fer-lg{padding:14px 24px;font-size:14px}
.btn-fer-sm{padding:7px 12px;font-size:12.5px}
.btn-fer-cream{background:var(--cream);color:var(--green-2)}
.btn-fer-cream:hover{background:var(--paper);color:var(--green-2)}
.btn-fer-outline{background:transparent;color:var(--cream);border-color:rgba(251,246,234,.4)}
.btn-fer-outline:hover{background:rgba(251,246,234,.10);border-color:var(--cream)}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.fer-section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:24px;flex-wrap:wrap;
  margin-bottom:32px;
}
.fer-section-head-centered{
  flex-direction:column;align-items:center;text-align:center;
  margin-bottom:40px;
}
.fer-section-eyebrow{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;
  background:var(--cream-3);color:var(--ink-2);
  margin-bottom:10px;
}
.fer-section-eyebrow .ic{width:12px;height:12px;color:var(--green)}
.fer-section-title{
  font-family:var(--ff-serif);
  font-size:38px;font-weight:600;
  line-height:1.1;letter-spacing:-.01em;
  margin:0;color:var(--ink);
}
.fer-section-title em{
  font-style:italic;
  background:linear-gradient(90deg,var(--green-2),var(--clay-2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.fer-section-lead{
  font-size:15px;color:var(--muted);
  margin:8px 0 0;max-width:60ch;line-height:1.55;
}
.fer-section-head-centered .fer-section-lead{margin-left:auto;margin-right:auto}

/* ============================================================
   HERO
   ============================================================ */
.fer-hero{position:relative;padding:60px 0 80px}
.fer-hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.05fr 1fr;
  gap:48px;align-items:center;
}
.fer-hero-text{display:flex;flex-direction:column;gap:18px}
.fer-hero-title{
  font-family:var(--ff-serif);
  font-size:54px;font-weight:600;
  line-height:1.05;letter-spacing:-.02em;
  margin:0;color:var(--ink);
}
.fer-hero-lead{
  font-size:16.5px;line-height:1.6;color:var(--muted);
  margin:0;max-width:54ch;
}
.fer-hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.fer-hero-trust{
  display:flex;gap:18px;flex-wrap:wrap;
  list-style:none;padding:14px 0 0;margin:14px 0 0;
  border-top:1px dashed var(--line-soft);
}
.fer-hero-trust li{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);font-weight:600}
.fer-hero-trust .ic{width:14px;height:14px;color:var(--green)}

/* Hero collage */
.fer-hero-collage{
  position:relative;
  display:grid;grid-template-columns:1.3fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:14px;height:480px;
}
.fer-collage-card{
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-2);
  overflow:hidden;position:relative;
}
.fer-collage-photo{background:transparent}
.fer-collage-photo svg{width:100%;height:100%;display:block}
.fer-collage-pill{
  position:absolute;top:14px;left:14px;
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;
  padding:5px 11px;border-radius:999px;
  background:rgba(255,253,248,.92);color:var(--ink-2);
  backdrop-filter:blur(6px);
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-1);
}
.fer-collage-pill .ic{width:12px;height:12px}
.fer-hero-collage > :nth-child(1){grid-row:1 / 3;grid-column:1}
.fer-hero-collage > :nth-child(2){grid-row:1;grid-column:2}
.fer-hero-collage > :nth-child(3){grid-row:2;grid-column:2}
.fer-hero-collage > :nth-child(4){grid-row:2;grid-column:2}

/* Verified card */
.fer-collage-verified{
  padding:18px;display:flex;flex-direction:column;gap:6px;
  background:linear-gradient(135deg,var(--green) 0%,var(--green-2) 100%);
  color:var(--cream);border-color:transparent;
  position:relative;overflow:hidden;
}
.fer-collage-verified::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 100% 0%, rgba(201,169,97,.25), transparent 60%);
  pointer-events:none;
}
.fer-collage-eyebrow{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 9px;border-radius:999px;
  background:rgba(251,246,234,.18);color:var(--cream);
  border:1px solid rgba(251,246,234,.25);
  align-self:flex-start;
}
.fer-collage-eyebrow .ic{width:12px;height:12px}
.fer-collage-verified strong{font-family:var(--ff-serif);font-size:20px;font-weight:700;color:var(--cream);margin-top:6px;line-height:1.1}
.fer-collage-verified em{font-style:normal;font-size:11.5px;color:rgba(251,246,234,.78)}
.fer-collage-status{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;color:rgba(251,246,234,.92);
  margin-top:auto;padding:4px 10px;border-radius:999px;
  background:rgba(45,74,43,.4);border:1px solid rgba(251,246,234,.18);
  align-self:flex-start;
}
.fer-collage-status .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--cream);animation:pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot{0%,100%{opacity:1}50%{opacity:.4}}

/* Seasonal + Direct cards */
.fer-collage-seasonal,.fer-collage-direct{
  padding:14px;display:flex;align-items:center;gap:10px;
  background:var(--paper);
}
.fer-collage-ico{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;flex:0 0 auto;
  background:var(--clay-soft);color:var(--clay);
}
.fer-collage-ico .ic{width:18px;height:18px}
.fer-collage-direct .fer-collage-ico{background:var(--green-soft);color:var(--green)}
.fer-collage-seasonal strong,.fer-collage-direct strong{
  display:block;font-size:13px;color:var(--ink);font-weight:600;line-height:1.2;
}
.fer-collage-seasonal em,.fer-collage-direct em{
  display:block;font-size:11px;color:var(--muted);font-style:normal;margin-top:2px;
}

/* ============================================================
   SEARCH + FILTERS
   ============================================================ */
.fer-search-section{padding:60px 0 30px;position:relative;z-index:1}
.fer-search-card{
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-2);
  padding:24px 26px;
  display:flex;flex-direction:column;gap:18px;
}
.fer-search-bar{
  display:flex;align-items:center;gap:10px;
  padding:8px 8px 8px 18px;
  background:var(--cream-2);
  border-radius:999px;
}
.fer-search-bar .ic{width:18px;height:18px;color:var(--muted-2)}
.fer-search-bar input{
  flex:1;background:transparent;border:0;outline:0;
  font-size:14.5px;color:var(--ink);padding:8px 4px;font-family:inherit;
}
.fer-search-bar input::placeholder{color:var(--muted-2)}
.fer-search-clear{
  width:32px;height:32px;border-radius:50%;
  background:var(--paper);color:var(--muted);
  display:grid;place-items:center;flex:0 0 auto;
  border:1px solid var(--line-soft);
  transition:all .15s ease;
}
.fer-search-clear:hover{background:var(--clay-soft);color:var(--clay-2);border-color:rgba(196,93,61,.30)}
.fer-search-clear .ic{width:14px;height:14px}

.fer-filters{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:end;
}
.fer-filter{display:flex;flex-direction:column;gap:6px}
.fer-filter label{font-size:12px;font-weight:600;color:var(--ink-2)}
.fer-filter select{
  padding:11px 36px 11px 14px;
  background:var(--cream-2);
  border:1px solid transparent;
  border-radius:var(--radius);
  font-size:13.5px;color:var(--ink);font-family:inherit;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' stroke='%236E6049' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;
  cursor:pointer;outline:0;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.fer-filter select:hover{border-color:var(--line)}
.fer-filter select:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(45,74,43,.10)}

.fer-filter-checks{
  grid-column:1/-1;
  display:flex;gap:14px;flex-wrap:wrap;
  padding-top:8px;border-top:1px dashed var(--line-soft);
}
.fer-check{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2);cursor:pointer;user-select:none}
.fer-check input{position:absolute;opacity:0;pointer-events:none}
.fer-check-box{
  width:16px;height:16px;border-radius:4px;
  background:var(--paper);border:1.5px solid var(--line);
  display:grid;place-items:center;flex:0 0 auto;
  transition:all .15s ease;
}
.fer-check-box .ic{width:11px;height:11px;color:var(--cream);opacity:0;transform:scale(.6);transition:all .15s ease}
.fer-check:hover .fer-check-box{border-color:var(--green)}
.fer-check input:checked + .fer-check-box{background:var(--green);border-color:var(--green)}
.fer-check input:checked + .fer-check-box .ic{opacity:1;transform:scale(1)}

.fer-filter-actions{
  grid-column:1/-1;
  display:flex;justify-content:flex-end;gap:10px;
  padding-top:6px;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.fer-map-section{padding:60px 0}
.fer-map-layout{
  display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start;
  margin-bottom:36px;
}

/* Map wrap */
.fer-map-wrap{
  position:relative;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:32px;
  padding:24px;
  box-shadow:var(--shadow-1);
}
.fer-map-wrap::before{
  content:"";position:absolute;inset:0;border-radius:32px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%232D4A2B' stroke-width='0.5' opacity='.10'><path d='M50 18 L60 28 L50 38 L40 28 Z'/><path d='M22 50 L32 60 L22 70 L12 60 Z'/><path d='M78 50 L88 60 L78 70 L68 60 Z'/></g></svg>");
  background-size:120px 120px;
  pointer-events:none;
}
.fer-map-wrap > *{position:relative;z-index:1}

.ro-real-map.fer-map-svg{width:100%;height:auto;display:block}
.ro-real-map .counties path{
  fill:var(--cream-3);stroke:var(--ink);stroke-width:.8;
  stroke-linejoin:round;cursor:pointer;
  transition:fill .2s ease, stroke .2s ease, stroke-width .2s ease;
  transform-origin:center;transform-box:fill-box;
}
.ro-real-map .counties path:hover,
.ro-real-map .counties path.is-hover{fill:var(--green-soft);stroke-width:1.4}
.ro-real-map .counties path.is-selected{fill:var(--green);stroke-width:1.4}
.ro-real-map .counties path.has-farmers{fill:var(--green-soft)}
.ro-real-map .counties path.is-dim{fill:var(--cream-3);opacity:.7}
.ro-real-map .county-labels text{
  font-family:var(--ff-sans);font-weight:600;fill:#3D3324;
  pointer-events:none;transition:fill .2s ease, font-weight .2s ease;
}
.ro-real-map .county-labels text.is-hover,
.ro-real-map .county-labels text.is-selected{
  fill:var(--green-2);font-weight:700;
}

.map-tooltip{
  position:absolute;z-index:10;padding:8px 12px;
  background:#3D3324;color:var(--cream);
  font-family:var(--ff-sans);font-size:.82rem;font-weight:500;
  border-radius:8px;pointer-events:none;
  white-space:nowrap;transform:translate(-50%,-100%);
  margin-top:-8px;box-shadow:var(--shadow-2);
  letter-spacing:-.005em;
}
.map-tooltip::after{content:'';position:absolute;bottom:-4px;left:50%;transform:translateX(-50%) rotate(45deg);width:8px;height:8px;background:#3D3324}
.map-tooltip strong{color:var(--gold);font-weight:700}
.map-hint{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin:14px 0 0;
  font-family:var(--ff-sans);font-size:.82rem;color:var(--muted);
  letter-spacing:.02em;
}
.map-hint .ic{width:14px;height:14px;color:var(--clay)}

/* Side panel */
.fer-map-panel{
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:32px;
  box-shadow:var(--shadow-1);
  padding:28px;
  position:sticky;top:90px;
  min-height:480px;
  display:flex;flex-direction:column;gap:14px;
}
.fer-panel-empty{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.fer-panel-empty-ico{
  width:48px;height:48px;border-radius:14px;
  background:var(--green-soft);color:var(--green);
  display:grid;place-items:center;
}
.fer-panel-empty-ico .ic{width:24px;height:24px}
.fer-panel-empty h3{font-family:var(--ff-serif);font-size:24px;font-weight:600;margin:0;color:var(--ink);line-height:1.2}
.fer-panel-empty p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.fer-panel-region-stats{display:flex;flex-direction:column;gap:6px;list-style:none;padding:0;margin:6px 0 0;width:100%}
.fer-panel-region-stats li{
  display:flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:8px;
  background:var(--cream-2);font-size:13px;color:var(--ink-2);
  font-weight:500;
}
.fer-panel-region-stats li em{font-style:normal;margin-left:auto;font-size:12px;color:var(--muted);font-weight:600}

.dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.dot-clay{background:#C45D3D}
.dot-green{background:#2D4A2B}
.dot-gold{background:#C9A961}
.dot-voronet{background:#1B3D8F}

.fer-panel-selected{display:flex;flex-direction:column;gap:14px}
.fer-panel-tag{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;
  background:var(--green-soft);color:var(--green);
  align-self:flex-start;
}
.fer-panel-selected h3{font-family:var(--ff-serif);font-size:32px;font-weight:600;margin:0;color:var(--ink);line-height:1.05}
.fer-panel-sub{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.fer-panel-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.fer-panel-stats > div{
  padding:14px;background:var(--cream-2);border-radius:var(--radius);
  display:flex;flex-direction:column;gap:4px;
}
.fer-panel-stats strong{font-family:var(--ff-serif);font-size:26px;color:var(--green-2);font-weight:700;line-height:1}
.fer-panel-stats span{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.fer-panel-mini{
  display:flex;flex-direction:column;gap:8px;
  padding-top:14px;border-top:1px dashed var(--line-soft);margin-top:6px;
}
.fer-panel-mini-item{
  display:flex;align-items:center;gap:10px;
  padding:8px 12px;background:var(--cream-2);border-radius:8px;
  font-size:12.5px;color:var(--ink-2);
  transition:all .15s ease;cursor:pointer;
}
.fer-panel-mini-item:hover{background:var(--green);color:var(--cream)}
.fer-panel-mini-item strong{flex:1;font-weight:600}
.fer-panel-mini-item .ic{width:14px;height:14px;color:currentColor;flex:0 0 auto}

/* Stats strip */
.fer-stats-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  padding:22px 28px;
  background:linear-gradient(135deg,var(--green) 0%,var(--green-2) 100%);
  color:var(--cream);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-2);
  position:relative;overflow:hidden;
}
.fer-stats-strip::before{
  content:"";position:absolute;inset:0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><g fill='none' stroke='%23FBF6EA' stroke-width='0.7' opacity='.18'><path d='M45 12 L57 24 L45 36 L33 24 Z'/><circle cx='45' cy='45' r='1.4' fill='%23FBF6EA'/></g></svg>");
  background-size:90px 90px;
}
.fer-stat{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px}
.fer-stat strong{font-family:var(--ff-serif);font-size:32px;font-weight:700;color:var(--cream);line-height:1}
.fer-stat span{font-size:12px;color:rgba(251,246,234,.75);font-weight:600;letter-spacing:.04em;text-transform:uppercase}

/* ============================================================
   RECOMMENDED FARMERS GRID
   ============================================================ */
.fer-recommended{padding:60px 0}
.fer-rec-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:20px;
  grid-auto-rows:1fr;
}

/* ============================================================
   ALL FARMERS — toolbar, cards, views
   ============================================================ */
.fer-all{padding:60px 0;background:linear-gradient(180deg, transparent, rgba(45,74,43,.03) 50%, transparent)}
.fer-all-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;
  padding:14px 22px;
  background:var(--paper);border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  margin-bottom:18px;
}
.fer-results-info{display:flex;align-items:baseline;gap:8px}
.fer-results-info strong{font-family:var(--ff-serif);font-size:22px;color:var(--ink);font-weight:700}
.fer-results-info span{font-size:13px;color:var(--muted)}

.fer-toolbar-right{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.fer-sort{
  display:flex;align-items:center;gap:8px;
  padding:6px 12px;border-radius:999px;
  background:var(--cream-2);
  border:1px solid var(--line-soft);
}
.fer-sort .ic{width:14px;height:14px;color:var(--muted-2)}
.fer-sort label{font-size:12px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:4px}
.fer-sort select{
  background:transparent;border:0;outline:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--ink-2);
  cursor:pointer;appearance:none;padding:4px 6px;
}

.fer-view-toggle{
  display:flex;background:var(--cream-2);padding:4px;
  border-radius:999px;border:1px solid var(--line-soft);
}
.fer-view-btn{
  width:34px;height:34px;border-radius:50%;
  background:transparent;color:var(--muted-2);
  display:grid;place-items:center;
  transition:all .15s ease;
}
.fer-view-btn:hover{color:var(--ink-2)}
.fer-view-btn.is-active{background:var(--green);color:var(--cream);box-shadow:var(--shadow-1)}
.fer-view-btn .ic{width:15px;height:15px}

.fer-active-chips{
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;
}
.fer-active-chip{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:600;
  padding:6px 10px 6px 12px;border-radius:999px;
  background:var(--clay-soft);color:var(--clay-2);
}
.fer-active-chip button{
  width:18px;height:18px;border-radius:50%;
  background:rgba(255,253,248,.6);color:var(--clay-2);
  display:grid;place-items:center;
}
.fer-active-chip button .ic{width:11px;height:11px}
.fer-active-chip button:hover{background:var(--clay);color:var(--cream)}

/* Grid view */
.fer-cards-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  grid-auto-rows:1fr;
}
.fer-cards-grid[data-view="list"]{grid-template-columns:1fr;gap:14px;grid-auto-rows:auto}

/* Farmer card */
.fer-card{
  display:flex;flex-direction:column;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fer-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-2);border-color:var(--line)}
.fer-cards-grid[data-view="list"] .fer-card{flex-direction:row;align-items:stretch}

.fer-card-img{
  position:relative;background:var(--cream-2);
  aspect-ratio:16/10;overflow:hidden;
  flex:0 0 auto;
}
.fer-cards-grid[data-view="list"] .fer-card-img{aspect-ratio:auto;width:240px;flex-shrink:0}
.fer-card-img svg{width:100%;height:100%;display:block;transition:transform .5s ease}
.fer-card:hover .fer-card-img svg{transform:scale(1.04)}

.fer-card-img-overlay{
  position:absolute;top:12px;left:12px;right:12px;
  display:flex;gap:5px;flex-wrap:wrap;align-content:flex-start;
  z-index:2;pointer-events:none;
}
.fer-card-img-overlay > *{pointer-events:auto}
.fer-card-img-badges{display:none}

.fer-pill{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10.5px;font-weight:700;letter-spacing:.04em;
  padding:4px 9px;border-radius:999px;
  background:rgba(255,253,248,.92);color:var(--ink-2);
  backdrop-filter:blur(6px);
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-1);
  flex:0 0 auto;
}
.fer-pill .ic{width:11px;height:11px;flex:0 0 auto}
.fer-pill-verified{background:var(--green);color:var(--cream);border-color:transparent}
.fer-pill-verified .ic{color:var(--cream)}
.fer-pill-seasonal{background:rgba(201,169,97,.95);color:var(--ink-2);border-color:transparent}
.fer-pill-preorder{background:var(--clay);color:var(--cream);border-color:transparent}
.fer-pill-preorder .ic{color:var(--cream)}
.fer-pill-delivery{background:rgba(27,61,143,.92);color:var(--cream);border-color:transparent}
.fer-pill-delivery .ic{color:var(--cream)}
.fer-pill-pickup{background:rgba(45,74,43,.92);color:var(--cream);border-color:transparent}
.fer-pill-pickup .ic{color:var(--cream)}

.fer-card-body{
  padding:18px 20px;
  display:flex;flex-direction:column;gap:10px;
  flex:1;min-width:0;
}
.fer-cards-grid[data-view="list"] .fer-card-body{padding:18px 22px;gap:8px}

.fer-card-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
}
.fer-card-title{
  font-family:var(--ff-serif);font-size:20px;font-weight:600;
  margin:0;color:var(--ink);line-height:1.18;
}
.fer-card-title a{color:var(--ink);transition:color .15s ease}
.fer-card-title a:hover{color:var(--green)}
.fer-card-rating{display:flex;align-items:center;gap:6px;flex-shrink:0}
.fer-card-rating .star{color:var(--gold-2);font-size:13px}
.fer-card-rating strong{font-size:13px;color:var(--ink);font-weight:700}
.fer-card-rating em{font-size:11.5px;color:var(--muted);font-style:normal}

.fer-card-owner{
  font-size:12.5px;color:var(--muted);
  display:flex;align-items:center;gap:6px;
}
.fer-card-owner .ic{width:13px;height:13px;color:var(--clay)}

.fer-card-loc{
  font-size:12.5px;color:var(--ink-2);
  display:flex;align-items:center;gap:6px;
}
.fer-card-loc .ic{width:13px;height:13px;color:var(--green)}

.fer-card-desc{
  font-size:13px;color:var(--muted);line-height:1.55;
  margin:0;flex:1;
}
.fer-cards-grid[data-view="list"] .fer-card-desc{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}

.fer-card-tags{display:flex;flex-wrap:wrap;gap:5px}
.fer-card-tag{
  font-size:11px;font-weight:600;
  padding:3px 9px;border-radius:999px;
  background:var(--cream-3);color:var(--ink-2);
}
.fer-card-tag-legume{background:rgba(45,74,43,.12);color:var(--green)}
.fer-card-tag-fructe{background:rgba(196,93,61,.14);color:var(--clay-2)}
.fer-card-tag-lactate{background:rgba(201,169,97,.18);color:var(--gold-2)}
.fer-card-tag-oua{background:rgba(245,235,220,.8);color:#8B6F3F}
.fer-card-tag-miere{background:rgba(201,169,97,.20);color:#8B6F3F}
.fer-card-tag-carne{background:rgba(179,59,34,.14);color:#B33B22}
.fer-card-tag-conserve{background:rgba(184,146,83,.16);color:#8B6F3F}
.fer-card-tag-sucuri{background:rgba(45,74,43,.10);color:var(--green-2)}
.fer-card-tag-sezon{background:rgba(201,169,97,.22);color:#8B6F3F}
.fer-card-tag-cosuri{background:rgba(27,61,143,.10);color:var(--voronet)}

.fer-card-meta{
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;color:var(--muted);
  padding-top:8px;border-top:1px dashed var(--line-soft);
  flex-wrap:wrap;gap:6px;
}
.fer-card-meta strong{color:var(--ink-2);font-weight:700}
.fer-card-meta-distance{display:inline-flex;align-items:center;gap:4px}

.fer-card-actions{
  display:flex;gap:8px;margin-top:6px;
}
.fer-card-btn{
  flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-size:12px;font-weight:600;font-family:inherit;
  padding:8px 12px;border-radius:999px;
  border:1px solid transparent;cursor:pointer;
  transition:all .15s ease;text-decoration:none;
}
.fer-card-btn .ic{width:13px;height:13px}
.fer-card-btn-primary{background:var(--green);color:var(--cream)}
.fer-card-btn-primary:hover{background:var(--green-2)}
.fer-card-btn-secondary{background:var(--paper);color:var(--ink-2);border-color:var(--line)}
.fer-card-btn-secondary:hover{border-color:var(--green);color:var(--green)}
.fer-card-btn.is-following{background:var(--green-soft);color:var(--green);border-color:rgba(45,74,43,.20)}

/* Skeleton */
.fer-skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.fer-skeleton-card{
  background:var(--paper);border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  height:380px;
  background:linear-gradient(90deg, var(--cream-2) 0%, var(--paper) 50%, var(--cream-2) 100%);
  background-size:200% 100%;
  animation:shimmer 1.4s linear infinite;
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* Ensure [hidden] attribute wins over display:grid above */
.fer-skeleton-grid[hidden],
.fer-empty[hidden],
.fer-pagination[hidden],
.fer-active-chips[hidden],
.fer-panel-empty[hidden],
.fer-panel-selected[hidden],
.fer-search-clear[hidden],
.fer-all-toolbar[hidden]{
  display:none !important;
}

/* Empty */
.fer-empty{
  text-align:center;
  padding:60px 24px;
  background:var(--paper);
  border:1px dashed var(--line-soft);
  border-radius:var(--radius-xl);
}
.fer-empty-ico{
  width:64px;height:64px;border-radius:50%;
  background:var(--cream-2);color:var(--muted);
  display:grid;place-items:center;margin:0 auto 14px;
}
.fer-empty-ico .ic{width:28px;height:28px}
.fer-empty h3{font-family:var(--ff-serif);font-size:22px;font-weight:600;margin:0 0 6px;color:var(--ink)}
.fer-empty p{margin:0 0 18px;font-size:14px;color:var(--muted);line-height:1.55;max-width:48ch;margin-left:auto;margin-right:auto}
.fer-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* Pagination */
.fer-pagination{margin-top:32px;display:flex;justify-content:center}

/* ============================================================
   NEAR YOU
   ============================================================ */
.fer-near{padding:60px 0}
.fer-near-controls{
  display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;
  padding:22px 26px;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  margin-bottom:24px;
}
.fer-near-judet{display:flex;flex-direction:column;gap:6px;flex:1;min-width:240px}
.fer-near-judet label{font-size:12px;font-weight:600;color:var(--ink-2)}
.fer-near-judet select{
  padding:11px 36px 11px 14px;
  background:var(--cream-2);border:1px solid transparent;
  border-radius:var(--radius);font-size:13.5px;color:var(--ink);font-family:inherit;
  appearance:none;outline:0;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' stroke='%236E6049' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;
}
.fer-near-or{font-size:12px;color:var(--muted);font-weight:600;letter-spacing:.04em;text-transform:uppercase;align-self:center;padding-bottom:8px}
.fer-near-status{font-size:13px;color:var(--muted);margin:0;flex-basis:100%}
.fer-near-status.is-success{color:var(--green)}
.fer-near-status.is-error{color:#B33B22}

.fer-near-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;grid-auto-rows:1fr}
.fer-near-empty{
  margin-top:18px;text-align:center;
  padding:30px;font-size:14px;color:var(--muted);
  background:var(--cream-2);border-radius:var(--radius);
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.fer-categories{padding:60px 0;background:linear-gradient(180deg, transparent, rgba(201,169,97,.05) 50%, transparent)}
.fer-cat-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
}
.fer-cat-card{
  display:flex;flex-direction:column;gap:8px;
  padding:22px;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  transition:all .2s ease;
  color:var(--ink);
}
.fer-cat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-2);border-color:var(--green)}
.fer-cat-icon{
  width:56px;height:56px;border-radius:16px;
  display:grid;place-items:center;
  background:var(--green-soft);color:var(--green);
}
.fer-cat-icon .ic{width:26px;height:26px}
.fer-cat-icon-clay{background:var(--clay-soft);color:var(--clay-2)}
.fer-cat-icon-gold{background:var(--gold-soft);color:var(--gold-2)}
.fer-cat-icon-voronet{background:var(--voronet-soft);color:var(--voronet)}
.fer-cat-icon-cream{background:rgba(201,169,97,.18);color:var(--gold-2)}

.fer-cat-card h3{font-family:var(--ff-serif);font-size:18px;font-weight:600;margin:0;line-height:1.2}
.fer-cat-card p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5;flex:1}
.fer-cat-foot{
  display:flex;justify-content:space-between;align-items:center;
  font-size:11.5px;color:var(--muted);font-weight:600;
  padding-top:8px;border-top:1px dashed var(--line-soft);margin-top:6px;
}
.fer-cat-foot strong{font-family:var(--ff-serif);font-size:14px;color:var(--green);font-weight:700}
.fer-cat-foot .ic{width:13px;height:13px;color:var(--green)}

/* ============================================================
   TRUST
   ============================================================ */
.fer-trust{padding:60px 0}
.fer-trust-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.fer-trust-card{
  padding:26px;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  display:flex;flex-direction:column;gap:10px;
  transition:all .2s ease;
}
.fer-trust-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.fer-trust-ico{
  width:52px;height:52px;border-radius:14px;
  background:var(--green-soft);color:var(--green);
  display:grid;place-items:center;
}
.fer-trust-ico .ic{width:24px;height:24px}
.fer-trust-card h3{font-family:var(--ff-serif);font-size:18px;font-weight:600;margin:0;color:var(--ink);line-height:1.2}
.fer-trust-card p{margin:0;font-size:13px;color:var(--muted);line-height:1.55}

/* ============================================================
   CTA FARMERS
   ============================================================ */
.fer-cta{position:relative;padding:80px 0;margin-top:40px;isolation:isolate}
.fer-cta-bg{position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,var(--green) 0%,var(--green-2) 60%,#0F1F11 100%)}
.fer-cta-pattern{
  position:absolute;inset:0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><g fill='none' stroke='%23FBF6EA' stroke-width='0.7' opacity='.22'><path d='M45 12 L57 24 L45 36 L33 24 Z'/><path d='M15 45 L27 57 L15 69 L3 57 Z'/><path d='M75 45 L87 57 L75 69 L63 57 Z'/><circle cx='45' cy='45' r='1.4' fill='%23FBF6EA'/></g></svg>");
  background-size:100px 100px;opacity:.5;
}
.fer-cta-inner{
  text-align:center;color:var(--cream);
  max-width:720px;margin:0 auto;
  display:flex;flex-direction:column;gap:14px;align-items:center;
}
.fer-cta-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:6px 14px;border-radius:999px;
  background:rgba(251,246,234,.12);color:var(--cream);
  border:1px solid rgba(251,246,234,.20);
}
.fer-cta-eyebrow .ic{width:13px;height:13px}
.fer-cta-inner h2{
  font-family:var(--ff-serif);
  font-size:42px;font-weight:600;line-height:1.1;letter-spacing:-.01em;
  margin:0;color:var(--cream);
}
.fer-cta-inner h2 em{
  font-style:italic;color:var(--gold);
  background:linear-gradient(90deg,var(--gold),#E5C887);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.fer-cta-inner > p{font-size:15.5px;color:rgba(251,246,234,.85);margin:0;max-width:54ch;line-height:1.55}
.fer-cta-benefits{
  display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:center;
  list-style:none;padding:8px 0 0;margin:6px 0 0;
}
.fer-cta-benefits li{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:rgba(251,246,234,.92);font-weight:500;
}
.fer-cta-benefits .ic{width:14px;height:14px;color:var(--gold)}
.fer-cta-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}

/* ============================================================
   FOOTER
   ============================================================ */
.fer-footer{background:var(--paper);border-top:1px solid var(--line-soft);padding:60px 0 30px}
.fer-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.4fr;gap:36px}
.fer-footer-brand p{font-size:13px;color:var(--muted);margin:10px 0 14px;line-height:1.5;max-width:32ch}
.fer-social{display:flex;gap:8px}
.fer-social a{
  width:36px;height:36px;border-radius:50%;
  background:var(--cream-2);color:var(--ink-2);
  display:grid;place-items:center;
  transition:all .15s ease;
}
.fer-social a:hover{background:var(--green);color:var(--cream);transform:translateY(-2px)}
.fer-social .ic{width:16px;height:16px}
.fer-footer-col h4{font-family:var(--ff-serif);font-size:15px;font-weight:600;margin:0 0 14px;color:var(--ink)}
.fer-footer-col ul{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0}
.fer-footer-col a{font-size:13px;color:var(--muted);transition:color .15s ease}
.fer-footer-col a:hover{color:var(--green)}
.fer-footer-newsletter p{font-size:12.5px;color:var(--muted);margin:0 0 10px;line-height:1.5}
.fer-footer-form{
  display:flex;align-items:center;background:var(--cream-2);
  border-radius:999px;padding:4px 4px 4px 16px;gap:6px;
}
.fer-footer-form input{
  flex:1;background:transparent;border:0;outline:0;
  font-size:13px;color:var(--ink);padding:8px 4px;
}
.fer-footer-form input::placeholder{color:var(--muted-2)}
.fer-footer-form button{
  width:34px;height:34px;border-radius:50%;
  background:var(--green);color:var(--cream);
  display:grid;place-items:center;
  transition:all .15s ease;
}
.fer-footer-form button:hover{background:var(--green-2);transform:scale(1.05)}
.fer-footer-form button .ic{width:14px;height:14px}
.fer-footer-foot{
  margin-top:36px;padding-top:24px;
  border-top:1px dashed var(--line-soft);
  text-align:center;font-size:12px;color:var(--muted);
}

/* ============================================================
   TOAST
   ============================================================ */
.fer-toast{
  position:fixed;bottom:30px;left:50%;
  transform:translateX(-50%) translateY(20px);
  background:var(--ink);color:var(--cream);
  padding:12px 22px;border-radius:999px;
  font-size:13px;font-weight:600;
  box-shadow:var(--shadow-3);
  opacity:0;pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  z-index:200;max-width:90vw;text-align:center;
}
.fer-toast.is-show{opacity:1;transform:translateX(-50%) translateY(0)}
.fer-toast.is-success{background:var(--green)}
.fer-toast.is-error{background:#B33B22}
.fer-toast.is-info{background:var(--voronet)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .fer-header-inner{grid-template-columns:auto auto}
  .fer-nav{display:none}
  .fer-menu-btn{display:grid}
  .fer-hero-grid{grid-template-columns:1fr;gap:36px}
  .fer-hero-title{font-size:42px}
  .fer-hero-collage{height:380px}
  .fer-filters{grid-template-columns:repeat(2,1fr)}
  .fer-map-layout{grid-template-columns:1fr;gap:24px}
  .fer-map-panel{position:static;min-height:0}
  .fer-stats-strip{grid-template-columns:repeat(2,1fr);gap:18px}
  .fer-rec-grid{grid-template-columns:1fr}
  .fer-cards-grid{grid-template-columns:repeat(2,1fr)}
  .fer-cards-grid[data-view="list"] .fer-card{flex-direction:column}
  .fer-cards-grid[data-view="list"] .fer-card-img{width:100%;aspect-ratio:16/9}
  .fer-near-grid{grid-template-columns:repeat(2,1fr)}
  .fer-cat-grid{grid-template-columns:repeat(2,1fr)}
  .fer-trust-grid{grid-template-columns:repeat(2,1fr)}
  .fer-footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .fer-cta-inner h2{font-size:34px}
  .fer-section-title{font-size:30px}
}
@media (max-width:760px){
  .fer-container{padding:0 18px}
  .fer-header-inner{padding:12px 18px}
  .fer-hero{padding:40px 0 56px}
  .fer-hero-title{font-size:32px}
  .fer-hero-collage{
    grid-template-columns:1fr 1fr;height:auto;
  }
  .fer-hero-collage > :nth-child(1){grid-row:1;grid-column:1/-1;aspect-ratio:16/9}
  .fer-hero-collage > :nth-child(2){grid-row:2;grid-column:1;aspect-ratio:1/1}
  .fer-hero-collage > :nth-child(3){grid-row:2;grid-column:2;aspect-ratio:1/1}
  .fer-hero-collage > :nth-child(4){grid-row:3;grid-column:1/-1;aspect-ratio:2/1}
  .fer-filters{grid-template-columns:1fr;gap:12px}
  .fer-filter-checks{gap:10px}
  .fer-all-toolbar{flex-direction:column;align-items:stretch;gap:12px}
  .fer-toolbar-right{justify-content:space-between}
  .fer-cards-grid{grid-template-columns:1fr}
  .fer-cards-grid[data-view="list"] .fer-card{flex-direction:column}
  .fer-cards-grid[data-view="list"] .fer-card-img{width:100%;aspect-ratio:16/9}
  .fer-near-grid{grid-template-columns:1fr}
  .fer-cat-grid{grid-template-columns:1fr}
  .fer-trust-grid{grid-template-columns:1fr}
  .fer-cta-inner h2{font-size:28px}
  .fer-footer-grid{grid-template-columns:1fr;gap:24px}
  .fer-section-head{flex-direction:column;align-items:flex-start}
  .fer-section-title{font-size:26px}
  .fer-stats-strip{grid-template-columns:1fr 1fr;padding:18px 22px}
  .fer-header-right .btn-fer-secondary{display:none}
  .fer-skeleton-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .fer-hero-title{font-size:28px}
  .fer-hero-collage{grid-template-columns:1fr;gap:12px}
  .fer-hero-collage > :nth-child(1),
  .fer-hero-collage > :nth-child(2),
  .fer-hero-collage > :nth-child(3),
  .fer-hero-collage > :nth-child(4){grid-row:auto;grid-column:auto;aspect-ratio:4/3}
  .fer-hero-trust{flex-direction:column;gap:8px}
  .fer-card-actions{flex-direction:column}
  .fer-near-controls{padding:18px}
  .fer-filter-actions{flex-direction:column-reverse}
  .fer-filter-actions .btn-fer{width:100%;justify-content:center}
  .fer-cta-benefits{flex-direction:column;align-items:flex-start}
}
