/* Alap beállítások és színek (teal árnyalatok) */
:root {
    --bg-dark: #1F2937;
    --bg-dark-card: #374151;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-on-dark: #F3F4F6;
    --text-on-light: #1F2937;
    --text-secondary: #9CA3AF;
    --text-headings-dark: #FFFFFF;
    --accent-teal: #0D9488;
    --accent-teal-hover: #0F766E;
    --border-color-light: #E5E7EB;
    --font-sans: 'Poppins', sans-serif;
    --section-padding: 6rem 0;
    --border-radius: 8px;
    --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-on-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3rem, 7vw, 4.5rem); letter-spacing: -1.5px; }
h2 {
    font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 4rem; text-align: center;
    position: relative; padding-bottom: 15px;
}
h2.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background: var(--accent-teal); border-radius: 2px;
}
h3 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.5rem; font-weight: 600; }
p { margin-bottom: 1rem; font-size: 1.05rem; }
section { padding: var(--section-padding); overflow-x: hidden; }

.section-light { background-color: var(--bg-light); color: var(--text-on-light); }
.section-light h2, .section-light h3, .section-light h4 { color: var(--text-on-light); }
.section-light p { color: #4B5563; }

.section-dark { background-color: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-headings-dark); }
.section-dark p { color: var(--text-secondary); }

.btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: 2px solid var(--accent-teal); cursor: pointer;
}
.btn-primary { background-color: var(--accent-teal); color: var(--white); }
.btn-primary:hover {
    background-color: var(--accent-teal-hover); border-color: var(--accent-teal-hover);
}

/* Navigáció */
#main-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#main-nav.scrolled {
    background-color: rgba(31, 41, 55, 0.85); backdrop-filter: blur(10px);
    padding: 10px 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--white); text-decoration: none; }
.logo span { color: var(--accent-teal); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }

.nav-links a:not(.btn) {
    color: var(--text-on-dark); text-decoration: none; font-weight: 500;
    position: relative; transition: color 0.3s ease; padding-bottom: 5px;
}
.nav-links a:not(.btn):hover { color: var(--accent-teal); }

.nav-links a:not(.btn)::after {
    content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px;
    bottom: 0; left: 0; background-color: var(--accent-teal);
    transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: bottom left; }

.nav-links .btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.menu-icon { display: none; cursor: pointer; font-size: 2rem; color: var(--white); z-index: 1001; }

/* Hero szekció */
#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 120px 0 60px;
    position: relative; overflow: hidden;
}

.hero-carousel {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 2s ease-in-out;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(31, 41, 55, 0.7), rgba(31, 41, 55, 0.7));
}

.hero-content {
    position: relative; z-index: 2; max-width: 900px;
}

.hero-content h1, .hero-content p, .hero-content span {
     text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}
.hero-content { max-width: 900px; }
.hero-content h1, .hero-content p, .hero-content span {
     text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}
#hero .highlight-text { color: var(--accent-teal); }
.hero-stars {
    font-size: 1.5rem; color: var(--accent-teal); margin-top: 1.5rem; margin-bottom: 1.5rem;
    display: flex; gap: 0.5rem; justify-content: center;
}
.hero-content p { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--text-on-dark); margin-bottom: 2.5rem; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* Hero vezérlők */
.hero-controls {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 1rem; align-items: center;
}

.hero-dots { display: flex; gap: 0.5rem; }

.hero-dot {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5);
    cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent;
}

.hero-dot.active { background: var(--accent-teal); border-color: var(--white); }

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2); border: none; color: var(--white);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
}

.hero-nav-btn:hover { background: rgba(13, 148, 136, 0.8); transform: scale(1.1); }

.hero-nav-btn i { font-size: 1.2rem; }

/* Apartman részletek és szolgáltatások */
.apartment-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.apartment-details p { margin-bottom: 1.5rem; }
.apartment-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }

