/* Karácsonyfa-foglaló – publikus oldal. Mobilra tervezve, felfelé bővítve. */
:root {
    --fir-900: #14261d;
    --fir-700: #1f3d2f;
    --fir-500: #2f5d46;
    --moss: #dfe8df;
    --snow: #f6f4ee;
    --paper: #ffffff;
    --ink: #1c2420;
    --muted: #5b6961;
    --line: #dedacd;
    --berry: #a8322a;
    --berry-dark: #8a261f;
    --gold: #e0a52f;
    --ok-bg: #e2f1e6;    --ok-ink: #1d5b37;
    --warn-bg: #fbefc9;  --warn-ink: #6d5200;
    --grey-bg: #e6e6e3;  --grey-ink: #4a4f4c;
    --danger: #a3271c;   --danger-bg: #fbe6e3;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 38, 29, .06), 0 6px 20px rgba(20, 38, 29, .07);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* szerep szerinti színek – a sötét és az akadálymentes téma ezeket írja felül */
    --heading: var(--fir-900);
    --link: var(--fir-500);
    --link-hover: var(--fir-900);
    --accent: var(--fir-700);       /* kijelölt, aktív elemek */
    --on-accent: #fff;
    --on-primary: #fff;             /* szöveg az elsődleges (piros) gombon */
    --berry-ink: var(--berry);      /* piros kiemelés szövegként */
    --field-bg: #fff;
    --field-border: #b3ae9e;
    --selected-bg: #f1f6f1;
    --invalid-bg: #fff8f7;
    --img-bg: #e9eee9;
    --code-bg: #eceadf;
}

/* ------------------------------------------------------------ sötét téma */
:root[data-theme=sotet] {
    color-scheme: dark;
    --moss: #223229;
    --snow: #111a15;
    --paper: #1a2620;
    --ink: #e6ece7;
    --muted: #a7b4ac;
    --line: #35473c;
    --danger: #ff9488;   --danger-bg: #4a1f1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --heading: #f1f5f1;
    --link: #8fcaa6;
    --link-hover: #c3e8d1;
    --accent: #8fcaa6;
    --on-accent: #0f1a14;
    --berry-ink: #f2938a;
    --field-bg: #111a15;
    --field-border: #5d7166;
    --selected-bg: #223229;
    --invalid-bg: #3a2220;
    --img-bg: #223229;
    --code-bg: #2a3a31;
}

