/* ---------------------------------------------------------------------------
   Belföld – Nagyüzemi értékesítés: értékesítői vármegyetérkép
   Nézet: private_html/app/view/ertekesitok.php
   A színvilág és a térköz a bolthálózat aloldaléval azonos.
   --------------------------------------------------------------------------- */

.vfe {
  --vfe-navy: #122544;
  --vfe-ink: #0e1b3e;
  --vfe-blue: #154b9b;
  --vfe-blue-light: #2d71d5;
  --vfe-accent: #a2c2e6;
  --vfe-red: #c8102e;
  --vfe-muted: #5b6c82;
  --vfe-line: #e2e8f2;
  --vfe-bg-alt: #f4f7fb;
  --vfe-radius: 10px;
  --vfe-shadow: 0 2px 6px rgba(18, 37, 68, .06);
  --vfe-ease: cubic-bezier(.22, .68, .36, 1);

  color: var(--vfe-ink);
  background-color: #fff;
}

.vfe *,
.vfe *::before,
.vfe *::after { box-sizing: border-box; }

.vfe-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .vfe-container { padding: 0 2rem; }
}

/* --- fejléc --------------------------------------------------------------- */

.vfe-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--vfe-navy);
}

.vfe-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfe-hero__overlay {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: linear-gradient(100deg, rgba(18, 37, 68, .93) 0%, rgba(18, 37, 68, .8) 45%, rgba(18, 37, 68, .5) 100%);
}

@media (min-width: 768px) {
  .vfe-hero__overlay { padding: 5.5rem 0 4.5rem; }
}

.vfe-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}

.vfe-hero__breadcrumb a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s var(--vfe-ease);
}

.vfe-hero__breadcrumb a:hover { color: #fff; }

.vfe-hero__title {
  max-width: 22ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-family: 'Montserrat', sans-serif;
}

.vfe-hero__lead {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.vfe-hero__rule {
  width: 72px;
  height: 3px;
  margin-top: 1.5rem;
  background-color: var(--vfe-accent);
}

.vfe-section { padding: 2.5rem 0 4rem; }

@media (min-width: 768px) {
  .vfe-section { padding: 3.5rem 0 5rem; }
}

/* --- szűrősáv ------------------------------------------------------------- */

.vfe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--vfe-line);
}

.vfe-field {
  display: flex;
  flex-direction: column;
  flex: 0 1 240px;
  min-width: 0;
}

.vfe-field--chips { flex: 1 1 560px; }

.vfe-field label,
.vfe-field__label {
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vfe-muted);
}

.vfe-select {
  width: 100%;
  height: 46px;
  padding: 0 2.25rem 0 .875rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--vfe-ink);
  background-color: #fff;
  border: 1px solid var(--vfe-line);
  border-radius: 8px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6c82' stroke-width='1.8'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  transition: border-color .2s var(--vfe-ease), box-shadow .2s var(--vfe-ease);
}

.vfe-select:focus {
  border-color: var(--vfe-blue-light);
  box-shadow: 0 0 0 3px rgba(45, 113, 213, .15);
}

.vfe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.vfe-chip {
  height: 46px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--vfe-navy);
  background-color: #fff;
  border: 1px solid var(--vfe-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--vfe-ease), border-color .2s var(--vfe-ease), color .2s var(--vfe-ease);
}

.vfe-chip:hover { border-color: #c2d2e8; }

.vfe-chip.is-on {
  color: #fff;
  background-color: var(--vfe-navy);
  border-color: var(--vfe-navy);
}

.vfe-chip:focus-visible {
  outline: 3px solid rgba(45, 113, 213, .35);
  outline-offset: 2px;
}

.vfe-reset {
  height: 46px;
  padding: 0 1.125rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--vfe-navy);
  background-color: #fff;
  border: 1px solid var(--vfe-line);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s var(--vfe-ease), border-color .2s var(--vfe-ease), color .2s var(--vfe-ease);
}

.vfe-reset:hover {
  color: #fff;
  background-color: var(--vfe-navy);
  border-color: var(--vfe-navy);
}

.vfe-count {
  flex: 0 0 auto;
  margin: 0 0 .75rem auto;
  font-size: .875rem;
  color: var(--vfe-muted);
}

.vfe-count strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--vfe-navy);
}

/* --- elrendezés ----------------------------------------------------------- */

.vfe-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .vfe-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
    gap: 2rem;
    align-items: start;
  }
}

.vfe-mapwrap { order: -1; }

@media (min-width: 1024px) {
  .vfe-mapwrap {
    order: 0;
    position: sticky;
    top: 100px;
  }
}

/* --- térkép --------------------------------------------------------------- */

