/* ==========================================================================
   FABI APARTMENTS - PREMIUM CSS (Végleges verzió)
   ========================================================================== */

/* --- Változók és Alapbeállítások --- */
:root {
    /* Színek */
    --bg-color: #FAFAFA;       
    --primary: #009639;        
    --primary-dark: #007a2e;   
    --secondary: #2A3B32;      
    --accent: #D4AF37;         
    --accent-hover: #C5A028;   
    --text-dark: #333333;
    --text-light: #FFFFFF;
    
    /* Tipográfia */
    --font-title: 'Playfair Display', serif; 
    --font-body: 'Montserrat', sans-serif;   
    
    /* Térközök és árnyékok */
    --shadow-soft: 0 10px 30px rgba(42, 59, 50, 0.08);
    --shadow-strong: 0 15px 40px rgba(42, 59, 50, 0.15);
    --border-rad: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Firefox támogatás */
    scrollbar-color: var(--primary) var(--bg-color);
}

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

/* --- Egyedi Görgetősáv (Webkit: Chrome, Edge, Safari) --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--secondary);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Tipográfia --- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 15px; }
h4 { font-size: clamp(18px, 2vw, 24px); margin-bottom: 10px; color: var(--accent); }

p { margin-bottom: 20px; font-weight: 300; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent);
}

/* --- Gombok --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(16px, 2vw, 18px);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-small { padding: 10px 24px; font-size: 14px; }

.btn-accent {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

/* --- ÚJ GOMB STÍLUS A FEJLÉCBE --- */
.btn-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important; 
    box-shadow: 0 4px 15px rgba(0, 150, 57, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    padding: 10px 28px;
}

.btn-header:hover {
    box-shadow: 0 6px 20px rgba(0, 150, 57, 0.6);
    transform: translateY(-2px) scale(1.05);
}

/* --- Felső Sáv (Top Bar) --- */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.top-bar-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.info-item { display: inline-flex; align-items: center; gap: 5px; }

.info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* --- Fejléc és Navigáció --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img { 
    max-height: 60px; 
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition); 
}

.logo img:hover { 
    transform: scale(1.05); 
}

header.scrolled .logo img {
    max-height: 50px;
}

/* CSS-Only Mobil Menü */
.menu-toggle { display: none; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-weight: 500; font-size: 14px; cursor: pointer; }
.lang-switch strong { color: var(--primary); }

/* --- Hero Szekció --- */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-text { flex: 1; }
.highlight-text { 
    font-family: var(--font-title);
    font-style: italic; 
    color: var(--accent); 
    font-size: 26px;
    margin-top: 30px;
}

.hero-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.img-wrapper {
    overflow: hidden;
    border-radius: var(--border-rad);
    box-shadow: var(--shadow-soft);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.img-wrapper:hover img { transform: scale(1.05); }
.main-img { grid-row: span 2; }

/* --- Mozgó Képgaléria (Marquee) --- */
.marquee-section {
    padding: 40px 0;
    background-color: #fff;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 50s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track img {
    height: 300px;
    margin: 0 10px;
    border-radius: var(--border-rad);
    object-fit: cover;
    cursor: zoom-in;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Vendégértékelések --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-rad);
    box-shadow: var(--shadow-soft);
    position: relative;
    border-top: 3px solid var(--accent);
    transition: var(--transition);
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }

.quote {
    position: relative;
    font-style: italic;
    z-index: 1;
    color: #555;
}

.quote::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 60px;
    color: rgba(212, 175, 55, 0.15);
    font-family: var(--font-title);
    z-index: -1;
}

.testimonial-author {
    margin-top: 20px;
    text-align: right;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Apartmanok Kártyák --- */
.subtitle {
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    margin-top: -30px;
    margin-bottom: 40px;
}

.apartments-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.apt-card {
    display: flex;
    background: #fff;
    border-radius: var(--border-rad);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.apt-images {
    flex: 0 0 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.apt-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: filter 0.3s;
    cursor: zoom-in;
}

.apt-card:hover .apt-images img { filter: brightness(0.85); }

.apt-content {
    flex: 1;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.apt-short {
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.apt-short h3 { color: var(--secondary); }

/* Lebegő Részletek (Desktop) */
.apt-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 59, 50, 0.96);
    color: var(--text-light);
    padding: 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.apt-card:hover .apt-details { transform: translateY(0); }
.apt-card:hover .apt-short { opacity: 0; }

.details-inner h3 { color: var(--accent); }
.details-inner p { font-size: 16px; font-weight: 300; }

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tags span {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-list {
    list-style: none;
    font-size: 14px;
    font-weight: 300;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.feature-list .highlight { font-weight: 600; color: #fff; }

/* --- Foglalási Űrlap (Kompakt és Elegáns) --- */
.booking-section {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.booking-section h2 { color: #fff; }
.booking-section p { max-width: 600px; margin: 0 auto 40px auto; font-weight: 300; }

.booking-form {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: var(--border-rad);
    box-shadow: var(--shadow-strong);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.booking-form input, 
.booking-form select, 
.booking-form textarea {
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 2px solid #E0E0E0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: transparent;
    color: var(--secondary);
    transition: border-color 0.3s ease;
}

.booking-form input:focus, 
.booking-form select:focus, 
.booking-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.booking-form input::placeholder, 
.booking-form textarea::placeholder {
    color: #999;
}

.booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

.full-width-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
}

/* --- Térkép Szekció --- */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-rad);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.map-card h3 { color: var(--secondary); }
.hover-lift:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.address { font-size: 16px; color: #666; margin: 15px 0 25px 0; }

.route-btn {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 4px;
}

.route-btn:hover { background: var(--primary); color: #fff; }

/* --- Footer --- */
footer {
    background-color: #1A241F;
    color: #fff;
    padding: 80px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

footer h3 { color: var(--accent); margin-bottom: 25px; font-size: 24px; }
.footer-brand p { font-size: 16px; font-weight: 300; color: #bbb; }
.contact-line { font-size: 15px; margin-bottom: 8px; font-weight: 300; }
.footer-addresses p { font-size: 14px; margin-top: 20px; color: #999; line-height: 1.5; }

.footer-link {
    display: block;
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 12px;
    color: #bbb;
}

.footer-link:hover { color: var(--accent); transform: translateX(5px); }

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Extrák: Fade-in & Lightbox --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 36, 31, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--border-rad);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--accent);
    font-size: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover { transform: scale(1.1); }

/* --- Vissza a tetejére gomb --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    animation: pulse 2s infinite; 
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    color: #fff;
    animation: none; 
    transform: translateY(-5px); 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-images { order: 1; width: 100%; max-width: 600px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 60px 0; }
    .top-bar-inner { flex-direction: column; text-align: center; gap: 8px; }
    
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .menu-toggle:checked ~ .main-nav { display: flex; }
    .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
    .header-actions { flex-direction: column; margin-top: 20px; }

    .apt-card { flex-direction: column; }
    .desktop-only { display: none; }
    
    .apt-short { display: none; }
    .apt-details {
        position: static;
        transform: none;
        background: #fff;
        color: var(--secondary);
        padding: 40px 20px;
    }
    .apt-details h3 { color: var(--primary); }
    .feature-list .highlight { color: var(--primary); }
    .feature-tags span { border-color: var(--primary); color: var(--primary); }
    
    .map-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-link:hover { transform: none; }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .booking-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .apt-images { grid-template-columns: 1fr; grid-template-rows: auto; }
    .marquee-track img { height: 200px; }
    .btn { width: 100%; }
}