/* ===== ÁLTALÁNOS STÍLUSOK ===== */
:root {
    --primary-color: #0077b6; /* Kék */
    --secondary-color: #fca311; /* Napsárga */
    --footer-color: #D95D39; /* Naplemente narancs */
    --dark-color: #333333; /* Sötét szöveg */
    --light-color: #ffffff; /* Fehér */
    --bg-light-gray: #f4f4f4; /* Világosszürke háttér */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fdfaef;
}

/* --- HORIZONTÁLIS TÚLCSORDULÁS JAVÍTÁSA MOBILON --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* ===== HEADER ÉS NAVIGÁCIÓ ===== */
header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}

/* LOGÓ (Szöveges verzió) */
nav .logo {
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav .logo:hover {
    color: var(--secondary-color);
}

/* --- ÚJ MENÜ STÍLUSOK --- */

nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Hogy a gomb is középen legyen függőlegesen */
    gap: 1rem; /* Térköz a menüpontok között */
}

nav ul li a {
    padding: 0.5rem 0; /* Kivettem az oldalsó paddingot, mert a gap intézi */
    margin: 0 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    position: relative; /* Ez kell az animált csíkhoz */
    transition: color 0.3s ease;
}

/* 1. ANIMÁLT ALÁHÚZÁS (A csík) */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Csík vastagsága */
    bottom: -5px; /* Kicsit lejjebb a szövegnél */
    left: 0;
    background-color: var(--secondary-color); /* Sárga szín */
    transition: width 0.3s ease; /* Az animáció sebessége */
}

/* Ha ráviszed az egeret, a csík szélessége 100% lesz */
nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 2. KAPCSOLAT GOMB (Finomított, keretes verzió) */
.nav-cta {
    background-color: transparent; /* Alapból átlátszó, nem teli kék */
    border: 2px solid var(--primary-color); /* Csak egy kék keret */
    color: var(--primary-color) !important; /* A szöveg kék */
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    font-weight: 700; /* Kicsit vastagabb betű */
    transition: all 0.3s ease;
}

/* A gombon NE legyen aláhúzás csík */
.nav-cta::after {
    display: none;
}

