/* ============================================================
   ExpressEmi – 09 hangos keresés · referencia-arculat
   (sötétkék + magenta/lila ExpressEmi színvilág)
   Elsődleges célméretek: 360 / 390 / 412 / 430 px.
   Desktop 1200–1400 px tartalommaximmal másodlagos adaptáció.
   Elvek: nincs vízszintes görgetés, 44–48 px érintési célok,
   nagy keresőmező, jól elérhető mikrofon, 1 oszlopos kártyák.
   ============================================================ */
:root {
  --blue: #0b57d0;
  --blue-dark: #0842a0;
  --blue-soft: #e8f0fe;
  --navy: #151833;          /* ExpressEmi sötétkék */
  --navy-2: #1e2145;
  --accent: #e11d8f;        /* magenta */
  --accent-2: #7b2ff7;      /* lila */
  --accent-dark: #a5146b;
  --accent-soft: #fdeaf6;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-soft: linear-gradient(135deg, #fdeaf6, #efe8fd);
  --ink: #1b1f27;
  --muted: #5f6874;
  --line: #e3e7ee;
  --bg: #f6f8fb;
  --card: #ffffff;
  --danger: #b3261e;
  --ok: #1e6b34;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(21, 24, 51, .08);
  --tap: 48px;              /* minimum érintési cél */
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;       /* mobil: semmi vízszintes görgetés */
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
h1 { font-size: 1.35rem; margin: .6em 0 .4em; }
h2 { font-size: 1.1rem; margin: 1.2em 0 .5em; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- felső sáv: sötétkék ExpressEmi fejléc ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  border-bottom: none;
  box-shadow: 0 2px 14px rgba(21, 24, 51, .35);
}
.bar-row {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px;
  min-height: var(--tap);
}
.logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .3px;
  color: #fff; text-decoration: none; display: flex;
  align-items: center; gap: 8px;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: .9rem;
}
.bar-actions { display: flex; align-items: center; gap: 10px; }
.bar-actions a, .bar-actions button { min-height: 44px; display: inline-flex; align-items: center; }
.ghostlink { color: #d9dbf2; text-decoration: none; font-weight: 600; padding: 8px; }
.userchip { font-weight: 700; text-decoration: none; color: #fff; }
.linklike {
  background: none; border: none; color: #b9bdd9; cursor: pointer;
  font: inherit; padding: 8px;
}

/* ---------- gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 12px;
  border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  min-height: var(--tap); min-width: 44px;
}
.btn.primary { background: var(--grad); border: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn.danger { border-color: var(--danger); background: var(--danger); }
.btn.big { font-size: 1.05rem; padding: 14px 24px; }
.btn.compact { padding: 8px 12px; min-height: 44px; }
.btn.disabled { opacity: .45; pointer-events: none; }
.inline { display: inline; }

/* ---------- oldal / tartalom ---------- */
.page {
  max-width: 1320px; margin: 0 auto;
  padding: 14px 14px calc(var(--nav-h) + 28px);  /* alsó nav ne takarjon */
}
.sitefoot { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px 12px calc(var(--nav-h) + 20px); }
.fine { font-size: .72rem; opacity: .8; }

/* ---------- hero: sötétkékes ExpressEmi panelful + Emi karakter ---------- */
.hero {
  text-align: center; padding: 34px 16px 28px;
  background: radial-gradient(120% 130% at 50% -20%,
              #2a2d5c 0%, var(--navy-2) 45%, var(--navy) 100%);
  border-radius: 0 0 28px 28px;
  margin: -14px -14px 22px;           /* teljes szélességű panel */
  color: #fff;
  box-shadow: 0 10px 30px rgba(21, 24, 51, .25);
}
.emi-hero { display: flex; justify-content: center; margin-bottom: 6px; }
.emi-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(225, 29, 143, .4);
  border: 3px solid rgba(255, 255, 255, .9);
}
.emi-avatar svg { width: 56px; height: 56px; }
.mic-fab {
  width: 96px; height: 96px; border-radius: 50%;
  border: none; background: var(--grad);
  color: #fff; cursor: pointer;
  box-shadow: 0 10px 28px rgba(225, 29, 143, .45);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 10px;
}
.mic-fab svg { width: 44px; height: 44px; }
.mic-fab:active { transform: scale(.96); }
.hero-title {
  font-size: 1.65rem; font-weight: 800; margin: 14px 0 4px; color: #fff;
}
.hero-title .accent { color: #ff9edb; }
.hero-sub { color: #c9ccdf; margin: 0 0 18px; }
.nlsearch {
  display: grid; gap: 10px; justify-items: stretch;
  max-width: 620px; margin: 0 auto;
}
.searchbox {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 2px solid var(--accent);
  border-radius: 18px; padding: 6px;
  box-shadow: 0 8px 26px rgba(21, 24, 51, .35);
}
.searchbox input[type="search"] {
  flex: 1; min-width: 0; border: none; outline: none;
  font: inherit; font-size: 1.05rem; padding: 10px 8px;
  background: transparent; min-height: 44px;
}
.mic-inline {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--accent-soft); color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mic-inline svg { width: 24px; height: 24px; }
.nlsearch .btn { width: 100%; }
.catselect {
  font: inherit; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; min-height: var(--tap);
}
.ex-title { color: #c9ccdf; font-weight: 600; margin: 20px 0 8px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: .88rem; text-decoration: none;
}

/* ---------- kategóriák: fehér, lekerekített, finom árnyék ---------- */
.catgrid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.catcard {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  min-height: 44px;
}
.catcard b { font-size: 1.05rem; color: var(--accent-dark); }
.catcard span { color: var(--muted); font-size: .88rem; }

/* ---------- hirdetés-kártyák (feed) ---------- */
.feed { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.lcard-media {
  position: relative; display: block; background: #e9edf3;
  aspect-ratio: 16 / 10;
}
.lcard-media-link {
  position: absolute; inset: 0;
  display: block; border-radius: inherit;
}
.lcard-media-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #93a0b0; font-size: .85rem;
}
.pct {
  position: absolute; left: 10px; top: 10px;
  background: rgba(255, 255, 255, .94); border-radius: 999px;
  padding: 4px 10px; font-size: .78rem; font-weight: 800;
  box-shadow: var(--shadow);
}
.cat-perfect, .cat-good { color: var(--ok); }
.cat-ok { color: #b07d10; }
.cat-weak { color: var(--danger); }
.favtap { position: absolute; right: 8px; top: 8px; }
.favbtn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .95); color: var(--danger);
  font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.lcard-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.lcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.08rem; color: var(--accent-dark); }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); font-size: .75rem; font-weight: 600;
  color: var(--accent-dark);
}
.chip.on { background: #e3f3e6; color: var(--ok); }
.chip.off { background: #fae8e6; color: var(--danger); }
.lcard h3 { margin: 2px 0; font-size: 1rem; }
.lcard h3 a { color: var(--ink); text-decoration: none; }
.loc { color: var(--muted); margin: 0; font-size: .9rem; }
ul.attrs { margin: 4px 0 0; padding-left: 4px; list-style: none;
  color: var(--muted); font-size: .85rem; display: grid; gap: 2px; }
ul.attrs li::before { content: "· "; color: var(--accent); font-weight: 700; }
.why { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }

/* ---------- értelmezés / rendezés ---------- */
.interp summary {
  cursor: pointer; font-weight: 700; color: var(--accent-dark);
  min-height: 44px; display: flex; align-items: center;
}
.interpretation { display: grid; grid-template-columns: 1fr; gap: 10px; }
.interpretation .col {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px;
}
.sortform, .savesearch {
  margin: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.sortform select { font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line); min-height: var(--tap); }
.sortform button, .savesearch button { min-height: var(--tap); font: inherit; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }

/* ---------- hirdetés-adatlap ---------- */
.detail-head h1 { margin: 8px 0 6px; font-size: 1.3rem; }
.price.big { font-size: 1.45rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keyfacts {
  list-style: none; display: grid; gap: 6px; padding: 0; margin: 10px 0;
  color: var(--ink); font-size: .95rem;
}
.keyfacts li { display: flex; gap: 8px; align-items: center; min-height: 30px; }
.gallery .main {
  width: 100%; max-height: 60vh; object-fit: cover;
  border-radius: var(--radius); background: #e9edf3; display: block;
}
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { border-radius: 8px; }
.noimg.big {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/10; background: #e9edf3; border-radius: var(--radius);
  color: #93a0b0;
}
.favform { margin: 14px 0; }
.favform .btn { width: 100%; }
.contactbar { display: grid; gap: 10px; margin: 14px 0; }
ul.attrs.big { font-size: .95rem; color: var(--ink); }
.shortdesc { font-weight: 600; }
.desc { white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.actions .btn { flex: 1 1 auto; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--muted); margin: 2px 0 10px; }
.breadcrumb a { color: var(--blue); }

/* ---------- űrlapok ---------- */
.form label, .filters label { display: block; margin: 10px 0; font-weight: 600; font-size: .92rem; }
.form input:not([type="checkbox"]):not([type="file"]),
.form select, .form textarea,
.filters input:not([type="checkbox"]), .filters select {
  display: block; width: 100%; font: inherit; font-size: 1rem;
  padding: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  margin-top: 6px; min-height: var(--tap); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.frow { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
fieldset.bools { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
label.check {
  display: flex; gap: 10px; align-items: center; font-weight: 400;
  margin: 8px 12px; min-height: 44px; font-size: 1rem;
}
label.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.flash {
  background: var(--blue-soft); border: 1px solid #b9d7f2;
  color: var(--blue-dark); padding: 12px 14px; border-radius: 12px; margin: 10px 0;
}

/* ---------- varázsló ---------- */
.stepper {
  list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 16px;
  font-size: .74rem; color: var(--muted); text-align: center;
}
.stepper .step { flex: 1; display: grid; gap: 4px; justify-items: center; }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e3e7ee; display: inline-block;
  border: 2px solid #cbd2dc; transition: background .2s;
}
.stepper .step.active { color: var(--accent-dark); font-weight: 700; }
.stepper .step.active .dot { background: var(--grad); border-color: var(--accent); }
.wizard-step { border: none; padding: 0; margin: 0; display: none; }
.wizard-step.is-active { display: block; }
.wizard-step legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 6px; }
.wiznav { display: flex; gap: 10px; margin-top: 16px; }
.wiznav .btn { flex: 1; }
.form.wizard button[type="submit"] { flex: 1; }

/* ---------- profil / admin ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center;
}
.stat b { font-size: 1.4rem; display: block; }
.stat span { color: var(--muted); font-size: .8rem; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .85rem; min-width: 560px; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.admin-table th { background: #eef1f5; }

/* ---------- mentett keresések ---------- */
.savedsearch .q { font-style: italic; font-size: 1rem; }
.existingimgs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.imgdel img { border-radius: 8px; display: block; }

/* ---------- banner-előkészítés ---------- */
.ad-slot { min-height: 0; }
.ad-slot.reserved { min-height: 90px; }

/* ---------- mobil alsó navigáció (sticky) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(16, 32, 64, .08);
}
.bottomnav a {
  display: grid; justify-items: center; align-items: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .68rem;
  min-height: var(--tap); padding: 4px 2px;
}
.bottomnav a.active { color: var(--accent-dark); font-weight: 700; }
.bottomnav svg { width: 24px; height: 24px; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.8rem; font-weight: 400;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -18px; box-shadow: 0 6px 16px rgba(225, 29, 143, .4);
}
.bottomnav .fab-item.active { color: var(--accent-dark); }

/* ============================================================
   Asztali adaptáció (≥768 px): világos, tágas piactér-kinézet,
   max ~1320 px tartalom; kártyák 2–3 oszlopban.
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .page { padding: 20px 24px 48px; }
  .sitefoot { padding-bottom: 24px; }
  .bottomnav { display: none; }               /* asztalon felső sáv navigál */
  .hide-narrow { display: inline-flex; }
  .hero { padding: 48px 0 16px; }
  .hero-title { font-size: 2rem; }
  .mic-fab { width: 112px; height: 112px; }
  .nlsearch { grid-template-columns: 1fr auto auto; }
  .nlsearch .btn { width: auto; }
  .nlsearch.compact { max-width: 760px; }
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .feed { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .frow { grid-template-columns: repeat(2, 1fr); }
  .interpretation { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .contactbar { grid-template-columns: 1fr 1fr; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .feed { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hide-narrow { display: none; }
}

/* ============================================================
   Hangos keresés (09): állapotsáv, hallgatás-vizuál, belépési ablak
   ============================================================ */
.voice-status {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(var(--tap) + 14px); z-index: 60;
  display: none; max-width: min(92vw, 560px);
  background: #fff; border: 2px solid var(--blue);
  border-radius: 14px; padding: 10px 16px;
  font-weight: 600; box-shadow: var(--shadow);
}
.voice-status.visible { display: block; }
.voice-status.listening { border-color: var(--ok); color: var(--ok); }
.voice-status.error { border-color: var(--danger); color: var(--danger); }
.voice-status.ok { border-color: var(--ok); color: var(--ink); }

/* aktív hallgatás: pulzáló gyűrű – box-shadow animáció, nincs layout-shift */
.mic-fab.listening, .mic-inline.listening {
  background: var(--ok); border-color: var(--ok); color: #fff;
  animation: voice-pulse 1.2s ease-in-out infinite;
}
.mic-fab.listening { background: radial-gradient(circle at 30% 30%, #2f9e57, var(--ok)); }
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 107, 52, .45); }
  50% { box-shadow: 0 0 0 12px rgba(30, 107, 52, 0); }
}

/* belépési felszólítás (anon mikrofon-nyomásra) */
.voice-notice {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 16px); z-index: 70;
  width: min(92vw, 460px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  box-shadow: 0 10px 30px rgba(16, 32, 64, .18);
  text-align: center;
}
.voice-notice p { font-weight: 700; margin: 0 0 12px; }
.voice-notice-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 768px) {
  .voice-notice { bottom: 24px; }
}

/* ---------- befektetői demo mód (10): bizalmas jelzés ---------- */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, var(--navy), var(--accent-dark));
  color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .4px;
  padding: 6px 12px; text-align: center;
}
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffd166; display: inline-block;
  animation: demo-blink 2.4s ease-in-out infinite;
}
@keyframes demo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
