/* ==========================================================================
   Ergo Immo — noir & or
   ========================================================================== */
:root {
	--ink: #0b0b0c;
	--graphite: #141416;
	--graphite-2: #1b1b1e;
	--gold: #c8a96a;
	--gold-light: #dcc590;
	--gold-deep: #c8a96a;   /* gold for text on light backgrounds (contrast) */
	--stone: #101012;
	--paper: #0b0b0c;
	--text: #efe9de;
	--muted: #9a968e;
	--muted-dark: #a9a49b;
	--line-dark: rgba(255, 255, 255, .12);
	--line-light: rgba(255, 255, 255, .08);

	--f-display: "Inter", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--r-sm: 10px;
	--r-md: 18px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); font-weight: 500; font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; }
.hp { position: absolute; inset-inline-start: -9999px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.ico { flex: none; }

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.5rem; border: 1px solid transparent; border-radius: var(--r-sm); font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn .ico { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--line { border-color: var(--gold); color: var(--gold-light); }
.btn--line:hover { background: var(--gold); color: var(--on-gold); }
.btn--dark-line { border-color: var(--ink); color: var(--ink); }
.btn--dark-line:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

.tag { display: inline-block; padding: .25rem .65rem; border-radius: 2px; font-size: .78rem; font-weight: 500; letter-spacing: .03em; background: rgba(13, 13, 14, .78); color: #fff; backdrop-filter: blur(6px); }
.tag--gold { background: var(--gold); color: var(--on-gold); }
.tag--outline { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); }

/* Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 1px solid var(--line-dark); transition: background .3s var(--ease), border-color .3s var(--ease); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.site-header--overlay.is-scrolled { background: rgba(13, 13, 14, .94); border-color: var(--line-dark); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--gold); }
.brand__logo { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-size: 1.5rem; color: #fff; letter-spacing: .06em; }
.brand__tag { font-size: .75rem; color: var(--muted-dark); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a { position: relative; display: block; padding: .5rem 0; font-size: .95rem; text-decoration: none; color: rgba(255, 255, 255, .86); transition: color .2s; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover, .nav__list .current-menu-item > a { color: #fff; }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nav__list .sub-menu { display: none; }
.nav__cta { min-height: 42px; padding: .5rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; position: relative; z-index: 60; }
	.nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem; padding: 6rem var(--gutter) 3rem; background: var(--ink); transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden; }
	.nav__list { flex-direction: column; gap: .4rem; }
	.nav__list a { font-family: var(--f-display); font-size: 2rem; }
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.nav-open { overflow: hidden; }
}

/* Hero ---------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--ink); padding-bottom: 0; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 14, .92) 0%, rgba(13, 13, 14, .62) 45%, rgba(13, 13, 14, .15) 100%), linear-gradient(0deg, rgba(13, 13, 14, .85) 0%, rgba(13, 13, 14, 0) 40%); }
.hero__inner { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding-top: 120px; padding-bottom: 150px; }
.hero__content { max-width: 640px; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.005em; margin-bottom: 1.6rem; animation: rise 1s var(--ease) both; }
.hero__text { max-width: 48ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); font-weight: 500; color: rgba(255, 255, 255, .82); margin-bottom: 2.2rem; animation: rise 1s .12s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: rise 1s .24s var(--ease) both; }
.hero__search { position: relative; z-index: 2; transform: translateY(50%); margin-top: -50px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Search form --------------------------------------------------------- */
.search { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; gap: 0; background: var(--graphite); border: 1px solid var(--line-dark); border-top: 2px solid var(--gold); border-radius: var(--r-md); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden; }
.search--bar { grid-template-columns: repeat(5, 1fr) auto; }
.search__field { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.4rem; border-right: 1px solid var(--line-dark); min-width: 0; }
.search__field label { font-size: .8rem; color: var(--gold-light); letter-spacing: .02em; }
.search__field select, .search__field input { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: .2rem 1.4rem .2rem 0; color: #fff; font: inherit; font-size: 1rem; }
.search__field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c6a15b' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.search__field select option { color: var(--text); }
.search__field input::placeholder { color: rgba(255, 255, 255, .45); }
.search__field select:focus, .search__field input:focus { outline: none; }
.search__field:focus-within { background: var(--graphite-2); }
.search__submit { height: 100%; min-height: 78px; border-radius: 0; padding: 0 2rem; }
@media (max-width: 1020px) {
	.search, .search--bar { grid-template-columns: 1fr 1fr; }
	.search__field { border-bottom: 1px solid var(--line-dark); }
	.search__submit { grid-column: 1 / -1; min-height: 56px; }
}
@media (max-width: 560px) {
	.search, .search--bar { grid-template-columns: 1fr; }
	.search__field { border-right: 0; }
}

/* Sections ------------------------------------------------------------ */
.section { padding: var(--section) 0; }
.section--light { background: var(--stone); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { max-width: 380px; }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.section-text { color: var(--muted); margin-bottom: 1.8rem; }
.section--dark .section-text { color: var(--muted-dark); }

/* Stats --------------------------------------------------------------- */
.stats { background: var(--stone); padding: calc(var(--section) * .5 + 60px) 0 calc(var(--section) * .4); border-bottom: 1px solid var(--line-light); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: .5rem 1.5rem; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--gold-deep); }
.stat__label { display: block; margin-top: .4rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 1020px) { .stats { padding-top: calc(var(--section) * .5 + 190px); } }
@media (max-width: 560px) { .stats { padding-top: calc(var(--section) * .5 + 330px); } }

/* Featured mosaic ----------------------------------------------------- */
.featured__grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1.35fr 1fr .85fr; grid-template-rows: 280px 280px; }
.mosaic .card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.mosaic .card:nth-child(2) { grid-column: 2; grid-row: 1; }
.mosaic .card:nth-child(3) { grid-column: 2; grid-row: 2; }
.mosaic .card:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.mosaic--1 { grid-template-columns: 1fr; }
.mosaic--2 { grid-template-columns: 1.3fr 1fr; }
.mosaic--2 .card:nth-child(2) { grid-row: 1 / 3; }
.mosaic--3 { grid-template-columns: 1.35fr 1fr; }
/* Overlay cards in the mosaic */
.mosaic .card__link { position: relative; height: 100%; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--ink); color: #fff; }
.mosaic .card__media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.mosaic .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 14, .92) 0%, rgba(13, 13, 14, .55) 38%, rgba(13, 13, 14, 0) 65%); }
.mosaic .card__link:hover img { transform: scale(1.04); }
.mosaic .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.4rem; background: none; }
.mosaic .card__title { font-size: 1.35rem; }
.mosaic .card--large .card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mosaic .card__price { color: var(--gold-light); }
.mosaic .card__place { color: rgba(255, 255, 255, .7); }
.mosaic .specs { display: none; }
.mosaic .card--large .specs { display: flex; color: rgba(255, 255, 255, .8); border-color: var(--line-dark); }
@media (max-width: 1020px) {
	.featured__grid { grid-template-columns: 1fr; }
	.section-head { max-width: 560px; }
	.mosaic, .mosaic--2, .mosaic--3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 300px; }
	.mosaic .card:nth-child(n) { grid-column: auto; grid-row: auto; }
	.mosaic .card:nth-child(1) { grid-column: 1 / -1; grid-row: span 1; }
	.mosaic--1 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .mosaic, .mosaic--2, .mosaic--3 { grid-template-columns: 1fr; } }

