:root {
    color-scheme: light;
    --ink: #17201c;
    --text: #2f3a35;
    --muted: #6b766f;
    --line: #d9e0db;
    --paper: #f7f5ef;
    --surface: #ffffff;
    --soft: #eef2ec;
    --accent: #315f4c;
    --accent-dark: #1f3e33;
    --gold: #b4844e;
    --shadow: 0 18px 48px rgba(31, 62, 51, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.site-header {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(247, 245, 239, 0.88);
    border-bottom: 1px solid rgba(217, 224, 219, 0.8);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 16px clamp(18px, 5vw, 76px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand,
.site-nav {
    align-items: center;
    display: flex;
}

.brand {
    gap: 11px;
    font-size: 1.02rem;
    font-weight: 850;
}

.brand-mark {
    align-items: center;
    background: var(--accent-dark);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.site-nav {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    gap: 4px;
    padding: 4px;
}

.site-nav a {
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 760;
    padding: 9px 14px;
}

.site-nav a:hover {
    background: var(--soft);
    color: var(--accent-dark);
}

.language-switcher select {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
    min-height: 40px;
    padding: 8px 12px;
}

.hero {
    display: grid;
    gap: clamp(28px, 6vw, 86px);
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    min-height: calc(100vh - 72px);
    padding: clamp(42px, 7vw, 98px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 64px);
    position: relative;
}

.hero::before {
    background: linear-gradient(135deg, rgba(49, 95, 76, 0.12), rgba(180, 132, 78, 0.08));
    content: "";
    inset: 0 0 auto;
    height: 58%;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hero-copy {
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 14px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.55rem, 6vw, 5.6rem);
    line-height: 1;
    margin-bottom: 24px;
    max-width: 880px;
}

h2 {
    font-size: clamp(1.85rem, 3.6vw, 3.7rem);
    line-height: 1.04;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.12rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

.lead {
    color: var(--text);
    font-size: clamp(1.08rem, 1.6vw, 1.34rem);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-actions,
.property-meta,
.amenity-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 820;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(49, 95, 76, 0.22);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--accent-dark);
}

.hero-photo {
    align-self: stretch;
    min-height: 520px;
    position: relative;
}

.hero-photo::after {
    background: var(--gold);
    border-radius: 8px;
    bottom: -16px;
    content: "";
    height: 34%;
    position: absolute;
    right: -16px;
    width: 42%;
    z-index: -1;
}

.hero-photo img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
    width: 100%;
}

.stats-band {
    background: var(--accent-dark);
    color: #fff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 clamp(18px, 5vw, 76px);
    overflow: hidden;
    border-radius: 8px;
}

.stats-band div {
    background: rgba(255, 255, 255, 0.07);
    padding: 28px clamp(18px, 4vw, 42px);
}

.stats-band strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-band span {
    color: rgba(255, 255, 255, 0.72);
}

.section,
.page-intro {
    padding: clamp(54px, 8vw, 106px) clamp(18px, 5vw, 76px);
}

.two-column {
    display: grid;
    gap: clamp(28px, 6vw, 88px);
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
}

.rich-text {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(31, 62, 51, 0.07);
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.8;
    padding: clamp(22px, 4vw, 40px);
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 30px;
    max-width: 820px;
}

.section-heading p,
.page-intro p,
.detail-hero p,
.property-card p,
.details-grid span,
.property-location {
    color: var(--muted);
}

.section-heading.with-action {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    max-width: none;
}

.skills-grid,
.property-grid,
.details-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card,
.property-card,
.details-grid div,
.detail-panel,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(31, 62, 51, 0.06);
}

.skill-card {
    min-height: 190px;
    padding: 26px;
}

.skill-card h3::before {
    background: var(--gold);
    border-radius: 999px;
    content: "";
    display: block;
    height: 6px;
    margin-bottom: 20px;
    width: 44px;
}

.skill-card p {
    color: var(--muted);
    line-height: 1.65;
}

.gallery-section {
    background: var(--accent-dark);
    color: #fff;
}

.gallery-section .eyebrow {
    color: #d8b98a;
}

.gallery-section .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
}

.photo-grid img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    height: 100%;
    width: 100%;
}

.country-list,
.market-nav {
    display: grid;
    gap: 12px;
}

.country-row,
.market-nav a {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    font-weight: 780;
    justify-content: space-between;
    padding: 17px 18px;
}

.country-row:hover,
.market-nav a:hover {
    border-color: rgba(49, 95, 76, 0.42);
    box-shadow: 0 12px 30px rgba(31, 62, 51, 0.08);
}

.property-card {
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.property-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.property-media {
    display: block;
    position: relative;
}

.property-media img {
    aspect-ratio: 16 / 11;
    width: 100%;
}

.property-badge,
.count-pill,
.amenity-strip span {
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 820;
    padding: 7px 11px;
}

.property-badge {
    bottom: 12px;
    left: 12px;
    position: absolute;
}

.property-body {
    padding: 20px;
}

.property-body h3 a:hover {
    color: var(--accent);
}

.property-location {
    font-size: 0.9rem;
    font-weight: 720;
    margin-bottom: 8px;
}

.property-meta {
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 15px;
}

.property-meta strong {
    color: var(--accent-dark);
    margin-right: auto;
}

.property-meta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.page-intro {
    background: linear-gradient(135deg, rgba(49, 95, 76, 0.14), rgba(180, 132, 78, 0.1));
    padding-bottom: 54px;
}

.page-intro h1 {
    margin-bottom: 18px;
}

.page-intro p {
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 760px;
}

.market-nav {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    padding: 24px clamp(18px, 5vw, 76px) 0;
}

.country-section {
    border-bottom: 1px solid var(--line);
}

.empty-state {
    margin: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 76px);
    padding: 34px;
}

.detail-hero {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 76px) 36px;
}

