:root {
    --primary: #b03030;
    --primary-dark: #7f2020;
    --bg-light: #f7f7f7;
    --text: #222;
    --muted: #666;
    --max-width: 1100px;
    --transition: 0.3s ease;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
}

.logo span {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1rem;
}

.logo small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.2rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero slider */

.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
}

.slide-caption {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    max-width: 700px;
    padding: 1rem 1.5rem;
    z-index: 2;
}

.slide-caption h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.slide-caption p {
    margin: 0;
    font-size: 1rem;
}

/* Slider controls */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.35);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background var(--transition), transform var(--transition);
}

.slider-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), width var(--transition);
}

.dot.active {
    background: #fff;
    width: 18px;
}

/* Sections */

.section {
    padding: 3.5rem 1.5rem;
}

.section-light {
    background: var(--bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.section h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.section p {
    color: var(--muted);
    line-height: 1.6;
}

/* Layouts */

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-images {
    display: grid;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

/* Features list */

.features {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.features li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

/* Gallery grids */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* APARTMAN GALÉRIA – automatikus felismerés */
#gallery .grid img.landscape {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

#gallery .grid img.portrait {
    width: auto;
    height: 350px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* KÖRNYÉK ÉS LÁTNIVALÓK – fix fekvő képek */
#surroundings .grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Contact */

.contact-section {
    background: #111;
    color: #eee;
}

.contact-section p {
    color: #ccc;
}

.contact-section h2,
.contact-section h3 {
    color: #fff;
}

.map-container {
    margin-top: 1.5rem;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.route-btn {
    display: inline-block;
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 1.2rem;
    background: #b03030;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.route-btn:hover {
    background: #7f2020;
}

/* Footer */

.site-footer {
    background: #000;
    color: #aaa;
    padding: 1.2rem 1.5rem;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .hero {
        height: 60vh;
        min-height: 360px;
    }

    .slide-caption {
        bottom: 14%;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 55vh;
        min-height: 320px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
    }

    .slide-caption h1 {
        font-size: 1.4rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }
}
