/* assets/style.css - CLEANED & OPTIMIZED */

:root {
    /* LOCKED: The "Roscap" Palette */
    --bg-dark: #0F1115;
    --bg-light: #F9F9F7;
    --text-dark: #111111;
    --text-grey: #666666;
    --text-light: #FFFFFF;
    --accent-gold: #C5A065;
    --line-color: #E5E5E5;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
}

/* --- LAYOUT --- */
.split-layout { display: flex; min-height: 100vh; }

/* LEFT PANEL (Identity) - LOCKED POSITION */
.identity-panel {
    width: 40%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    
    /* OLD WAY (Caused Jumping):
    padding: 6vw;
    justify-content: center; 
    */

    /* NEW WAY (Rock Solid): */
    padding: 6vw;
    padding-top: 20vh; /* Lock logo position 20% from top */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top, not center */
    
    position: fixed;
    height: 100vh;
}

.brand-wrapper { max-width: 400px; margin: 0 auto; }

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    display: block;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.manifesto .lead {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.4;
    color: #E0E0E0;
    margin-bottom: 4rem;
}

.links a {
    display: inline-block;
    margin-right: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.links a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    opacity: 1;
}

/* --- CUSTOM DROPDOWNS (Premium UI) --- */
.custom-select-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    margin-left: 15px;
}

.custom-select-trigger {
    display: flex; align-items: center; gap: 6px;
    color: #666; padding: 5px 0; transition: color 0.2s;
}
.custom-select-trigger:hover { color: var(--accent-gold); }

.custom-select-trigger::after {
    content: ''; width: 0; height: 0; 
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; opacity: 0.6;
}

.custom-options {
    position: absolute; top: 100%; left: 0;
    min-width: 120px; background: #FFF;
    border: 1px solid #E5E5E5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none; flex-direction: column;
    padding: 5px 0; border-radius: 4px;
}

.custom-select-container.open .custom-options { display: flex; }

.custom-option {
    padding: 10px 15px; color: #333; transition: all 0.2s; white-space: nowrap;
}
.custom-option:hover { background: #F4F4F4; color: #000; }
.custom-option.selected { font-weight: 600; color: var(--accent-gold); }
.custom-option.disabled { opacity: 0.3; pointer-events: none; display: none; }

/* Mobile & Desktop Visibility Classes */
.lang-desktop { display: inline-block; }
.lang-mobile { display: none; margin-left: 0; }

/* Filter Bar Specifics */
.filters .custom-select-container { margin-left: 15px; }

.header-top-row { margin-bottom: 1.5rem; }

.footer-legal {
    margin-top: 4rem;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.footer-legal p {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.footer-legal a {
    font-size: 0.7rem;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--accent-gold); }


/* RIGHT PANEL (Market) */
.market-panel {
    width: 60%;
    margin-left: 40%;
    padding: 6vw;
    background-color: var(--bg-light);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 1.5rem;
    margin-bottom: 4rem;
}

.panel-header h2 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.live-pulse {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    position: relative;
    padding-left: 15px;
}

.live-pulse::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}


/* --- DEAL CARDS --- */
.deal-item {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-color);
}

.meta-row {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.deal-item h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.specs-row { display: flex; gap: 4rem; margin-bottom: 2.5rem; }

.spec .label {
    display: block; font-size: 0.65rem; text-transform: uppercase;
    color: #888; letter-spacing: 0.1em; margin-bottom: 0.25rem;
}

/* REFINED SPECS (Balanced Hierarchy) */
.spec .value { 
    font-family: var(--font-serif); 
    font-size: 1.15rem;   /* Reduced from 1.35rem */
    font-weight: 400;     /* Back to Normal weight (Elegant) */
    color: #111;          /* Soft Black */
    line-height: 1.2;
    margin-top: 2px;
}

/* Ensure the Title stays dominant */
.deal-item h3 {
    font-size: 2rem;      /* Ensure title is clearly larger */
    font-weight: 400;
    color: #000;
    margin-bottom: 1.5rem;
}


/* --- BUTTONS (Global) --- */

/* 1. Solid Black Button (View Details) */
.btn-black {
    display: inline-block;
    background-color: #111;
    color: #FFF !important;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid #111;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1.5rem;
    width: auto;
}
.btn-black:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000 !important;
}

/* 2. Outline Button (Portfolio) */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: #111;
    border: 1px solid #E5E5E5;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: #111;
    background: #111;
    color: #FFF;
}


