/* ==========================================================================
   Üvegház – Carl Lutz Emlékszoba
   Letisztult, modern, reszponzív alap stíluslap natív LTR / RTL támogatással
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hero: #162c46;
    --primary: #1e3a5f;
    --primary-hover: #152944;
    --accent: #b45309;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --container: 1140px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ================= FEJLÉC ÉS NAVIGÁCIÓ ================= */

.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.nav-link.is-active {
    background: #eaf1f8;
    color: var(--primary);
    font-weight: 600;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, #d4af37 50%, rgba(212, 175, 55, 0) 100%);
    pointer-events: none;
}

.caret {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Lenyíló almenü (CSS Logical Properties -> LTR és RTL alatt is automatikusan jó irányba igazodik) */
.dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 250px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 0.4rem !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 200;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.92rem;
}

.dropdown-link:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.dropdown-link.is-active {
    background: #eaf1f8;
    color: var(--primary);
    font-weight: 600;
}

/* Nyelvválasztó */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    padding: 0.2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    gap: 0.15rem;
}

.lang-link {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-link:hover {
    color: var(--text-main);
}

.lang-link.is-current {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Mobil menü gomb */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ================= FŐOLDALI HERO ÉS INFÓSÁV ================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #102238 0%, #24456b 50%, #102238 100%);
    color: #ffffff;
    padding: 3.5rem 0 3rem;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero--with-carousel {
    padding-bottom: 4.15rem;
}

.hero-content {
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    line-height: 1.22;
    font-weight: 700;
}

.hero h1::after {
    content: "";
    display: block;
    width: min(260px, 65%);
    height: 3px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, rgba(245, 158, 11, 0.45) 45%, rgba(36, 69, 107, 0) 100%);
}

[dir="rtl"] .hero h1::after {
    background: linear-gradient(270deg, #f59e0b 0%, rgba(245, 158, 11, 0.45) 45%, rgba(36, 69, 107, 0) 100%);
}

.hero-lead {
    font-size: 1.15rem;
    color: #dbeafe;
    margin: 0 0 1.75rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-light {
    background: #ffffff;
    color: var(--primary);
}

.btn-light:hover {
    background: #f1f5f9;
    color: var(--primary-hover);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.prose a.btn-primary {
    color: #ffffff;
    text-decoration: none;
    margin-block: 0.4rem;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ================= NYITÓLAPI FOLYAMATOS KÉPSÁV (MARQUEE CAROUSEL) ================= */

.carousel-showcase {
    margin-top: -2.9rem;
    margin-bottom: 1.5rem;
}

.carousel-marquee {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.9rem 0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    direction: ltr;
}

.carousel-marquee::before,
.carousel-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 4;
    pointer-events: none;
}

.carousel-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.carousel-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.carousel-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: carouselMarqueeRtl calc(var(--slide-count, 8) * 6.5s) linear infinite;
}

.carousel-marquee:hover .carousel-marquee-track,
.carousel-marquee:focus-within .carousel-marquee-track {
    animation-play-state: paused;
}

@keyframes carouselMarqueeRtl {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.carousel-marquee-group {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding-right: 1rem;
    flex-shrink: 0;
}

.carousel-card {
    flex: 0 0 auto;
    width: auto;
    height: 355px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.09);
}

.carousel-card-inner {
    position: relative;
    display: block;
    width: auto;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.carousel-card-img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.carousel-card-inner:hover .carousel-card-img {
    transform: scale(1.05);
}

.carousel-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 0.75rem 0.55rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Képnagyító (Lightbox) kattintásra */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.lightbox-backdrop.is-open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-inner img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #f1f5f9;
    margin-top: 0.75rem;
    font-size: 0.98rem;
}

.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 1002;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 1.85rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-nav.is-visible {
    display: inline-flex;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(30, 58, 95, 0.95);
}

.lightbox-nav--prev {
    left: 1.25rem;
}

.lightbox-nav--next {
    right: 1.25rem;
}

@media (max-width: 640px) {
    .brand-logo {
        height: 34px;
    }

    .carousel-card {
        width: auto;
        height: 245px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-marquee-track {
        animation: none;
    }
}

/* Gyakorlati információs sáv a főoldalon */
.info-strip {
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

.carousel-showcase + .info-strip {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    background: #eaf1f8;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.info-box-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.info-box-value {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

.info-box-value p {
    margin: 0 0 0.25rem;
}

.info-box-value p:last-child {
    margin-bottom: 0;
}

.info-box-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.info-box-link:hover {
    text-decoration: underline;
}

/* ================= TARTALMI RÉSZ ================= */

.main-content {
    flex: 1;
    padding-block: 2.5rem 3.5rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    color: var(--primary);
    line-height: 1.25;
}

.page-header h1::after {
    content: "";
    display: block;
    width: min(220px, 60%);
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #d97706 0%, rgba(217, 119, 6, 0.35) 50%, rgba(217, 119, 6, 0) 100%);
}

[dir="rtl"] .page-header h1::after {
    background: linear-gradient(270deg, #d97706 0%, rgba(217, 119, 6, 0.35) 50%, rgba(217, 119, 6, 0) 100%);
}

.page-lead {
    margin: 0;
    font-size: 1.12rem;
    color: var(--text-muted);
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
}

.prose p {
    margin: 0 0 1.15rem;
    font-size: 1.05rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 8px;
}

.prose video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-block: 1.25rem;
}

.prose iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    margin-block: 1.25rem;
}

.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-block: 1.25rem;
}

.prose th,
.prose td {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    text-align: start;
    vertical-align: top;
}

.prose th {
    background: var(--bg-subtle);
    font-weight: 600;
    color: var(--primary);
}

.js-lightbox-gallery img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.js-lightbox-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

/* ================= OLTALMAZOTTAK NÉVSORA (ABC CSOPORTOSÍTÁS) ================= */

.names-toolbar {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
}

.names-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.names-search-wrap {
    flex: 1;
    min-width: 240px;
}

.names-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.names-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}

.names-total-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.names-total-badge strong {
    color: var(--primary);
    font-size: 1.02rem;
}

.names-alpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.alpha-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

a.alpha-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.alpha-pill.is-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: default;
}

.names-letter-section {
    margin-bottom: 1.25rem;
    padding: 1.4rem 1.75rem;
    scroll-margin-top: 94px;
}

.names-letter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-subtle);
}