/* ------------------------------------------------------------ akadálymentes téma: nagy kontraszt, nagyobb betűk */
:root[data-theme=kontraszt] {
    color-scheme: dark;
    font-size: 118%;
    --fir-900: #000; --fir-700: #000; --fir-500: #fff;
    --moss: #000; --snow: #000; --paper: #000;
    --ink: #fff; --muted: #fff; --line: #fff;
    --berry: #ffe600; --berry-dark: #fff; --berry-ink: #ffe600;
    --gold: #5ce1ff;
    --ok-bg: #000;    --ok-ink: #7dff9b;
    --warn-bg: #000;  --warn-ink: #ffe600;
    --grey-bg: #000;  --grey-ink: #fff;
    --danger: #ffb3ab; --danger-bg: #000;
    --shadow: none;
    --heading: #fff;
    --link: #ffe600;
    --link-hover: #fff;
    --accent: #ffe600;
    --on-accent: #000;
    --on-primary: #000;
    --field-bg: #000;
    --field-border: #fff;
    --selected-bg: #262626;
    --invalid-bg: #000;
    --img-bg: #000;
    --code-bg: #262626;
}
[data-theme=kontraszt] a:not(.btn):not(.logo):not(.tree-card__link) { text-decoration: underline; }
[data-theme=kontraszt] .species__card a, [data-theme=kontraszt] .nav a { text-decoration: none; }
[data-theme=kontraszt] :focus-visible { outline-width: 4px; }
[data-theme=kontraszt] .site-header { border-bottom: 2px solid #fff; }
[data-theme=kontraszt] .site-footer { border-top: 2px solid #fff; color: #fff; }
[data-theme=kontraszt] .section--tint, [data-theme=kontraszt] .section--dark { border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
[data-theme=kontraszt] .hero::before { background: rgba(0, 0, 0, .78); }
[data-theme=kontraszt] .badge, [data-theme=kontraszt] .flash { border: 2px solid currentColor; }
[data-theme=kontraszt] .step, [data-theme=kontraszt] .panel, [data-theme=kontraszt] .filters, [data-theme=kontraszt] .empty,
[data-theme=kontraszt] .tree-card__link, [data-theme=kontraszt] .species__card a, [data-theme=kontraszt] .booking,
[data-theme=kontraszt] .booking__tree, [data-theme=kontraszt] .address, [data-theme=kontraszt] .summary,
[data-theme=kontraszt] .contact__info, [data-theme=kontraszt] .contact__form, [data-theme=kontraszt] .map,
[data-theme=kontraszt] .theme__panel { border: 2px solid #fff; }
[data-theme=kontraszt] .tree-card--lefoglalva img, [data-theme=kontraszt] .tree-card--atadva img { opacity: 1; }
[data-theme=kontraszt] .btn--primary:disabled { background: #000; border-color: #fff; color: #fff; text-decoration: line-through; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--heading); margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.lead { font-size: 1.15rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #1c2420; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
button.skip-link { border: 0; font: inherit; cursor: pointer; }
.no-js [data-contrast-toggle] { display: none; }

/* ------------------------------------------------------------ fejléc */
.site-header { background: var(--fir-700); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; padding: .5rem 0; }
.logo:hover { color: #fff; }
.nav-toggle { width: 46px; height: 46px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; margin-right: -.5rem; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded=true] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded=true] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded=true] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav { flex-basis: 100%; display: flex; flex-direction: column; padding-bottom: .5rem; }
.js .nav { display: none; }
.js .nav.is-open { display: flex; }
.no-js .nav-toggle { display: none; }
.nav a { color: #fff; text-decoration: none; padding: .8rem .25rem; border-top: 1px solid rgba(255, 255, 255, .14); font-weight: 600; }
.nav a[aria-current=page] { color: #f3d99a; }

/* megjelenés-választó (világos / sötét / akadálymentes) */
.theme { display: none; position: relative; margin-left: auto; }
.js .theme { display: block; }
.theme__toggle { width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.theme__toggle:hover, .theme__toggle[aria-expanded=true] { background: rgba(255, 255, 255, .14); }
.theme__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: .15rem; min-width: 15.5rem; padding: .4rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.theme__option { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 46px; padding: .4rem .7rem; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.theme__option:hover { background: var(--moss); }
.theme__option small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.theme__option svg { flex: none; }
.theme__option::after { content: ""; margin-left: auto; width: 1.1em; text-align: center; font-weight: 700; }
.theme__option[aria-pressed=true] { background: var(--selected-bg); font-weight: 700; }
.theme__option[aria-pressed=true]::after { content: "✓"; }

@media (min-width: 720px) {
    .theme { order: 3; margin-left: .25rem; }
    .nav, .js .nav { margin-left: auto; }
    .nav-toggle { display: none; }
    .nav, .js .nav { flex-basis: auto; display: flex; flex-direction: row; gap: .25rem; padding: 0; }
    .nav a { border: 0; padding: .5rem .9rem; border-radius: 999px; }
    .nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
    .nav a[aria-current=page] { background: rgba(255, 255, 255, .16); color: #fff; }
}

/* ------------------------------------------------------------ gombok, címkék, üzenetek */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .55rem 1.2rem;
    border: 1.5px solid var(--link); border-radius: 999px; background: var(--field-bg); color: var(--accent);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--moss); color: var(--heading); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--berry); border-color: var(--berry); color: var(--on-primary); }
.btn--primary:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: var(--on-primary); }
.btn--primary:disabled { background: #b9b5a8; border-color: #b9b5a8; color: #fff; cursor: not-allowed; transform: none; }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--light:hover { background: #fff; color: #14261d; }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: var(--paper); }
.btn--large { min-height: 54px; padding: .7rem 1.8rem; font-size: 1.1rem; letter-spacing: .01em; }
.btn--small { min-height: 38px; padding: .3rem .9rem; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

.badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge--szabad { background: var(--ok-bg); color: var(--ok-ink); }
.badge--lefoglalva { background: var(--warn-bg); color: var(--warn-ink); }
.badge--atadva { background: var(--grey-bg); color: var(--grey-ink); }
.pill { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--berry); color: var(--on-primary); font-size: .75rem; }

.flash { padding: .85rem 1rem; border-radius: var(--radius); margin: 1rem 0; font-weight: 600; }
.flash--ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash--error { background: var(--danger-bg); color: var(--danger); }

/* ------------------------------------------------------------ kezdőlap */
.hero {
    position: relative; display: grid; align-items: center; min-height: min(78vh, 640px);
    background: var(--fir-900) center bottom / cover no-repeat; color: #fff; text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 24, .5), rgba(14, 30, 24, .28) 50%, rgba(14, 30, 24, .6)); }
.hero__inner { position: relative; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 9vw, 4.4rem); margin-bottom: .2em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__sub { font-size: clamp(1.1rem, 3.6vw, 1.5rem); margin-bottom: 1.6rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

.section { padding: 2.75rem 0; }
.section--tint { background: var(--moss); }
.section--dark { background: var(--fir-700); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section__title { text-align: center; margin-bottom: 1.5rem; }
.page-title { padding: 1.75rem 0 .5rem; }
.page-title h1 { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); }
.step__num { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--berry-ink); line-height: 1; margin-bottom: .5rem; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }

.species { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.species__card a { display: block; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.species__card a:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 38, 29, .16); }
.species__card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.species__body { padding: 1rem 1.25rem 1.25rem; }
.species__body p { color: var(--muted); margin-bottom: .75rem; }
.species__more { color: var(--berry-ink); font-weight: 700; }

.two-col { display: grid; gap: 1.5rem; }
.about p { text-align: justify; hyphens: auto; }
.about-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1.5rem; }
.about-image--allo { aspect-ratio: 3 / 4; }
.panel { background: var(--paper); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.panel h3 { margin-top: 1.25rem; }
.panel p:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
    .section { padding: 4rem 0; }
    .steps, .species { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .two-col { grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
}

/* ------------------------------------------------------------ Fenyők oldal */
.shop { display: grid; gap: 1rem; padding-bottom: 3rem; }
.shop__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.shop > * { min-width: 0; }
.shop__filter-toggle { flex: none; }
.shop__sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; min-width: 0; flex: 0 1 auto; }
.shop__sort span { color: var(--muted); flex: none; }
.shop__sort select { min-height: 44px; width: 100%; min-width: 0; padding: .4rem .6rem; font-size: 1rem; text-overflow: ellipsis; }
@media (max-width: 479px) { .shop__sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

.filters { background: var(--paper); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); display: grid; gap: 1.25rem; align-content: start; }
.js .filters { display: none; }
.js .filters.is-open { display: grid; }
.filter { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.filter .check { padding: .3rem 0; }

.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: .2rem 0 0; accent-color: var(--accent); }

/* kétvégű csúszka: két egymásra tett range mező */
.range__value { display: block; font-weight: 600; color: var(--accent); margin-bottom: .1rem; }
.range__slider { position: relative; height: 44px; --lo: 0; --hi: 1; }
.range__track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--line); }
.range__fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--link); left: calc(14px + var(--lo) * (100% - 28px)); right: calc(14px + (1 - var(--hi)) * (100% - 28px)); }
.range__slider input { position: absolute; left: 0; top: 0; width: 100%; height: 44px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range__slider input::-webkit-slider-runnable-track { height: 44px; background: none; }
.range__slider input::-moz-range-track { height: 44px; background: none; }
.range__slider input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; margin-top: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab; }
.range__slider input::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab; }
.range__slider input:focus-visible { outline: none; }
.range__slider input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--gold); outline-offset: 2px; }
.range__slider input:focus-visible::-moz-range-thumb { outline: 3px solid var(--gold); outline-offset: 2px; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; margin-bottom: .75rem; }
.results-count { margin: 0; font-size: 1.05rem; }
.shop__results { transition: opacity .15s; min-width: 0; }
.shop__results.is-loading { opacity: .5; }
.empty { background: var(--paper); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; box-shadow: var(--shadow); }
.empty p:last-child { margin-bottom: 0; }