/* --- TEASER PAGE SPECIFICS --- */

/* Sticky Footer Layout */
.sticky-footer {
    position: fixed;
    bottom: 0; left: 0;
    z-index: 999;
    width: 100%;
    background: #FFF;
    border-top: 1px solid #E5E5E5;
    display: flex;
    justify-content: center;
}

.footer-inner {
    width: 100%;
    max-width: 500px;
    display: flex;
    gap: 10px;
}

/* Sticky Footer Buttons (Monochrome) */
.btn-wa {
    flex: 1;
    background-color: #FFFFFF !important;
    color: #111111 !important;
    border: 1px solid #E5E5E5;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.btn-wa:hover {
    border-color: #111;
    background-color: #FAFAFA !important;
}

.btn-im {
    flex: 1;
    background-color: #111111 !important;
    color: #FFFFFF !important;
    border: 1px solid #111111;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.btn-im:hover {
    background-color: #333333 !important;
    border-color: #333333;
}

/* Map Widget */
.map-container {
    display: block;
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #EEE;
}
.map-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.map-container:hover img { transform: scale(1.05); }

.map-overlay {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: var(--font-sans);
}


/* --- FORMS & MODALS --- */
.modal-overlay {
    display: none;
    position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 17, 21, 0.8);
    align-items: center; justify-content: center;
}

.modal-content {
    background-color: #FFF;
    padding: 3rem;
    width: 100%; max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute; right: 1.5rem; top: 1rem;
    font-size: 1.5rem; cursor: pointer; color: var(--text-grey);
}

.modal-header { margin-bottom: 2rem; border-bottom: 1px solid var(--line-color); padding-bottom: 1rem; }
.modal-label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-grey); display: block; margin-bottom: 0.5rem; }
.modal-header h2 { font-size: 1.2rem; color: var(--text-dark); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--text-grey); }
.form-group input {
    width: 100%; padding: 12px;
    border: 1px solid var(--line-color);
    font-family: var(--font-sans); font-size: 0.9rem; outline: none;
}
.form-group input:focus { border-color: var(--text-dark); }

.btn-submit {
    width: 100%; background: var(--text-dark); color: #FFF; border: none;
    padding: 14px; font-family: var(--font-sans);
    text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer; font-size: 0.85rem;
}
.btn-submit:hover { background: var(--accent-gold); color: #000; }

.feedback-banner {
    background: var(--bg-dark); color: var(--text-light);
    padding: 1rem; margin-bottom: 2rem; font-size: 0.9rem;
}

/* GDPR Checkbox */
.gdpr-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; margin-top: 0.5rem; }
.gdpr-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; cursor: pointer; border: 1px solid var(--line-color); flex-shrink: 0; }
.gdpr-row label { font-size: 0.75rem; color: var(--text-grey); line-height: 1.4; cursor: pointer; text-transform: none; }
.gdpr-row label a { color: var(--text-dark); text-decoration: underline; }
.gdpr-row label a:hover { color: var(--accent-gold); }


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    .identity-panel { position: relative; width: 100%; height: auto; padding: 3rem 2rem; }
    .market-panel { width: 100%; margin-left: 0; padding: 3rem 2rem; }
    .modal-content { width: 90%; padding: 2rem; }

    /* Mobile Language Switcher */
    .header-top-row {
        display: flex; justify-content: space-between; align-items: center; width: 100%;
    }
    .header-top-row .meta-label { margin-bottom: 0; }
    
    .lang-mobile { display: block; }
    .lang-desktop { display: none; }
    
    /* Align dropdown to right on mobile header */
    .lang-mobile .custom-options { left: auto; right: 0; }
}
/* =========================================
   DESKTOP OVERRIDES (STRICT MODE)
   ========================================= */

@media screen and (min-width: 768px) {
    /* 1. REMOVE TOP MARGIN */
    .teaser-container {
        max-width: 800px !important; 
        margin: 0 auto !important; /* Changed from 40px to 0 */
        border: 1px solid #E5E5E5;
        box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    }

    /* 2. FORCE METRICS INTO 1 ROW */
    .grid-section {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 columns side-by-side */
        gap: 20px;
    }
    /* 4. MAKE HERO IMAGE TALLER */
    .hero {
        height: 600px !important; /* Big cinematic image */
    }
}
