/* Vibe Residence – public website. Colors come from the admin Color Palette (CSS variables in the header). */
:root {
    --primary: #e0402a;
    --accent: #0fb5ae;
    --dark: #0e1b2c;
    --bg: #fbf8f3;
    --text: #1b2533;
    --surface: #fff;
    --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
    --line: color-mix(in srgb, var(--text) 12%, transparent);
    --tint: color-mix(in srgb, var(--accent) 7%, var(--bg));
    --primary-soft: color-mix(in srgb, var(--primary) 12%, #fff);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px -12px rgb(14 27 44 / .18);
    --shadow-lg: 0 30px 60px -20px rgb(14 27 44 / .35);
    --header-h: 76px;
    --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::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 { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, .h1 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--dark); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: color-mix(in srgb, var(--dark) 80%, var(--primary)); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-ghost-light { border-color: rgb(255 255 255 / .7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--dark); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--primary-soft); color: color-mix(in srgb, var(--primary) 80%, #000); }
.tag-muted { background: #eef0f2; color: #5b6573; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s, color .3s; }
.over-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.over-hero .site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--text); border-color: var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px -8px rgb(224 64 42 / .8); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 800 1.45rem/1 var(--font-display); letter-spacing: .06em; }
.brand-text small { font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.brand-logo { max-height: 48px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .96rem; transition: background-color .2s; }
.nav-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-link.active { background: color-mix(in srgb, currentColor 12%, transparent); font-weight: 700; }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: 4px 7px; border-radius: 6px; text-decoration: none; opacity: .7; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; padding: 12px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero slider */
.hero { position: relative; min-height: min(94vh, 900px); min-height: min(94svh, 900px); display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.hero-plain { min-height: 70vh; background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 50%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 45%), var(--dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; z-index: -2; }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slide.is-active .hero-img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 16 28 / .55) 0%, rgb(8 16 28 / 0) 28%, rgb(8 16 28 / .1) 55%, rgb(8 16 28 / .78) 100%), linear-gradient(90deg, rgb(8 16 28 / .45), transparent 65%); }
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.eyebrow-light { color: #fff; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eyebrow-light .icon { color: #ffd166; }
.hero-text { display: none; max-width: 760px; }
.hero-text.is-active { display: block; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); max-width: 46ch; color: rgb(255 255 255 / .92); margin: 0; }
.hero-dots { display: flex; gap: 8px; margin-top: 30px; }
.hero-dots button { width: 46px; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.hero-dots span { display: block; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .35); overflow: hidden; position: relative; }
.hero-dots .is-active span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: progress var(--slide-ms, 6000ms) linear forwards; }
.hero.paused .hero-dots .is-active span::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Search bar */
.search-wrap { position: relative; z-index: 5; margin-top: -54px; }
.search-bar { display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 8px; align-items: end; padding: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.search-bar label { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.search-bar label > span { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search-bar input, .search-bar select { border: 0; background: transparent; padding: 2px 0; font: 600 1rem var(--font); color: var(--text); width: 100%; min-height: 28px; }
.search-bar input:focus, .search-bar select:focus { outline: none; }
.search-bar label:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-bar .btn { height: 100%; min-height: 60px; border-radius: var(--radius); }
.search-inline { box-shadow: var(--shadow); margin-bottom: 32px; }

/* Marquee */
.marquee { overflow: hidden; background: var(--dark); color: #fff; padding: 14px 0; margin-top: 56px; transform: rotate(-1.2deg); box-shadow: 0 0 0 1px var(--dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 700 clamp(1rem, 2vw, 1.3rem) var(--font-display); letter-spacing: .04em; padding-right: 2.5em; white-space: nowrap; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #dfe6ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .lead { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section-head.light .lead { color: #b9c4d0; }
.section-head.light .eyebrow { color: color-mix(in srgb, var(--primary) 70%, #fff); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); font-weight: 500; }
.prose img { border-radius: var(--radius); margin: 1em 0; }

/* Intro */
.intro { padding-top: 110px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.intro-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.intro-text .prose { color: color-mix(in srgb, var(--text) 85%, var(--bg)); margin-bottom: 28px; }
.intro-side { display: flex; flex-direction: column; gap: 16px; }
.intro-photo img, .intro-photo .ph { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(1.9rem, 3.2vw, 2.6rem)/1 var(--font-display); color: var(--primary); letter-spacing: -.03em; }
.stat:nth-child(2n) strong { color: var(--accent); }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 500; }

/* Apartment cards */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.apt-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.apt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.apt-card-media { display: block; overflow: hidden; }
.apt-card-media img, .apt-card-media .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .6s; }
.apt-card:hover .apt-card-media img { transform: scale(1.05); }
.apt-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apt-card h3 { margin: 0; font-size: 1.45rem; }
.apt-card h3 a { text-decoration: none; }
.apt-card-tagline { color: var(--muted); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-size: .92rem; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts .icon { color: var(--accent); }
.amen-mini { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.amen-mini li { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--dark); }
.apt-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.price strong { font: 800 1.6rem/1 var(--font-display); color: var(--dark); }
.price small { color: var(--muted); font-size: .85rem; }
.apt-card.is-unavailable { opacity: .7; }
.apt-grid-single { grid-template-columns: 1fr; }
.apt-grid-single .apt-card { display: grid; grid-template-columns: 1.15fr 1fr; }
.apt-grid-single .apt-card-media img { height: 100%; }
.apt-grid-single .apt-card-body { padding: 40px; justify-content: center; }
.apt-grid-single h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Amenities */
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.amen-grid li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; transition: border-color .2s, transform .2s; }
.amen-grid li:hover { border-color: var(--accent); transform: translateY(-2px); }
.amen-grid .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 70%, var(--dark)); }

/* Extras */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.extra-card { display: grid; grid-template-columns: 1fr 1fr; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-lg); overflow: hidden; }
.extra-media img, .extra-media .ph { aspect-ratio: 4 / 3; height: 100%; width: 100%; object-fit: cover; }
.extra-body { padding: 26px; display: flex; flex-direction: column; }
.extra-icon .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--primary); color: #fff; margin-bottom: 14px; }
.extra-body p { color: #b9c4d0; font-size: .96rem; }
.extra-price { margin: auto 0 0; color: #fff !important; }
.extra-price strong { font: 800 1.6rem var(--font-display); color: #ffd166; }

/* Explore */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.explore-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--dark); min-height: 380px; display: flex; align-items: flex-end; isolation: isolate; }
.explore-card img, .explore-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.explore-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(8 16 28 / .88)); }
.explore-card:hover img { transform: scale(1.07); }
.explore-body { padding: 22px; }
.explore-body h3 { color: #fff; margin-bottom: 6px; }
.explore-body p { margin: 0; font-size: .92rem; color: rgb(255 255 255 / .85); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.15); }

