/* =====================================================================
   halvanyhat.hu – alap stíluslap
   Hangulat: Tisza–Túr menti ártér – mélyzöld, nád, agyag, okker.
   Betűtípusok: rendszer-betűk (később helyben tárolt webfontra cserélhető, GDPR).
   ===================================================================== */

:root {
    --forest: #1e3628;
    --forest-2: #2c4a37;
    --moss: #5a6b3f;
    --reed: #cdbf93;
    --reed-light: #e9e1c8;
    --clay: #7d4f33;
    --ochre: #b8792a;
    --ochre-dark: #94601d;
    --accent-btn: #9c6a22;       /* fehér szöveggel 4,7:1 (WCAG AA) */
    --accent-btn-hover: #7d5418;
    --field-border: #8a8574;     /* űrlapmezők kerete: 3,7:1 fehéren (WCAG 1.4.11) */
    --cream: #f7f3ea;
    --paper: #fffdf8;
    --ink: #1c211d;
    --ink-soft: #4a524b;
    --line: #ddd5c2;

    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 4px;
    --wrap: 1160px;
    --shadow: 0 10px 30px rgba(30, 54, 40, .12);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 17px/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; }

a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--ochre-dark); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--forest);
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
/* Keskeny tartalom: a fejléccel azonos bal vonalon, csak a szélessége kisebb */
.narrow > * { max-width: 760px; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--clay); margin-bottom: .5em; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--paper); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* ---------- Gombok ---------- */
.btn {
    display: inline-block; padding: .75em 1.4em; border-radius: 999px;
    font-weight: 600; text-decoration: none; border: 2px solid transparent;
    cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { padding: .5em 1em; font-size: .92rem; }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-2); color: var(--cream); }
.btn-accent { background: var(--accent-btn); color: #fff; }
.btn-accent:hover { background: var(--accent-btn-hover); color: #fff; }
.btn-light { background: transparent; color: var(--cream); border-color: rgba(247, 243, 234, .7); }
.btn-light:hover { background: rgba(247, 243, 234, .12); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

/* ---------- Fejléc ---------- */
.site-header {
    background: var(--forest);
    color: var(--cream);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(205, 191, 147, .25);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; flex-shrink: 0; }
.brand-sub, .nav-list a, .nav-cta { white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--reed); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-list, .lang-switch { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-list { gap: 4px; }
.nav-list a {
    display: block; padding: 8px 10px; border-radius: 6px;
    color: var(--reed-light); text-decoration: none; font-size: .95rem;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--ochre); border-radius: 0; }

.lang-switch { gap: 2px; border: 1px solid rgba(205, 191, 147, .4); border-radius: 999px; padding: 2px; }
.lang-switch a {
    display: block; padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
    font-size: .78rem; font-weight: 600; letter-spacing: .06em;
    color: var(--reed-light); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--reed); color: var(--forest); }

.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 0;
    background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--cream); content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

@media (max-width: 1279px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 14px;
        background: var(--forest); padding: 12px 16px 20px;
        border-bottom: 1px solid rgba(205, 191, 147, .25);
    }
    .site-nav.open { display: flex; }
    .nav-list { flex-direction: column; }
    .nav-list a { padding: 10px 6px; }
    .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ochre); padding-left: 12px; }
    .lang-switch { align-self: flex-start; }
    .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--cream);
    background: linear-gradient(180deg, #2a4634 0%, var(--forest) 100%);
    min-height: min(78vh, 640px); display: flex; align-items: flex-end;
}
.hero-art {
    position: absolute; inset: 0;
    background: url("../img/hero-floodplain.svg") center bottom / cover no-repeat;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(20, 36, 27, .78) 0%, rgba(20, 36, 27, .15) 60%, rgba(20, 36, 27, 0) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.hero h1 {
    color: #fff; max-width: 15ch; font-weight: 400; line-height: 1.04; letter-spacing: -.015em;
    font-size: clamp(2.4rem, 6.2vw, 4.6rem); margin-bottom: .45em;
}
.hero-place { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--reed); margin-bottom: .6em; }
.hero-text { font-size: 1.15rem; max-width: 50ch; color: var(--reed-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Főoldal: bevezető, számok, ajánlat ---------- */
.home-intro .split { align-items: end; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin: 36px 0 0; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--forest); padding-top: 10px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--forest); }
.facts dt { margin-top: 6px; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); }