.back-link {
    color: var(--accent);
    display: inline-block;
    font-weight: 820;
    margin-bottom: 24px;
}

.detail-panel {
    align-self: start;
    display: grid;
    gap: 12px;
    padding: 24px;
    position: sticky;
    top: 98px;
}

.detail-panel strong {
    color: var(--accent-dark);
    font-size: 2rem;
}

.detail-gallery {
    display: grid;
    gap: 14px;
    padding: 0 clamp(18px, 5vw, 76px);
    max-height: 50%;
}

.gallery-stage {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.gallery-stage img {
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    transition: opacity 140ms ease;
    width: 100%;
}

.gallery-stage img.is-changing {
    opacity: 0.92;
}

.gallery-controls {
    align-items: center;
    bottom: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.gallery-controls button,
.gallery-thumbs button {
    cursor: pointer;
    font: inherit;
}

.gallery-controls button {
    align-items: center;
    background: rgba(23, 32, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.7rem;
    height: 44px;
    justify-content: center;
    line-height: 1;
    width: 44px;
}

.gallery-controls span {
    background: rgba(23, 32, 28, 0.78);
    border-radius: 999px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 820;
    min-width: 56px;
    padding: 9px 12px;
    text-align: center;
}

.gallery-fullscreen {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    bottom: 18px;
    color: var(--accent-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 820;
    padding: 10px 14px;
    position: absolute;
    right: 18px;
}

.gallery-thumbs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
}

.gallery-thumbs button {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    opacity: 0.72;
    overflow: hidden;
    padding: 0;
    transition: border-color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.is-active {
    border-color: var(--gold);
    opacity: 1;
    transform: translateY(-1px);
}

.gallery-thumbs img {
    aspect-ratio: 4 / 3;
    height: 100%;
    width: 100%;
}

.has-lightbox {
    overflow: hidden;
}

.image-lightbox {
    align-items: center;
    background: rgba(12, 17, 15, 0.94);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    inset: 0;
    padding: 72px clamp(14px, 3vw, 34px) 28px;
    position: fixed;
    z-index: 100;
}

.lightbox-toolbar {
    display: flex;
    gap: 8px;
    position: fixed;
    right: clamp(14px, 3vw, 34px);
    top: 18px;
    z-index: 102;
}

.lightbox-toolbar button,
.lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 820;
    justify-content: center;
}

.lightbox-toolbar button {
    min-height: 42px;
    min-width: 42px;
    padding: 0 14px;
}

.lightbox-toolbar button:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-canvas {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
}

.lightbox-canvas img {
    cursor: zoom-in;
    max-height: calc(100vh - 120px);
    max-width: 100%;
    object-fit: contain;
    pointer-events: auto;
    touch-action: none;
    transform-origin: center;
    transition: transform 80ms linear;
    user-select: none;
}

.lightbox-canvas img.is-zoomed {
    cursor: grab;
}

.lightbox-canvas img.is-zoomed:active {
    cursor: grabbing;
}

.lightbox-nav {
    align-self: center;
    font-size: 1.5rem;
    height: 52px;
    justify-self: center;
    line-height: 1;
    width: 52px;
}

.details-grid div {
    padding: 21px;
}

.details-grid strong {
    display: block;
    font-size: 1.15rem;
    margin-top: 7px;
}

.amenity-strip {
    padding-top: 0;
}

.site-footer {
    align-items: center;
    background: var(--ink);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px clamp(18px, 5vw, 76px);
}

.site-footer a {
    color: #d8b98a;
    font-weight: 820;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 980px) {
    .hero,
    .two-column,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-photo {
        min-height: 390px;
    }

    .skills-grid,
    .property-grid,
    .details-grid,
    .stats-band,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header,
    .section-heading.with-action,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        text-align: center;
        width: 50%;
    }

    .hero-photo::after {
        display: none;
    }

    .gallery-controls {
        bottom: 12px;
        left: 14px;
        transform: none;
    }

    .gallery-fullscreen {
        bottom: 12px;
        right: 12px;
    }

    .image-lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 70px 10px 18px;
    }

    .lightbox-toolbar {
        left: 10px;
        right: 10px;
        justify-content: flex-end;
    }

    .lightbox-toolbar button {
        min-height: 38px;
        min-width: 38px;
        padding: 0 11px;
    }

    .lightbox-nav {
        font-size: 2rem;
        height: 42px;
        width: 42px;
    }
}