.feature-card { background: var(--white); padding: 1.5rem; border-radius: var(--border-radius); text-align: center; border: 1px solid var(--border-color-light); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07); }
.feature-card .icon { font-size: 2.5rem; color: var(--accent-teal); margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.1rem; color: var(--text-on-light); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: #6B7280; margin-bottom: 0; }

#services .feature-card { background: var(--bg-dark-card); border-color: #4B5563; color: var(--text-on-dark);}
#services .feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
#services .feature-card h4 { color: var(--white); }
#services .feature-card p { color: var(--text-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }

/* Galéria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-grid .gallery-item:nth-child(n+7) { display: none; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: 0 10px 30px -15px rgba(0,0,0,0.2);
    cursor: pointer; height: 200px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 148, 136, 0.7);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2.5rem; transform: scale(0.8); transition: transform 0.3s; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* Lightbox */
.gallery-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-lightbox.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; width: 90%; max-width: 1000px; height: 85%; display: flex; justify-content: center; align-items: center; }
.lightbox-image { max-width: 100%; max-height: 100%; border-radius: 5px; object-fit: contain; }
.lightbox-close { position: absolute; top: -5px; right: 0; font-size: 3rem; color: var(--text-secondary); cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--white); }
.lightbox-controls button { background: rgba(255,255,255,0.1); color: var(--white); border: none; font-size: 2rem; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s; position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(13, 148, 136, 0.5); }
.lightbox-counter { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); color: var(--text-secondary); font-size: 1rem; }

/* Kapcsolat */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: flex-start; }
a.contact-info-item {
    display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1rem; padding: 0.5rem;
    margin-left: -0.5rem; margin-right: -0.5rem; text-decoration: none; color: var(--text-secondary);
    border-radius: var(--border-radius); transition: background-color 0.3s ease, color 0.3s ease;
}
a.contact-info-item:hover { background-color: var(--bg-dark-card); color: var(--text-on-dark); }
a.contact-info-item strong { color: var(--white); font-weight: 600; }
.contact-info-item i { font-size: 1.5rem; color: var(--accent-teal); width: 30px; text-align: center; margin-top: 5px; }
.booking-notice {
    background-color: var(--bg-dark-card); border-left: 4px solid var(--accent-teal); padding: 1rem 1.5rem;
    margin-bottom: 1.5rem; border-radius: var(--border-radius); font-size: 0.95rem;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; background-color: var(--bg-dark-card); border: 1px solid #4B5563;
    border-radius: var(--border-radius); color: var(--text-on-dark); font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-secondary); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25);
}
.form-group { margin-bottom: 1.5rem; }

/* Lábléc */
footer { background-color: #111827; padding: 4rem 0 2rem; text-align: center; border-top: 4px solid var(--accent-teal);} 
.footer-logo { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 1.5rem; display: inline-block; text-decoration: none;}
.footer-logo span { color: var(--accent-teal); }
.footer-contact-links { margin-bottom: 2rem; }
.footer-contact-links a { color: var(--text-secondary); font-size: 1.2rem; margin: 0 1rem; transition: color 0.3s ease, transform 0.3s ease; text-decoration: none; display: inline-block;}
.footer-contact-links a:hover { color: var(--accent-teal); transform: translateY(-3px); }
.copyright { font-size: 0.9rem; color: var(--text-secondary); }

/* Reszponzív beállítások */
@media(max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    
    /* === MOBIL SORREND JAVÍTÁSA === */
    .apartment-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2.5rem; /* Kisebb rés mobilon */
    }
    .apartment-details {
        order: 1; /* A szöveges rész mindig az első */
    }
    .gallery-grid {
        order: 2; /* A galéria mindig a második */
    }
    /* === JAVÍTÁS VÉGE === */

    .nav-links { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-dark); flex-direction: column; justify-content: center; gap: 2.5rem; transform: translateY(-100%); transition: transform 0.5s ease; z-index: 1001; }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; }
    .menu-icon { display: block; z-index: 1002;}
    .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
}

@media(max-width: 768px) {
    h1 { letter-spacing: -1px; }
    .order-lg-1 { order: 1 !important; } .order-lg-2 { order: 2 !important; }
    .hero-controls { bottom: 1rem; gap: 0.5rem; }
    .hero-nav-btn { width: 35px; height: 35px; }
    .hero-dot { width: 10px; height: 10px; }
}