:root {
    /* Vidéki színpaletta */
    --primary-color: #8B4513;        /* Saddle Brown */
    --secondary-color: #DEB887;      /* Burlywood */
    --accent-color: #CD853F;         /* Peru */
    --text-dark: #2F1B14;           /* Dark Brown */
    --text-light: #F5F5DC;          /* Beige */
    --background: #FDF5E6;          /* Old Lace */
    --cream: #FFFDD0;               /* Cream */
    --forest-green: #228B22;        /* Forest Green */
    --warm-red: #B22222;            /* Fire Brick */

    /* Tipográfia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero / Banner */
.hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
}

.hero__slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 50vh;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: saturate(1.05) contrast(0.95);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: var(--background);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    font-weight: 300;
    line-height: 1;
}

.lightbox__close:hover {
    color: #CD853F;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox__nav:hover {
    color: #CD853F;
}

.lightbox__prev {
    left: 30px;
}

.lightbox__next {
    right: 30px;
}

/* Lightbox caption and body scroll lock */
.lightbox__caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
}

body.lightbox-open {
    overflow: hidden;
    touch-action: none;
}

.hero__slide.active {
    opacity: 1;
    z-index: 1;
}

.hero__caption.container {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1.2rem 0.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.7) 100%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-desc {
    text-align: center;
    color: #3D2817;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
    margin: 0;
}

/* Slideshow navigation */
.hero__prev,
.hero__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.7);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3;
    transition: background 0.3s;
    border-radius: 0 8px 8px 0;
}

.hero__prev:hover,
.hero__next:hover {
    background: rgba(139, 69, 19, 0.9);
}

.hero__prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.hero__next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

/* Slideshow dots */
.hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero__dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero__dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero__dots .dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* Header stílus */
header {
    background: #C9AE8F;
    color: #3D2817;
    padding: 1rem 0;
    box-shadow: 
        0 4px 12px rgba(74, 60, 46, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative;
    z-index: 1100;
    border-bottom: 2px solid #8B6942;
    border-top: 1px solid rgba(255,255,255,0.4);
}

/* Hamburger button (desktop hidden) */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    font-size: 1.2rem;
    background: transparent;
    border: 1px solid rgba(101,67,33,0.2);
    border-radius: 6px;
    color: #3D2817;
    cursor: pointer;
}

/* Mobile nav behaviour */
@media (max-width: 768px) {
    .hamburger { display: block; margin: 0.4rem auto; }

    /* Animated dropdown: use max-height + opacity + transform for smooth slide */
    header nav {
        display: flex;
        position: absolute;
        top: 100%;
        right: 12px;
        left: 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(201,174,143,0.06));
        border: 1px solid rgba(101,67,33,0.12);
        border-radius: 10px;
        padding: 0 0.5rem; /* collapsed padding */
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 1200;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        transition: max-height 0.36s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease, transform 0.36s cubic-bezier(.2,.9,.2,1), padding 0.28s ease;
    }

    header nav.open {
        max-height: 640px; /* large enough to show items */
        opacity: 1;
        transform: translateY(0);
        padding: 0.6rem 0.5rem;
        gap: 0.25rem;
    }

    header nav a {
        display: block;
        padding: 0.9rem 1rem;
        margin: 0.12rem 0;
        background: transparent;
        border-radius: 6px;
        transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    }

    /* hover / focus effect for menu items */
    header nav a:hover,
    header nav a:focus {
        transform: translateX(6px);
        background: linear-gradient(90deg, rgba(205,133,63,0.12), rgba(205,133,63,0.04));
        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
        color: #3D2817;
    }

    /* ensure header top bar items wrap nicely */
    .header-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,245,230,0.06), transparent);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

/* Site tagline / header title adjustments */
.site-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.tagline-text {
    text-align: center;
}

.tagline-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.05;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
}
.lang-switch {
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.lang-switch a {
    color: #3D2817;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    margin: 0 0.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(139, 105, 82, 0.15));
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid rgba(101, 67, 33, 0.3);
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switch .flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lang-switch a:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(139, 105, 82, 0.25));
    transform: translateY(-1px);
    border-color: rgba(101, 67, 33, 0.4);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Nyelvváltó - gomb és legördülő menü (button alapú markuphoz) */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(201,174,143,0.12));
    border: 1px solid rgba(101,67,33,0.26);
    border-radius: 8px;
    color: #3D2817;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

.lang-button:hover {
    background: linear-gradient(180deg, #CD853F, #B8753F);
    color: #fff;
    transform: translateY(-1px);
}

.lang-button .arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.lang-dropdown.open .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    min-width: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(201,174,143,0.06));
    border: 1px solid rgba(101,67,33,0.18);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    z-index: 120;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    color: #3D2817;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(101,67,33,0.06);
}

.lang-menu a:last-child { border-bottom: none; }

