/* Belepo — közös design-rendszer (D2 tokenek). Csak világos téma (a demóhoz). */
:root {
  color-scheme: light;
  /* Modern, egyszerű paletta: semleges fehér/szürke/fekete, egyetlen zöld akcentus (a logó zöldje) a 3D-hez és a kiemelésekhez */
  --bp-canvas: #FAFAFA;
  --bp-surface: #FFFFFF;
  --bp-sunken: #F4F4F5;
  --bp-hover: #EFEFF1;
  --bp-border: #E4E4E7;
  --bp-border-strong: #D4D4D8;
  --bp-border-control: #8A8A93;
  --bp-text: #0A0A0B;
  --bp-text-2: #52525B;
  --bp-text-3: #71717A;
  --bp-text-disabled: #A1A1AA;
  --bp-action: #0A0A0B;
  --bp-on-action: #FFFFFF;
  --bp-action-hover: #27272A;
  --bp-action-pressed: #3F3F46;
  --bp-ink-800: #18181B;
  --bp-ink-850: #09090B;
  --bp-3d: #0E7C5F;
  --bp-3d-soft: #ECF7F2;
  --bp-3d-graphic: #0F9A73;
  --bp-3d-bright: #19C795;
  --bp-3d-glow: #2BD9A4;
  --bp-positive: #0E7C5F;
  --bp-positive-soft: #ECF7F2;
  --bp-warning: #8A5A00;
  --bp-warning-soft: #FBF1DC;
  --bp-critical: #B3452E;
  --bp-critical-soft: #F8E9E4;
  --bp-info: #2B5E6E;
  --bp-info-soft: #E6EFF0;
  --bp-favorite: #C8442C;
  --bp-skel: #F4F4F5;
  --bp-skel-hi: #FAFAFA;

  --r-xs: 3px; --r-sm: 4px; --r-md: 6px; --r-lg: 6px; --r-xl: 8px; --r-pill: 999px;
  --e1: 0 1px 2px rgb(10 10 11 / .06);
  --e2: 0 1px 2px rgb(10 10 11 / .06), 0 8px 24px rgb(10 10 11 / .07);
  --e3: 0 1px 2px rgb(10 10 11 / .07), 0 12px 32px rgb(10 10 11 / .11);
  --e4: 0 24px 64px rgb(9 9 11 / .22);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --font: "Instrument Sans", "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bp-canvas); color: var(--bp-text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-stretch: 115%; font-weight: 740; }
h3, h4 { font-stretch: 108%; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bp-action); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 600; background: var(--bp-action); color: #fff; padding: 10px 14px; border-radius: var(--r-md); text-decoration: none; }
.skip-link:focus { top: 8px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--bp-text-2); }
.small { font-size: 13px; line-height: 18px; }
.nowrap { white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 56px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; line-height: 28px; }
.section-head p { color: var(--bp-text-2); margin-top: 4px; font-size: 15px; }
.section-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.page-title { font-size: 28px; line-height: 34px; letter-spacing: -.015em; }
@media (min-width: 768px) { .page-title { font-size: 34px; line-height: 40px; } }
.lead { font-size: 17px; line-height: 26px; color: var(--bp-text-2); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Top strip + header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(244 245 241 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bp-border); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.bp-logo { display: inline-flex; align-items: center; color: var(--bp-text); text-decoration: none; flex: none; }
.bp-logo svg { height: 30px; width: auto; }
.main-nav { display: none; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); color: var(--bp-text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--bp-text); background: var(--bp-sunken); }
.main-nav a[aria-current="page"] { color: var(--bp-text); box-shadow: inset 0 -2px 0 var(--bp-action); border-radius: 0; }
.main-nav a.nav-3d .icon { color: var(--bp-3d-graphic); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--bp-text); text-decoration: none; }
.fav-link:hover { background: var(--bp-sunken); }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bp-favorite); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.fav-count[hidden] { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-pill); }
.menu-btn:hover { background: var(--bp-sunken); }
.site-header .header-cta { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--bp-border); background: var(--bp-surface); padding: 8px 0 16px; box-shadow: var(--e3); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); font-weight: 600; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--bp-sunken); }
.mobile-nav .btn { margin: 12px var(--gutter) 0; width: calc(100% - 2 * var(--gutter)); }
@media (min-width: 600px) { .site-header .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--bp-surface); border-top: 1px solid var(--bp-border); color: var(--bp-text-2); font-size: 14px; }
.footer-grid { display: grid; gap: 32px; padding: 40px 0 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 340px; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 12px; }
.footer-brand p { line-height: 21px; }
.site-footer h2 { font-size: 13px; text-transform: none; letter-spacing: .02em; color: var(--bp-text); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bp-text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--bp-border); padding: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 13px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), box-shadow .12s var(--ease); user-select: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--bp-action); color: var(--bp-on-action); }
.btn-primary:hover { background: var(--bp-action-hover); }
.btn-primary:active { background: var(--bp-action-pressed); }
.btn-secondary { background: var(--bp-surface); color: var(--bp-text); border-color: var(--bp-border-strong); }
.btn-secondary:hover { background: var(--bp-sunken); border-color: var(--bp-border-control); }
.btn-ghost { background: transparent; color: var(--bp-text); }
.btn-ghost:hover { background: var(--bp-sunken); }
.btn-3d { background: var(--bp-3d); color: #fff; }
.btn-3d:hover { background: var(--bp-action-hover); }
.btn-3d .icon { color: #A6F0D6; }
.btn-light { background: #fff; color: var(--bp-text); }
.btn-light:hover { background: var(--bp-sunken); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.btn-outline-light:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-md); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.link-btn { border: 0; background: none; padding: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--bp-text-2); line-height: 18px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--bp-border-control); border-radius: var(--r-md); background: var(--bp-surface); color: var(--bp-text); font-size: 16px; line-height: 20px; transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 112px; padding: 10px 12px; line-height: 22px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2359665F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
.input::placeholder, .textarea::placeholder { color: var(--bp-text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--bp-text-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bp-action); box-shadow: 0 0 0 1px var(--bp-action); }
.input-group { display: flex; align-items: center; gap: 6px; }
.input-group .sep { color: var(--bp-text-3); }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 52px; }
.input-suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--bp-text-3); font-size: 14px; pointer-events: none; }
.help { font-size: 13px; color: var(--bp-text-2); line-height: 18px; }
.error-text { font-size: 13px; color: var(--bp-critical); line-height: 18px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--bp-action); margin: 0; }