/* Standard cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-light); transition: border-color .25s; }
.card__link:hover { border-color: var(--gold); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tags { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 1; }
.card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__price { order: -1; margin: 0 0 .35rem; font-weight: 500; font-size: 1.05rem; color: var(--gold-deep); }
.card__title { font-size: 1.4rem; margin-bottom: .45rem; }
.card__place { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .92rem; color: var(--muted); }
.card__place .ico { width: 16px; height: 16px; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: .9rem; color: var(--muted); }
.card__place + .specs { margin-top: 1rem; }
.specs li { display: inline-flex; align-items: center; gap: .4rem; }
.specs .ico { width: 18px; height: 18px; color: var(--gold-deep); }
.mosaic .specs .ico { color: var(--gold); }

/* Services ------------------------------------------------------------ */
.services__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.services .section-head { max-width: none; display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 1rem 4rem; align-items: end; }
.services .section-head .section-title { margin: 0; max-width: 16ch; }
.services .section-head .section-text { margin-bottom: 1.2rem; }
.services .section-head .btn { justify-self: start; }
.services .section-head > :not(.section-title) { grid-column: 2; }
.services .section-head .section-title { grid-row: 1 / 3; }
.services__list { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.service { padding: 2rem 1.5rem; border-left: 1px solid var(--line-dark); transition: background .3s; }
.service:first-child { border-left: 0; }
.service:hover { background: var(--graphite); }
.service__icon { display: inline-flex; color: var(--gold); margin-bottom: 1.4rem; }
.service__icon .ico { width: 34px; height: 34px; stroke-width: 1.1; }
.service__title { font-size: 1.35rem; margin-bottom: .6rem; }
.service__text { font-size: .94rem; color: var(--muted-dark); margin: 0; }
@media (max-width: 760px) { .services .section-head { grid-template-columns: 1fr; } .services .section-head > * { grid-column: 1 !important; grid-row: auto !important; } }
@media (max-width: 900px) { .services__list { grid-template-columns: 1fr 1fr; } .service { border-top: 1px solid var(--line-dark); } .service:nth-child(odd) { border-left: 0; } .service:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 560px) { .services__list { grid-template-columns: 1fr; } .service { border-left: 0; } .service:nth-child(2) { border-top: 1px solid var(--line-dark); } }

/* Process ------------------------------------------------------------- */
.process__title { max-width: 18ch; margin-bottom: 3.5rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold) 0, var(--gold) 40%, var(--line-light) 100%); }
.step { position: relative; counter-increment: step; padding-top: 4.2rem; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-family: var(--f-display); font-size: 1.15rem; }
.step__title { font-size: 1.4rem; margin-bottom: .5rem; }
.step__text { font-size: .95rem; color: var(--muted); margin: 0; max-width: 28ch; }
@media (max-width: 900px) {
	.steps, .steps--4, .steps--3 { grid-template-columns: 1fr; gap: 0; }
	.steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), var(--line-light)); }
	.step { padding: 0 0 2.2rem 4.4rem; min-height: 45px; }
}

