/* ==========================================================================
   ECO-CITY | VOGUE & INTERIOR DESIGN AESTHETIC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    /* Sophisticated, Light Interior Design Palette */
    --color-bg: #Faf9f6;        /* Alabaster / Off-white */
    --color-surface: #ffffff;   /* Pure White */
    --color-text-main: #2c2c2c; /* Sharp Charcoal */
    --color-text-muted: #7a7a7a;/* Warm Gray */
    --color-accent: #c4b5a5;    /* Muted Taupe / Beige */
    --color-accent-dark: #8c9287;/* Muted Sage Green */
    --color-border: rgba(44, 44, 44, 0.15); /* Thin, elegant lines */
}

/* --- Base Typography --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.tracking-widest {
    letter-spacing: 0.15em !important;
}

/* --- UI Mode Toggle & Layout --- */
.app-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg);
    transition: all 0.5s ease;
    margin: 0 auto;
}

/* When the user toggles Mobile Mode (Forces fluid single-column, NO FAKE FRAME) */
.app-wrapper.mobile-mode .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

.app-wrapper.mobile-mode section {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.app-wrapper.mobile-mode h1 {
    font-size: 3.5rem !important; 
    line-height: 1.1 !important;
}

.app-wrapper.mobile-mode h2 {
    font-size: 2.5rem !important;
}

.app-wrapper.mobile-mode .lg\:flex {
    display: none !important; /* Hides desktop nav links */
}

.app-wrapper.mobile-mode .md\:flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* --- Elegant Form Inputs --- */
.architectural-input {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-main);
    transition: border-bottom-color 0.4s ease;
    border-radius: 0; /* Sharp edges */
}

.architectural-input:focus {
    outline: none;
    border-bottom: 1px solid var(--color-text-main);
    box-shadow: none;
}

.architectural-input::placeholder {
    color: #a0a0a0;
    font-weight: 300;
}

select.architectural-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
}

/* --- Scroll Animations (Moving Cards & Reveals) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Subtle image/card pan on hover */
.interior-card {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.interior-card:hover {
    transform: translateY(-8px);
}

/* --- Buttons --- */
.btn-editorial {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background-color: var(--color-text-main);
    color: var(--color-surface);
    border: 1px solid var(--color-text-main);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-editorial:hover {
    background-color: transparent;
    color: var(--color-text-main);
}

.btn-editorial-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-editorial-outline:hover {
    border-color: var(--color-text-main);
}

/* --- Leaflet Map Overrides (Restoring Color) --- */
.leaflet-container {
    z-index: 10 !important;
    font-family: 'Montserrat', sans-serif;
    filter: contrast(105%) saturate(110%); 
}

/* Chart.js overrides */
canvas {
    font-family: 'Montserrat', sans-serif !important;
}

/* Global Hide Scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
}
::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

/* Standard Media Query for ACTUAL Mobile Devices */
@media (max-width: 768px) {
    h1 { font-size: 3.5rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2.5rem !important; }
    #map-section { height: 65vh !important; }
}