/* Design System & Base Styles */
:root {
    --primary: #D4A900;
    /* Warm yellow */
    --primary-dark: #b38e00;
    --accent: #D4A900;
    /* Highlights */
    --bg-dark: #0a2b30;
    --bg-light: #0d3a40;
    --text-white: #FFFFFF;
    --text-gray: #b0c4c4;
    --button-text: #222222;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Louis George Café', 'Louis George Cafe', sans-serif;
    font-weight: 300;
    /* Light */
    color: var(--text-white);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Louis George Café', 'Louis George Cafe', sans-serif;
}

h1,
.logo {
    font-weight: 700;
    /* Bold */
}

h2,
h3 {
    font-weight: 400;
    /* Medium/Regular */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(7, 30, 34, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Maximum visibility */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 40%);
}

.hero-content {
    max-width: 500px;
    width: 90%;
    background: rgba(15, 23, 42, 0.35);
    /* More transparent */
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 240px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content .hero-h1 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 0.5rem;
    margin-bottom: 16px;
    opacity: 0.85;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff;
    /* Contrast improved */
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Back to 2 columns for smaller box */
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.feature-item {
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item::before {
    content: '✓';
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #B89300;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Generic Section Styles */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
}


/* Tooltip Logic Styles */
.finance {
    color: var(--accent) !important;
}

/* Glass Effect Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.prices-layout {
    display: grid;
    grid-template-columns: 30% 1fr;
    /* More flexible than fixed px */
    gap: 2rem;
    align-items: start;
}

.map-sticky-wrapper {
    position: sticky;
    top: var(--nav-height);
    border-radius: 20px;
    padding: 1rem;
    overflow: hidden;
    height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-map-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
}

.map-zoom-toggle {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s, opacity 0.3s;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.map-zoom-toggle.visible {
    opacity: 1;
    pointer-events: auto;
}

.map-zoom-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.table-wrapper {
    border-radius: 20px;
    overflow-x: auto;
    /* Changed from hidden to allow scrolling if cut off */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    .prices-layout {
        grid-template-columns: 1fr;
    }

    .map-sticky-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    /* Reduced to fit better */
}

/* 7th column (Calculá) is mobile-only */
th:nth-child(7),
td:nth-child(7) {
    display: none;
}

.calcula-btn {
    display: none;
}

th,
td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}

th {
    background: rgba(15, 23, 42, 0.5);
    color: var(--primary);
    font-weight: 600;
}

tr:not(.row-vendido):not(.row-reservado):not(.manzana-header):hover td {
    background: rgba(255, 255, 255, 0.02);
}

.manzana-header {
    background: rgba(45, 212, 191, 0.1);
}

.manzana-header td {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.6rem 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
}

.highlight-row td {
    background: rgba(45, 212, 191, 0.1) !important;
    border-bottom: 1px solid var(--primary);
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.disponible {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.45);
}

.badge.vendido {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.badge.reservado {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.row-vendido,
.row-reservado {
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.row-vendido td:not(:last-child),
.row-reservado td:not(:last-child) {
    opacity: 0.5;
    transition: var(--transition);
}



.row-vendido strong,
.row-reservado strong,
.row-vendido td:not(:last-child),
.row-reservado td:not(:last-child) {
    font-weight: 400;
    color: var(--text-gray);
}

/* Map Sold State */
.lot-group.vendido .lot-path {
    fill: rgba(244, 63, 94, 0.1);
    stroke: rgba(244, 63, 94, 0.5);
}

.lot-group.reservado .lot-path {
    fill: rgba(245, 158, 11, 0.1);
    stroke: rgba(245, 158, 11, 0.5);
}

/* Partners Section */
.mobile-text {
    display: none;
}

.partners-section {
    background-color: #0f4a54;
    padding: 8rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-5px);
    background: #072124;
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.15);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.partner-card:hover img {
    opacity: 0.25;
    transform: scale(0.92);
}

/* Partner Hover Overlay */
.partner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(7, 30, 34, 0.92);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    text-align: center;
}

.partner-card:hover .partner-overlay {
    opacity: 1;
}

.partner-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    line-height: 1.3;
}

.btn-consultar {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-consultar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.35);
    color: #fff;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-dark);
    padding: 1.5rem 2rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    opacity: 0.5;
    transition: var(--transition);
}

.close-modal:hover {
    opacity: 1;
}

.modal-header {
    margin-bottom: 1.25rem;
}

.modal-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.calc-section {
    margin-bottom: 1.25rem;
}

.calc-section label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calc-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.input-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.input-container span {
    color: var(--text-gray);
    margin-right: 0.5rem;
    font-weight: 600;
}

.input-container input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
    outline: none;
}

