/* ==========================================
   1. ALAP BEÁLLÍTÁSOK
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7fafc;
    color: #2d3748;
    margin: 0;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

main, .single-post, .main-container {
    flex: 1 0 auto;
}

/* ==========================================
   2. FEJLÉC ÉS HERO SZEKCIÓ (ASZTALI)
   ========================================== */
.header-wrapper {
    background: url('images/tbbg.jpg') no-repeat center top / cover;
    background-color: #1a2b36;
    width: 100%;
}

.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.15)), 
                url('images/tbbg.jpg') no-repeat center center/cover;
    min-height: 780px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* FELSŐ ÁTTETSZŐ SÁV */
.top-header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-header-left, .top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.top-header-right {
    justify-content: flex-end;
}

.top-header-center {
    display: flex;
    justify-content: center;
}

/* FIX KERET A LOGÓNAK/CÍMERNEK */
.logo {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    object-fit: contain;
}

/* KERESŐMEZŐ ÉS ELÉR HETŐSÉGEK */
.search-box input {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.hero-text-container {
    text-align: right;
    padding-right: 80px;
    margin-top: auto;
    margin-bottom: auto;
}

.hero-text-container h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   3. MENÜSÁV ÉS LENYÍLÓ MENÜK (ASZTALI)
   ========================================== */
.main-nav-bar {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-container a, .dropbtn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-container a:hover, .dropdown:hover .dropbtn {
    color: #facc15;
}

/* Nyíl méretének és helyzetének igazítása */
.arrow {
    font-size: 0.75rem;
    line-height: 1;
    display: inline-block;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 230px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1001;
}

.dropdown-content a {
    color: #e2e8f0;
    padding: 11px 18px;
    text-decoration: none;
    display: block !important;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #facc15;
    padding-left: 22px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ASZTALI NÉZETBEN A SZENDVICS GOMB REJTVE VAN */
.hamburger-btn {
    display: none !important;
}

/* AL-ALMENÜ (SUBMENU ASZTALI) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 250px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1002;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

.arrow-right {
    float: right;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================
   4. ADATKEZELÉSI OLDAL ÉS TARTALMI KERETEK
   ========================================== */
.container {
    background: #ffffff;
    max-width: 960px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.container h2 {
    font-weight: bold !important;
    font-size: 16px;
    color: #0a4210;
    border-bottom: 2px solid #2d9155;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.container h3 {
    font-weight: bold !important;
    font-size: 14px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.container h4 {
    font-weight: bold !important;
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 8px;
    text-decoration: underline;
}

.container p {
    margin-bottom: 12px;
}

.dpTable {
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #5f5f5f;
    border-collapse: collapse;
}

.dpTable th {
    background: #e2e2e2;
    padding: 5px;
    vertical-align: middle;
    border: 1px solid #5f5f5f;
}

.dpTable td {
    border: 1px solid #5f5f5f;
    padding: 5px;
    width: 50%;
}

.legal_note {
    color: #343434;
    font-style: italic;
    font-size: 11px;
    display: block;
    margin-top: 10px;
}

.dmQuicklist ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.dmQuicklist li {
    font: 200 12px/1.5 Helvetica, Verdana, sans-serif;
    margin-left: 15px;
}

.dmQuicklist li a {
    text-decoration: none;
    padding: 2px;
    color: #000;
}

.dmQuicklist li a:hover {
    background: #f6f6f6;
}

.back-link {
    font-size: 11px;
    text-align: right;
    display: block;
    margin-top: 10px;
    color: #000;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e2e2;
    margin: 20px 0;
}

/* ==========================================
   5. TARTALMI ELEMEK ÉS KÁRTYÁK
   ========================================== */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    color: #1a5d1d;
    margin-bottom: 20px;
}

.slider-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    background-color: #ffffff;
    border: 2px solid #186122;
    color: #186122;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.cards-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    align-items: flex-start;
}

.cards-slider-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;          
    flex-direction: column;
}

.card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #cbd5e0;
}

.card-body {
    padding: 18px;
}

.card-date {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d482d;
    margin-bottom: 8px;
}

.card-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.btn-more {
    color: #31ce39;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* HÍR RÉSZLETES OLDAL NAVIGÁCIÓ (PREV/NEXT) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.post-navigation span {
    font-size: 0.75rem;
    color: #718096;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.post-navigation a {
    color: #2b6cb0;
    text-decoration: underline;
    font-size: 0.9rem;
}

.post-navigation a:hover {
    color: #1a202c;
}

.single-post {
    max-width: 1100px !important;
    width: 90%;
    margin: 40px auto;
    padding: 30px;
}

.post-content img {
    max-width: 450px !important;
    width: 100%;
    height: auto;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #222222;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.2rem;
}

.inline-link {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}

.inline-link:hover {
    color: #3182ce;
}

.custom-list {
    list-style-type: none;
    padding-left: 30px;
    margin: 20px 0;
}

.custom-list li {
    position: relative;
    margin-bottom: 8px;
    color: #4a5568;
}

.custom-list li::before {
    content: "– ";
    position: absolute;
    left: -15px;
}

/* MOBIL HÍR BETÖLTŐ GOMB */
.more-news-btn-wrapper {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.btn-load-more {
    background-color: #186122;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease;
}

.btn-load-more:hover {
    background-color: #124819;
}

/* ==========================================
   6. LÁBLÉC
   ========================================== */
.footer {
    position: relative;
    background: url('images/tbbg.jpg') no-repeat center center/cover;
    background-color: #121212;
    margin-top: 60px;
    padding: 0;
    overflow: hidden;
}

.footer-cols {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.75); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 50px 20px;
}

.footer-col {
    text-align: center;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: #fafbfc;
    font-size: 1.1rem;
}

.footer-col p, .footer-col a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: #63ed6a;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #eeff00;
    font-size: 0.85rem;
}
.map-section {
    margin: 40px 0;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    height: 480px; /* A látható magasság */
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden; /* Ez vágja le a kilógó fekete sávot */
    position: relative;
}

