/* 
   Ultra Modern Refined Design System 
   v2.1 - Complete Set (Gallery + Map + Utilities)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-primary: #0F172A;
    --color-accent: #3B82F6;
    --color-accent-hover: #2563EB;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

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

/* --- Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-auto { margin-top: auto; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pl-4 { padding-left: 1rem; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.w-full { width: 100%; }
.sticky-top { position: sticky; top: 0; }
.bg-white { background-color: var(--color-surface); }
.hidden-mobile { display: block; }
@media(max-width: 600px){ .hidden-mobile{ display: none; } }

/* --- Accordion Styling --- */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.accordion-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    user-select: none;
}

.accordion-header:hover { background: #f1f5f9; }

.accordion-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: white;
    border-top: 1px solid transparent;
}

.accordion-content.open {
    max-height: 4000px;
    border-top-color: var(--color-border);
}

.icon-toggle {
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.accordion-header.open .icon-toggle {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion-header.open h3 { color: var(--color-accent); }

/* --- Grids --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

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

.gallery-card:hover .gallery-img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }

.overlay-content {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    transform: translateY(10px);
    transition: transform 0.3s;
}

.gallery-card:hover .overlay-content { transform: translateY(0); }

/* Floor Plans */
.floorplan-card {
    aspect-ratio: auto;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.floorplan-card .gallery-img {
    object-fit: contain;
    height: 200px;
}

/* -- Map Layouts -- */
.map-page-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 100vh;
    overflow: hidden;
}

.map-sidebar {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.map-view {
    position: relative;
    background: #e2e8f0;
    width: 100%;
    height: 100%;
}
.map-view iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Map Details */
.map-details .kv-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.map-details .kv-item:last-child { border-bottom: none; }

.kv-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.kv-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .map-page-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .map-sidebar {
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
}

/* Buttons */
.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: black; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--color-text-main);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #eff6ff;
}

/* Header */
.page-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

/* Doc Card */
.doc-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