/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dual-inputs {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-container.percent {
    justify-content: space-between;
}

.range-container {
    margin: 1rem 0;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: none;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: rgba(45, 212, 191, 0.05);
    border: 1px solid rgba(45, 212, 191, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.res-months {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.res-interest {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.res-value-group {
    display: block;
}

.res-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.res-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.modal-footer {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.modal-footer p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.lot-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

.calc-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
}

.calc-link:hover {
    color: white;
    text-decoration: underline;
    opacity: 0.8;
}

/* Location Section */
.location-section {
    background-color: #ffffff;
    padding: 8rem 0;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 450px;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: rgba(7, 30, 34, 0.92);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-info p {
    margin-top: 1rem;
    color: var(--text-gray);
}

.footer-contact h3 {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.social-link:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.footer-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.25rem;
    background: rgba(123, 165, 64, 0.12);
    border: 1px solid rgba(123, 165, 64, 0.4);
    border-radius: 50px;
    color: #7BA540;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 15px;
}

.footer-pdf-btn i {
    font-size: 1.1rem;
    color: #7BA540;
}

.footer-pdf-btn:hover {
    background: rgba(123, 165, 64, 0.22);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* SVG lot status fill colors (applied after inline SVG injection) */
.lot-available { fill: #7BA540; }
.lot-sold { fill: #9C2723; }
.lot-reserved { fill: #DDB73C; }
.lot-highlighted {
    fill: rgba(50, 50, 50, 0.85) !important;
    stroke: rgba(255, 255, 255, 0.95) !important;
    stroke-width: 1.5 !important;
}

.footer-bottom {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Timeline Section */
.timeline-section {
    background-color: var(--bg-dark);
    padding: 0;
    height: 300vh;
    /* Allow for sticky scroll */
    position: relative;
}

.timeline-sticky {
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.timeline-map-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.timeline-content-wrapper {
    width: 140%;
}

.timeline-content-wrapper .section-header {
    margin-bottom: 0;
}

.timeline-map-box {
    width: 140%;
    max-width: 1200px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.timeline-container {
    position: relative;
    padding: 6rem 0 4.5rem 0;
    margin-top: 0;
}

.timeline-track {
    position: relative;
    width: 95%;
    margin: 0 auto;
    height: 3px;
    border-radius: 2px;
}

.timeline-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E0BB02;
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 2px;
    will-change: width;
}

.timeline-point {
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.point-circle {
    width: 18px;
    height: 18px;
    background-color: var(--text-white);
    border: none;
    border-radius: 50%;
    transition: all 0.4s ease;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.eagle-point {
    width: 49px;
    height: 49px;
    border-width: 0;
    background-color: var(--bg-dark);
}

.point-label {
    position: absolute;
    width: 130px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    left: 50%;
}

.top-label {
    bottom: 38px;
    transform: translateX(-50%) translateY(10px);
}

.bottom-label {
    top: 38px;
    transform: translateX(-50%) translateY(-10px);
}

.timeline-point.active .point-circle {
    background-color: var(--accent);
}

.timeline-point.active .point-circle.eagle-point {
    background-color: var(--bg-dark);
    border-color: transparent;
}

.timeline-point.active .point-label.top-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.timeline-point.active .point-label.bottom-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.label-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.label-dist {
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(7, 30, 34, 0.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.open {
        max-height: 400px;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-top: 1px solid var(--glass-border);
        font-size: 1rem;
        opacity: 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-contact {
        padding-left: 18px;
    }

    th:nth-child(4),
    td:nth-child(4),
    th:nth-child(5),
    td:nth-child(5),
    th:nth-child(6),
    td:nth-child(6) {
        display: none;
    }

    .table-wrapper {
        overflow: hidden;
    }

    #lots-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    th:nth-child(7),
    td:nth-child(7) {
        display: table-cell;
    }

    #lots-table th:nth-child(1),
    #lots-table td:nth-child(1) { width: 20%; }

    #lots-table th:nth-child(2),
    #lots-table td:nth-child(2) { width: 28%; }

    #lots-table th:nth-child(3),
    #lots-table td:nth-child(3) { width: 32%; }

    #lots-table th:nth-child(7),
    #lots-table td:nth-child(7) { width: 20%; text-align: center; }

    #lots-table th,
    #lots-table td {
        font-size: 0.8rem;
        padding: 0.5rem 0.4rem;
        word-break: break-word;
    }

    .calcula-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(224, 187, 1, 0.12);
        border: none;
        cursor: pointer;
        color: #e0bb01;
        margin: 0 auto;
    }

    .calcula-btn .material-symbols-rounded {
        font-size: 22px;
        line-height: 1;
    }

    .sold-dot {
        display: block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #e53935;
        margin: 0 auto;
    }

    .th-calcula {
        color: #e0bb01;
    }

    /* Onboarding tooltip */
    #calcula-tip {
        position: absolute;
        top: 8px;
        right: 4px;
        max-width: 220px;
        background: rgba(5, 40, 40, 0.95);
        border: 1px solid #e0bb01;
        border-radius: 12px;
        padding: 12px 16px;
        z-index: 100;
        opacity: 1;
        transition: opacity 0.4s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .calcula-tip-arrow {
        position: absolute;
        top: -8px;
        right: 22px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #e0bb01;
    }

    #calcula-tip p {
        font-size: 13px;
        color: white;
        margin: 0 0 8px;
        line-height: 1.4;
    }

    .calcula-tip-dismiss {
        background: none;
        border: none;
        color: #e0bb01;
        font-size: 12px;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
    }

    /* Timeline mobile: vertical layout */
    .timeline-content-wrapper,
    .timeline-map-box {
        width: 100%;
    }

    .timeline-map-layout {
        gap: 1.5rem;
    }

    .timeline-map-box {
        height: 180px;
        margin-top: 2rem;
    }

    .timeline-content-wrapper .section-header {
        margin-top: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Uniform section padding on mobile */
    section {
        padding: 4rem 0;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .lot-link {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    /* Calculator modal mobile */
    .modal-content {
        width: 95%;
        padding: 1.25rem 1.25rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-header p {
        font-size: 0.9rem;
    }

    .calc-value {
        font-size: 1.2rem !important;
    }

    .calc-section label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .calc-section {
        margin-bottom: 0.85rem;
    }

    .calc-results {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .result-card {
        padding: 1rem;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem 1rem;
        text-align: left;
    }

    .res-option-title {
        width: 100%;
    }

    .res-col-left {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
    }

    .res-months {
        font-size: 1rem;
        margin-bottom: -6px;
    }

    .res-interest {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .res-interest-pct {
        font-size: 0.95rem;
        color: var(--text-white);
        font-weight: 600;
    }

    .res-interest-lbl {
        font-size: 0.65rem;
        color: var(--text-gray);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .res-value-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex: 1;
        text-align: right;
    }

    .res-value {
        font-size: 1.2rem;
    }

    .res-value-group .res-label {
        font-size: 0.7rem;
    }

    .partners-section {
        padding: 2.5rem 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .map-sticky-wrapper {
        height: auto;
        margin-bottom: 1rem;
        overflow: visible;
    }

    .sticky-map-image {
        height: auto;
    }

    /* Disable sticky scroll behavior */
    .timeline-section {
        height: auto;
        padding: 4rem 0;
    }

    .timeline-sticky {
        position: static;
        height: auto;
        overflow: visible;
    }

    /* Hide horizontal bar */
    .timeline-base,
    .timeline-progress {
        display: none;
    }

    /* Vertical track */
    .timeline-container {
        padding: 1rem 0 1rem 0;
        display: flex;
        justify-content: center;
    }

    .timeline-track {
        height: auto;
        width: auto;
        margin: 0;
        border-left: none;
        padding-left: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        position: relative;
    }

    .timeline-track::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--primary);
        border-radius: 2px;
    }

    .timeline-point:last-child::after {
        content: '';
        position: absolute;
        left: calc(-1.5rem - 2px);
        top: calc(50% + 9px);
        bottom: 0;
        width: 6px;
        background: var(--bg-dark);
    }

    /* Each point becomes a flex row, starts hidden for scroll reveal */
    .timeline-point {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0;
        top: auto;
        left: auto !important;
        width: auto;
        height: auto;
        min-height: 36px;
        opacity: 0;
        transform: translateX(-14px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .timeline-point.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Circle sits centered on the left border */
    .timeline-point .point-circle {
        position: absolute;
        left: calc(-1.5rem - 8px);
        background-color: var(--primary);
        flex-shrink: 0;
    }

    .timeline-point .eagle-point {
        left: calc(-1.5rem - 24px);
        background-color: var(--bg-dark);
    }

    /* Labels always visible */
    .point-label {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        text-align: left;
        width: auto;
        left: auto;
    }

    .top-label,
    .bottom-label {
        top: auto;
        bottom: auto;
    }
}

/* Instagram Section */
.instagram-section {
    background-color: var(--bg-dark);
    padding: 8rem 0;
}

.ig-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.ig-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.ig-widget-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Hide fallback automatically if widget loads */
.ig-widget-container:has(iframe) .ig-fallback-grid,
.ig-widget-container:has(.eapps-instagram-feed) .ig-fallback-grid {
    display: none;
}

.ig-fallback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ig-item {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ig-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ig-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(45, 212, 191, 0.1);
}

.ig-item:hover::before {
    transform: translateX(100%);
}

.ig-overlay-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary);
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px dashed var(--primary);
}

@media (max-width: 600px) {
    .ig-fallback-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Section */
.table-section {
    background-color: var(--bg-light);
}

.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 169, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 0.9rem;
    color: var(--text-white);
}

.commercial-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.commercial-icon {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.commercial-notice strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-white);
}

.commercial-notice p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commercial-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}