/* ---------- ALPINE GRANITE & PINE THEME ---------- */
:root {
    --primary: #1b3022;      /* Deep Forest Pine */
    --primary-light: #2d4a3e;
    --secondary: #455a64;    /* Granite Stone */
    --accent: #c5a059;       /* Mediterranean Old Gold */
    --dark: #121612;         /* Night Rock */
    --text: #2c332c;
    --text-muted: #607d8b;
    --bg-soft: #f4f7f6;      /* Misty Morning Gray */
    --white: #ffffff;
    --border: rgba(27, 48, 34, 0.08);
    --shadow-subtle: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-focus: 0 10px 30px rgba(27,48,34,0.1);
    --radius: 4px;           /* Slightly rounded for modern feel */
    --trans: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-soft);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--trans);
    padding: 30px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(15px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--trans);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 15px;
    white-space: nowrap;
}

.navbar.scrolled .logo img {
    height: 45px;
}

.navbar.scrolled .logo span {
    font-size: 1rem;
    color: var(--primary);
}

.language-selector {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    gap: 15px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--trans);
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--accent);
}

.lang-btn img {
    width: 24px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--trans);
    opacity: 0.7;
}

.nav-menu a:hover { opacity: 1; color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to top, var(--bg-soft), transparent);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
    color: var(--accent);
    font-weight: 600;
}

.cta-button {
    padding: 20px 50px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: var(--trans);
    border-radius: var(--radius);
}

.cta-button:hover { background: var(--primary); color: var(--white); }

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

.hero-image img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

/* ---------- APARTMENTS ---------- */
.apartments { padding: 100px 0; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--primary); }
.section-title .line { width: 40px; height: 3px; background: var(--accent); margin: 0 auto; }

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.apartment-card {
    background: var(--white);
    transition: var(--trans);
    border: 1px solid var(--border);
    padding: 15px;
}

.apartment-image { height: 500px; overflow: hidden; }
.apartment-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--trans); filter: sepia(0.1); }
.apartment-card:hover .apartment-image img { transform: scale(1.05); filter: sepia(0); }

/* ---------- SLIDESHOW ---------- */
.apartment-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
    opacity: 0;
    transition: var(--trans);
}

.apartment-card:hover .slideshow-nav {
    opacity: 1;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--trans);
}

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

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--trans);
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.apartment-info { padding: 50px 30px; text-align: center; }
.apartment-info h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--accent); font-family: 'Playfair Display', serif; }
.apartment-info p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; }

.apartment-price { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px;
    margin-bottom: 30px;
}

.apartment-price .price { 
    font-size: 2.25rem; 
    font-weight: 700; 
    color: var(--primary); 
}

.apartment-price .unit { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
}

.apartment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.apartment-actions .btn {
    padding: 12px 20px;
    font-size: 0.7rem;
}

.apartment-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
}

.apartment-features {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 3rem;
    color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}

.apartment-features span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apartment-features i {
    color: var(--accent);
    font-size: 1.1rem;
}

.book-btn {
    background: var(--primary); color: var(--white); border: 1px solid var(--primary);
    padding: 18px 45px; text-transform: uppercase; letter-spacing: 3px; font-size: 0.7rem; font-weight: 800;
    cursor: pointer; transition: var(--trans);
}

.book-btn:hover { background: transparent; color: var(--primary); }

/* ---------- BUTTONS ---------- */
.btn {
    padding: 15px 30px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--trans);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--dark);
    border-color: var(--dark);
}

/* ---------- AMENITIES ---------- */
.amenities { padding: 120px 0; background: #f0f2f1; }
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.amenity-card { text-align: center; padding: 60px 30px; background: var(--white); border: 1px solid var(--border); }
.amenity-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 2rem; }
.amenity-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); }

/* ---------- MODALS ---------- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(13,18,15,0.8); backdrop-filter: blur(8px); }
.modal-content { 
    background: var(--white); 
    margin: 5vh auto; 
    padding: 60px; 
    width: 95%; 
    max-width: 900px; 
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    width: 40px;
    height: 40px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; 
    color: var(--primary);
    cursor: pointer; 
    transition: var(--trans);
    z-index: 10;
}

.close:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* ---------- CONTACT ---------- */
.contact { padding: 140px 0; background: var(--white); }

.contact-content { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 80px; 
}

.contact-info { display: flex; flex-direction: column; gap: 40px; }

.contact-item { display: flex; gap: 25px; }
.contact-item i { 
    font-size: 1.5rem; 
    color: var(--accent); 
    margin-top: 5px; 
}

.contact-item h3 { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 10px; 
    color: var(--primary);
}

.contact-item p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

.contact-form {
    padding: 60px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.contact-form .form-group { margin-bottom: 25px; }

.contact-form button[type="submit"] {
    width: 100%;
    padding: 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--trans);
}

.contact-form button[type="submit"]:hover {
    background: var(--accent);
}

.contact-form button[type="submit"]:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 100px 0 50px;
    background: var(--dark);
    color: rgba(255,255,255,0.5);
}