/* Switch (Csak 3D-s) */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--bp-border-strong); transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--e1); transition: transform .15s var(--ease); }
.switch input:checked + .track { background: var(--bp-3d); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--bp-action); outline-offset: 2px; }

/* Segmented */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bp-sunken); border-radius: var(--r-pill); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--bp-text-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--bp-text); }
.seg [aria-pressed="true"], .seg [aria-current="true"], .seg .is-active { background: var(--bp-surface); color: var(--bp-text); box-shadow: var(--e1); }
.seg-dark [aria-pressed="true"] { background: var(--bp-action); color: #fff; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--bp-border-strong); background: var(--bp-surface); color: var(--bp-text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s; }
.chip:hover { border-color: var(--bp-text-2); background: var(--bp-sunken); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--bp-action); border-color: var(--bp-action); color: #fff; }
.chip-3d[aria-pressed="true"] { background: var(--bp-3d); border-color: var(--bp-3d); }
.chip .x { display: inline-flex; margin-right: -4px; opacity: .7; }
.chip-sm { height: 30px; padding: 0 10px; font-size: 13px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.badge-neutral { background: var(--bp-sunken); color: var(--bp-text-2); }
.badge-new { background: var(--bp-positive-soft); color: var(--bp-positive); }
.badge-info { background: var(--bp-info-soft); color: var(--bp-info); }
.badge-ai { background: var(--bp-info-soft); color: var(--bp-info); }
.badge-3d-soft { background: var(--bp-3d-soft); color: var(--bp-3d); }
.badge-3d-soft .icon { color: var(--bp-3d-graphic); }
/* Erős 3D-jelvény a képeken */
.badge-3d { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 7px; border-radius: var(--r-sm); background: rgb(10 16 13 / .78); color: var(--bp-3d-bright); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 1px rgb(25 199 149 / .35), 0 4px 14px rgb(0 0 0 / .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-3d .icon { width: 16px; height: 16px; color: var(--bp-3d-bright); }
.badge-3d b { color: var(--bp-3d-bright); font-weight: 800; }
.badge-overlay { background: rgb(9 9 11 / .62); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Energia */
.energy { display: inline-flex; align-items: center; height: 26px; padding: 0 14px 0 9px; font-weight: 800; font-size: 13px; color: var(--bp-text); clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); border-radius: var(--r-xs) 0 0 var(--r-xs); }
.energy[data-c="A+++"] { background: #007F35; color: #fff; }
.energy[data-c="A++"] { background: #439027; }
.energy[data-c="A+"] { background: #74A311; }
.energy[data-c="A"] { background: #A0B200; }
.energy[data-c="B"] { background: #C7BA00; }
.energy[data-c="C"] { background: #E3B900; }
.energy[data-c="D"] { background: #F3AE00; }
.energy[data-c="E"] { background: #F69B00; }
.energy[data-c="F"] { background: #EB8100; }
.energy[data-c="G"] { background: #D66407; }
.energy[data-c="H"] { background: #BB471F; color: #fff; }
.energy[data-c="I"] { background: #A1302B; color: #fff; }

/* ---------- Listing card ---------- */
.grid-cards { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.lcard { position: relative; display: flex; flex-direction: column; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: none; transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); min-width: 0; }
.lcard:hover, .lcard.is-active { box-shadow: var(--e2); border-color: var(--bp-action); }
.lcard.is-active { outline: 2px solid var(--bp-action); outline-offset: -1px; }
.lcard-media { position: relative; aspect-ratio: 3 / 2; background: var(--bp-sunken); overflow: hidden; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lcard:hover .lcard-media img { transform: scale(1.03); }
.lcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bp-text-3); font-size: 13px; gap: 4px; align-content: center; justify-items: center; }
.lcard-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 2; }
.lcard-count { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: rgb(9 9 11 / .62); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.lcard-count .icon { width: 14px; height: 14px; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--bp-text); box-shadow: var(--e2); transition: transform .12s var(--ease); }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: var(--bp-favorite); }
.fav-btn[aria-pressed="true"] .icon path { fill: currentColor; }
.lcard-body { display: grid; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.lcard-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lcard-price strong { font-family: var(--font-display); font-stretch: 108%; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcard-price span { font-size: 13px; color: var(--bp-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcard-facts { font-size: 15px; font-weight: 600; color: var(--bp-text); }
.lcard-facts .dot { color: var(--bp-text-3); margin: 0 4px; font-weight: 400; }
.lcard-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--bp-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-title a { text-decoration: none; }
.lcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcard-title a:focus-visible { outline: none; }
.lcard:has(.lcard-title a:focus-visible) { outline: 2px solid var(--bp-action); outline-offset: 2px; }
.lcard-loc { font-size: 14px; line-height: 20px; color: var(--bp-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-adv { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--bp-border); font-size: 12.5px; color: var(--bp-text-3); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lcard-adv b { font-weight: 600; color: var(--bp-text-2); overflow: hidden; text-overflow: ellipsis; }
/* Vízszintes kártya (osztott nézet) */
.lcard--row { flex-direction: row; }
.lcard--row .lcard-media { width: 42%; max-width: 260px; aspect-ratio: auto; min-height: 168px; flex: none; }
.lcard--row .lcard-body { flex: 1; align-content: start; padding: 12px 14px; }
.lcard--row .fav-btn { left: calc(min(42%, 260px) - 48px); right: auto; }
@media (max-width: 520px) {
  .lcard--row { flex-direction: column; }
  .lcard--row .lcard-media { width: 100%; max-width: none; aspect-ratio: 3 / 2; min-height: 0; }
  .lcard--row .fav-btn { left: auto; right: 8px; }
}
/* Görgethető kártyasor */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; overscroll-behavior-x: contain; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1240px) { .scroller { grid-auto-columns: calc((100% - 3 * 16px - 2 * var(--gutter)) / 4); } }

.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: radial-gradient(120% 90% at 70% 10%, rgb(25 199 149 / .2), rgb(25 199 149 / 0) 60%), linear-gradient(160deg, #27272A, #09090B); color: #E8F7F0; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.img-fallback svg { width: 44px; height: auto; filter: drop-shadow(0 0 18px rgb(25 199 149 / .35)); }
.hv-frame .img-fallback svg { width: 96px; }

/* ---------- Skeleton, empty, error ---------- */
.skel { background: linear-gradient(90deg, var(--bp-skel) 0%, var(--bp-skel-hi) 50%, var(--bp-skel) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: var(--r-sm); }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-card { border-radius: var(--r-lg); border: 1px solid var(--bp-border); background: var(--bp-surface); overflow: hidden; }
.skel-card .skel-media { aspect-ratio: 3 / 2; border-radius: 0; }
.skel-card .skel-lines { padding: 16px; display: grid; gap: 10px; }
.skel-line { height: 14px; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; } .skel-line.h22 { height: 22px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 16px; color: var(--bp-text-2); grid-column: 1 / -1; }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bp-sunken); color: var(--bp-text-2); margin-bottom: 8px; }
.empty h2, .empty h3 { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--bp-text); }
.empty p { max-width: 420px; }
.empty .row { justify-content: center; margin-top: 12px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 20px; }
.banner-info { background: var(--bp-info-soft); color: var(--bp-info); }
.banner-warning { background: var(--bp-warning-soft); color: var(--bp-warning); }
.banner-error { background: var(--bp-critical-soft); color: var(--bp-critical); }
.banner-success { background: var(--bp-positive-soft); color: var(--bp-positive); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 500; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--bp-text); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--e3); font-size: 14px; font-weight: 500; animation: toast-in .2s var(--ease); pointer-events: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Location autocomplete ---------- */
.locpick { position: relative; min-width: 0; }
.locpick-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px 4px 36px; border: 1px solid var(--bp-border-control); border-radius: var(--r-md); background: var(--bp-surface); cursor: text; }
.locpick-box:hover { border-color: var(--bp-text-2); }
.locpick-box:focus-within { border-color: var(--bp-action); box-shadow: 0 0 0 1px var(--bp-action); }
.locpick-box > .icon { position: absolute; left: 10px; top: 12px; width: 18px; height: 18px; color: var(--bp-text-3); pointer-events: none; }
.locpick-input { flex: 1; min-width: 120px; height: 34px; border: 0; outline: none; background: transparent; font-size: 16px; padding: 0 4px; }
.locpick-input::placeholder { color: var(--bp-text-3); }
.locpick-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: var(--r-pill); background: var(--bp-action); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.locpick-chip button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: #fff; padding: 0; }
.locpick-chip button:hover { background: rgb(255 255 255 / .18); }
.locpick-chip .icon { width: 14px; height: 14px; }
.locpick-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 200; margin: 0; padding: 6px; list-style: none; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--r-md); box-shadow: var(--e3); max-height: 340px; overflow-y: auto; }
.locpick-list[hidden] { display: none; }
.locpick-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; }
.locpick-list li small { color: var(--bp-text-3); font-size: 12px; white-space: nowrap; }
.locpick-list li[aria-selected="true"], .locpick-list li:hover { background: var(--bp-sunken); }
.locpick-list .locpick-empty { color: var(--bp-text-3); cursor: default; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--bp-text-2); margin: 16px 0; list-style: none; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "›"; color: var(--bp-text-3); margin-right: 2px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--bp-text); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--bp-border); background: var(--bp-surface); font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--bp-text-2); }
.pager [aria-current="page"] { background: var(--bp-action); border-color: var(--bp-action); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 20px; color: var(--bp-text-3); }
.pager .disabled { opacity: .4; pointer-events: none; }

/* ---------- Panels / boxes ---------- */
.panel { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--e1); }
.panel h2 { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 12px; }
.divider { height: 1px; background: var(--bp-border); border: 0; margin: 24px 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bp-text); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sq { border-radius: var(--r-md); }

/* ---------- Map pins (Leaflet divIcon) ---------- */
.bp-pin-wrap { background: none; border: 0; }
.bp-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px)); display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bp-ink-850); color: #fff; font: 700 13px/16px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--e2); cursor: pointer; transition: transform .12s var(--ease), background .12s; }
.bp-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: var(--bp-ink-850); }
.bp-pin .pin3d { display: inline-grid; place-items: center; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--bp-3d-bright); color: var(--bp-ink-850); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.bp-pin.is-active, .bp-pin:hover { background: #fff; color: var(--bp-text); box-shadow: 0 0 0 2px var(--bp-ink-850), var(--e3); transform: translate(-50%, calc(-100% - 6px)) scale(1.08); z-index: 1000; }
.bp-pin.is-active::after, .bp-pin:hover::after { border-top-color: var(--bp-ink-850); }
.bp-cluster-wrap { background: none; border: 0; }
.bp-cluster { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(9 9 11 / .9); color: #fff; font: 700 14px/1 var(--font); box-shadow: 0 0 0 6px rgb(9 9 11 / .14), var(--e2); }
.bp-cluster.has3d { box-shadow: 0 0 0 3px var(--bp-3d-bright), 0 0 0 8px rgb(25 199 149 / .2), var(--e2); }
.leaflet-container { font-family: var(--font); background: #F0F0F2; }
.bp-tiles { filter: saturate(.18) contrast(.96) brightness(1.04); }
.bp-vector-base { background: #F2F2F4 !important; }
.leaflet-pane svg { max-width: none !important; max-height: none !important; }
.bp-city { background: none; border: 0; }
.bp-city span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 11px/1 var(--font); color: #71717A; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.bp-city.is-big span { font-size: 13px; font-weight: 700; color: #3F3F46; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: var(--e3); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-tip { box-shadow: none; }
.map-pop { display: block; text-decoration: none; color: var(--bp-text); }
.map-pop .map-pop-img { position: relative; aspect-ratio: 3 / 2; background: var(--bp-sunken); }
.map-pop img { width: 100%; height: 100%; object-fit: cover; }
.map-pop .badge-3d { position: absolute; left: 8px; top: 8px; height: 24px; font-size: 11.5px; }
.map-pop-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.map-pop-body strong { font-family: var(--font-display); font-stretch: 108%; font-size: 17px; font-variant-numeric: tabular-nums; }
.map-pop-body span { font-size: 13px; color: var(--bp-text-2); }
.leaflet-control-attribution { font-size: 10.5px; }

/* ---------- Dialog / lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--bp-text); }
dialog::backdrop { background: rgb(9 9 11 / .6); }
.dialog { width: min(560px, calc(100vw - 32px)); border-radius: var(--r-xl); box-shadow: var(--e4); background: var(--bp-surface); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 24px; }
.dialog-head h2 { font-size: 20px; }
.dialog-body { padding: 16px 24px 24px; }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--bp-border); font-size: 15px; }
.kv dt { color: var(--bp-text-2); padding-right: 12px; }
.kv dd { font-weight: 600; }
.prose { font-size: 16px; line-height: 26px; color: var(--bp-text); }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 20px; line-height: 26px; margin: 28px 0 10px; }
.prose h3 { font-size: 17px; line-height: 24px; margin: 20px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
/* Eredeti eladó3D „eyebrow": nagybetű, 0.12em betűköz, akcentusszín */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-action); }
.ink-band { background: var(--bp-ink-850); color: #fff; border-radius: var(--r-xl); overflow: hidden; position: relative; }
.ink-band .muted, .ink-band p { color: #93A29A; }
.ink-band h2 { color: #fff; }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--r-lg); padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bp-text); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.step-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--bp-3d-soft); color: var(--bp-3d); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; line-height: 24px; margin-bottom: 6px; }
.step p { color: var(--bp-text-2); font-size: 15px; line-height: 22px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* A [hidden] attribútum mindig rejtsen, a komponens display-szabályaival szemben is (pl. a rejtett Eladó/Kiadó kapcsoló). */
[hidden] { display: none !important; }