.lang-menu a:hover {
    background: linear-gradient(90deg, rgba(205,133,63,0.08), transparent);
    color: #CD853F;
}

.lang-dropdown .flag-icon { width: 18px; height: auto; }

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #3D2817;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    margin: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(139, 105, 82, 0.15));
    border: 1px solid rgba(101, 67, 33, 0.3);
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.4);
    white-space: nowrap;
}

nav a:hover {
    background: linear-gradient(180deg, #CD853F, #B8753F);
    color: #FFF;
    transform: translateY(-1px);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: #A0652F;
}

/* Main content */
main {
    min-height: calc(100vh - 300px);
    padding: 2rem 0 0 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 0 20px;
}

.content {
    background: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
    margin: 1rem 0 0 0;
    border: 2px solid var(--secondary-color);
}

/* Tipográfia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Footer stílus */
footer {
    background: #C9AE8F;
    color: #3D2817;
    padding: 2rem 20px 1rem 20px;
    margin: 1.5rem auto 0 auto;
    max-width: 1200px;
    position: relative;
    border-top: 2px solid #8B6942;
    border-radius: 15px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 6px 20px rgba(74, 60, 46, 0.15);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
    pointer-events: none;
    border-radius: 15px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    align-items: start;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.footer-logo-img {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(101, 67, 33, 0.3);
}

.footer-col h3 {
    color: #3D2817;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    text-align: left;
    font-size: 0.8rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.footer-col a {
    color: #3D2817;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.8rem;
}

.footer-col a:hover {
    color: #CD853F;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(101, 67, 33, 0.3);
    padding-top: 0.8rem;
    text-align: center;
    font-size: 0.75rem;
}

.footer-bottom p {
    margin: 0.2rem 0;
    text-align: center;
}

.footer-credit {
    opacity: 0.8;
    font-size: 0.75rem;
}

.footer-credit .heart {
    color: #CD853F;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav a {
        white-space: normal;
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
        margin: 0.2rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    body {
        font-size: 16px;
    }

    .hero__slideshow {
        height: 280px;
        max-height: 40vh;
    }

    .hero__prev,
    .hero__next {
        padding: 0.5rem 0.7rem;
        font-size: 1.2rem;
    }

    .hero__dots {
        bottom: 4rem;
    }

    .hero__dots .dot {
        width: 10px;
        height: 10px;
    }

}

/* Kiemelések és díszítések */
.accent-border {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

.highlight {
    background: linear-gradient(120deg, var(--secondary-color) 0%, transparent 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

/* Linkek stílusa */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/* Header specific styles */
.header-top-bar {
    position: relative;
    min-height: 50px;
    margin-bottom: 1rem;
}

.social-icons {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.lang-switch {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-dropdown {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(139, 105, 82, 0.15));
    border: 1px solid rgba(101, 67, 33, 0.3);
    border-radius: 8px;
    color: #3D2817;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4);
}

.lang-button:hover {
    background: linear-gradient(180deg, #CD853F, #B8753F);
    color: #FFF;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Header small tweaks */
.tagline-title { font-size: 1.4rem; }
.tagline-sub { font-size: 0.95rem; }
.header-logo { width: 120px; }


/* Homepage layout: text left, Balaton kép jobbra */
.home-features {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.balaton-map-home {
    padding-top: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.balaton-map-home picture,
.balaton-map-home img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

@media (max-width: 480px) {
    .tagline-sub { font-size: 0.95rem; }
    .header-logo { width: 75px; }
    .balaton-map-home img { max-width: 150px; }
}

/* Mobile optimizations: improve touch targets, layout and image behavior */
@media (max-width: 768px) {
    .hero__slideshow {
        height: 280px;
        max-height: 35vh;
    }

    .hero__image {
        object-fit: cover;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        text-align: center;
        font-size: 1rem;
    }

    .lang-switch {
        margin-bottom: 0.5rem;
    }

    .lang-dropdown .lang-menu {
        left: 0;
        right: 0;
        min-width: unset;
        border-radius: 8px;
        margin: 0 10px;
    }

    .lang-button {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .home-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .balaton-map-home {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero__slideshow {
        height: 220px;
    }

    .tagline-title { font-size: 1.6rem; }

    nav a { font-size: 0.98rem; padding: 0.8rem 1rem; }

    .header-content { padding: 0 8px; }

    .container { padding: 0 12px; }
}

/* Mobile: show only flags in the language dropdown */
@media (max-width: 768px) {
    .lang-menu a { padding: 0.3rem 0.5rem; justify-content: center; }
    .lang-menu a .lang-label { display: none; }
    .lang-menu a .flag-icon { width: 28px; height: auto; }
    .lang-button img.flag-icon { width: 20px; }
}

/* Footer: on small screens show two text columns side-by-side and hide logo to save space */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: start;
    }

    .footer-logo {
        display: none;
    }

    .footer-col {
        padding: 0.2rem 0.4rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
        padding-top: 0.6rem;
    }
}
