
:root {
    --bg-dark: #0c0e12;
    --card-bg: #161922;
    --card-border: #232733;
    --accent: #c4704f;
    --accent-hover: #d9825f;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-light: #d1d5db;
    --gold: #dfb15b;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background: linear-gradient(135deg, #12151d 0%, #0c0e12 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 24px 0;
    margin-bottom: 24px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.header-badge {
    background: rgba(196, 112, 79, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-layout {
    margin-bottom: 60px;
}

/* Selector Card */
.selector-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.selector-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #fff;
}

.selector-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.apartment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.apt-btn {
    background: #1e222d;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    padding: 18px 24px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apt-btn:hover {
    border-color: var(--accent);
    background: #232836;
}

.apt-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(196, 112, 79, 0.2) 0%, #1e222d 100%);
    box-shadow: 0 0 15px rgba(196, 112, 79, 0.2);
}

.apt-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.apt-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.apt-btn.active .apt-meta {
    color: #e29578;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

@media(max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.panel-heading h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.panel-heading .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.apt-details h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: #fff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.apt-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    padding-bottom: 6px;
}

.info-label {
    color: var(--text-muted);
}

.info-val {
    font-weight: 600;
    color: #fff;
}

/* Floorplan Interactive Canvas */
.floorplan-container {
    width: 100%;
    background: #0f1117;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floorplan-svg {
    width: 100%;
    height: auto;
    max-height: 320px;
}

/* Theater Viewer (Large & Prominent) */
.viewer-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.view-counter {
    background: #232733;
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.main-viewer {
    width: 100%;
    height: 600px;
    background: #07090d;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

@media(max-height: 900px) {
    .main-viewer {
        height: 480px;
    }
}

.main-viewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.viewer-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7,9,13,0.95) 0%, rgba(7,9,13,0.6) 70%, transparent 100%);
    padding: 24px 24px 16px 24px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 14, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(196, 112, 79, 0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Thumbnails Strip */
.thumbnail-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thumbnail-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--card-border);
}

.thumbnail-strip::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #11141c;
    border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.thumb-item {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    background: #000;
}

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

.thumb-item:hover {
    opacity: 0.85;
    border-color: rgba(196, 112, 79, 0.5);
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(196, 112, 79, 0.4);
}

.thumb-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-credit {
    color: #6b7280;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