/* Journal ------------------------------------------------------------- */
.journal__grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(2rem, 4vw, 4rem); }
.journal__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card a { display: block; text-decoration: none; }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--graphite); margin-bottom: 1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card a:hover img { transform: scale(1.04); }
.post-card__date { display: block; font-size: .85rem; color: var(--gold); margin-bottom: .35rem; }
.post-card__title { font-size: 1.3rem; }
.post-card--light .post-card__date { color: var(--gold-deep); }
.post-card__excerpt { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 1020px) { .journal__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .journal__list { grid-template-columns: 1fr; } }

/* Contact ------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__intro .section-head, .contact__intro { max-width: 460px; }
.contact-list { display: grid; gap: .9rem; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .ico { width: 20px; height: 20px; color: var(--gold); margin-top: .2rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list--dark .ico { color: var(--gold-deep); }
.contact-list--dark a:hover { color: var(--gold-deep); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.4rem); }
.form__row { margin: 0 0 1rem; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 480px) { .form__pair { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; }
.form input, .form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line-light); border-radius: var(--r-sm); background: var(--paper); font: inherit; color: var(--text); transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(198, 161, 91, .2); }
.form textarea { resize: vertical; }
.form-note { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .95rem; }
.form-note p { margin: 0; }
.form-note--ok { background: #eef5ec; color: #23502a; }
.form-note--ok .ico { color: #2f7a3a; }
.form-note--err { background: #fbecea; color: #7a2a22; }

/* Page head (inner pages) ---------------------------------------------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head--tall { padding: clamp(5rem, 12vw, 9rem) 0; }
.page-head__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-head__text { margin-top: 1rem; color: var(--muted-dark); max-width: 60ch; }
.page-head__text + .btn { margin-top: 1rem; }
.page-head__meta { display: block; color: var(--gold); margin-bottom: .8rem; }

.filters { background: var(--ink); padding-bottom: 2.5rem; }
.listing { padding-top: 3rem; }
.listing__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.listing__count { margin: 0; font-family: var(--f-display); font-size: 1.4rem; }
.listing__sort { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.listing__sort select { padding: .5rem .8rem; border: 1px solid var(--line-light); border-radius: var(--r-sm); background: #fff; font: inherit; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border: 1px solid var(--line-light); border-radius: var(--r-sm); text-decoration: none; background: #fff; }
.pagination .page-numbers.current { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--gold-deep); }

.empty { padding: 3rem; text-align: center; border: 1px dashed rgba(13, 13, 14, .25); border-radius: var(--r-md); background: rgba(255, 255, 255, .5); }
.empty p { max-width: 52ch; margin: 0 auto 1.4rem; }
.empty .btn { margin: .25rem; }

/* Listing + contact share a background: separate them */
.listing + .contact { border-top: 1px solid var(--line-light); }

