:root {
    --navy-deep: #0a1628;
    --navy: #152238;
    --navy-light: #1e3a5f;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --gold-pale: #f5e6b3;
    --cream: #faf8f3;
    --cream-dark: #f0ede4;
    --text-dark: #1a1a1a;
    --text-muted: #5a6370;
    --white: #ffffff;
    --success: #2d8a6e;
    --warning: #d4a017;
    --info: #3b82f6;
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21, 34, 56, 0.08);
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 0.75rem 3rem;
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px; height: 32px;
    background: var(--gradient-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-highlight {
    background: var(--gradient-gold);
    color: var(--navy-deep);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-links a.nav-highlight::after { display: none; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--navy-deep);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 95, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(21, 34, 56, 0.8) 0%, var(--navy-deep) 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 span { color: var(--gold); font-style: italic; }

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stat { text-align: center; }

.hero-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px; height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

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

/* Sections */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 2rem;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5rem; height: 1px;
    background: var(--gold);
}

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Summary Section */
.summary-section { background: var(--white); }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--gradient-gold);
}

.summary-icon {
    width: 48px; height: 48px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.summary-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.summary-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-top: 0.75rem;
}

/* Payment Structure */
.payment-structure {
    margin-top: 4rem;
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
}

.payment-structure h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th, .payment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(21, 34, 56, 0.1);
}

.payment-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.payment-table th:first-child { border-radius: 8px 0 0 0; }
.payment-table th:last-child { border-radius: 0 8px 0 0; }

.payment-table .amount {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gold);
}

.payment-table tfoot td {
    background: rgba(201, 162, 39, 0.1);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(45, 138, 110, 0.15); color: var(--success); }
.badge-warning { background: rgba(212, 160, 23, 0.15); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-gold { background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1)); color: var(--gold); font-weight: 600; }
.badge-silver { background: rgba(107, 114, 128, 0.15); color: #6b7280; }
.badge-permuta { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

/* Price indicators - USD/m² vs zone average */
.price-good { color: #059669; font-weight: 600; }
.price-bad { color: #dc2626; font-weight: 600; }
.price-neutral { color: var(--text-muted); }

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.collapsible-header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.collapsible-header:hover { background: var(--navy-light); }

.toggle-icon {
    transition: transform 0.3s ease;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-content.active {
    max-height: 2000px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 1rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(10, 22, 40, 0.15);
}

.portfolio-header {
    background: var(--navy);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 60%);
}

.portfolio-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
}

.portfolio-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 600;
    position: relative;
}

.portfolio-body { padding: 1.5rem 2rem; }

.portfolio-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--cream-dark);
}

.portfolio-detail:last-child { border-bottom: none; }
.portfolio-detail-label { color: var(--text-muted); font-size: 0.9rem; }
.portfolio-detail-value { font-weight: 600; color: var(--navy); }

.portfolio-price {
    background: var(--cream);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-price-label { font-size: 0.85rem; color: var(--text-muted); }

.portfolio-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.portfolio-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Liquidity Scenarios */
.liquidity-scenarios {
    margin-top: 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.06);
}

.liquidity-scenarios h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.scenarios-table {
    width: 100%;
    border-collapse: collapse;
}

.scenarios-table th, .scenarios-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}

.scenarios-table th {
    background: var(--cream);
    font-weight: 600;
    color: var(--navy);
}

.scenarios-table .highlight-row {
    background: rgba(201, 162, 39, 0.1);
}

.scenarios-table .amount {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gold);
}

/* Stats Section */
.stats-section {
    background: var(--navy-deep);
    position: relative;
    overflow: hidden;
}