/* Gomb HOVER effekt (Itt lesz teli kék) */
.nav-cta:hover {
    background-color: var(--primary-color) !important; /* Kékre vált a háttér */
    color: white !important; /* Fehérre vált a szöveg */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

/* Mobil nézet igazítás a gombhoz */
@media(max-width: 800px) {
    nav ul {
        gap: 1.5rem; /* Nagyobb térköz mobilon */
    }
    .nav-cta {
        width: 100%; /* Mobilon legyen széles a gomb */
        text-align: center;
    }
}

/* ===== LÁBLÉC ===== */
footer {
    background: var(--footer-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
}

/* ===== KÖZÖS ELEMEK ===== */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem 0;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.button {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.button:hover {
    background: #e0910e;
}

/* ===== FŐOLDAL (HERO) ===== */
.hero {
    height: 80vh;
    /* Sötétítés + Terasz kép + Parallax fix háttér */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/felso/terasz_fent.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effekt */
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding: 0 1rem;
    position: relative;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.intro {
    padding: 4rem 2rem;
    text-align: center;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* --- FEATURES (MIÉRT NÁLUNK) --- */
/* JAVÍTÁS: display: block-ra váltva, hogy a cím a kártyák FELETT legyen */
.features {
    padding: 2rem 2rem 4rem 2rem;
    text-align: center;
    display: block; 
}

.card {
    background: var(--bg-light-gray);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    flex: 1; /* Egyforma szélesség */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Fontos: A kártya legyen block elem */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
    background: #fff;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* EMOJI IKONOK A KÁRTYÁKON */
.card .icon-wrapper {
    font-size: 3rem;
    line-height: 90px;
    display: block;
    text-align: center;
    cursor: default;
    margin-bottom: 1rem;
}

.card:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: rotate(10deg);
}

/* ===== APARTMAN ÍZELÍTŐ (KÉPES KÁRTYÁK) ===== */
.apartment-previews {
    padding-bottom: 2rem;
    text-align: center;
}

.apartment-previews h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.preview-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem 1rem;
    text-align: left;
}

.preview-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.preview-overlay p {
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-card:hover img {
    transform: scale(1.1);
}

/* ===== APARTMANOK OLDAL ===== */
.apartment {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.apartment:last-child {
    border-bottom: none;
}

.apartment h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.apartment p {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.price-box {
    margin-bottom: 1rem;
}

.price-tag {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-details {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.5rem;
    font-weight: 600;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ===== KÖRNYÉK OLDAL ===== */
.info-section {
    padding-bottom: 4rem;
}

.info-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: #e0f2fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.info-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: rotate(10deg);
}

.info-card:hover .icon-wrapper svg {
    stroke: var(--light-color);
}

.cta-section {
    background-color: var(--bg-light-gray);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
    border-radius: 15px;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

/* ===== KAPCSOLAT OLDAL ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0 4rem 0;
    align-items: flex-start;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid transparent;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--secondary-color);
}

.contact-icon {
    background-color: var(--bg-light-gray);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-content {
    flex: 1;
}

.contact-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-content p, 
.contact-content a {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    display: block;
    text-decoration: none;
}

.contact-content a:hover {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-label {
    font-size: 0.85rem !important;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0 !important;
    margin-top: 0.5rem;
}
.contact-label:first-of-type {
    margin-top: 0;
}

.map-card {
    display: block !important;
    padding: 1.5rem;
    height: auto;
}

.map-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light-gray);
    padding-bottom: 0.5rem;
}

.map-card .map-container {
    box-shadow: none;
    border-radius: 8px;
    width: 100%;
}

.map-details h3 {
    margin-bottom: 1.5rem;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 10px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== MOBILNÉZET (RESZPONZIVITÁS) ===== */
@media(max-width: 800px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    /* Javítás: mobilon is legyen egymás alatt minden */
    .features {
        flex-direction: column;
    }

    .contact-layout {
        grid-template-columns: 1fr; 
    }
}

/* ===== PLUGIN FIX ===== */
#baguetteBox-overlay .baguetteBox-button {
    padding-right: 10px;
}

/* ===== PIMPELT FOOTER (Hullám és Oszlopok) ===== */
footer {
    background: var(--footer-color);
    color: var(--light-color);
    padding: 0; /* A hullám miatt nullázzuk, majd belül adunk paddingot */
    position: relative;
    margin-top: 4rem; /* Hogy ne tapadjon a tartalomra */
}

/* Hullám effekt a footer tetején */
.footer-wave {
    position: absolute;
    top: -50px; /* Felhúzzuk a footer fölé */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(158% + 1.3px);
    height: 50px;
    transform: rotateY(180deg);
}

.footer-wave .shape-fill {
    fill: var(--footer-color); /* Ugyanolyan színű, mint a footer */
}

/* Belső tartalom */
.footer-content {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 2rem 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left; /* Alapból balra zárunk */
}

/* 1. Oszlop: Logó és NTAK */
.footer-logo-col {
    text-align: center; /* A logó maradjon középen ebben az oszlopban */
}

.footer-logo-img {
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ntak-number {
    font-family: monospace;
    background: rgba(0,0,0,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* 2. Oszlop: Linkek */
.footer-links h4, 
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: padding-left 0.3s ease;
}

.footer-links a:hover {
    padding-left: 10px; /* Kis mozgás jobbra */
    color: #ffd700; /* Arany szín hoverre */
}

/* 3. Oszlop: Kontakt */
.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

/* Legalsó sor */
.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobil igazítás */
@media(max-width: 768px) {
    .footer-content {
        text-align: center;
    }
}

/* ===== PIMPELT APARTMAN OLDAL ===== */

/* Az apartman blokk átalakítása kártyává */
.apartment-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-5px); /* Picit megemelkedik */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Fejléc elrendezés (Cím + Ár) */
.apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light-gray);
    padding-bottom: 1rem;
}

.apartment-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.apartment-capacity {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== KIEMELT ÁR CÍMKE (ÚJ DIZÁJN) ===== */

.price-display {
    /* Szép kék átmenetes háttér */
    background: linear-gradient(135deg, var(--primary-color), #00507a);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px; /* Lekerekített sarkok */
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3); /* Kék árnyék mögötte */
    text-align: center;
    min-width: 200px; /* Hogy legyen egy fix szélessége */
    transition: transform 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2); /* Finom belső keret */
}

/* Ha ráviszed az egeret, picit "lüktet" */
.price-display:hover {
    transform: scale(1.05) rotate(-1deg);
}

.main-price {
    display: block;
    font-size: 1.6rem; /* Nagyobb betű */
    font-weight: 700;
    color: #ffffff !important; /* Fehér legyen a sárga helyett */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Kis árnyék a betűknek */
    margin-bottom: 0.2rem;
}

.sub-price {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9); /* Halvány fehér */
    font-weight: 500;
}

/* Mobil nézet korrekció: Legyen teljes szélességű az ár doboz */
@media(max-width: 768px) {
    .price-display {
        width: 100%;
        margin-top: 1rem;
        text-align: center; /* Mobilon is legyen középen a szöveg benne */
    }
}

/* Felszereltség ikonok (Címkék) */
.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.amenity-badge {
    background: #e0f2fa; /* Halványkék */
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Leírás */
.apartment-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
}

/* Gomb az aljára */
.book-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--dark-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.book-btn:hover {
    background-color: var(--secondary-color);
    color: #000;
}

/* Mobil igazítás */
@media(max-width: 768px) {
    .apartment-header {
        flex-direction: column;
    }
    .price-display {
        text-align: left;
    }
}