.names-letter-title {
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.names-letter-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.names-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 0.45rem 1.5rem;
}

.names-item {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.98rem;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
}

.names-item:hover {
    background: var(--bg-subtle);
}

.names-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.25rem 1.5rem;
}

.names-toolbar {
    scroll-margin-top: 92px;
}

.names-back-top {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background-color 0.15s ease;
}

.names-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.names-back-top:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .names-back-top {
        bottom: 1rem;
        inset-inline-end: 1rem;
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* ================= KAPCSOLATFELVÉTELI ŰRLAP ÉS TÉRKÉP ================= */

.contact-section {
    margin-bottom: 1.5rem;
    scroll-margin-top: 94px;
}

.section-subtitle {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 700;
}

.contact-alert {
    padding: 0.9rem 1.15rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.contact-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.contact-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hp-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.contact-field {
    margin-bottom: 1.1rem;
}

.contact-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}

.contact-consent {
    margin: 0.25rem 0 1.25rem;
}

.contact-consent-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.45;
    cursor: pointer;
}

.contact-consent-label input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.18rem;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.contact-consent-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.map-section {
    margin-bottom: 1.5rem;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.map-external-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.map-frame-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
}

.map-iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.map-consent-placeholder {
    min-height: 260px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.85rem;
    color: var(--text-muted);
}

.map-consent-placeholder p {
    margin: 0;
    max-width: 480px;
    font-size: 0.96rem;
}

/* ================= LÁBLÉC ================= */

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    border-top: 3px solid #d4af37;
    padding: 2.5rem 0 2rem;
    margin-top: auto;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(300px, 1.35fr);
    align-items: start;
    gap: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
}

.footer-meta {
    margin: 0.25rem 0;
    color: #94a3b8;
}

.footer-legal {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-legal-link,
.footer-legal-btn {
    color: #94a3b8;
    font-size: 0.88rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: start;
}

.footer-legal-link:hover,
.footer-legal-btn:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* ================= SÜTIKEZELŐ ALSÓ SÁV (COOKIE BANNER) ================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 950;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
    padding: 0.95rem 0;
    backdrop-filter: blur(6px);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    margin: 0;
    flex: 1 1 480px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    margin-inline-start: 0.35rem;
    white-space: nowrap;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.05rem;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-btn--primary {
    background: var(--primary);
    color: #ffffff;
}

.cookie-btn--primary:hover {
    background: var(--primary-hover);
}

.cookie-btn--secondary {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-main);
}

.cookie-btn--secondary:hover {
    background: #e2e8f0;
}

.footer-donor-text {
    margin: 0 0 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-bank-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.85rem 1.05rem;
    text-align: start;
}

.footer-bank-title {
    margin: 0 0 0.4rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-bank-line {
    margin: 0.18rem 0;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.footer-bank-line strong {
    color: #f8fafc;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.footer-bottom {
    padding-top: 1.25rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
}

/* ================= MOBIL NÉZET (RESZPONZIVITÁS) ================= */

@media (max-width: 920px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 74px;
        inset-inline: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        gap: 1rem;
    }

    .nav-wrapper.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-inline-start: 2px solid var(--border);
        border-radius: 0;
        margin-inline-start: 0.75rem;
        padding-block: 0.2rem 0.35rem !important;
        padding-inline-start: 0.6rem !important;
        padding-inline-end: 0 !important;
    }

    .lang-switcher {
        align-self: flex-start;
    }

    .content-card {
        padding: 1.4rem 1.25rem;
    }
}