/* Location */
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.address-line { display: flex; gap: 10px; font-weight: 600; }
.address-line .icon { color: var(--primary); margin-top: 4px; }
.distance-list { list-style: none; margin: 0; padding: 0; }
.distance-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.distance-list strong { color: var(--primary); white-space: nowrap; }
.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, #fff), color-mix(in srgb, var(--primary) 18%, #fff)); box-shadow: var(--shadow); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box.loaded .map-placeholder { display: none; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.map-placeholder > .icon { width: 54px; height: 54px; color: var(--primary); }
.map-placeholder p { max-width: 34ch; margin: 0; font-size: .92rem; color: var(--text); }
.small-link { font-size: .88rem; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, #ff9a3c) 60%, color-mix(in srgb, var(--primary) 40%, #ffc857) 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 52ch; opacity: .95; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--dark); color: #b9c4d0; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-family: var(--font); }
.brand-light { color: #fff; margin-bottom: 16px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 9px; }
.plain a { text-decoration: none; }
.plain a:hover { color: #fff; text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; }
.socials a:hover { background: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a, .footer-links .link-btn { color: #b9c4d0; }
.credit a { color: #fff; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; font-size: .9rem; border: 1px solid var(--line); }
.cookie-banner p { margin-bottom: 12px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: rgb(6 12 22 / .96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(6 12 22 / .9); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); border-radius: 10px; object-fit: contain; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgb(255 255 255 / .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; font-size: .9rem; }

/* Placeholder (no image yet) */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff), color-mix(in srgb, var(--primary) 18%, #fff)); color: color-mix(in srgb, var(--dark) 40%, transparent); aspect-ratio: 4 / 3; width: 100%; }
.ph .icon { width: 48px; height: 48px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 72px 0 56px; background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 45%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 40%), var(--bg); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .25em; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-hero-photo { color: #fff; padding: 0; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--dark); }
.page-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 16 28 / .5), rgb(8 16 28 / .1) 40%, rgb(8 16 28 / .8)); }
.page-hero-photo .container { padding-top: calc(var(--header-h) + 60px); padding-bottom: 48px; }
.page-hero-photo h1 { color: #fff; }
.page-hero-photo .lead { color: rgb(255 255 255 / .9); }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; font-weight: 600; }

/* Forms */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: 400 1rem var(--font); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: #fff; }
.field small { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: #e3f6ec; color: #145a32; }
.alert-error { background: #fdecea; color: #8a1c13; }
.alert-info { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--dark); }
.form-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }

/* Apartment page */
.apt-head { padding: 40px 0 24px; }
.apt-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 10px; }
.apt-head .lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 14px; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 2 / 1; }
.mosaic a { display: block; overflow: hidden; position: relative; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img, .mosaic .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.mosaic-all { position: absolute; right: 16px; bottom: 16px; }
.apt-layout { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; padding: 40px 0 96px; }
.apt-main > section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.apt-main > section:first-child { padding-top: 0; }
.apt-main > section:last-child { border-bottom: 0; }
.apt-main h2 { font-size: 1.6rem; }
.fact-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fact .icon { width: 26px; height: 26px; color: var(--accent); }
.fact strong { font-size: 1.02rem; }
.fact span { font-size: .85rem; color: var(--muted); }
.amen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.amen-list li { display: flex; gap: 12px; align-items: center; }
.amen-list .icon { width: 24px; height: 24px; color: var(--dark); }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rule { display: flex; gap: 12px; }
.rule .icon { width: 24px; height: 24px; color: var(--primary); margin-top: 2px; }
.rule p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Booking widget */
.book-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line); }
.book-card .price { margin-bottom: 16px; }
.book-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.book-dates button { background: none; border: 0; padding: 10px 14px; text-align: left; font: inherit; cursor: pointer; color: var(--text); }
.book-dates button + button { border-left: 1.5px solid var(--line); }
.book-dates small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-dates strong { font-size: .98rem; }
.book-dates button.active { box-shadow: inset 0 0 0 2px var(--accent); }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-family: var(--font-display); font-size: 1rem; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-months { display: grid; gap: 18px; }
.cal-month h4 { margin: 0 0 6px; font: 700 .95rem var(--font-display); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 10px; font: 600 .88rem var(--font); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 0; position: relative; }
.cal-day small { font-size: .58rem; font-weight: 500; color: var(--muted); }
.cal-day:hover:not([disabled]) { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day[disabled] { cursor: default; color: color-mix(in srgb, var(--text) 30%, transparent); }
.cal-day.busy { text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--text) 6%, transparent) 4px 6px); }
.cal-day.busy small { visibility: hidden; }
.cal-day.in-range { background: color-mix(in srgb, var(--accent) 16%, #fff); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--dark); color: #fff; }
.cal-day.start small, .cal-day.end small { color: #cfd8e2; }
.cal-day.start { border-radius: 10px 0 0 10px; }
.cal-day.end { border-radius: 0 10px 10px 0; }
.cal-day.start.end { border-radius: 10px; }
.cal-day.checkout-only { color: var(--text); text-decoration: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.lg-free::before { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg-busy::before { background: repeating-linear-gradient(135deg, transparent 0 3px, #c5cbd3 3px 5px); }
.lg-sel::before { background: var(--dark); }
.cal-msg { font-size: .88rem; min-height: 1.4em; margin: 10px 0 0; color: var(--muted); }
.cal-msg.error { color: #b3261e; font-weight: 600; }
.book-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.stepper button:hover:not([disabled]) { border-color: var(--dark); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }
.book-extras { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.extra-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background-color .2s; }
.extra-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.extra-opt input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.extra-opt strong { display: block; font-size: .95rem; }
.extra-opt small { color: var(--muted); }
.quote { margin: 14px 0 0; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .95rem; }
.quote-total { border-top: 1.5px solid var(--dark); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.15rem; }
.book-card .btn-block { margin-top: 16px; }
.book-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* Booking page */
.booking-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; padding: 32px 0 96px; }
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.summary-card img, .summary-card .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.summary-body { padding: 22px; }
.summary-body h3 { margin-bottom: 6px; }
.summary-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.summary-dates div { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.summary-dates small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.success-card { text-align: center; max-width: 720px; margin: 0 auto; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent); }
.success-icon .icon { width: 42px; height: 42px; stroke-width: 2.4; }
.code-pill { display: inline-block; font: 800 1.4rem var(--font-display); letter-spacing: .1em; padding: 10px 22px; border-radius: 999px; background: var(--dark); color: #fff; margin: 6px 0 18px; }
.success-card .summary-dates { text-align: left; }
.success-card .quote { text-align: left; max-width: 420px; margin: 0 auto 24px; }

/* Apartments list */
.results-note { margin: 0 0 24px; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }

/* Credits / 404 */
.credits-list { list-style: none; padding: 0; }
.credits-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.error-page { text-align: center; padding: 120px 0; }
.error-page .big { font: 800 clamp(5rem, 16vw, 10rem)/1 var(--font-display); background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .apt-layout, .booking-layout { grid-template-columns: 1fr 360px; gap: 32px; }
    .extra-card { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    :root { --header-h: 66px; }
    body { font-size: 16px; padding-bottom: 76px; }
    .nav-toggle { display: flex; }
    .header-cta, .lang-switch-desktop { display: none; }
    .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); color: var(--text); padding: 24px; display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s; overflow-y: auto; height: calc(100dvh - var(--header-h)); }
    .main-nav.open { transform: none; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .over-hero.nav-open .site-header { background: var(--bg); color: var(--text); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .nav-link { font: 700 1.7rem var(--font-display); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
    .nav-link:hover, .nav-link.active { background: none; color: var(--primary); }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 18px; margin-top: auto; }
    .nav-contact { display: flex; flex-direction: column; gap: 10px; }
    .nav-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
    .lang-switch-mobile { font-size: 1rem; }
    .section { padding: 64px 0; }
    .intro-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .apt-layout, .booking-layout { grid-template-columns: 1fr; }
    .book-card, .summary-card { position: static; }
    .apt-grid-single .apt-card { grid-template-columns: 1fr; }
    .apt-grid-single .apt-card-body { padding: 24px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(14 27 44 / .4); }
    .mobile-bar .btn { flex: 1; }
    .mobile-bar-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--dark); flex: none; }
    .mobile-bar-icon .icon { width: 22px; height: 22px; }
    .mobile-bar .price strong { font-size: 1.3rem; }
    .cookie-banner { left: 10px; right: 10px; bottom: 86px; max-width: none; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
    .mosaic a:first-child { grid-column: span 2; grid-row: auto; }
    .mosaic a:first-child img, .mosaic a:first-child .ph { aspect-ratio: 4 / 3; }
    .mosaic a:nth-child(n+2) img { aspect-ratio: 4 / 3; }
    .mosaic a:nth-child(n+4) { display: none; }
}
@media (max-width: 700px) {
    .container { padding: 0 16px; }
    .hero { min-height: min(88svh, 760px); }
    .hero-content { padding-bottom: 96px; }
    .hero-sub { font-size: 1rem; }
    .search-wrap { margin-top: -64px; }
    .search-bar { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: var(--radius); }
    .search-bar label:nth-child(3) { grid-column: span 2; }
    .search-bar .btn { grid-column: span 2; min-height: 52px; }
    .marquee { margin-top: 40px; }
    .intro { padding-top: 72px; }
    .stats { gap: 10px; }
    .stat { padding: 16px; }
    .apt-grid { grid-template-columns: 1fr; gap: 20px; }
    .explore-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .explore-grid::-webkit-scrollbar { display: none; }
    .explore-card { flex: 0 0 80%; scroll-snap-align: start; min-height: 340px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-card { padding: 22px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .extra-card { grid-template-columns: 1fr; }
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
    .lb-count { bottom: 28px; }
    .page-hero { padding: 48px 0 36px; }
}
@media print {
    .site-header, .site-footer, .mobile-bar, .cookie-banner, .search-wrap, .marquee { display: none !important; }
    body { padding: 0; background: #fff; }
}

/* Utilities */
.h3 { font-size: 1.35rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
/* Extras cards: the photo fills its half without pushing the text column */
.extra-card > * { min-width: 0; }
.extra-media { position: relative; min-height: 260px; }
.extra-media img, .extra-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 1100px) { .extra-media { min-height: 0; aspect-ratio: 4 / 3; } }
/* Native date inputs must be allowed to shrink inside the search grid */
.search-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
.search-bar label, .search-bar input, .search-bar select { min-width: 0; }
.search-bar input[type="date"] { -webkit-appearance: none; appearance: none; }
/* Prices read better in the text font than in the wide display font */
.price strong, .extra-price strong, .quote-total { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 700px) {
    .search-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cookie-banner { font-size: .82rem; padding: 14px 16px; }
    .cookie-banner p { margin-bottom: 10px; }
}
.mosaic { aspect-ratio: auto; height: clamp(320px, 42vw, 560px); width: 100%; }
.mosaic-1 { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 960px) { .mosaic { height: auto; } }
@media (max-width: 700px) {
    .amen-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .amen-grid li { padding: 12px; gap: 10px; font-size: .9rem; }
    .amen-grid .icon { width: 36px; height: 36px; padding: 8px; }
}
/* Phones: 2 apartment cards per row, compact card content */
@media (max-width: 700px) {
    .apt-grid:not(.apt-grid-single) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .apt-grid:not(.apt-grid-single) .apt-card { border-radius: var(--radius); }
    .apt-grid:not(.apt-grid-single) .apt-card:hover { transform: none; }
    .apt-grid:not(.apt-grid-single) .apt-card-body { padding: 12px; gap: 8px; }
    .apt-grid:not(.apt-grid-single) .apt-card h3 { font-size: 1rem; line-height: 1.15; }
    .apt-grid:not(.apt-grid-single) .apt-card-tagline,
    .apt-grid:not(.apt-grid-single) .amen-mini { display: none; }
    .apt-grid:not(.apt-grid-single) .facts { font-size: .78rem; gap: 4px 10px; }
    .apt-grid:not(.apt-grid-single) .facts li:nth-child(n+3) { display: none; }
    .apt-grid:not(.apt-grid-single) .apt-card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
    .apt-grid:not(.apt-grid-single) .price strong { font-size: 1.15rem; }
    .apt-grid:not(.apt-grid-single) .price small { font-size: .74rem; }
    .apt-grid:not(.apt-grid-single) .apt-card-foot .btn { padding: 9px 10px; font-size: .82rem; }
    .apt-grid:not(.apt-grid-single) .tag { font-size: .7rem; }
}
/* Apartment grid: 4 per row on desktop, 2 on tablets, 2 compact cards on phones (see above) */
@media (min-width: 701px) { .apt-grid:not(.apt-grid-single) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1024px) {
    .apt-grid:not(.apt-grid-single) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .apt-grid:not(.apt-grid-single) .apt-card-body { padding: 18px; gap: 10px; }
    .apt-grid:not(.apt-grid-single) .apt-card h3 { font-size: 1.2rem; }
    .apt-grid:not(.apt-grid-single) .apt-card-tagline { font-size: .92rem; }
    .apt-grid:not(.apt-grid-single) .facts { font-size: .84rem; gap: 6px 12px; }
    .apt-grid:not(.apt-grid-single) .amen-mini li { width: 32px; height: 32px; }
    .apt-grid:not(.apt-grid-single) .apt-card-foot { flex-wrap: wrap; gap: 10px; }
    .apt-grid:not(.apt-grid-single) .price strong { font-size: 1.35rem; }
}
@media (min-width: 1024px) { .apt-grid:not(.apt-grid-single) .apt-card-foot .btn { flex: 1 1 100%; } }

/* ===== Reviews ===== */
.stars { display: inline-flex; gap: 1px; color: #f5a524; font-size: 1.05rem; line-height: 1; letter-spacing: 0; vertical-align: -1px; }
.stars .off { color: color-mix(in srgb, var(--text) 18%, transparent); }
.rating-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; }
.rating-summary strong { font: 800 2.6rem/1 var(--font); color: var(--dark); }
.rating-summary .stars { font-size: 1.4rem; }
.rating-summary > span:last-child { color: var(--muted); font-weight: 500; }
.rating-inline { font: 500 .95rem var(--font); color: var(--muted); margin-left: 8px; white-space: nowrap; }
.rating-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.reviews-head .section-head { margin-bottom: 0; }
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-list-compact { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 20px -16px rgb(14 27 44 / .4); }
.review-card header { display: flex; align-items: center; gap: 12px; }
.review-card header > div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.review-card header small { color: var(--muted); font-size: .82rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 1.1rem var(--font-display); color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #ffb347)); }
.review-card:nth-child(3n+2) .avatar { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--dark))); }
.review-card:nth-child(3n+3) .avatar { background: linear-gradient(135deg, var(--dark), color-mix(in srgb, var(--dark) 60%, var(--accent))); }
.verified { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, var(--dark)); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.verified .icon { width: .95em; height: .95em; stroke-width: 2.6; }
.review-text { margin: 0; font-size: .97rem; }
.review-apt { margin: 0; font-size: .85rem; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.review-apt a { font-weight: 600; color: var(--text); text-decoration: none; }
.review-reply { background: var(--bg); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; font-size: .9rem; }
.review-reply p { margin: 4px 0 0; }
.empty-reviews { text-align: center; padding: 36px 20px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty-reviews .icon { width: 42px; height: 42px; color: #f5a524; fill: #f5a524; }
.empty-reviews p { margin: 8px 0 0; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.reviews-layout aside { position: sticky; top: calc(var(--header-h) + 20px); }
.rating-bars { display: grid; gap: 6px; max-width: 420px; margin-bottom: 24px; font-size: .88rem; }
.rating-bars > div { display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 10px; }
.rating-bars .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rating-bars .bar span { display: block; height: 100%; background: #f5a524; border-radius: 4px; }
.pager { display: flex; gap: 6px; margin-top: 24px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager a.active { background: var(--dark); color: #fff; border-color: var(--dark); }
/* Star rating input (right-to-left so hover/checked fills the stars before it) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 14px; }
.star-input legend { width: 100%; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; transition: transform .15s, color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 1100px) { .reviews-layout { grid-template-columns: 1fr; } .reviews-layout aside { position: static; } .review-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .review-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .review-row::-webkit-scrollbar { display: none; }
    .review-row .review-card { flex: 0 0 85%; scroll-snap-align: start; }
    .review-list, .review-list-compact { grid-template-columns: 1fr; }
    .reviews-head { margin-bottom: 24px; }
    .rating-summary strong { font-size: 2rem; }
}
.star-input { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.demo-tag { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed var(--line); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.verified + .demo-tag { margin-left: 6px; }

/* ===== Typography from Admin › Fonts (variables set in the page header) ===== */
:root { --display-weight: 700; --display-strong: 800; --display-tracking: -0.02em; --display-scale: 1; }
h1, h2, h3, .h1 { font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h2 { font-size: calc(clamp(1.9rem, 3.6vw, 3rem) * var(--display-scale)); }
h3 { font-size: calc(1.25rem * var(--display-scale)); }
.hero h1, .hero .h1 { font-size: calc(clamp(2.5rem, 6.4vw, 5.4rem) * var(--display-scale)); letter-spacing: calc(var(--display-tracking) - .01em); }
.intro-text h2 { font-size: calc(clamp(2.1rem, 4.4vw, 3.6rem) * var(--display-scale)); }
.page-hero h1 { font-size: calc(clamp(2.2rem, 5vw, 4rem) * var(--display-scale)); }
.apt-head h1 { font-size: calc(clamp(2rem, 4.6vw, 3.6rem) * var(--display-scale)); }
.apt-card h3 { font-size: calc(1.45rem * var(--display-scale)); }
.brand-text strong, .stat strong, .code-pill, .error-page .big, .avatar { font-weight: var(--display-strong); }
.marquee-track span, .cal-month h4, .cal-head strong { font-weight: var(--display-strong); }
.stat strong { letter-spacing: var(--display-tracking); font-size: calc(clamp(1.9rem, 3.2vw, 2.6rem) * var(--display-scale)); }
@media (max-width: 960px) { .nav-link { font-weight: var(--display-weight); font-size: calc(1.7rem * var(--display-scale)); } }
@media (min-width: 1024px) { .apt-grid:not(.apt-grid-single) .apt-card h3 { font-size: calc(1.2rem * var(--display-scale)); } }
@media (max-width: 700px) { .apt-grid:not(.apt-grid-single) .apt-card h3 { font-size: calc(1rem * var(--display-scale)); } }
/* Even-height numbers in serif fonts (19, 2026, prices) */
h1, h2, h3, .h1, .stat strong, .marquee-track span, .code-pill, .error-page .big, .cal-month h4 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.brand-text strong { font-size: calc(1.45rem * var(--display-scale)); }

/* ===== Hero height from Admin › Homepage Slider (variables set in the page header) ===== */
.hero, .hero-plain { min-height: clamp(460px, var(--hero-d, 70svh), 960px); }
@media (max-width: 700px) {
    .hero, .hero-plain { min-height: clamp(400px, var(--hero-m, 60svh), 860px); }
    .hero-content { padding-bottom: 84px; }
}
.mandatory-note { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.mandatory-note .icon { margin-top: 3px; color: var(--accent); }

/* ===== Floating WhatsApp button (bottom right, all pages) ===== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px -8px rgb(18 140 70 / .6), 0 2px 6px rgb(0 0 0 / .12); transition: transform .2s, box-shadow .2s, background-color .2s; }
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); background: #1ebe5b; box-shadow: 0 14px 32px -8px rgb(18 140 70 / .7); }
.wa-float:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: wa-pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
.wa-float-label { white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s, opacity .3s; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 160px; opacity: 1; }
.wa-float:not(:hover):not(:focus-visible) { padding: 0; justify-content: center; width: 60px; }
/* Phones: sit above the bottom action bar */
@media (max-width: 960px) {
    .wa-float { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); height: 54px; min-width: 54px; }
    .wa-float:not(:hover):not(:focus-visible) { width: 54px; }
    .wa-float svg { width: 28px; height: 28px; }
    .wa-float-label { display: none; }
}
@media print { .wa-float { display: none; } }

/* ===== Payment page (pay.php) ===== */
.pay-options { display: grid; gap: 16px; }
.pay-option { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pay-option.is-suggested { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.pay-option-head { display: flex; gap: 14px; align-items: flex-start; }
.pay-option-head > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.pay-option h2 { margin: 0 0 4px; }
.pay-option p { margin: 0; }
.pay-option .feed-ok { color: #1f9d55; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.big-amount { font: 700 2.4rem var(--font); margin: 10px 0 18px; color: var(--dark); }
.pay-demo .tag { margin-bottom: 8px; }

/* ===== Blog & Guides ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; overflow: hidden; }
.post-card-media img, .post-card-media .ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { margin: 0; font-size: calc(1.3rem * var(--display-scale)); line-height: 1.2; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); }
.post-excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: .8rem; color: var(--muted); }
.post-cat { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); text-decoration: none; font-size: .74rem; }
.read-more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { color: var(--primary); }
.post-card-lg { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card-lg .post-card-media img { height: 100%; }
.post-card-lg .post-card-body { padding: 36px; justify-content: center; }
.post-card-lg h3 { font-size: calc(clamp(1.6rem, 2.6vw, 2.2rem) * var(--display-scale)); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cat-pills a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--surface); }
.cat-pills a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.cat-pills a:hover { border-color: var(--dark); }
.cat-pills a.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.cat-pills a.active span { color: #cfd8e2; }
/* Article */
.article-hero .container { padding-top: calc(var(--header-h) + 50px); }
.page-hero:not(.page-hero-photo).article-hero .container { padding-top: 10px; }
.page-hero-photo .breadcrumb, .page-hero-photo .breadcrumb a, .post-meta-hero { color: rgb(255 255 255 / .88); }
.post-meta-hero { font-size: .92rem; margin-top: 10px; }
.page-hero:not(.page-hero-photo) .post-meta-hero { color: var(--muted); }
.article-section { padding-top: 48px; }
.article-lead { font-size: 1.25rem; line-height: 1.6; color: var(--dark); font-weight: 500; margin-bottom: 28px; }
.article-body { font-size: 1.06rem; line-height: 1.8; max-width: none; }
.article-body h2 { margin-top: 1.6em; }
.article-body img { width: 100%; }
.article-body blockquote { border-left: 4px solid var(--primary); margin: 1.5em 0; padding: 4px 0 4px 20px; font-size: 1.1rem; color: var(--dark); }
.article-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 40px 0 24px; padding: 22px 26px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-soft), color-mix(in srgb, var(--accent) 12%, #fff)); }
.article-cta p { margin: 4px 0 0; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.share-row a, .share-copy { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line); color: var(--dark); background: var(--surface); cursor: pointer; }
.share-copy { width: auto; padding: 0 14px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; font: 600 .88rem var(--font); }
.share-row a:hover, .share-copy:hover { border-color: var(--dark); }
.preview-bar { position: sticky; top: var(--header-h); z-index: 40; background: #fff1d6; color: #7a4a00; text-align: center; padding: 10px; font-weight: 600; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .post-grid { grid-template-columns: 1fr; gap: 18px; }
    .post-card-lg { grid-template-columns: 1fr; }
    .post-card-lg .post-card-body { padding: 20px 22px 22px; }
    .article-lead { font-size: 1.1rem; }
    .article-body { font-size: 1rem; }
}

/* Mobile view / Desktop view switch (footer, phones & tablets) */
.view-switch-wrap { display: flex; justify-content: center; margin-top: 40px; }
.view-switch-wrap:has(.view-switch[hidden]) { display: none; }
.view-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: #cfd8e2; font: 600 .9rem var(--font); cursor: pointer; min-height: 44px; }
.view-switch button .icon { width: 18px; height: 18px; }
.view-switch button.active { background: #fff; color: var(--dark); box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.view-switch button:not(.active):hover { color: #fff; background: rgb(255 255 255 / .08); }
.view-switch-wrap + .footer-bottom { margin-top: 24px; }

/* Apartment facts: all in one row on desktop (as many columns as there are facts) */
@media (min-width: 961px) {
    .fact-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
    .fact { padding: 14px 12px; gap: 4px; }
    .fact strong { font-size: .92rem; line-height: 1.3; }
    .fact span { font-size: .78rem; }
    .fact .icon { width: 22px; height: 22px; }
}
@media (max-width: 960px) { .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
