:root {
    --dark: #08101E;
    --dark-2: #0F1D30;
    --dark-3: #162540;
    --gold: #F5A623;
    --gold-2: #FFBE57;
    --cta: #E8423B;
    --cta-h: #FF5C55;
    --white: #FFFFFF;
    --muted: #7D9AB5;
    --light-bg: #F4F7FB;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(8, 16, 30, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--light-bg);
    color: var(--dark);
    font-family: "Montserrat", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(245, 166, 35, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(8, 16, 30, 0.04), transparent 42%);
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 54px);
    color: var(--white);
    background: rgba(8, 16, 30, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 166, 35, 0.44);
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--dark);
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
    white-space: nowrap;
}

.brand strong {
    font-size: 0.92rem;
    text-transform: uppercase;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 3px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 32px);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 600;
}

.top-nav a {
    transition: color 0.18s ease;
}

.top-nav a:hover {
    color: var(--gold-2);
}

.header-cta,
.soft-link,
.primary-btn,
.ghost-btn,
.floating-whatsapp,
.tour-btn,
.property-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}

.header-cta,
.primary-btn,
.floating-whatsapp,
.property-button {
    background: var(--cta);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(232, 66, 59, 0.28);
}

.header-cta {
    padding: 0 17px;
}

.header-cta:hover,
.primary-btn:hover,
.floating-whatsapp:hover,
.property-button:hover {
    background: var(--cta-h);
}

.header-cta svg,
.soft-link svg,
.primary-btn svg,
.ghost-btn svg,
.floating-whatsapp svg,
.tour-btn svg,
.property-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.hero-shell {
    min-height: 100vh;
    background: var(--dark);
    color: var(--white);
    padding-top: 74px;
}

.hero-intro {
    display: grid;
    gap: 12px;
    padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 64px) 16px;
}

.hero-intro p,
.section-heading p,
.results-toolbar p,
.about-copy>p {
    margin: 0;
    color: var(--gold-2);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-intro h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: calc(100vh - 252px);
}

.hero-card {
    position: relative;
    display: flex;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.hero-card+.hero-card {
    border-left: 1px solid var(--border);
}

.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    filter: saturate(1.05);
    transition: transform 0.55s ease, filter 0.55s ease;
    z-index: -2;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 16, 30, 0.06), rgba(8, 16, 30, 0.92)),
        linear-gradient(90deg, rgba(8, 16, 30, 0.7), transparent 58%);
    z-index: -1;
}

.hero-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.18) contrast(1.02);
}

.hero-content {
    align-self: flex-end;
    width: min(100%, 620px);
    padding: clamp(22px, 5vw, 52px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.pill.gold {
    background: rgba(245, 166, 35, 0.18);
    border-color: rgba(245, 166, 35, 0.42);
    color: var(--gold-2);
}

.hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 4.2vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 14px;
    margin: 22px 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 700;
}

.price-block {
    display: grid;
    gap: 5px;
}

.price-block strong {
    color: var(--gold-2);
    font-size: clamp(1.45rem, 2.6vw, 2.6rem);
}

.price-block span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.search-section,
.results-section,
.about-section,
.detail-section {
    padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.section-heading,
.results-toolbar,
.about-section {
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading h2,
.results-toolbar h2,
.about-copy h2 {
    margin: 10px 0 0;
    color: var(--dark);
    font-size: clamp(1.7rem, 3.4vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 1280px;
    margin: 30px auto 0;
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.filters label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.filters span {
    color: var(--dark-3);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--dark);
    background: #edf2f8;
    border: 1px solid rgba(15, 29, 48, 0.1);
    outline: none;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    grid-column: span 2;
}

.primary-btn,
.ghost-btn,
.soft-link,
.tour-btn,
.property-button {
    min-height: 48px;
    padding: 0 18px;
}

.ghost-btn {
    color: var(--dark-2);
    background: transparent;
    border: 1px solid rgba(15, 29, 48, 0.16);
}

.results-section {
    background: var(--dark-2);
    color: var(--white);
}

.results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.results-toolbar h2 {
    color: var(--white);
}

.soft-link {
    color: var(--dark);
    background: var(--gold);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
}

.property-card {
    display: grid;
    overflow: hidden;
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.property-media {
    position: relative;
    min-height: 244px;
    background: var(--dark-3);
    overflow: hidden;
}

.property-media img {
    width: 100%;
    height: 100%;
    min-height: 244px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.property-card:hover .property-media img {
    transform: scale(1.06);
}

.deal-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    padding: 7px 10px;
    background: var(--cta);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.property-body h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.15;
}

.muted {
    color: #5c6f81;
}

.property-summary {
    margin: 0;
    color: #54677a;
    font-size: 0.9rem;
    line-height: 1.55;
}

.mini-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mini-specs span {
    display: grid;
    gap: 4px;
    padding: 10px 8px;
    background: #f1f5fa;
    color: var(--dark-3);
    font-size: 0.78rem;
    font-weight: 700;
}

.mini-specs strong {
    color: var(--dark);
    font-size: 0.96rem;
}

.detail-section {
    background: var(--white);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(24px, 4vw, 52px);
    max-width: 1280px;
    margin: 0 auto;
}

.gallery {
    position: sticky;
    top: 92px;
    align-self: start;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-control {
    position: absolute;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    color: var(--white);
    background: rgba(8, 16, 30, 0.64);
}

.gallery-control.prev {
    left: 14px;
}

.gallery-control.next {
    right: 14px;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.gallery-strip button {
    min-height: 72px;
    padding: 0;
    border: 2px solid transparent;
    background: var(--dark-3);
    cursor: pointer;
}

.gallery-strip button.is-active {
    border-color: var(--gold);
}

.gallery-strip img {
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.detail-copy {
    display: grid;
    gap: 22px;
}

.detail-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
}

.detail-lead {
    margin: 0;
    color: #50657a;
    line-height: 1.65;
}

.technical-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sheet-item {
    display: grid;
    gap: 7px;
    padding: 15px;
    background: var(--light-bg);
    border: 1px solid rgba(15, 29, 48, 0.08);
}

.sheet-item span {
    color: #60758a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sheet-item strong {
    color: var(--dark);
    line-height: 1.25;
}

.cta-box {
    display: grid;
    gap: 14px;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark), var(--dark-3));
}

.cta-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.tour-btn {
    color: var(--dark);
    background: var(--gold);
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.55fr);
    align-items: center;
    gap: clamp(24px, 5vw, 68px);
}

.about-text {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    color: #41566b;
    line-height: 1.75;
    font-weight: 500;
}

.about-text p {
    margin: 0;
}

.trust-panel {
    display: grid;
    gap: 14px;
}

.trust-panel div {
    display: grid;
    gap: 8px;
    padding: 24px;
    color: var(--white);
    background: var(--dark);
}

.trust-panel strong {
    color: var(--gold-2);
    font-size: 2.4rem;
}

.trust-panel span {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 600;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 25;
    min-height: 54px;
    padding: 0 20px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .top-nav {
        display: none;
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-wrap,
    .about-section {
        grid-template-columns: 1fr;
    }

    .gallery {
        position: relative;
        top: auto;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 10px 14px;
    }

    .brand small,
    .header-cta span {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero-shell {
        padding-top: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-card {
        min-height: calc(100vh - 60px);
    }

    .hero-card+.hero-card {
        border-left: 0;
    }

    .hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters,
    .property-grid,
    .technical-sheet {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
        display: grid;
    }

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .floating-whatsapp {
        left: 14px;
        right: 14px;
        bottom: 12px;
    }

    body {
        padding-bottom: 74px;
    }
}