.vfe-map {
  padding: .75rem;
  background-color: var(--vfe-bg-alt);
  border: 1px solid var(--vfe-line);
  border-radius: var(--vfe-radius);
}

.vfe-map__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vfe-map__county {
  fill: #dbe6f4;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .25s var(--vfe-ease);
}

.vfe-map__county:hover { fill: #bed4ee; }

.vfe-map__county:focus { outline: none; }

.vfe-map__county:focus-visible {
  outline: none;
  stroke: var(--vfe-navy);
  stroke-width: 3;
}

/* a kiválasztott vármegye */
.vfe-map__county.is-selected {
  fill: var(--vfe-blue);
  stroke: #fff;
}

/* a kártyára mutatva kiemelt területek */
.vfe-map__county.is-lit { fill: var(--vfe-blue-light); }

/* a szakterület-szűrővel nem érintett vármegyék */
.vfe-map__county.is-dim { fill: #eef2f7; }

.vfe-map__bp {
  fill: #c9d2de;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  pointer-events: none;
}

.vfe-map__labels { pointer-events: none; }

.vfe-map__label {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  fill: #35486a;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(244, 247, 251, .75);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill .25s var(--vfe-ease);
}

.vfe-map__label--bp {
  font-size: 14px;
  fill: #6c7a90;
}

.vfe-map__label.is-on {
  fill: #fff;
  stroke: none;
}

.vfe-map__label.is-dim { fill: #9fb0c6; }

.vfe-maphint {
  margin: .6rem 0 0;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--vfe-muted);
}

/* --- lista ---------------------------------------------------------------- */

.vfe-scope {
  display: block;
  margin: 0 0 1.25rem;
  padding: .6rem .875rem;
  font-size: .875rem;
  color: var(--vfe-navy);
  background-color: var(--vfe-bg-alt);
  border-left: 3px solid var(--vfe-red);
  border-radius: 0 8px 8px 0;
}

.vfe-scope[hidden] { display: none; }

.vfe-scope strong {
  font-weight: 600;
  white-space: nowrap;
}

.vfe-group { margin-bottom: 2rem; }

.vfe-group[hidden] { display: none; }

.vfe-group__title {
  margin: 0 0 .875rem;
  padding-bottom: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--vfe-navy);
  border-bottom: 1px solid var(--vfe-line);
}

.vfe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vfe-card {
  padding: 1rem 1.125rem;
  background-color: #fff;
  border: 1px solid var(--vfe-line);
  border-left: 3px solid transparent;
  border-radius: 8px;
  box-shadow: var(--vfe-shadow);
  transition: transform .3s var(--vfe-ease), border-color .3s var(--vfe-ease),
              box-shadow .3s var(--vfe-ease);
}

.vfe-card[hidden] { display: none; }

.vfe-card:hover,
.vfe-card:focus-within {
  transform: translateY(-3px);
  border-color: #d3ddec;
  border-left-color: var(--vfe-blue-light);
  box-shadow: 0 10px 24px rgba(18, 37, 68, .12);
}

.vfe-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vfe-navy);
}

.vfe-card__role {
  margin: .25rem 0 .75rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--vfe-muted);
}

.vfe-card__contact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: 0;
}

.vfe-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8125rem;
  color: var(--vfe-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s var(--vfe-ease);
}

.vfe-card__link:hover { color: var(--vfe-blue-light); }

.vfe-card__link svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.vfe-card__counties {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}

.vfe-tag {
  padding: .2rem .55rem;
  font-family: inherit;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--vfe-blue);
  background-color: #eaf1fb;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--vfe-ease), color .2s var(--vfe-ease);
}

.vfe-tag:hover {
  color: #fff;
  background-color: var(--vfe-blue);
}

.vfe-tag:focus-visible {
  outline: 3px solid rgba(45, 113, 213, .35);
  outline-offset: 1px;
}

.vfe-card__all {
  margin: .85rem 0 0;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--vfe-muted);
}

.vfe-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: .9375rem;
  color: var(--vfe-muted);
  background-color: var(--vfe-bg-alt);
  border: 1px dashed var(--vfe-line);
  border-radius: var(--vfe-radius);
}

.vfe-empty[hidden] { display: none; }

/* JavaScript nélkül a teljes névsor látszik, szűrők és térkép nélkül */
.vfe-nojs .vfe-toolbar,
.vfe-nojs .vfe-mapwrap { display: none; }

.vfe-nojs .vfe-tag { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .vfe-card,
  .vfe-map__county,
  .vfe-map__label { transition-duration: .01ms; }
  .vfe-card:hover,
  .vfe-card:focus-within { transform: none; }
}