.tree-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 339px) { .tree-grid { grid-template-columns: 1fr; } }
.tree-card__link { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.tree-card__link:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 38, 29, .16); color: inherit; }
.tree-card__img { position: relative; background: var(--img-bg); }
.tree-card__img img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tree-card__img .badge { position: absolute; left: .5rem; top: .5rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.tree-card__img .badge--media { left: auto; right: .5rem; background: rgba(20, 38, 29, .78); color: #fff; }
.tree-card--lefoglalva img, .tree-card--atadva img { filter: grayscale(.6); opacity: .8; }
.tree-card__body { padding: .7rem .8rem .9rem; }
.tree-card__name { font-size: 1.05rem; margin: 0; }
.tree-card__code { margin: 0; color: var(--berry-ink); font-weight: 700; letter-spacing: .02em; }
.tree-card__size { margin: .2rem 0 0; font-size: .95rem; }
.tree-card__size .muted { display: none; }
.tree-card__price { margin: .25rem 0 0; font-weight: 700; font-size: 1.05rem; }

@media (min-width: 620px) {
    .tree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 900px) {
    .shop { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "filters bar" "filters results"; column-gap: 2rem; align-items: start; }
    .shop__bar { grid-area: bar; justify-content: flex-end; }
    .shop__filter-toggle, .js .filters__apply { display: none; }
    .filters, .js .filters { grid-area: filters; display: grid; position: sticky; top: 74px; }
    .shop__results { grid-area: results; }
    .tree-card__size .muted { display: inline; font-size: .8rem; }
}
@media (min-width: 1140px) {
    .tree-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ adatlap */
.tree-page { padding-top: 1rem; padding-bottom: 3rem; }
.breadcrumb { margin-bottom: .75rem; }
.breadcrumb a { font-weight: 600; text-decoration: none; display: inline-block; padding: .4rem 0; }
.tree-page__grid { display: grid; gap: 1.5rem; }
.tree-page__grid > * { min-width: 0; }

.gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--img-bg); margin: 0 -1rem; border-radius: 0; }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; }
.gallery__slide img, .gallery__main--empty img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* fotók / 360° váltó és a körbeforgatható nézet */
.view-switch { display: none; gap: .4rem; margin-bottom: .75rem; }
.js .view-switch { display: flex; }
.view-switch__btn { flex: 1; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.view-switch__btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.spin { display: none; position: relative; width: -moz-fit-content; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--img-bg); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery.is-spin .spin { display: block; }
.gallery.is-spin .gallery__main, .gallery.is-spin .gallery__dots, .gallery.is-spin .gallery__thumbs { display: none; }
.spin.is-dragging { cursor: grabbing; }
.spin canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 80vh; }
.spin:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.spin__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: .35rem .85rem; border-radius: 999px; background: rgba(20, 38, 29, .72); color: #fff; font-size: .875rem; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.spin.is-touched .spin__hint { opacity: 0; }
.spin__bar { position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--gold); transition: width .1s; }
.spin.is-ready .spin__bar { display: none; }
.tree-video { display: none; position: relative; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.tree-video__toggle { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: rgba(20, 38, 29, .72); color: #fff; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: opacity .3s; }
.tree-video__toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tree-video.is-playing .tree-video__toggle { opacity: 0; }
.tree-video.is-playing .tree-video__toggle:focus-visible { opacity: 1; }
.gallery.is-video .tree-video { display: block; }
.gallery.is-video .gallery__main, .gallery.is-video .gallery__dots, .gallery.is-video .gallery__thumbs { display: none; }
.tree-video video { display: block; width: 100%; max-height: 80vh; background: #000; }
.gallery__dots { display: flex; justify-content: center; gap: .45rem; padding: .7rem 0 0; }
.gallery__dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c5b7; transition: background .15s, transform .15s; }
.gallery__dot.is-active { background: var(--accent); transform: scale(1.25); }
.gallery__thumbs { display: none; }

.tree-info h1 { margin-bottom: .15em; }
.tree-info__code { font-size: 1.15rem; margin-bottom: .6rem; }
.tree-info__code strong { color: var(--berry-ink); letter-spacing: .02em; }
.specs { margin: 1rem 0; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs--plain { margin: 0; border: 0; flex: 1; min-width: 0; }
.specs--plain > div:last-child { border-bottom: 0; }
.tree-info .btn--block { margin-top: 1.25rem; }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1.25rem; }
.notice .btn { margin: 0 0 .9rem; }
.notice p:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
    .tree-page__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
    .gallery { position: sticky; top: 74px; }
    .gallery__main { margin: 0; border-radius: var(--radius); }
    .gallery__dots { display: none; }
    .gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .6rem; margin-top: .75rem; }
    .gallery__thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
    .gallery__thumb:hover { opacity: 1; }
    .gallery__thumb.is-active { border-color: var(--accent); opacity: 1; }
    .gallery__thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
}