.stats-section .section-label { color: var(--gold-light); }
.stats-section .section-title { color: var(--white); }
.stats-section .section-desc { color: rgba(255, 255, 255, 0.6); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.stat-icon { font-size: 2rem; margin-bottom: 1rem; }

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Zone Comparison */
.zone-comparison {
    margin-top: 4rem;
}

.zone-comparison h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.zone-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.zone-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.zone-card h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.zone-stats { display: flex; flex-direction: column; gap: 1rem; }

.zone-stat {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zone-stat-label { color: rgba(255, 255, 255, 0.6); }
.zone-stat-value { color: var(--white); font-weight: 600; }

/* Table Styles */
.table-wrapper {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.06);
}

.table-header {
    background: var(--navy);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
}

.table-badge {
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.table-scroll { overflow-x: auto; }

.properties-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.properties-table th {
    background: rgba(21, 34, 56, 0.05);
    padding: 1rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(21, 34, 56, 0.08);
    white-space: nowrap;
}

.properties-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.properties-table th.sortable:hover {
    background: rgba(21, 34, 56, 0.1);
}

.properties-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(21, 34, 56, 0.06);
    font-size: 0.9rem;
}

.properties-table tbody tr { transition: background 0.2s ease; }
.properties-table tbody tr:hover { background: rgba(201, 162, 39, 0.05); }

.property-name { font-weight: 600; color: var(--navy); }

.property-price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

.property-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-tag.pool { background: rgba(45, 138, 110, 0.1); color: var(--success); }
.property-tag.no-pool { background: rgba(90, 99, 112, 0.1); color: var(--text-muted); }
.property-tag.new { background: rgba(201, 162, 39, 0.15); color: var(--gold); }

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--cream-dark);
    color: var(--navy);
}

.rank-1 { background: var(--gold); color: var(--navy-deep); }
.rank-2 { background: #c0c0c0; color: var(--navy-deep); }
.rank-3 { background: #cd7f32; color: white; }

.link-btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.link-btn:hover { background: var(--navy-light); }
.link-btn.highlight { background: var(--gradient-gold); color: var(--navy-deep); }
.link-btn.disabled { background: var(--cream-dark); color: var(--text-muted); cursor: default; pointer-events: none; }

.top-row { background: rgba(201, 162, 39, 0.03); }

/* TOP 7 Section */
.top10-section { background: var(--white); }

/* Properties Section */
.properties-section { background: var(--cream); }

/* Filters */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--cream);
    color: var(--navy);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-reset {
    padding: 0.5rem 1rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-left: auto;
}

.filter-reset:hover { background: var(--navy-light); }

/* Rankings Section */
.rankings-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.tabs-container { margin-top: 2rem; }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    transition: all 0.3s ease;
}

.tab:hover {
    background: var(--cream-dark);
}

.tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ranking-list {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.06);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.ranking-item:last-child { border-bottom: none; }

.ranking-pos {
    width: 36px; height: 36px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-right: 1.5rem;
}

.ranking-item:first-child .ranking-pos {
    background: var(--gradient-gold);
    color: var(--navy-deep);
}

.ranking-name {
    flex: 1;
    font-weight: 500;
    color: var(--navy);
}

.ranking-value {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

/* Market Data Section */
.market-data-section { background: var(--white); }

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.market-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
}

.market-card h4 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.market-table {
    width: 100%;
}

.market-table tr {
    border-bottom: 1px solid var(--cream-dark);
}

.market-table td {
    padding: 0.75rem 0;
}

.market-table td:first-child {
    color: var(--text-muted);
}

.market-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--navy);
}

/* Directory Section */
.directory-section { background: var(--cream); }

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 22, 40, 0.1);
}

.directory-card h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.directory-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.directory-contact {
    font-size: 0.8rem;
    color: var(--gold);
}

/* Ratings Section */
.ratings-section { background: var(--white); }

.ratings-table .rating {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.rating-high { background: rgba(45, 138, 110, 0.15); color: var(--success); }
.rating-medium { background: rgba(212, 160, 23, 0.15); color: var(--warning); }
.rating-low { background: rgba(90, 99, 112, 0.15); color: var(--text-muted); }

/* Footer */
footer {
    background: var(--navy-deep);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-date {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 2rem auto;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(21, 34, 56, 0.1);
    }

    .nav-links.active { display: flex; }
    .mobile-menu { display: flex; }

    section { padding: 4rem 1.5rem; }

    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 2rem; }

    .filters-container {
        flex-direction: column;
    }

    .filter-reset { margin-left: 0; }

    .properties-table { min-width: 800px; }

    .tabs { gap: 0.25rem; }
    .tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }

    .portfolio-grid,
    .summary-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: 1fr; }
}