/* Single property ------------------------------------------------------ */
.property { background: var(--paper); padding: 2rem 0 var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.8rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.property__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; }
.property__tags { display: flex; gap: .4rem; margin-bottom: .8rem; }
.property__tags .tag--outline { color: var(--gold-deep); border-color: var(--gold-deep); }
.property__title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 22ch; }
.property__place { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 0; color: var(--muted); }
.property__price { margin: 0; font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--gold-deep); white-space: nowrap; }

.gallery { margin-bottom: 3rem; }
.gallery__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.gallery__slide.is-active { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 13, 14, .65); color: #fff; backdrop-filter: blur(6px); transition: background .2s; }
.gallery__nav:hover { background: var(--gold); color: var(--on-gold); }
.gallery__nav--prev { left: 1rem; }
.gallery__nav--next { right: 1rem; }
.gallery__count { position: absolute; right: 1rem; bottom: 1rem; padding: .3rem .7rem; border-radius: 2px; background: rgba(13, 13, 14, .7); color: #fff; font-size: .85rem; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery__thumb { flex: none; width: 110px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; opacity: .6; background: none; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--gold); }

.property__layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 1020px) { .property__layout { grid-template-columns: 1fr; } }
.spec-grid { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); margin-bottom: 3rem; }
.spec-grid li { flex: 1 1 150px; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: 1.1rem 1.2rem; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.spec-grid .ico { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--gold-deep); }
.spec-grid__label { font-size: .82rem; color: var(--muted); }
.spec-grid__value { font-weight: 500; }
.property__section { margin-bottom: 3rem; }
.property__section h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.prose { max-width: 70ch; line-height: 1.75; }
.prose h2, .prose h3 { margin: 2rem 0 .8rem; }
.prose a { color: var(--gold-deep); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1em; }
.prose img { border-radius: var(--r-md); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem 1.5rem; }
.features li { display: flex; align-items: center; gap: .55rem; }
.features .ico { width: 18px; height: 18px; color: var(--gold-deep); }
.video, .map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { aspect-ratio: 16 / 8; filter: grayscale(.35) contrast(1.05); }

.panel--sticky { position: sticky; top: 110px; }
.panel__price { font-family: var(--f-display); font-size: 2rem; color: var(--gold-deep); margin: 0; }
.panel__ref { font-size: .88rem; color: var(--muted); margin: .2rem 0 0; }
.panel__quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.4rem 0 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line-light); }
.panel__title { font-size: 1.5rem; margin-bottom: 1.2rem; }

.related .section-title { margin-bottom: 2rem; }

/* Article -------------------------------------------------------------- */
.article__cover { margin-top: -2rem; }
.article__cover img { border-radius: var(--r-md); }
.article__body { padding-top: 3rem; padding-bottom: var(--section); }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.site-footer__about p { max-width: 38ch; margin: 1.2rem 0 1.5rem; color: var(--muted-dark); }
.brand--footer .brand__logo { max-height: 64px; }
.site-footer__title { font-size: 1.25rem; color: #fff; margin-bottom: 1.2rem; }
.site-footer__links li { margin-bottom: .55rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--gold-light); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line-dark); border-radius: 2px; text-decoration: none; font-size: .88rem; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--gold); color: var(--gold-light); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .88rem; color: var(--muted-dark); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-decoration: none; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); transition: background .2s, transform .2s; }
.wa-float:hover { background: var(--gold-light); transform: translateY(-2px); }
.wa-float .ico { width: 28px; height: 28px; stroke-width: 1.6; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .88rem; color: var(--muted); }