/* AZ IFRAME FELTOLÁSA A FEKETE SÁV ELREJTÉSÉHEZ */
.map-container iframe {
    width: 100%;
    height: 540px; /* Kicsit magasabb, hogy alul ne hiányozzon */
    margin-top: -60px; /* Eltolja felfelé a fekete sávot, így az rejtve marad */
    border: none;
}
.floating-szechenyi {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    z-index: 99999 !important; /* Biztosítja, hogy minden felett látszódjon */
    pointer-events: none; /* Átengedje a kattintást, ha véletlenül alája ér valami */
}

.floating-szechenyi img {
    width: 200px; /* Asztali méret */
    height: auto;
    display: block;
}

/* LEBEGŐ ABA GREENWAY BANNER (BAL OLDAL) */
.floating-aba-greenway {
    position: fixed !important;
    left: 10px !important;       /* Bal oldalhoz rögzítve */
    bottom: 20px !important;     /* A kijelző aljától kicsit feljebb */
    z-index: 99998 !important;   /* Magas rétegrend, hogy átfedje az oldalt */
    display: block;
    transition: transform 0.2s ease;
}

.floating-aba-greenway img {
    width: 160px;                /* Asztali nézeti szélesség */
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-aba-greenway:hover {
    transform: scale(1.05);      /* Egérmutatóra enyhén kiemelkedik */
}

/* MOBIL NÉZETI FINOMÍTÁS (768PX ALATT) */
@media screen and (max-width: 768px) {
    .floating-aba-greenway {
        left: 5px !important;
        bottom: 10px !important;
    }
    .floating-aba-greenway img {
        width: 100px;            /* Mobilon kisebb, hogy ne takarja a szöveget */
    }
}





/* ==========================================
   7. MOBILNÉZETI STÍLUSOK (MAX 768PX)
   ========================================== */
@media screen and (max-width: 768px) {

    .floating-szechenyi img {
        width: 130px; /* Mobilon kisebb, hogy ne takarja el a szövegeket */
    }
    
	.map-container {
        height: 350px;
    }
    .map-container iframe {
        height: 410px;
        margin-top: -60px;
    }

    /* FEJLÉC ÉS HÁTTÉR MEGŐRZÉSE */
    .header-wrapper, 
    .subpage-header,
    .hero {
        background-size: cover !important;
        background-position: center top !important;
        width: 100% !important;
        min-height: auto !important;
    }

    /* FELSŐ SÁV: SÖTÉT, HOMÁLYOS HÁTTÉR */
    .top-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 12px 15px !important;
        background-color: rgba(0, 0, 0, 0.75) !important; 
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .top-header-left, 
    .top-header-right,
    .hero-text-container {
        display: none !important;
    }

    .logo {
        height: 45px !important;
        width: auto !important;
    }

    /* MENÜSÁV HÁTTÉRHATÁSA */
    .main-nav-bar {
        background-color: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 8px 15px !important;
    }

    /* SZENDVICS GOMB */
    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 10px 15px;
        background-color: rgba(24, 97, 34, 0.9);
        color: #ffffff;
        font-weight: bold;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.95rem;
        gap: 10px;
        backdrop-filter: blur(3px);
    }

    /* LENYÍLÓ MENÜ TÁROLÓ */
    .nav-container,
    .main-nav-bar .nav-container,
    .subpage-header .nav-container {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background-color: rgba(26, 26, 26, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        padding: 10px 0;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* KATTINTÁSRA NYÍLÓ MENÜ (.active) */
    .nav-container.active,
    .main-nav-bar .nav-container.active,
    .subpage-header .nav-container.active {
        display: flex !important;
    }

    .nav-container a, 
    .dropdown .dropbtn {
        color: #ffffff !important;
        padding: 12px 20px !important;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: block !important;
    }

    .dropdown {
        width: 100%;
        display: block !important;
    }

    .dropdown-content {
        position: static !important;
        background-color: rgba(15, 15, 15, 0.6) !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 100% !important;
        padding: 0 !important;
    }

    .dropdown-content a {
        color: #e2e8f0 !important;
        padding-left: 30px !important;
    }

    /* AL-ALMENÜ (SUBMENU MOBIL) */
    .dropdown-submenu {
        width: 100%;
        display: block;
    }

    .dropdown-submenu .submenu-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #ffffff !important;
        padding-left: 30px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dropdown-submenu .arrow-right {
        transform: rotate(90deg);
        display: inline-block;
    }

    .dropdown-submenu .submenu-content {
        position: static !important;
        display: block !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 100% !important;
        padding: 0 !important;
    }

    .dropdown-submenu .submenu-content a {
        padding-left: 45px !important;
        font-size: 0.85rem !important;
        color: #cbd5e1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* MOBIL GOMB ÉS REJTETT HÍREK */
    .more-news-btn-wrapper {
        display: block;
    }

    .cards-slider-container .card.mobile-hidden {
        display: none !important;
    }

    /* KÁRTYÁK ÉS DOKUMENTUMOK MOBILON */
    .cards-slider-container {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .card {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 20px;
    }

    .single-post {
        width: 100% !important;
        padding: 15px !important;
    }

    .post-content img {
        max-width: 100% !important;
    }

    .container {
        padding: 15px;
        margin: 15px auto;
    }
}