/* --- Fonturi --- */
@font-face {
    font-family: 'Playfair Display';
    src: local('Playfair Display'), local('PlayfairDisplay-Regular'), url('https://fonts.gstatic.com/s/playfairdisplay/v37/nuFvD7K_7Whj3bsyHR975XGHsem96Ap8PRnPFv6mueE.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'), local('Inter-Regular'), url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfMZhrib2Bg-4.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #a3895d;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Animații --- */
.animate-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Header & Nav --- */
header { padding: 20px 0; position: sticky; top: 0; background: rgba(255, 255, 255, 0.98); z-index: 1000; border-bottom: 1px solid #eee; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; text-decoration: none; color: var(--primary-color); font-weight: 700; }
.logo span { color: var(--accent-color); font-weight: 400; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* --- Hero Global --- */
.hero, .apt-hero {
    height: 80vh; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; position: relative;
}
.hero::before, .apt-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-content, .apt-hero .container { position: relative; z-index: 2; }
.hero h1, .apt-hero h1 { font-family: var(--font-heading); font-size: 4.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.4rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* --- Apartment Layout --- */
.apt-content { padding: 80px 0; }
.apt-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; }
.apt-sidebar { position: relative; }
.story-box, .space-box, .features-box, .gallery-section { margin-bottom: 60px; text-align: left; }

h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 30px; position: relative; }
h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 2px; background: var(--accent-color); }

.space-list { list-style: none; margin-top: 20px; }
.space-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; color: #444; }
.space-list li i { color: var(--accent-color); width: 25px; text-align: center; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 15px; background: #fdfdfd; border: 1px solid #f0f0f0; font-size: 0.95rem; }

/* --- Booking Card --- */
.booking-card {
    background: #fff; padding: 40px; border: 1px solid #eee; text-align: center;
    position: sticky; top: 120px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border-radius: 4px;
}
.booking-card h3 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 15px; color: var(--primary-color); }
.btn-primary {
    display: block; width: 100%; padding: 18px; background: var(--primary-color); color: white;
    border: none; font-family: var(--font-main); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; cursor: pointer; transition: 0.3s; border-radius: 2px; text-decoration: none;
}
.btn-primary:hover { background: var(--accent-color); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- Gallery & Modal Navigation --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; }
.gallery-item { height: 180px; background-size: cover; background-position: center; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.gallery-item:hover { transform: scale(1.03); }

#gallery-modal { 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; }
#gallery-modal img { max-width: 90%; max-height: 85%; border: 3px solid #fff; border-radius: 4px; user-select: none; }
.close-modal { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; cursor: pointer; line-height: 1; z-index: 10001; }

.modal-nav { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    color: white; font-size: 40px; cursor: pointer; padding: 20px; 
    z-index: 10000; opacity: 0.6; transition: 0.3s; 
}
.modal-nav:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.modal-nav.prev { left: 10px; } 
.modal-nav.next { right: 10px; }

.modal-nav i {
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900;
    font-style: normal;
}

/* --- Footer & Contact (CENTRAT) --- */
#contact { background: #1a1a1a; color: #fff; padding: 100px 0 50px; }
.contact-grid { display: flex; justify-content: center; width: 100%; }
.contact-info { text-align: center; max-width: 800px; width: 100%; }
.contact-info h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 30px; color: var(--accent-color); position: relative; display: inline-block; }
.contact-info h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: var(--accent-color); }

.contact-method { display: flex; align-items: center; gap: 20px; margin: 0 auto 25px; justify-content: flex-start; width: fit-content; min-width: 280px; }
.contact-method i { width: 50px; height: 50px; border: 1px solid var(--accent-color); display: flex; justify-content: center; align-items: center; border-radius: 50%; color: var(--accent-color); flex-shrink: 0; }
.contact-method div { text-align: left; }
.contact-method a { color: inherit; text-decoration: none; transition: 0.3s; }
.contact-method a:hover { color: var(--accent-color); }

.footer-bottom { border-top: 1px solid #222; padding-top: 40px; margin-top: 40px; text-align: center; }
.legal-links { margin-top: 15px; }
.legal-links a { color: #888; text-decoration: none; margin: 0 10px; font-size: 0.85rem; transition: 0.3s; }
.legal-links a:hover { color: var(--accent-color); }

/* --- Chatbot Window --- */
#chatbot-trigger {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: var(--accent-color); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 26px;
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1001; transition: 0.3s;
}
#chatbot-trigger:hover { transform: scale(1.1); }
#chatbot-window {
    position: fixed; bottom: 110px; right: 30px; width: 350px; height: 500px;
    background: white; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none; flex-direction: column; overflow: hidden; z-index: 1000;
    font-family: var(--font-main); border: 1px solid #eee;
}

.chat-header { background: var(--primary-color); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; }
.chat-close { cursor: pointer; opacity: 0.8; transition: 0.3s; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: #f8f9fa; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; position: relative; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { background: white; align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); color: #444; }
.msg.user { background: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .apt-grid { grid-template-columns: 1fr; gap: 40px; }
    .apt-sidebar { order: -1; }
    .booking-card { position: static; margin-bottom: 30px; }
    .contact-grid { flex-direction: column; gap: 50px; }
    .hero h1, .apt-hero h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: white; flex-direction: column; padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.4s; z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin-bottom: 20px; }
    
    .hero h1, .apt-hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}