/* Form errors */
.form-note--err ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.form input[aria-invalid="true"] { border-color: #b3443a; }

/* Luxury dark cinematic layer ----------------------------------------- */
body { font-size: 1rem; }
h1, h2, h3 { font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.15; }
.hero__title { font-family: "Dancing Script", "Brush Script MT", cursive; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.1; font-size: clamp(3rem, 7.5vw, 6.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.section-title::after { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin-top: 1.2rem; }
.card__title, .service__title, .step__title, .post-card__title { font-size: 1.05rem; }
.nav__list a, .btn, .tag, .search__field label, .brand__tag, .stat__label, .crumbs { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.btn { border-radius: 999px; min-height: 44px; padding: .6rem 1.5rem; }
.btn--dark-line { border-color: var(--gold); color: var(--gold-light); }
.btn--dark-line:hover { background: var(--gold); color: var(--on-gold); }
.tag { border-radius: 999px; background: rgba(11, 11, 12, .55); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); }
.tag--gold { background: var(--gold); border-color: var(--gold); }
.site-header--overlay.is-scrolled { background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px); }
.nav__list .current-menu-item > a { color: var(--gold-light); }
.hero__bg { filter: saturate(.85) contrast(1.05); }
.hero__bg::after { background: linear-gradient(90deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.55) 48%, rgba(11,11,12,.2) 100%), linear-gradient(0deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,0) 45%); }
.search { background: rgba(20, 20, 22, .72); backdrop-filter: blur(16px); border-top: 1px solid var(--line-dark); border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
.search__submit { border-radius: 0 22px 22px 0; }
.search__field select option { color: #111; }
.section--dark { background: var(--paper); }
.section + .section, .stats + .section { border-top: 1px solid var(--line-light); }
.card__link, .panel { background: var(--graphite); border-color: var(--line-light); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.card__link:hover { border-color: rgba(200, 169, 106, .5); }
.card__media img { transition: transform 1.2s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.04); }
.services__list { background: var(--graphite); }
.service__icon .ico, .specs .ico { stroke-width: 1.1; }
.step::before { background: transparent; border: 1px solid var(--gold); }
.form input, .form textarea, .listing__sort select, .pagination .page-numbers { background: var(--graphite-2); color: var(--text); border-color: var(--line-light); }
.pagination .page-numbers.current { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.empty { background: var(--graphite); border-color: rgba(255,255,255,.15); }
.form-note--ok { background: rgba(47,122,58,.15); color: #b6dcbb; }
.form-note--err { background: rgba(179,68,58,.15); color: #f0b9b3; }
.socials a { border-radius: 999px; }
@media (max-width: 1020px) { .search__submit { border-radius: 0 0 22px 22px; } }

/* Bolder titles */
h1, h2, h3 { font-weight: 700; }
.hero__title, .page-head__title, .property__title { font-weight: 700; letter-spacing: .04em; }
.section-title { font-weight: 700; }
.card__title, .service__title, .step__title, .post-card__title, .site-footer__title, .panel__title, .property__section h2 { font-weight: 600; }
.stat__num, .property__price, .panel__price { font-weight: 600; }
.brand__name { font-weight: 700; }

/* Public PDF downloads on a listing */
.doc-links { display: grid; gap: .6rem; }
.doc-links a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); background: var(--graphite); text-decoration: none; transition: border-color .2s; }
.doc-links a:hover { border-color: var(--gold); }
.doc-links .ico { width: 22px; height: 22px; color: var(--gold); }
.doc-links span { flex: 1; font-weight: 600; }
.doc-links small { color: var(--muted-dark); }

/* Infinite scroll */
.more { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 64px; margin-top: 2.2rem; color: var(--muted-dark); font-size: .9rem; }
.more__spin { width: 20px; height: 20px; border: 2px solid var(--line-dark); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.more__spin[hidden], .more__retry[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cards > .is-new { animation: rise .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .more__spin { animation-duration: 2s; } .cards > .is-new { animation: none; } }
/* Searchable dropdown (combobox). The native select stays underneath, hidden. */
.cb { position: relative; }
.cb__native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.cb__btn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; padding: .2rem 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.cb__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.cb__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb__btn.is-placeholder .cb__val { color: rgba(255, 255, 255, .8); }
.cb__chev { flex: none; color: var(--gold); transition: transform .2s; }
.cb__btn[aria-expanded="true"] .cb__chev { transform: rotate(180deg); }
.cb__panel { position: fixed; z-index: 200; display: flex; flex-direction: column; max-height: min(360px, 60vh); background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .75); overflow: hidden; animation: cbIn .14s ease-out; }
.cb__panel[hidden] { display: none; }
@keyframes cbIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cb__panel.is-up { animation-name: cbInUp; }
@keyframes cbInUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cb__search { flex: none; width: 100%; padding: .8rem 1rem .8rem 2.6rem; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c8a96a' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem 50%; color: #fff; font: inherit; font-size: .95rem; }
.cb__search::placeholder { color: rgba(255, 255, 255, .45); }
.cb__search:focus { outline: none; }
.cb__list { list-style: none; margin: 0; padding: .35rem; overflow-y: auto; overscroll-behavior: contain; }
.cb__opt { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .75rem; border-radius: 9px; color: rgba(255, 255, 255, .88); font-size: .95rem; cursor: pointer; }
.cb__opt[hidden] { display: none; }
.cb__opt.is-child { padding-left: 1.6rem; color: rgba(255, 255, 255, .72); }
.cb__opt.is-empty { color: rgba(255, 255, 255, .6); }
.cb__opt.is-active { background: rgba(200, 169, 106, .14); color: #fff; }
.cb__opt.is-selected { color: var(--gold-light); font-weight: 600; }
.cb__tick { flex: none; color: var(--gold); opacity: 0; }
.cb__opt.is-selected .cb__tick { opacity: 1; }
.cb__none { margin: 0; padding: 1rem; text-align: center; color: rgba(255, 255, 255, .55); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .cb__panel { animation: none; } .cb__chev { transition: none; } }.cb__list { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; color-scheme: dark; }
.cb__list::-webkit-scrollbar { width: 8px; }
.cb__list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 8px; }
.cb__list::-webkit-scrollbar-track { background: transparent; }

/* Hero eyebrow: shown by the light theme only */
.hero__eyebrow { display: none; }
.hero__title-main, .hero__title-accent { display: block; }

/* Phones: a blurred header becomes the containing block of the fixed slide-out menu (menu clipped to the
   header, page scrolls sideways). Use a solid background there instead. */
@media (max-width: 1020px) {
	.site-header, .site-header--overlay.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
	.site-header--overlay.is-scrolled { background: rgba(11, 11, 12, .94); }
}

/* Lazy loading on scroll: image fade-in + reveal. Hidden states exist only once the script has marked an element. */
img.lazy-fade { opacity: 0; transition: opacity .6s var(--ease); }
img.lazy-fade.is-in { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.card__link:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { img.lazy-fade, .js .reveal { opacity: 1; transform: none; transition: none; } }
/* Back to top: sits right above the WhatsApp button (or in its place when there is none) */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 39; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--graphite); color: var(--gold); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s; }
.to-top[hidden] { display: none; }
.to-top--above { bottom: calc(1.25rem + 58px + .75rem); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--on-gold); }
.to-top .ico { width: 22px; height: 22px; stroke-width: 2; }
@media (max-width: 560px) { .to-top { right: 1rem; } .to-top--above { bottom: calc(1rem + 58px + .7rem); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; transform: none; } }
/* Language switcher: mirrors the WhatsApp button on the opposite side, menu opens upward */
.lang { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 40; }
.lang__btn { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--graphite); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55); cursor: pointer; padding: 0; transition: transform .2s var(--ease); }
.lang__btn:hover { transform: translateY(-2px); }
.lang__btn .flag, .lang__menu .flag { object-fit: cover; }
.lang__btn .flag { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang__menu { position: absolute; left: 0; bottom: calc(100% + .6rem); margin: 0; padding: .4rem; list-style: none; min-width: 11rem; background: var(--graphite); border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); }
.lang__menu[hidden] { display: none; }
.lang__menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text, inherit); text-decoration: none; font-size: .92rem; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.lang__menu .flag { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) { .lang { left: 1rem; bottom: 1rem; } }