.footer h3 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: var(--trans);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    font-size: 1.25rem;
    transition: var(--trans);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .apartments-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 4rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    body { overflow-x: hidden; width: 100%; }
    .container { padding: 0 20px; }
    .hamburger { display: flex; z-index: 1100; }
    
    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: 0; 
        height: 100vh;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }
    
    .nav-menu.active { left: 0; }
    
    .hero { text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-content { margin: 0 auto; }
    
    .section-title h2 { font-size: 2.5rem; }
    .section-title { text-align: center !important; }
    .section-title .line { margin: 0 auto !important; }
    
    .amenities-grid { grid-template-columns: 1fr; }
    .amenity-card { padding: 40px 20px; }
    
    .contact-content { grid-template-columns: 1fr; gap: 60px; }
    .contact-info { text-align: center; align-items: center; }
    .contact-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .social-links { justify-content: center; }
    
    .apartment-card { padding: 10px; }
    .apartment-image { height: 300px; }
    .apartment-info { padding: 30px 15px; }
    .apartment-info h3 { font-size: 1.8rem; color: var(--accent); }
    .apartment-features { gap: 15px; flex-wrap: wrap; margin-bottom: 2rem; }
    
    .apartment-price { flex-direction: column; gap: 20px; }
    .apartment-price .price { font-size: 1.8rem; }
    .apartment-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
    }
    .apartment-actions .book-btn, .apartment-actions .btn { 
        width: 100%; 
        justify-content: center; 
        padding: 15px 20px; 
    }

    .navbar { padding: 20px 0; }
    .logo img { height: 40px; }
    .logo span { font-size: 0.8rem; margin-left: 8px; }
    .language-selector { margin-right: 20px; gap: 10px; }
    
    .slide-modal { 
        padding: 40px 15px 20px; 
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    .slide-modal .slide-progress { margin-bottom: 25px; }
    .slide-modal .slide h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
    .slide-modal .form-group { margin-bottom: 15px; }
    .slide-modal .slide-nav { margin-top: 25px; }
    .slide-modal .slide-nav button { padding: 12px 20px; }
    .slide-modal .apartment-choices { gap: 10px; }
    
    .date-guest-grid { grid-template-columns: 1fr; gap: 10px; }
    .choice-content { padding: 10px; gap: 10px; }
    .choice-content img { width: 50px; height: 40px; }
    .choice-info h4 { font-size: 0.8rem; }
    .choice-info span { font-size: 0.7rem; }

    .quick-booking {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.7rem;
        gap: 10px;
    }
}
/* ---------- SLIDE MODAL & BOOKING FLOW ---------- */
.slide-modal { max-width: 650px; padding: 60px; border: 1px solid var(--border); }
.slide-progress { height: 2px; background: var(--border); margin-bottom: 40px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); width: 33.33%; transition: var(--trans); }

.slide-form { position: relative; }
.slide { display: none; animation: modalFadeIn 0.4s ease; }
.slide.active { display: block; }

.slide h3 { 
    font-size: 1.5rem; 
    margin-bottom: 2rem; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.apartment-choices { display: flex; flex-direction: column; gap: 15px; }
.choice-card { position: relative; cursor: pointer; border: 1px solid var(--border); transition: var(--trans); }
.choice-card input { position: absolute; opacity: 0; }
.choice-content { display: flex; align-items: center; gap: 20px; padding: 15px; background: var(--bg-soft); transition: var(--trans); }
.choice-card input:checked + .choice-content { background: var(--white); border-left: 4px solid var(--accent); box-shadow: var(--shadow-subtle); }
.choice-content img { width: 80px; height: 60px; object-fit: cover; }
.choice-info h4 { margin: 0; font-size: 0.9rem; text-transform: uppercase; color: var(--primary); }
.choice-info span { font-size: 0.8rem; color: var(--text-muted); }

.date-guest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; }
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 700; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: var(--primary);
}
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid var(--border); 
    background: var(--bg-soft);
    font-size: 0.9rem; 
    font-family: inherit;
    transition: var(--trans);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: var(--white); }

.price-preview { 
    margin-top: 20px;
    padding: 20px; 
    background: var(--primary); 
    color: var(--white); 
    text-align: center; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-radius: var(--radius);
}

/* ---------- MINI BOOKING CALENDAR ---------- */
.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #eee;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.mini-day {
    background: var(--white);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: default;
    color: var(--text);
    transition: var(--trans);
}

.mini-day.header {
    background: var(--bg-soft);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mini-day.other { color: #ccc; }
.mini-day.today { font-weight: 800; color: var(--accent); text-decoration: underline; }
.mini-day.occupied { background: #ffebeb; color: #ff6b6b; cursor: not-allowed; }
.mini-day.available:hover { background: var(--accent); color: white; cursor: pointer; }
.mini-day.selected { background: var(--primary); color: white; }

.slide-nav { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; }
.prev-btn, .next-btn, .submit-btn {
    padding: 15px 30px; border: none; font-size: 0.7rem; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--trans);
}
.prev-btn { background: var(--bg-soft); color: var(--primary); border: 1px solid var(--border); }
.next-btn, .submit-btn { background: var(--primary); color: var(--white); margin-left: auto; }
.submit-btn { width: 100%; background: var(--accent); }

.prev-btn:hover { background: var(--border); }
.next-btn:hover { background: var(--primary-light); }
.submit-btn:hover { background: var(--dark); }

/* ---------- QUICK BOOK FLOATING BUTTON ---------- */
.quick-booking {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--trans);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quick-booking:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.quick-booking i {
    font-size: 1.2rem;
}

/* ---------- STATUS MODALS ---------- */
.email-modal, .check-modal, .contact-modal { text-align: center; padding: 40px; }
.email-loading, .email-done, .check-loading, .check-done { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.email-done h4, .check-done h4 { color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }