:root {
    --bg: #f4f1f1;
    --surface: #ffffff;
    --surface-alt: #0c46ba;
    --text: #131313;
    --muted: #6f7481;
    --blue: #0d47bb;
    --red: #ff3030;
    --green: #22a652;
    --border: rgba(10, 27, 61, 0.08);
    --shadow: 0 20px 45px rgba(17, 34, 68, 0.09);
    --radius: 24px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f3efef 0%, #f8f8f8 100%);
}
a { color: inherit; text-decoration: none; }
img, iframe, video { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 241, 241, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 27, 61, 0.05);
}
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-title { font-size: 1.05rem; font-weight: 800; color: #143d9a; text-transform: uppercase; }
.brand-subtitle { font-size: .72rem; letter-spacing: .14em; color: #eb5845; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: #3f4652; font-weight: 600; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link, .whatsapp-btn, .menu-toggle, .btn-primary-red, .btn-primary-blue, .btn-secondary-soft, .btn-whatsapp-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}
.icon-link {
    width: 42px;
    height: 42px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--blue);
}
.whatsapp-btn, .btn-whatsapp-small {
    background: var(--green);
    color: #fff;
    padding: 12px 18px;
}
.btn-primary-red {
    background: linear-gradient(135deg, #ff3c2e, #fe3a6f);
    color: #fff;
    padding: 14px 22px;
    box-shadow: 0 12px 30px rgba(255, 59, 59, 0.25);
}
.btn-primary-blue {
    background: #1048c8;
    color: #fff;
    padding: 12px 22px;
}
.btn-secondary-soft {
    background: #fff;
    color: var(--blue);
    padding: 14px 22px;
    border: 1px solid rgba(13, 71, 187, 0.15);
}
.menu-toggle { display: none; width: 44px; height: 44px; background: #fff; box-shadow: var(--shadow); }

.flash {
    width: min(calc(100% - 32px), 680px);
    margin: 14px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
}
.flash-success { background: rgba(34, 166, 82, 0.12); color: #0d6b33; }
.flash-error { background: rgba(255, 48, 48, 0.12); color: #b01d1d; }

.hero-section { padding: 56px 0 36px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--blue);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(13, 71, 187, 0.08);
    margin-bottom: 18px;
}
.hero-copy h1, .page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: .98;
    max-width: 640px;
}
.hero-description, .page-hero p { color: var(--muted); font-size: 1.02rem; max-width: 580px; }
.hero-badges, .hero-actions, .chip-row, .thumb-row, .card-actions, .social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { margin-bottom: 10px; }
.hero-actions { margin-top: 14px; }
.hero-badges span, .chip {
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: #4c5564;
}
.chip.active { background: #1048c8; color: #fff; }
.hero-visual { display: flex; justify-content: center; }
.portrait-card {
    position: relative;
    width: min(100%, 470px);
    padding: 26px;
    border-radius: 34px;
    background: linear-gradient(180deg, #dfe5e7 0%, #f0f2f3 100%);
    box-shadow: var(--shadow);
}
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.portrait-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 800;
    color: #0b48b7;
    box-shadow: var(--shadow);
}
.portrait-badge span { font-size: .7rem; color: #7a7f8b; }

.about-strip, .cta-strip { background: var(--surface-alt); color: #fff; }
.about-strip { padding: 54px 0; margin-top: 16px; }
.about-strip-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: center;
}
.about-strip h2, .cta-box h2 { margin: 0 0 14px; font-size: 2rem; }
.about-strip p, .cta-box p { color: rgba(255,255,255,.82); }
.text-link { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: underline; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stats-grid article {
    padding: 24px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
}
.stats-grid strong { display: block; font-size: 2rem; margin-bottom: 8px; }

.section-block, .section-spacer { padding: 48px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: 1.8rem; }
.section-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-grid, .property-grid, .media-grid {
    display: grid;
    gap: 22px;
}
.category-grid { grid-template-columns: repeat(6, 1fr); }
.category-card, .property-card, .detail-card, .video-card, .filter-panel {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.category-card {
    padding: 26px 18px;
    text-align: center;
}
.category-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(13, 71, 187, 0.08);
    color: var(--blue);
    font-size: 1.2rem;
}
.category-card h3 { margin: 0 0 10px; font-size: 1rem; }
.category-card p, .property-location, .detail-card p, .clean-list, .empty-state { color: var(--muted); }

.property-grid { grid-template-columns: repeat(3, 1fr); }
.property-card { overflow: hidden; }
.property-image { position: relative; aspect-ratio: 1.1 / .82; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; }
.status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fd3d2c, #ff4f7a);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}
.property-body { padding: 20px; }
.title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}
.title-row h3 { margin: 0; font-size: 1.15rem; }
.title-row strong { color: var(--red); white-space: nowrap; }
.property-meta, .detail-specs, .clean-list, .footer-links { list-style: none; padding: 0; margin: 0; }
.property-meta {
    display: flex;
    gap: 18px;
    color: #384050;
    padding: 14px 0 18px;
}
.video-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.video-card { padding: 14px; scroll-snap-align: start; }
.video-card iframe, .video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
    background: #111;
}
.video-card h3 { margin: 14px 0 0; font-size: 1rem; }
.media-band { background: rgba(255,255,255,.45); }
.cta-strip { padding: 50px 0; margin-top: 26px; }
.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cta-box .btn-primary-red { white-space: nowrap; min-width: 186px; }

.site-footer { background: #f5f5f5; padding: 54px 0 26px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr 1fr;
    gap: 30px;
}
.footer-links li { margin-bottom: 12px; color: #596172; }
.footer-bottom { padding-top: 26px; color: #8690a1; }
.contact-list li { display: flex; gap: 10px; align-items: start; }
.footer-about-text { color: #596172; margin-top: 10px; }

.page-wrap { padding-bottom: 32px; }
.page-hero { padding: 46px 0 12px; }
.simple-page, .contact-grid, .property-detail-grid, .split-list-section { display: grid; gap: 24px; }
.portfolio-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: start;
    padding: 46px 0 16px;
}
.portfolio-hero-copy {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.portfolio-hero-copy h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.12;
    margin: 0 0 12px;
}
.portfolio-hero-copy p { margin: 0 0 18px; color: var(--muted); }
.portfolio-top-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.top-category-chip {
    padding: 12px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.top-category-chip i { font-size: .95rem; }
.top-category-chip.active, .top-category-chip:hover {
    background: #1048c8;
    color: #fff;
}
.simple-page, .property-detail-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
.page-image-card img, .main-detail-image img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow);
    object-fit: cover;
}
.split-list-section, .contact-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
.detail-card { padding: 28px; }
.clean-list li { padding: 10px 0; border-bottom: 1px solid rgba(10, 27, 61, 0.06); }
.filter-panel { padding: 20px; }
.filter-panel-collapsed { display: none; }
.filter-grid, .stack-form {
    display: grid;
    gap: 14px;
}
.filter-grid { grid-template-columns: repeat(4, 1fr); }
.filter-grid input, .filter-grid select, .filter-grid textarea, .stack-form input, .stack-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(10, 27, 61, 0.1);
    background: #fff;
}
.empty-state { padding: 30px; text-align: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); margin-top: 24px; }
.pagination-wrap { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.pagination-wrap a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}
.pagination-wrap a.active { background: var(--blue); color: #fff; }

.detail-sidebar {
    background: #fff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 98px;
}
.detail-price { display: block; font-size: 2rem; color: var(--red); margin-bottom: 18px; }
.detail-specs li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 27, 61, 0.08);
}
.thumb-row img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; border-radius: 18px; margin-top: 18px; }
.rich-text { color: #404856; line-height: 1.75; }

@media (max-width: 1080px) {
    .hero-grid, .about-strip-grid, .simple-page, .property-detail-grid, .footer-grid, .cta-box, .split-list-section, .contact-grid, .portfolio-hero-grid {
        grid-template-columns: 1fr;
    }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio-top-categories { grid-template-columns: repeat(3, 1fr); }
    .property-grid, .media-grid, .filter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        background: #fff;
        border-radius: 20px;
        box-shadow: var(--shadow);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }
    .main-nav.open { display: flex; }
    .header-actions { margin-left: auto; }
    .whatsapp-btn { padding: 10px 14px; font-size: .9rem; }
    .hero-section { padding-top: 30px; }
    .hero-copy h1, .page-hero h1 { font-size: 2.2rem; }
    .portfolio-top-categories { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .category-grid, .property-grid, .media-grid, .filter-grid { grid-template-columns: 1fr; }
    .title-row, .section-head-inline { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