/* teljes képernyős nézet */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1410; color: #fff; }
.lightbox::backdrop { background: #0b1410; }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.lightbox__slide img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: max(.75rem, env(safe-area-inset-top)); right: .75rem; }
.lightbox__nav { top: 50%; margin-top: -24px; display: none; }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
.lightbox__counter { position: absolute; left: 0; right: 0; bottom: max(.75rem, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: .95rem; text-shadow: 0 1px 4px #000; pointer-events: none; }
@media (hover: hover) and (min-width: 720px) { .lightbox__nav { display: grid; } }

/* ------------------------------------------------------------ foglalás és űrlapok */
.booking { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1rem 1.5rem; margin-top: 2rem; scroll-margin-top: 70px; }
.js .booking:not([data-open]) { display: none; }
.booking__tree { display: flex; gap: .9rem; align-items: center; background: var(--snow); border-radius: 10px; padding: .6rem; margin-bottom: 1.25rem; }
.booking__tree img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; background: var(--img-bg); }
.booking__tree p { margin: 0; }
@media (min-width: 800px) { .booking { max-width: 680px; margin-left: auto; margin-right: auto; padding: 2rem; } }

.form { display: grid; gap: 1.15rem; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: .3rem; padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
    width: 100%; min-height: 50px; padding: .65rem .85rem;
    border: 1.5px solid var(--field-border); border-radius: 10px; background: var(--field-bg); color: var(--ink);
    font: inherit; font-size: 1rem; /* 16px alatt az iOS ránagyítana a mezőre */
}
textarea { resize: vertical; min-height: 0; }
/* iOS Safari a dátummezőnek saját minimális szélességet ad, ezért kilógna a dobozból */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
input:focus, select:focus, textarea:focus { border-color: var(--link); }
[aria-invalid=true] { border-color: var(--danger) !important; background: var(--invalid-bg); }
.field-error { color: var(--danger); font-weight: 600; font-size: .92rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice { display: grid; gap: .6rem; }
.choice__item { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border: 1.5px solid var(--field-border); border-radius: 10px; cursor: pointer; background: var(--field-bg); }
.choice__item:has(input:checked) { border-color: var(--accent); background: var(--selected-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.choice__item input { flex: none; width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); }
.choice__item small { display: block; color: var(--muted); font-size: .9rem; }
.address { background: var(--snow); border-radius: 10px; padding: .9rem; }
.address > .field, .address__grid { margin-top: .75rem; }
.address__grid { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; }
.address__grid--even { grid-template-columns: 1fr 1fr; margin-top: 0; }
.address__grid .field > label { font-weight: 600; font-size: .92rem; }
.address > legend { float: left; width: 100%; }
.address > legend + * { clear: both; }
@media (min-width: 620px) { .choice { grid-template-columns: 1fr 1fr; } }

.confirm { text-align: center; margin-bottom: 1.5rem; }
.confirm__icon { margin-bottom: .75rem; }
.summary { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1.25rem; }
.summary img { width: 90px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; background: var(--img-bg); }
.summary .specs > div { padding: .4rem 0; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ------------------------------------------------------------ kapcsolat */
.contact { display: grid; gap: 1.5rem; padding-bottom: 3rem; padding-top: .75rem; }
.contact__info, .contact__form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.contact__list { margin: 0; }
.contact__list dt { color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.contact__list dd { margin: 0; font-weight: 600; }
.contact__big { font-size: 1.45rem; font-family: var(--serif); text-decoration: none; }
.map { position: relative; min-height: 300px; border-radius: var(--radius); background: var(--moss); box-shadow: var(--shadow); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 800px) {
    /* az adatok és a térkép egyforma magas: a térkép kitölti a sort (de legalább 380px) */
    .contact { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
    .map { min-height: 380px; }
    .contact__form { align-self: start; }
    .contact__form { grid-column: 1 / -1; max-width: 680px; }
}

/* ------------------------------------------------------------ szöveges oldalak */
.prose h1 { margin-bottom: .8em; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; background: var(--paper); }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .65rem; text-align: left; vertical-align: top; }
.prose th { background: var(--moss); }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

/* ------------------------------------------------------------ lábléc, süti-értesítés */
.site-footer { background: var(--fir-900); color: #d7e0d9; padding: 2rem 0 1.25rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; gap: 1.25rem; }
.site-footer__copy { margin: 1.5rem auto 0; opacity: .7; font-size: .85rem; }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }

.cookie-note { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 50; max-width: 560px; margin: 0 auto; display: flex; gap: .9rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20, 38, 29, .25); padding: .8rem 1rem; font-size: .9rem; }
.cookie-note p { margin: 0; }
.cookie-note--consent { flex-direction: column; align-items: stretch; }
.cookie-note__actions { display: flex; gap: .5rem; justify-content: flex-end; }
.link-button { border: 0; padding: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.site-footer .link-button { color: #fff; }
.cookie-note .btn { flex: none; }
.cookie-note__actions .btn { flex: 1; }

/* vissza az oldal tetejére (fenyők listája) */
.to-top {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25); cursor: pointer;
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.15); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (min-width: 800px) { .to-top { right: 1.5rem; bottom: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