.home-intro .offer-card h3 { margin-bottom: .2em; }

/* ---------- Szakaszok ---------- */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section-tint { background: var(--reed-light); }
.page-head {
    background: var(--forest) url("../img/ridge-line.svg") left bottom 14px / 100% 40px no-repeat;
    color: var(--cream); padding: 64px 0 84px;
}
@media (min-width: 720px) { .page-head { padding: 88px 0 104px; } }
.page-head h1 { color: #fff; max-width: 18ch; margin-bottom: .4em; }
.page-head .lead { color: var(--reed-light); max-width: 58ch; margin: 0; }
.page-head .eyebrow, .page-head .eyebrow a { color: var(--reed); }

.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }

/* Sötét ajánlatdoboz: főoldali ajánlat, díjkalkulátor, szállásárak */
.offer-card { background: var(--forest); color: var(--reed-light); border-radius: var(--radius); padding: 28px; }
@media (min-width: 720px) { .offer-card { padding: 32px; } }
.offer-card h3 { color: #fff; font-size: 1.5rem; margin: 0 0 .5em; }
.offer-card a:not(.btn) { color: #fff; }
.offer-card .muted { color: var(--reed); }
.offer-season { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--clay); }
.offer-card .offer-season { color: var(--reed); }
.offer-price { font-family: var(--font-display); font-size: 1.35rem; color: #fff; border-top: 1px solid rgba(205, 191, 147, .3); padding-top: .8em; }
.offer-card .fee-item { border-bottom-color: rgba(205, 191, 147, .25); }
.offer-card .fee-item dd { color: #fff; }
.offer-card .fee-list { margin-bottom: 0; }

/* ---------- Főoldal: ártéri keresztmetszet ---------- */
.floodplain { background: var(--paper); padding-bottom: 0; border-top: 1px solid var(--line); }
.floodplain .lead { max-width: 52ch; }
.xsec {
    margin: 32px 0 0;
    --c-river: #6f8a86; --c-forest: #46603f; --c-oxbow: #8aa39b; --c-wetland: #9a9a5c;
    --c-fields: #c4a86a; --c-oak: #2f4a33;
}
.xsec-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.xsec-scroll:focus-visible { outline-offset: -3px; }
.xsec-scroll > * { min-width: 760px; }
/* A címkék a rajz sávjai fölött állnak (a rajz 1200 egység: folyó 100, élőhelyek 5 × 220). */
.xsec-labels {
    list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.3;
    display: grid; grid-template-columns: 100fr repeat(5, 220fr);
}
.xsec-labels li { padding: 0 8px 14px 12px; border-left: 1px solid var(--line); }
.xsec-labels li:first-child { border-left: 0; padding-left: 16px; }
.xsec-labels li::before {
    content: ""; display: block; width: 10px; height: 10px; margin-bottom: 8px; border-radius: 50%; background: var(--sw);
}
.z-river { --sw: var(--c-river); } .z-forest { --sw: var(--c-forest); } .z-oxbow { --sw: var(--c-oxbow); }
.z-wetland { --sw: var(--c-wetland); } .z-fields { --sw: var(--c-fields); } .z-oak { --sw: var(--c-oak); }
.z-river { font-family: var(--font-display); font-style: italic; }
@media (min-width: 1200px) { .xsec-labels { font-size: 1rem; } }
.xsec-art { display: block; width: 100%; height: auto; }
.x-zone { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.x-soil { fill: #7a5a3e; }
.x-subsoil { fill: #5e452f; }
.x-water { fill: var(--c-oxbow); }
.x-flood { stroke: var(--c-river); stroke-width: 1.5; stroke-dasharray: 6 5; }
.x-tree path, .x-oak path { stroke: #4b3a29; stroke-width: 3; }
.x-tree ellipse { fill: var(--c-forest); }
.x-oak circle { fill: var(--c-oak); }
.x-reed path { stroke: var(--c-wetland); stroke-width: 2; stroke-linecap: round; }
.x-reed ellipse { fill: #6d5534; }
.x-crop path { stroke: var(--c-fields); stroke-width: 3; stroke-linecap: round; }
.xsec-caption {
    display: flex; align-items: center; gap: 10px; background: #5e452f; color: var(--reed-light);
    max-width: none; margin: -1px 0 0; position: relative; padding-top: 14px; padding-bottom: 18px; font-size: .88rem;
}
@media (min-width: 720px) { .xsec-caption { padding-left: max(28px, calc((100% - var(--wrap)) / 2 + 28px)); } }
.xsec-flood-key { flex: none; width: 28px; border-top: 2px dashed #a9c0bb; }

.notice { background: var(--paper); border-left: 3px solid var(--clay); padding: 16px 22px; }
.notice p:last-child { margin-bottom: 0; }

.cta-box { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--forest); max-width: 32ch; }

/* ---------- Árlista ---------- */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; max-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #cfc5a8; }
.price-table th { font-weight: 600; font-size: .9rem; color: var(--ink-soft); border-bottom: 2px solid var(--forest); }
.price-table td:first-child { font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); white-space: nowrap; }
.price-table tr.is-match td { background: var(--paper); box-shadow: inset 0 -2px 0 var(--ochre); }

.price-table + .small, .table-scroll + .small { margin-top: 10px; }
.section h3 { margin-top: 1.6em; }
.offer-card h3 { margin-top: 0; }
.section .card-title, .section .news-title { margin-top: 0; }  /* kártyán a cím közvetlenül a kép alatt */
.fee-list { margin: 0 0 1.4em; max-width: 760px; }
.fee-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #cfc5a8; }
.fee-item dt { margin: 0; }
.fee-item dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .fee-item { flex-direction: column; gap: 2px; } .fee-item dd { text-align: left; white-space: normal; } }

/* Vadászat oldal: ajánlatok jegyzéke (sötét doboz) és árlistánkénti szakaszok */
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid rgba(205, 191, 147, .3); }
.offer-list li:first-child { border-top: 0; padding-top: 4px; }
.offer-list a { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: #fff; text-decoration-color: rgba(205, 191, 147, .6); }
.offer-list a:hover { color: var(--reed); }
.offer-list-season { font-family: var(--font-display); font-style: italic; color: var(--reed); }
.offer-list-price { color: #fff; font-weight: 600; text-align: right; }
@media (max-width: 420px) { .offer-list li { grid-template-columns: 1fr; } .offer-list-price { text-align: left; } }
.offer-section { scroll-margin-top: 72px; }   /* a ragadós fejléc alá ne csússzon a cím */
.offer-solo { max-width: 460px; }
.offer-section h2 { margin-bottom: .15em; }
.offer-section > .wrap > .offer-season { margin-bottom: 1.6em; }
.offer-season-list { white-space: nowrap; font-style: normal; font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); }
.enquiry-form .field .hunt-choices label { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.hunt-choice-season { display: block; font-size: .9rem; color: var(--ink-soft); }
.offer-section .offer-card .btn { margin-top: 10px; }
.offer-section .offer-card .calc-result:not(output) { margin-top: 4px; }

.calc label { display: block; font-weight: 600; margin-bottom: 6px; }
.offer-card .calc label { color: #fff; }
.calc-row { display: flex; align-items: center; gap: 8px; }
.calc input {
    width: 100%; max-width: 180px; font: inherit; font-size: 1.25rem; padding: 10px 12px;
    border: 2px solid var(--field-border); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.calc input:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.calc-unit { font-weight: 600; color: var(--ink-soft); }
.offer-card .calc-unit { color: var(--reed-light); }
.calc-result { display: block; margin: 18px 0 4px; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--forest); }
.offer-card .calc-result { color: #fff; border-top: 1px solid rgba(205, 191, 147, .3); padding-top: 14px; }

/* ---------- Ajánlatkérő űrlap ---------- */
.enquiry-form fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.enquiry-form fieldset { border-top: 1px solid var(--forest); padding-top: 14px; margin-bottom: 36px; }
.enquiry-form legend { float: left; width: 100%; font-family: var(--font-display); font-size: 1.45rem; color: var(--forest); padding: 0; margin-bottom: 16px; }
.enquiry-form legend + * { clear: both; }
.grid-2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; margin: 0 0 6px; }
.form select, .form textarea {
    width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--field-border); border-radius: var(--radius); background: #fff;
}
.form select:focus, .form textarea:focus { border-color: var(--forest); outline: 2px solid var(--forest); outline-offset: 0; }
.form input.error, .form select.error, .form textarea.error { border-color: #b4472e; }
.field-error { color: #9b2c17; font-size: .9rem; margin: 6px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choices label, .consent label { font-weight: 400; display: inline-flex; align-items: flex-start; gap: 8px; }
.consent label { display: block; }
.form input[type="radio"], .form input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--forest); transform: translateY(3px); }
.enquiry-form .btn { width: auto; margin-top: 8px; }
.enquiry-form .field label, .enquiry-form .field .label { margin: 0 0 6px; }
.enquiry-form .choices label, .enquiry-form .consent label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-box { background: var(--paper); border-top: 3px solid var(--moss); padding: 28px; }

/* ---------- Lábléc ---------- */
.site-footer { background: #17291f; color: var(--reed-light); padding: 48px 0 0; font-size: .95rem; }
.site-footer a { color: var(--reed-light); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-family: var(--font-display); color: #fff; font-size: 1.1rem; margin-bottom: .5em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(205, 191, 147, .2); margin-top: 32px; padding: 18px 16px; font-size: .85rem; color: var(--reed); }
.footer-bottom p { margin: 0; }

/* ---------- Tagi rész / admin ---------- */
.plain-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.plain-nav a { color: var(--reed-light); text-decoration: none; font-size: .95rem; }
.plain-nav a:hover { color: #fff; }
.plain-nav .btn-ghost { color: var(--reed-light); border-color: rgba(205, 191, 147, .5); }
.inline-form { display: inline; margin: 0; }
.plain-main { padding-top: 40px; padding-bottom: 60px; }

.login-card {
    max-width: 420px; margin: 40px auto; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.login-card.wide { max-width: 500px; }
.error-list { margin: 0 0 16px; padding: 12px 16px 12px 34px; }
.error-list li { margin: 2px 0; }
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input {
    width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--field-border); border-radius: var(--radius); background: #fff;
}
.form input:focus { border-color: var(--forest); outline: 2px solid var(--forest); outline-offset: 0; }
.form .btn { margin-top: 20px; width: 100%; }

.alert { padding: 12px 16px; border-radius: 8px; }
.alert-error { background: #f6dcd5; color: #7a2717; }
.alert-ok { background: #dde9d6; color: #24481c; }
.alert-warn { background: #f5e6c4; color: #6b4610; }

.module-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.module { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.module strong { font-family: var(--font-display); color: var(--forest); font-size: 1.1rem; }
.module span { color: var(--ink-soft); font-size: .93rem; }
.issue-list { padding-left: 0; list-style: none; }
.issue-list li { margin-bottom: 6px; padding: 8px 12px; border-radius: 6px; }
.issue-error { background: #f6dcd5; color: #7a2717; }
.issue-warn { background: #f5e6c4; color: #6b4610; }

.module-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.module-link:hover { border-color: var(--forest-2); box-shadow: var(--shadow); color: inherit; }
.module-num { font-family: var(--font-display); font-size: 2.2rem !important; color: var(--forest) !important; line-height: 1.1; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--forest); color: var(--cream); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.admin-table tr.is-new td { background: #fbf3df; font-weight: 600; }
.admin-table .center { text-align: center; }
.edit-table input, .edit-table select { width: 100%; min-width: 90px; padding: 6px 8px; font: inherit; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.edit-table input[type="checkbox"] { width: auto; min-width: 0; }
.edit-table .w-code { min-width: 140px; }
.edit-table .w-num { min-width: 80px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--reed-light); color: var(--forest); white-space: nowrap; }
.badge-NEW { background: var(--ochre); color: #fff; }
.badge-IN_PROGRESS { background: #dfe7d4; color: #2f4a22; }
.badge-OFFER_SENT { background: #d9e3ec; color: #24425c; }
.badge-ACCEPTED { background: var(--forest-2); color: #fff; }
.badge-DECLINED, .badge-CLOSED { background: #e5e1d8; color: #5b5a54; }
/* HuntStore-kiajánlások küldési állapota */
.badge-SYNCED { background: #dfe7d4; color: #2f4a22; }
.badge-PENDING { background: #f5e6c4; color: #6b4610; }
.badge-ERROR { background: #f6dcd5; color: #7a2717; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 20px; }
.filter-bar select { font: inherit; padding: 6px 10px; border: 2px solid var(--line); border-radius: 6px; background: #fff; }

.admin-split { display: grid; gap: 32px; }
@media (min-width: 960px) { .admin-split { grid-template-columns: 1fr 1fr; } }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.detail-list dt { font-weight: 600; color: var(--ink-soft); }
.detail-list dd { margin: 0; }
.message-box { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.admin-form h2, .admin-box h2 { margin-top: 1.4em; font-size: 1.3rem; }
.admin-form .btn, .admin-box .btn { width: auto; }
.grid-3 { display: grid; gap: 0 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.admin-box { margin-top: 40px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.inline-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; }
.inline-fields .field { min-width: 200px; }
.inline-fields .btn { margin-bottom: 14px; }

.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { margin: 0; }
.admin-table tr.is-inactive td { color: var(--ink-soft); background: #efebe2; }
.admin-form .label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; margin: 10px 0 0; }
.form label.check input { width: auto; transform: translateY(4px); accent-color: var(--forest); }
.choices-col { flex-direction: column; gap: 0; }
.action-form { display: inline-block; margin: 0 8px 8px 0; }
.action-form .btn { width: auto; margin: 0; }
.secret {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.05rem; word-break: break-all;
    background: #fff; border: 1px dashed var(--ochre); border-radius: 6px; padding: 10px 12px; margin: 8px 0 0; user-select: all;
}
.alert p:last-child { margin-bottom: 0; }
.admin-split h2 { font-size: 1.3rem; margin-top: 1.4em; }
.admin-split > * > h2:first-child { margin-top: .4em; }
.admin-split { margin-top: 12px; }

.error-page { text-align: center; padding-top: 12vh; padding-bottom: 12vh; }
.error-page h1 { margin: 24px 0 .4em; }
.error-page .btn { margin: 4px; }

/* ---------- Szerkeszthető oldaltartalom (nyilvános) ---------- */
[hidden] { display: none !important; }
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { margin: 1.3em 0 .5em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: .7em 1.2em; border-left: 4px solid var(--ochre); background: var(--paper); color: var(--ink-soft); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; background: var(--paper); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--reed-light); }
.prose caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
.notice-lang { margin: 0 0 24px; font-size: .95rem; }

/* ---------- Admin: oldalszerkesztő ---------- */
.badge-ok { background: #dfe7d4; color: #2f4a22; }
.badge-missing { background: #f5e6c4; color: #6b4610; }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; border-bottom: 2px solid var(--line); }
.lang-tab {
    font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; margin-bottom: -2px;
    background: transparent; color: var(--ink-soft); border: 2px solid transparent; border-bottom: 0;
    border-radius: 8px 8px 0 0; cursor: pointer;
}
.lang-tab:hover { color: var(--forest); }
.lang-tab[aria-selected="true"] { background: var(--paper); color: var(--forest); font-weight: 600; border-color: var(--line); box-shadow: 0 2px 0 var(--paper); }
.lang-tab:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.lang-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; margin-top: 24px; }
.page-editor.has-tabs .lang-panel { margin-top: 0; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding-top: 8px; }
.page-editor.has-tabs .lang-panel-title { display: none; }
.lang-panel-title { display: flex; align-items: center; gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.form .form-actions .btn { margin-top: 0; width: auto; }

.rte { border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.rte:focus-within { border-color: var(--forest-2); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; background: var(--cream); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.rte-toolbar button {
    font: inherit; font-size: .88rem; min-width: 34px; padding: 5px 9px; color: var(--ink);
    background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer;
}
.rte-toolbar button:hover { background: #fff; border-color: var(--line); }
.rte-toolbar button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.rte-toolbar button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.rte-toolbar .rte-b { font-weight: 700; }
.rte-toolbar .rte-i { font-style: italic; }
.rte-toolbar.is-source button:not([aria-pressed="true"]):not([title^="HTML"]) { opacity: .4; pointer-events: none; }
.rte-sep { width: 1px; align-self: stretch; margin: 4px; background: var(--line); }
.rte-linkbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.rte-linkbar input { flex: 1 1 240px; width: auto; }
.form .rte-linkbar .btn { margin-top: 0; width: auto; }
.rte-area { min-height: 320px; max-height: 70vh; max-width: none; overflow-y: auto; padding: 14px 18px; outline: none; }
.rte .rte-source { border: 0; border-radius: 0 0 6px 6px; min-height: 320px; }
.rte-source { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; }

/* ---------- Modulok a nyilvános oldalakon (vadfajok, látnivalók, szállás, kapcsolat) ---------- */
.section-tint + .section-tint { border-top: 1px solid var(--line); }
@media (max-width: 559px) {
    /* vadfajok: telefonon is két oszlop, rövid nevek */
    .card-grid-compact { grid-template-columns: 1fr 1fr !important; gap: 24px 14px !important; }
    .card-grid-compact .card-title { font-size: 1.1rem; }
    .card-grid-compact .card-body p { font-size: .9rem; }
}
.card-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 36px 24px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
/* Kártyák: keret és árnyék nélkül – kép, alatta a szöveg */
.card { display: flex; flex-direction: column; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--reed-light); }
/* Kép nélküli kártya: semleges helykitöltő, hogy a rács egyenletes maradjon, amíg nincs fotó */
.card:not(:has(.card-img))::before {
    content: ""; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius);
    background: #ddd3b6 url("../img/ridge-line.svg") left bottom 18% / 100% 30% no-repeat;
}
.section-tint .card:not(:has(.card-img))::before { background-color: #ddd3b6; }
.card-body { display: block; padding: 14px 0 0; }
/* Fotó forrása (licenc miatt kötelező más fotójánál): halk, a kép alatt */
.card-body .card-credit { margin: 10px 0 0; font-size: .75rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
.card-credit a { color: inherit; text-decoration-color: rgba(74, 82, 75, .45); text-underline-offset: 2px; }
.card-credit a:hover { text-decoration-color: currentColor; }
.card-body p { font-size: .97rem; }
.card-title { display: block; margin: 0 0 .25em; font-size: 1.3rem; font-family: var(--font-display); font-weight: 600; color: var(--forest); line-height: 1.2; }
.card-badge { display: inline-block; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--clay); margin-bottom: .6em; }
.card-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--clay); margin-bottom: .2em; }
.photo-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(45%, 180px), 1fr)); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--reed-light); }
.photo-link { display: block; border-radius: var(--radius); }
.photo-link:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--forest); }
.contact-list > div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #cfc5a8; }
.contact-list dt { font-weight: 600; color: var(--ink-soft); }
.contact-list dd { margin: 0; }
@media (max-width: 480px) { .contact-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Admin: listák, képek, beállítások ---------- */
.admin-thumb { display: block; width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--reed-light); }
.admin-thumb-empty { border: 1px dashed var(--line); }
.admin-preview { display: block; max-width: 320px; width: 100%; height: auto; border-radius: 6px; margin: 4px 0 6px; }
.image-field { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 16px; margin: 20px 0; background: var(--paper); }
.image-field legend, .settings-group legend { font-weight: 600; padding: 0 6px; }
.form input[type="file"] { padding: 8px; background: #fff; }
.admin-photos { list-style: none; margin: 12px 0 20px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.admin-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.admin-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.admin-photo-actions .btn { padding: .3em .7em; }
.btn-danger { color: #9b2c17; }
.btn-danger:hover { border-color: #9b2c17; color: #7a2717; }
.settings-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; margin: 0 0 20px; background: var(--paper); max-width: 760px; }
.field-help { margin: 6px 0 0; }

/* Admin almenü (a modulok külön sorban, hogy a fejléc ne törjön két sorba) */
.admin-subnav { background: var(--forest-2); border-top: 1px solid rgba(205, 191, 147, .2); }
.admin-subnav .wrap { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-top: 6px; padding-bottom: 6px; max-width: 1360px; }
.admin-subnav a { color: var(--reed-light); text-decoration: none; font-size: .92rem; padding: 5px 10px; border-radius: 6px; }
.admin-subnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-subnav a[aria-current="page"] { color: var(--forest); background: var(--reed); }

/* ---------- Hírek ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.news-list-home { margin-top: 20px; }
.news-card { border-top: 1px solid var(--forest); padding-top: 14px; }
.news-card:has(.news-img) { border-top: 0; padding-top: 0; }
.news-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--reed-light); }
.news-body { padding: 14px 0 0; }
.news-card:not(:has(.news-img)) .news-body { padding-top: 0; }
.news-date { display: block; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--clay); margin-bottom: .3em; }
.page-head .news-date { color: var(--reed); }
.news-title { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .45em; }
.news-title a { color: var(--forest); text-decoration: none; }
.news-title a:hover { text-decoration: underline; }
.news-cover { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 28px; }
.back-link { margin-top: 36px; }
.member-news { list-style: none; padding: 0; margin: 0 0 28px; max-width: 760px; }
.member-news li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-news a { font-weight: 600; }
.member-news p { margin: 4px 0 0; }

/* ---------- Galéria ---------- */
.album-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.album-link .card-title, .album-link .card-badge { display: block; }
.album-link:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.album-link .card-img { transition: filter .2s; }
.album-link:hover .card-img { filter: brightness(1.06); }
.album-link:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.page-head-link { color: var(--reed); }
.photo-grid-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 0; }
.photo-grid-home { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.photo-caption { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }

/* ---------- Képnagyító ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12, 20, 15, .94); color: #fff; }
.lightbox::backdrop { background: rgba(12, 20, 15, .94); }
html.lb-open { overflow: hidden; }
.lb-figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 56px 24px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-caption { margin-top: 14px; max-width: 70ch; text-align: center; color: var(--reed-light); }
.lb-counter { position: absolute; top: 14px; left: 18px; margin: 0; font-size: .9rem; color: var(--reed); }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-figure { padding: 56px 8px 16px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Admin: galéria feliratok ---------- */
.caption-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.caption-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.caption-list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.caption-fields label { margin: 8px 0 2px; font-weight: 600; }
.caption-fields input { padding: 6px 8px; }
