/* Üzlet- és akciókereső + térkép (OpenStreetMap + Leaflet): a főoldali belépő és a /kereso oldal közös stílusa.
   A főoldali térkép csak akvarisztikai üzleteket mutat (2026-10-22), gyorsszűrőkkel: Most nyitva · Van akció · Van kupon. */

.kereso { padding: var(--szekcio-ter) 0; overflow: clip; background: var(--td-felulet-2, var(--aq-surface)); }
.kereso__shell { display: grid; gap: 32px; }
.kereso__cim { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.9rem); line-height: 1.05; letter-spacing: -.032em; text-wrap: balance; }
.kereso__bevezeto { max-width: 40ch; margin: 18px 0 24px; font-size: 1.0625rem; color: var(--td-halk, var(--aq-muted)); }

.kereso-urlap { display: grid; gap: 12px; }
/* Gyorsszűrők: jelölőnégyzetes sorok egy kártyában, jobbra a találatszám — 0 találatnál a sor nem kapcsolható be. */
.kereso-urlap__szures { display: grid; gap: 8px; }
.kereso-urlap__szures-fej { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin: 4px 2px 0; }
.kereso-urlap__szures-fej > span { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 800; }
.kereso-urlap__szures-fej .ikon { width: 16px; height: 16px; color: var(--td-teal-szoveg, var(--aq-accent-sotet)); }
.kereso-urlap__torol, .terkep-szurve__torol {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--td-teal-halvany, #E3F1EE); color: var(--td-teal-szoveg, var(--aq-accent-sotetebb)); font: inherit; font-size: .8125rem; font-weight: 800; cursor: pointer;
}
.kereso-urlap__torol .ikon, .terkep-szurve__torol .ikon { width: 14px; height: 14px; }
.kereso-urlap__torol:hover, .terkep-szurve__torol:hover { background: var(--aq-accent-sotet); color: #fff; }
.kereso-urlap__torol[hidden], .terkep-szurve__torol[hidden] { display: none; }
.kereso-urlap__chipek { display: grid; overflow: hidden; border: 1px solid var(--td-keret, var(--aq-line)); border-radius: 10px; background: var(--td-felulet, #fff); }
.kereso-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: none;
  color: var(--td-szoveg, var(--aq-text)); font: inherit; font-size: .9375rem; font-weight: 700; text-align: left; cursor: pointer;
}
.kereso-chip + .kereso-chip { border-top: 1px solid var(--td-keret, var(--aq-line)); }
.kereso-chip::before {
  content: ""; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #9AAAA2; border-radius: 6px;
  background: var(--td-felulet, #fff); color: #fff; font-size: .8125rem; font-weight: 900; line-height: 1;
}
.kereso-chip .ikon { flex: none; width: 18px; height: 18px; color: var(--td-teal-szoveg, var(--aq-accent-sotet)); }
.kereso-chip[data-kereso-szuro="akcio"] .ikon { color: var(--aq-akcio); }
.kereso-chip__db {
  margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--td-felulet-2, var(--aq-surface));
  color: var(--td-halk, var(--aq-muted)); font-size: .8125rem; font-weight: 800; text-align: center;
}
.kereso-chip:hover:not(:disabled) { background: var(--td-felulet-2, var(--aq-surface)); }
.kereso-chip:focus-visible { outline: 3px solid var(--aq-accent-vilagos); outline-offset: -3px; }
.kereso-chip[aria-pressed="true"] { background: var(--td-teal-halvany, #E3F1EE); }
.kereso-chip[aria-pressed="true"]::before { content: "✓"; border-color: var(--aq-accent-sotet); background: var(--aq-accent-sotet); }
.kereso-chip[aria-pressed="true"] .kereso-chip__db { background: var(--aq-accent-sotet); color: #fff; }
.kereso-chip:disabled { color: var(--td-halk, var(--aq-muted)); cursor: not-allowed; }
.kereso-chip:disabled::before { border-color: var(--td-keret, var(--aq-line)); background: var(--td-felulet-2, var(--aq-surface)); }
.kereso-chip:disabled .ikon { opacity: .45; }

/* „Szűrve” sáv a térkép tetején: mi szűr, hány üzlet maradt, egy gombbal törölhető. */
.terkep-szurve {
  position: absolute; z-index: 520; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 32px); padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--td-felulet, #fff);
  box-shadow: var(--shadow-card); font-size: .875rem; font-weight: 700;
}
.terkep-szurve[hidden] { display: none; }
.terkep-szurve > .ikon { flex: none; width: 16px; height: 16px; color: var(--td-teal-szoveg, var(--aq-accent-sotet)); }
.terkep-szurve > span { min-width: 0; }
.terkep-szurve--ures > span { color: var(--td-hiba-szoveg, #7E2A18); }
.kereso-urlap__mezo {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
  border: 1px solid var(--td-keret, var(--aq-line)); border-radius: 10px; background: var(--td-felulet, #fff); color: var(--td-teal-szoveg, var(--aq-accent-sotet));
}
.kereso-urlap__mezo:focus-within { border-color: var(--aq-accent); box-shadow: 0 0 0 3px rgba(60, 148, 141, .25); }
.kereso-urlap__mezo input { flex: 1; min-width: 0; border: 0; background: none; color: var(--td-szoveg, var(--aq-text)); font: inherit; font-size: 1rem; outline: none; }
.kereso-urlap__kozel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--aq-accent-sotet); border-radius: 10px; background: none;
  color: var(--td-teal-szoveg, var(--aq-accent-sotet)); font-weight: 700; cursor: pointer;
}
.kereso-urlap__kozel:hover, .kereso-urlap__kozel[aria-pressed="true"] { background: var(--aq-accent-sotet); color: #fff; }
.kereso-urlap__allapot { margin: 2px 2px 6px; min-height: 1.5em; font-size: .9375rem; font-weight: 700; color: var(--td-szoveg, var(--aq-text)); }
.kereso__cta { width: 100%; }
.kereso__cta .ikon { width: 1.2em; height: 1.2em; }
.kereso__akciok {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--td-keret, var(--aq-line)); border-radius: var(--radius-sm); background: var(--td-felulet, #fff);
  color: var(--td-szoveg, var(--aq-text)); font-weight: 800; text-decoration: none;
}
.kereso__akciok > .ikon:first-child { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(194, 58, 46, .1); color: var(--aq-akcio); }
.kereso__akciok > span { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.kereso__akciok small { color: var(--td-halk, var(--aq-muted)); font-size: .8125rem; font-weight: 600; }
.kereso__akciok > .ikon:last-child { flex: none; width: 18px; height: 18px; color: var(--td-teal-szoveg, var(--aq-accent-sotet)); transition: transform .15s ease; }
.kereso__akciok:hover { border-color: var(--aq-accent-sotet); }
.kereso__akciok:hover > .ikon:last-child { transform: translateX(3px); }
.kereso__akciok:focus-visible { outline: 3px solid var(--aq-accent-vilagos); outline-offset: 2px; }

/* Az isolation miatt a Leaflet magas z-indexei (400+) nem kerülhetnek a ragadós fejléc fölé görgetéskor. */
.kereso__terkep { position: relative; isolation: isolate; margin: 0 calc(-1 * var(--gutter)); }
.terkep-doboz {
  position: relative; z-index: 0; height: min(70vh, 520px); min-height: 400px;
  background: var(--td-siker-halvany, #D5E1D8); font-family: var(--betu);
}
.terkep--tartalek { position: absolute; inset: 0; width: 100%; height: 100%; padding: 32px; }
.terkep__orszag { fill: var(--td-grafikon-racs, #F1F4EE); stroke: #97AE9F; stroke-width: 2; stroke-linejoin: round; }
.terkep__folyo { fill: none; stroke: #7DB7C4; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.terkep__to { fill: #8CC4CE; }
.terkep__pont { fill: var(--td-teal-szoveg, var(--aq-accent-sotet)); stroke: var(--td-felulet, #fff); stroke-width: 2; }
.terkep-doboz__betoltes {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 6px 12px;
  border-radius: 8px; background: rgba(245, 243, 236, .9); font-size: .875rem; font-weight: 700;
}
.terkep-erinto {
  position: absolute; z-index: 500; left: 50%; bottom: 36px; transform: translateX(-50%);
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; white-space: nowrap; font-size: .875rem;
  background: var(--aq-deep); color: #fff; font-weight: 700; box-shadow: var(--shadow-card);
}
.terkep-jelmagyarazat {
  position: absolute; z-index: 500; bottom: 14px; left: calc(var(--gutter) + 4px);
  display: flex; gap: 14px; margin: 0; padding: 6px 12px; border-radius: 8px; list-style: none;
  background: rgba(245, 243, 236, .92); font-size: .8125rem; font-weight: 700;
}
.terkep-jelmagyarazat li { display: inline-flex; align-items: center; gap: 6px; }
.terkep-jelmagyarazat li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--aq-accent-sotet); }
.terkep-jelmagyarazat .terkep-jelmagyarazat--kiemelt::before { background: var(--aq-accent-sotetebb); box-shadow: 0 0 0 2px #E0A43A; }
.terkep-jelmagyarazat .terkep-jelmagyarazat--akcio::before {
  content: "%"; display: grid; place-items: center; width: 15px; height: 15px; background: var(--aq-akcio);
  color: #fff; font-size: .5625rem; font-weight: 900; line-height: 1;
}

/* Leaflet-témázás: saját jelölők, csoportok, tooltip és buborék a Natural Aquascape palettán. */
.terkep-doboz.leaflet-container { background: var(--td-siker-halvany, #D5E1D8); font: inherit; }
.terkep-doboz .leaflet-tile-pane { filter: saturate(.7) contrast(.95); }
.terkep-jel { width: 30px; height: 30px; margin: -34px 0 0 -15px; }
.terkep-jel span {
  display: block; width: 30px; height: 30px; border: 3px solid var(--td-keret, #fff); border-radius: 50% 50% 50% 0;
  background: var(--aq-accent-sotet); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(13, 26, 23, .35);
  transition: transform .15s ease;
}
.terkep-jel--tenyeszto span { background: var(--aq-wood); }
/* Előfizetői szint a főoldali térképen is (ADVERTISING_SYSTEM §41): forma változatlan, csak keret / gyűrű. */
.terkep-jel--elofizeto span { background: var(--aq-water-deep); border-color: var(--aq-accent-vilagos); box-shadow: 0 0 0 2px rgba(159, 211, 201, .45), 0 6px 14px rgba(13, 26, 23, .35); }
.terkep-jel--kiemelt span { background: var(--aq-accent-sotetebb); border-color: #E0A43A; box-shadow: 0 0 0 3px rgba(224, 164, 58, .35), 0 6px 14px rgba(13, 26, 23, .35); }
.terkep-jel:hover span, .terkep-jel:focus-visible span { transform: rotate(-45deg) scale(1.15); }
.terkep-csoport { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.terkep-csoport span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--aq-deep); color: #fff; font-weight: 800; font-size: .9375rem;
  box-shadow: 0 0 0 6px rgba(43, 117, 112, .45), 0 8px 18px rgba(13, 26, 23, .35);
  transition: transform .15s ease;
}
.terkep-csoport--kozepes { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.terkep-csoport--nagy { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.terkep-csoport--nagy span { font-size: 1.0625rem; box-shadow: 0 0 0 8px rgba(43, 117, 112, .4), 0 8px 18px rgba(13, 26, 23, .35); }
.terkep-csoport:hover span, .terkep-csoport:focus-visible span { transform: scale(1.08); }
/* Aktív ajánlat jelvénye, mint a belső térképen (helyterkep.css .tk-klaszter__akcio). */
.terkep-jel, .terkep-csoport { position: relative; }
.terkep-akcio {
  position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--aq-akcio); color: #fff; font-size: .7rem; font-weight: 900; font-style: normal; line-height: 1;
  box-shadow: 0 0 0 2px #fff; pointer-events: none;
}
.terkep-csoport .terkep-akcio { top: -4px; right: -4px; }
.terkep-sajat { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.terkep-sajat b { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; background: #2F7BD9; color: #fff; font-size: .75rem; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(13, 26, 23, .25); }
.terkep-sajat span { display: block; width: 22px; height: 22px; border: 4px solid var(--td-keret, #fff); border-radius: 50%; background: #2F7BD9; box-shadow: 0 0 0 8px rgba(47, 123, 217, .25); }

.terkep-tipp {
  position: absolute; z-index: 700; left: 0; top: 0; pointer-events: none;
  display: grid; gap: 2px; min-width: 180px; max-width: 280px; margin: -58px 0 0; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--aq-deep); color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
  translate: -50% -100%;
}
.terkep-tipp::after {
  content: ""; position: absolute; left: calc(50% + var(--nyil-x, 0px)); bottom: -6px; width: 12px; height: 12px;
  background: var(--aq-deep); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.terkep-tipp--lent { margin: 22px 0 0; translate: -50% 0; }
.terkep-tipp--lent::after { bottom: auto; top: -6px; }
.terkep-tipp[hidden] { display: none; }
.terkep-tipp__tipus {
  justify-self: start; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px;
  background: var(--aq-accent-sotet); color: #fff;
  font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.terkep-tipp__tipus--tenyeszto { background: var(--aq-wood); }
.terkep-tipp__nev { font-size: 1rem; line-height: 1.25; }
.terkep-tipp__hely { font-size: .875rem; color: rgba(238, 241, 234, .78); line-height: 1.35; }
.terkep-tipp__tipp { margin-top: 4px; font-size: .75rem; font-weight: 700; color: var(--aq-accent-vilagos); }

/* Csoport-előnézet (hover/fókusz): kontrollált szélesség, a nevek törnek, vízszintes görgetés soha. */
.terkep-tipp--lista { width: min(340px, calc(100% - 16px)); max-width: none; padding: 14px 16px 12px; }
.terkep-tipp__lista { display: grid; margin: 8px 0 2px; padding: 0; list-style: none; }
.terkep-tipp__lista li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.terkep-tipp__lista-nev { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.terkep-tipp__tovabbi { font-size: .8125rem; color: rgba(238, 241, 234, .78); }
.terkep-cimke {
  flex: none; margin-top: 1px; padding: 2px 7px; border-radius: 5px;
  background: var(--aq-accent-sotet); color: #fff;
  font-size: .625rem; font-weight: 800; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.terkep-cimke--akcio { background: var(--aq-akcio); }

/* Részletes buborék: törtfehér lap, saját bezáró gomb, a tartalom a buborék szélességén belül tör. */
.aq-buborek .leaflet-popup-content-wrapper {
  display: flow-root; padding: 0; overflow: hidden;
  border: 1px solid var(--td-keret, rgba(13, 26, 23, .06)); border-radius: var(--radius-md);
  background: var(--td-felulet-2, #FBFAF6); color: var(--td-szoveg, var(--aq-text));
  box-shadow: 0 18px 40px rgba(13, 26, 23, .22), 0 2px 6px rgba(13, 26, 23, .08);
}
.aq-buborek .leaflet-popup-content {
  box-sizing: border-box; max-width: 100%; margin: 0; padding: 18px 20px 18px;
  overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.45;
}
.aq-buborek .leaflet-popup-tip { background: var(--td-felulet-2, #FBFAF6); box-shadow: none; }
.aq-buborek a.leaflet-popup-close-button {
  top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; font: 400 22px/1 system-ui, sans-serif; color: var(--td-halk, var(--aq-muted)); text-decoration: none;
}
.aq-buborek a.leaflet-popup-close-button:hover, .aq-buborek a.leaflet-popup-close-button:focus-visible { background: var(--td-felulet-2, var(--aq-surface)); color: var(--td-szoveg, var(--aq-text)); }
.terkep-buborek { display: grid; gap: 4px; min-width: 0; }
.terkep-buborek .terkep-tipp__tipus { margin-bottom: 6px; }
.terkep-buborek__nev { padding-right: 34px; font-size: 1.125rem; line-height: 1.25; color: var(--td-szoveg, var(--aq-text)); }
.terkep-buborek__hely { color: var(--td-halk, var(--aq-muted)); }
.terkep-buborek__adat { color: var(--td-teal-szoveg, var(--aq-accent-sotet)); font-weight: 700; }
.terkep-buborek__link {
  justify-self: start; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--td-keret, var(--aq-line));
  color: var(--td-teal-szoveg, var(--aq-accent-sotet)); font-weight: 800; text-decoration: underline; text-underline-offset: .2em;
}

/* Spiderfy: vezetővonal a szétterített jelölőtől a valós ponthoz. */
.terkep-lab { stroke: var(--td-teal-szoveg, var(--aq-accent-sotet)); stroke-width: 1.5; stroke-opacity: .85; fill: none; }
.terkep-lab-kozep { stroke: var(--td-felulet, #fff); stroke-width: 2; fill: var(--td-teal-szoveg, var(--aq-accent-sotet)); fill-opacity: 1; }
.terkep-doboz .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: var(--td-szoveg, var(--aq-text)); }
.terkep-doboz .leaflet-control-attribution { font-size: .6875rem; }

@media (min-width: 992px) {
  .kereso__shell { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: 48px; align-items: stretch; }
  .kereso__szoveg { align-self: center; }
  .kereso__terkep { margin: 0 calc(-1 * var(--kilogas)) 0 0; }
  .terkep-doboz { height: 100%; min-height: max(clamp(520px, 62vh, 780px), min(28vw, 820px)); border-radius: var(--radius-xl) 0 0 var(--radius-xl); overflow: hidden; }
  .terkep-jelmagyarazat { left: 18px; bottom: 18px; }
}
@media (min-width: 1200px) {
  .kereso__shell { grid-template-columns: minmax(0, 27fr) minmax(0, 73fr); gap: 56px; }
}

/* ---------- Morzsamenü (üzlet- és ajánlatoldal; a /kereso saját stílusa: uzletkereso.css) ---------- */
.uzlet .morzsa ol, .akcio-oldal .morzsa ol, .ako .morzsa ol { display: flex; flex-wrap: wrap; margin: 0 0 clamp(18px, 3vw, 28px); padding: 0; list-style: none; font-size: .875rem; color: var(--td-halk, var(--aq-muted)); }
.uzlet .morzsa li + li::before, .akcio-oldal .morzsa li + li::before, .ako .morzsa li + li::before { content: "/"; margin: 0 10px; color: #A9B5AE; }
.uzlet .morzsa a, .akcio-oldal .morzsa a, .ako .morzsa a { color: inherit; text-underline-offset: .2em; }

/* Főoldali térkép: buborék-akciójelzés és üres állapot (kereso.js). */
.terkep-buborek__akcio { color: var(--td-hiba-szoveg, #7E2A18); font-weight: 700; }
.terkep-doboz__ures { position: absolute; left: 50%; top: 16px; z-index: 450; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 14px; border-radius: 999px; background: var(--td-felulet, #fff); box-shadow: var(--shadow-card); font-size: .9375rem; font-weight: 700; text-align: center; }
.terkep-doboz__ures[hidden] { display: none; }
.terkep-buborek__ajanlat {
  display: grid; gap: 2px; margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-xs, 8px);
  background: rgba(194, 58, 46, .08); color: var(--td-szoveg, var(--aq-text)); font-weight: 700; text-decoration: none;
}
.terkep-buborek__ajanlat:hover { background: rgba(194, 58, 46, .14); }
.terkep-buborek__ajanlat-jel { color: var(--aq-akcio); font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
