/* --- GLOBÁLIS VÁLTOZÓK --- */
:root {
    --sage: #CFE8C9;
    --sage-2: #BFD8B8;
    --sage-dark: #accfa3;
    --forest: #4F6F52;
    --sky: #CFE5F3;
    --sand: #EDE3D3;
    --ink: #3a2c2a;
    --ink-50: #6b5a58;
    --border: #d7ccb9;
    --shadow: 0 18px 46px rgba(79, 111, 82, .16);
    --white: #ffffff;
    --highlight: #fffbe6;
    --danger: #ffccbc;
    --danger-text: #c62828;
    --danger-bg: #ffebee;
    --success: #c8e6c9;
    --info: #b3e5fc;
    --gradient-primary: linear-gradient(135deg, #8FCAA2, #7BBE96);
}

/* --- ALAP BEÁLLITÁSOK --- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    position: relative;
    background-color: #f7f3c5 !important;
    min-height: 100vh;
}

    /* Háttérkép minta minden oldalra */
    html::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url("/images/fohatter.png");
        background-repeat: repeat;
        background-size: 440px auto;
        opacity: 0.4;
        z-index: -1;
        pointer-events: none;
    }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

/* --- NAVIGÁCIÓ (HEADER) --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 2px dashed var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGÓ */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
}

.brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sage), var(--sky));
    display: grid;
    place-items: center;
    box-shadow: 0 5px 15px rgba(143, 202, 162, .34);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: .2px;
}

/* Menü linkek */
.nav-spacer {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

    .nav-spacer a {
        color: #2c3c2f;
        font-weight: 600;
    }

        .nav-spacer a:hover {
            color: var(--forest);
        }

        /* --- AKTIV MENÜPONT STÍLUS (Kért funkció) --- */
        .nav-spacer a.active {
            color: var(--forest);
            text-decoration: underline;
            text-decoration-style: dashed;
            text-underline-offset: 4px;
        }

/* Mobilon rejtjük a menüt */
@media (max-width: 768px) {
    .nav-spacer {
        display: none;
    }

    .nav-inner {
        justify-content: space-between;
    }
}

/* --- GOMBOK --- */
.btn {
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--gradient-primary);
    color: #0f2118;
    box-shadow: 0 10px 24px rgba(143, 202, 162, .32);
}

.btn-outline {
    background: #fff;
    border: 2px dashed var(--border);
    color: #2c3c2f;
}

.btn-back {
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--forest);
}

/* --- MODAL  --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    height: 90vh;
    max-height: 600px;
    background: #fff;
    border-radius: 26px;
    border: 2px dashed var(--border);
    box-shadow: 0 25px 60px rgba(79, 111, 82, 0.4);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed var(--border);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--forest);
    z-index: 10;
    transition: transform 0.2s;
}

    .modal-close:hover {
        transform: rotate(90deg) scale(1.1);
        background: #fff;
    }

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bear-pin {
    background: transparent !important;
    border: none !important;
}

.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* --- FOOTER --- */
footer {
    padding: 34px 18px;
    text-align: center;
    color: var(--ink-50);
    font-size: 14px;
}

/* --- Telefon responisivtás --- */
@media (max-width: 768px) {
    .page-header h1,
    .hero h1 {
        font-size: 26px;
    }

    .page-header p,
    .hero p {
        font-size: 15px;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .page-header h1,
    .hero h1 {
        font-size: 22px;
    }

    footer {
        padding: 20px 14px;
        font-size: 13px;
    }
}
