:root {
  color-scheme: light; /* opt out of iOS Safari auto-dark: keeps panels/text as authored */
  --ink: #1c2732;
  --muted: #6b7885;
  --line: #e5e9ee;
  --bg: #f6f8fa;
  --card: #ffffff;
  --brand: #1f6f78;      /* SpaTrend teal */
  --brand-dark: #16565d;
  --accent: #c8a15a;     /* premium gold */
  --ok: #2e7d5b;
  --sold: #b23b3b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28,39,50,.06), 0 8px 24px rgba(28,39,50,.05);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.6rem; margin: .2em 0 .4em; }
h2 { font-size: 1.25rem; margin: 1.2em 0 .5em; }
h3 { font-size: 1.02rem; margin: 0 0 .3em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 1rem; }
.mt { margin-top: 1.2rem; }

/* header */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: .4rem;
  gap: 1rem; padding: .7rem 1rem; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.brand-logo { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word { font-size: 1.28rem; font-weight: 800; letter-spacing: -.2px; }
.brand-spa { color: var(--ink); }
.brand-mark { color: var(--brand); }
.brand-tld { color: var(--accent); font-weight: 700; font-size: .78em; margin-left: .05em; }
.brand-sub { color: var(--muted); font-weight: 600; font-size: .72rem; letter-spacing: .4px; text-transform: uppercase; }
header nav { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; row-gap: .4rem; min-width: 0; }
header nav a { font-weight: 600; }

main { max-width: none; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem); }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .55rem .9rem; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: .95rem;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; }
.btn-lg { padding: .75rem 1.3rem; font-size: 1.02rem; }
.btn-sm { padding: .35rem .6rem; font-size: .82rem; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 2rem 1.3rem; margin: .5rem 0 1.5rem;
}
.hero h1 { color: #fff; font-size: 1.8rem; margin-top: 0; }
.hero .lead { color: #e7f1f2; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

.lead { font-size: 1.05rem; color: var(--muted); }
.block { margin: 1.5rem 0; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: block; transition: transform .08s ease; }
.card:hover { transform: translateY(-2px); }
.card-img { height: 170px; background-size: cover; background-position: center; position: relative; background-color: #dfe6ea; }
.card-body { padding: .7rem .8rem .9rem; }
.card-title { font-weight: 700; font-size: 1rem; line-height: 1.3; margin-bottom: .2rem; }
.card-meta { color: var(--muted); font-size: .85rem; }
.card-loc { margin-top: .1rem; }
.card-price { margin-top: .4rem; font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; }

/* badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; margin: .3rem .3rem 0 0; }
.card-img .badge { position: static; float: left; margin: .5rem 0 0 .5rem; backdrop-filter: blur(2px); }
.badge-verified { background: rgba(31,111,120,.12); color: var(--brand-dark); border: 1px solid rgba(31,111,120,.3); }
.card-img .badge-verified { background: rgba(255,255,255,.92); }
.badge-featured { background: var(--accent); color: #3b2c07; }
.badge-sold { background: var(--sold); color: #fff; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filters .f { display: flex; flex-direction: column; gap: .25rem; }
.filters label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.filters input, .filters select { padding: .5rem; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.f-actions { flex-direction: row; align-items: flex-end; gap: .5rem; }

/* detail */
.gallery-main { position: relative; height: 320px; border-radius: var(--radius); background-color: #dfe6ea; overflow: hidden; }
.gm-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px); transform: scale(1.1); opacity: .55; }
.gm-img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.thumb { width: 76px; height: 60px; background-size: cover; background-position: center; border-radius: 8px; background-color: #dfe6ea; cursor: pointer; }
.thumb.active { outline: 2px solid var(--brand); outline-offset: 1px; }
.gallery.multi .gallery-main { cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1rem; }
.price-big { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }
.facts { list-style: none; padding: 0; margin: .8rem 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--muted); }
.desc { margin-top: .8rem; }
.detail-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }

/* forms */
form.stack label, .detail-form label { display: block; margin-bottom: .7rem; font-weight: 600; font-size: .9rem; }
form input, form select, form textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: inherit; margin-top: .2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }
.consent { font-weight: 400 !important; font-size: .85rem !important; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.consent input { width: auto; margin-top: .2rem; }

/* banners */
.banner { border-radius: var(--radius); padding: 1rem 1.1rem; margin: .8rem 0; }
.banner-ok { background: rgba(46,125,91,.1); border: 1px solid rgba(46,125,91,.3); color: #1c5e42; }
.banner-sold { background: rgba(178,59,59,.1); border: 1px solid rgba(178,59,59,.3); color: var(--sold); }
.banner-warn { background: rgba(196,148,42,.12); border: 1px solid rgba(196,148,42,.35); color: #7a5a14; }
.upload-box { display: block; border: 2px dashed rgba(46,125,91,.45); border-radius: var(--radius); padding: 1rem 1.1rem; background: rgba(46,125,91,.05); cursor: pointer; font-weight: 600; }
.upload-box .muted { display: block; font-weight: 400; margin: .3rem 0 .5rem; }
.upload-box input[type="file"] { margin-top: .2rem; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* table */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: #f0f3f5; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

/* footer */
.site-foot { max-width: none; margin: 2rem auto 3rem; padding: 1.2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (min-width: 780px) {
  .detail-grid { grid-template-columns: 1.4fr 1fr; }
  .hero { padding: 3rem 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

/* language switcher */
.langsel { position: relative; }
.langsel > summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink);
  padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 10px;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.langsel > summary::-webkit-details-marker { display: none; }
.langsel[open] > summary { border-color: var(--brand); }
.langmenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .35rem; min-width: 170px;
  max-width: calc(100vw - 24px); /* never wider than the viewport (with gutters) */
  max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
/* Explicit dark-on-white so the items never collide with an adapted background. */
.langmenu a {
  display: block; padding: .5rem .7rem; border-radius: 8px; color: #1c2732; font-weight: 500;
}
.langmenu a:hover { background: var(--bg); }
.langmenu a.cur { color: var(--brand); font-weight: 700; }
.eur { color: var(--muted); font-weight: 500; font-size: .88em; }
.auto-note { margin: .1rem 0 .6rem; }
.auto-note a { text-decoration: underline; }

/* mobile: the switchers must never widen the page */
@media (max-width: 640px) {
  header.site { padding: .5rem .6rem; gap: .5rem; }
  header nav { gap: .4rem; flex-wrap: nowrap; }
  header nav .btn { padding: .4rem .55rem; font-size: .85rem; white-space: nowrap; }
  .langsel > summary { padding: .3rem .4rem; font-size: .85rem; }
  /* keep the header switchers on ONE row: show only the flag/globe, hide the code text */
  .langsel > summary > span { display: none; }
  /* anchor the dropdowns to the sticky header (not the chip) so they can never overflow the
     viewport edge, whichever chip they open from */
  .langsel { position: static; }
  .langmenu { left: 12px; right: 12px; min-width: 0; max-width: none; top: calc(100% + 8px); }
}
html, body { overflow-x: hidden; }

.src-note { margin-top: .7rem; }
.src-note a { color: var(--muted); text-decoration: underline; }

/* ---------- guides (blog) ---------- */
.guides, .guide { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 2.5rem; }
.guides .lead { font-size: 1.05rem; color: var(--muted); }
.guide-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.guide-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.guide-item h2 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--ink); }
.guide-item p { margin: 0 0 .4rem; }
.guide h1 { font-size: 1.75rem; line-height: 1.25; margin: .3rem 0 .4rem; }
.guide .crumbs { color: var(--muted); }
.guide-meta { margin-bottom: 1rem; }
.guide-body { font-size: 1.04rem; line-height: 1.7; }
.guide-body h2 { font-size: 1.32rem; margin: 2rem 0 .6rem; scroll-margin-top: 80px; }
.guide-body h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; }
.guide-body ul, .guide-body ol { padding-left: 1.3rem; }
.guide-body li { margin: .25rem 0; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.guide-body th { background: #eef4f5; }
.guide-body .tip { background: #f3f8f8; border-left: 4px solid var(--brand); padding: .7rem .9rem; border-radius: 8px; margin: 1rem 0; }
.guide-body .warn { background: #fbf6ec; border-left: 4px solid var(--accent); padding: .7rem .9rem; border-radius: 8px; margin: 1rem 0; }
.tldr { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0 1.2rem; box-shadow: var(--shadow); }
.tldr-h, .toc-h { font-weight: 700; margin-bottom: .3rem; }
.tldr ul { margin: 0; padding-left: 1.2rem; }
.tldr li { margin: .25rem 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin: 0 0 1.4rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .2rem 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details > div { margin-top: .5rem; }
.guide-cta { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 2rem 0 1rem; }
.guide-cta h2 { color: #fff; margin: 0 0 .7rem; font-size: 1.15rem; }
.guide-cta .cta-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.guide-cta .btn { background: #fff; color: var(--brand-dark); }
.guide-cta .btn-primary { background: var(--accent); color: #1c2732; }
.author-box { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.author-box p { margin: .3rem 0 0; }
.related ul { padding-left: 1.2rem; }
@media (max-width: 640px) {
  /* three nav entries + two switchers on one row: tighten the plain text links */
  header nav > a:not(.btn) { font-size: .84rem; }
}
@media (max-width: 400px) {
  header nav { gap: .3rem; }
  header nav > a:not(.btn) { font-size: .8rem; }
  header nav .btn { padding: .35rem .45rem; font-size: .8rem; }
}

/* Ertekbecslo fejlec-link: keskeny kijelzon rejtve, mert a hosszu nyelvekben (fi/de) ket sorba torte a fejlecet
   (83 -> 109 px, merve 2026-10-05). Mobilon a feladas oldal teteje vezet az ertekbecsloe. */
@media (max-width: 560px) { header.site nav .nav-val { display: none; } }

/* Vezetett feladas (0-30 csomag 2. tetel). JS nelkul a fieldset-ek egyszerre latszanak (hosszu urlap). */
.wiz-step { border: 1px solid var(--line, #e3e7ea); border-radius: 12px; padding: 1rem 1rem 1.2rem; margin: 0 0 1rem; }
.wiz-step legend { font-weight: 700; font-size: 1.1rem; padding: 0 .4rem; }
.wiz-js .wiz-step { border: 0; padding: 0; }
.wiz-js .wiz-step legend { font-size: 1.3rem; padding: 0; margin-bottom: .6rem; }
.wiz-nav { display: flex; gap: .7rem; justify-content: space-between; margin-top: .4rem; }
.wiz-nav .btn { flex: 1; min-height: 48px; }
.wiz-nav .btn[hidden] { display: none; }
.wiz-javaslat { margin-bottom: .8rem; }
.wiz-osszegzes { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: .8rem 0 1.1rem; }
.wiz-osszegzes dt { color: var(--muted, #667); }
.wiz-osszegzes dd { margin: 0; overflow-wrap: anywhere; }

/* 3. tetel: foto-lista nezet-cimkekkel */
.foto-lista { display: grid; gap: .6rem; margin-top: .7rem; }
.foto-elem { display: grid; grid-template-columns: 72px 1fr auto; gap: .6rem; align-items: center; }
.foto-elem img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.foto-elem select { min-width: 0; }
.foto-gombok { display: flex; gap: .3rem; }
.foto-gomb { min-width: 40px; min-height: 40px; padding: 0 .5rem; }
.foto-hiany.ok { color: #1f6f78; font-weight: 600; }
.gallery-main { position: relative; }
.gm-cap { position: absolute; left: .6rem; bottom: .6rem; background: rgba(0,0,0,.58); color: #fff; font-size: .85rem; padding: .2rem .55rem; border-radius: 6px; pointer-events: none; }
.gm-cap:empty { display: none; }

/* 4. tetel: muszaki tablazat a hirdetes-oldalon */
.tech-table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .95rem; }
.tech-table th, .tech-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line, #e3e7ea); vertical-align: top; }
.tech-table th { font-weight: 600; color: var(--muted, #556); width: 45%; }
.tech-table td { overflow-wrap: anywhere; }

/* 5. tetel: eladoi nyilatkozat-jelvenyek */
.chk-sor { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .2rem; }
.chk-badge { background: #e8f4f1; color: #1f6f78; border: 1px solid #bfe0d8; border-radius: 999px; padding: .25rem .7rem; font-size: .88rem; font-weight: 600; }
.chk-megj { margin: .2rem 0 .8rem; }

/* 6. tetel: hirdeto tipusa a kartyan */
.seller-tag { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 6px; background: #eef1f4; color: #445; font-size: .78rem; }

/* ---- arak es csomagok + kereskedo (Johnny 21055) ---- */
.banner-info { background: rgba(31,111,67,.08); border: 1px solid rgba(31,111,67,.28); color: #1f4d33; margin: 1rem 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1rem 0; }
.plan { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 1.1rem; background: #fff; display: flex; flex-direction: column; gap: .4rem; }
.plan h3 { margin: 0; }
.plan-price { font-size: 1.45rem; font-weight: 700; }
.plan-promo { color: #1f6f43; font-weight: 600; margin: 0; }
.plan-incl { margin: .3rem 0 .6rem; padding-left: 1.1rem; font-size: .92rem; }
.plan .btn[disabled] { opacity: .6; cursor: not-allowed; margin-top: auto; }
.price-tbl td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.badge-dealer { background: #1f3b57; color: #fff; }
.card-img .badge-dealer { position: absolute; left: .5rem; bottom: .5rem; }
.dealer-box { display: flex; gap: .75rem; align-items: center; margin: .75rem 0; padding: .6rem .75rem; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; }
.dealer-box img { width: 56px; height: 56px; object-fit: contain; }
.dealer-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dealer-head img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); background: #fff; }
.near-sub { margin-top: 1.5rem; }

/* distance display (Roland TG 10218) */
.card-loc .dist, .facts .dist { white-space: nowrap; font-weight: 600; }
.loc-btn { margin-left: .4rem; vertical-align: middle; }
.facts li.loc-row { border: 0; padding-top: 0; }
.dist-block { display: block; font-weight: 500; opacity: .75; }
/* label / value spacing in the facts list (Roland TG 10237: the flag collided with the label) */
.facts li { gap: 1rem; align-items: baseline; }
.facts li > span { flex: 0 0 auto; white-space: nowrap; }
.facts li > b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* year on cards (2026-10-15, Roland TG 11130) */
.card-year { font-size: .9rem; margin: .15rem 0 .1rem; }
.card-year b { font-weight: 700; }
.card-year.muted b { font-weight: 500; }
