/* =========================================================================
   Enterprise RealEstate Theme — front end
   Colours, fonts and radius come from Theme Settings as CSS variables.
   ========================================================================= */

:root {
  --ert-primary: #786548;
  --ert-primary-dark: #5d4d36;
  --ert-accent: #cf9031;
  --ert-heading: #211d18;
  --ert-dark: #2e2921;
  --ert-text: #5f584e;
  --ert-light: #f6f2eb;
  --ert-bg: #fff;
  --ert-surface: #fff;
  --ert-soft: color-mix(in srgb, var(--ert-heading) 6%, var(--ert-surface));
  --ert-on-primary: #fff;
  --ert-light-heading: #211d18;
  --ert-light-text: #5f584e;
  --ert-white: #fff;
  --ert-muted: #918779;
  --ert-border: #eae2d7;
  --ert-header-bg: #fff;
  --ert-menu: #211d18;
  --ert-footer-bg: #fff;
  --ert-footer-text: #5f584e;
  --ert-radius: 6px;
  --ert-btn-radius: 4px;
  --ert-heading-weight: 400;
  --ert-heading-case: none;
  --ert-lh: 1.7;
  --ert-fs-small: 13px;
  --ert-fs-eyebrow: 11px;
  --ert-fs-btn: 13px;
  --ert-fs-menu: 13px;
  --ert-h1: clamp(38px, 3.75vw, 54px);
  --ert-h2: clamp(27px, 2.64vw, 38px);
  --ert-h3: clamp(17px, 1.39vw, 20px);
  --ert-h4: clamp(15px, 1.18vw, 17px);
  --ert-radius-lg: calc(var(--ert-radius) * 1.35);
  --ert-font-heading: Georgia, "Times New Roman", serif;
  --ert-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ert-font-script: Georgia, serif;
  --ert-shadow: 0 10px 30px -12px rgba(17, 20, 24, .18);
  --ert-shadow-lg: 0 24px 60px -20px rgba(17, 20, 24, .3);
  --ert-container: 1200px;
  --ert-gutter: clamp(16px, 4vw, 32px);
  --ert-section: clamp(53px, 6.111vw, 88px);
  --ert-header-h: 80px;
  --ert-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ert-font-body); font-size: 1rem; line-height: var(--ert-lh); color: var(--ert-text); background: var(--ert-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.ert-lock { overflow: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ert-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ert-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ert-font-heading); color: var(--ert-heading); line-height: 1.2; margin: 0 0 .5em; font-weight: var(--ert-heading-weight); text-transform: var(--ert-heading-case); letter-spacing: -.005em; }
h1 { font-size: var(--ert-h1); } h2 { font-size: var(--ert-h2); } h3 { font-size: var(--ert-h3); } h4 { font-size: var(--ert-h4); }
small { font-size: var(--ert-fs-small); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ert-primary); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ert-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ert-dark); color: #fff; padding: 10px 16px; border-radius: var(--ert-radius); }
.ert-skip:focus { left: 8px; color: #fff; }
.ert-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
.ert-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.ert-container { width: 100%; max-width: var(--ert-container); margin: 0 auto; padding-inline: var(--ert-gutter); }
.ert-container--narrow { max-width: 860px; }
.ert-main { min-height: 50vh; }

/* ---------- Sections ---------- */
.ert-section { padding-block: var(--ert-section); position: relative; }
.ert-section--hero, .ert-section--page-hero { padding-block: 0; }
.ert-space-compact { padding-block: calc(var(--ert-section) * .55); }
.ert-space-large { padding-block: calc(var(--ert-section) * 1.35); }
.ert-space-none { padding-block: 0; }
.ert-bg-light { background: var(--ert-light); color: var(--ert-text);
  --ert-heading: var(--ert-light-heading); --ert-text: var(--ert-light-text); --ert-menu: var(--ert-light-heading);
  --ert-muted: color-mix(in srgb, var(--ert-light-text) 72%, var(--ert-light));
  --ert-border: color-mix(in srgb, var(--ert-light-heading) 14%, var(--ert-light));
  --ert-surface: color-mix(in srgb, #fff 50%, var(--ert-light));
  --ert-soft: color-mix(in srgb, var(--ert-light-heading) 6%, var(--ert-light)); }
.ert-bg-white { background: var(--ert-white); }
.ert-bg-dark { background: var(--ert-dark); color: rgba(255, 255, 255, .78); }
.ert-bg-primary { background: var(--ert-primary); color: color-mix(in srgb, var(--ert-on-primary) 85%, transparent); }
.ert-bg-dark h1, .ert-bg-dark h2, .ert-bg-dark h3, .ert-bg-dark h4 { color: #fff; }
.ert-bg-primary h1, .ert-bg-primary h2, .ert-bg-primary h3, .ert-bg-primary h4 { color: var(--ert-on-primary); }
.ert-bg-dark .ert-eyebrow { color: rgba(255, 255, 255, .85); }
.ert-bg-primary .ert-eyebrow { color: color-mix(in srgb, var(--ert-on-primary) 80%, transparent); }
/* Consecutive light sections read as one block, so the second loses its top padding. */
.ert-bg-light + .ert-bg-light { padding-top: 0; }

.ert-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.ert-head--center { text-align: center; margin-inline: auto; }
.ert-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ert-head--split .ert-head__text { max-width: 760px; }
.ert-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ert-font-body); font-size: var(--ert-fs-eyebrow); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ert-text); margin-bottom: 12px; }
.ert-eyebrow--light { color: #fff; }
.ert-title { font-size: var(--ert-h2); margin-bottom: 14px; }
.ert-lead { font-size: 1rem; color: var(--ert-text); margin: 0; }
.ert-bg-dark .ert-lead { color: rgba(255, 255, 255, .75); }
.ert-bg-primary .ert-lead { color: color-mix(in srgb, var(--ert-on-primary) 78%, transparent); }

.ert-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.ert-grid--2 { --cols: 2; }
.ert-grid--3 { --cols: 3; }
.ert-grid--4 { --cols: 4; }
@media (max-width: 1100px) { .ert-grid--4 { --cols: 3; } }
@media (max-width: 900px) { .ert-grid--3, .ert-grid--4 { --cols: 2; } }
@media (max-width: 600px) { .ert-grid { --cols: 1 !important; } }

.ert-content { overflow-wrap: break-word; }
.ert-content > *:last-child { margin-bottom: 0; }
.ert-content h2 { font-size: var(--ert-h3); margin-top: 1.4em; }
.ert-content h3 { font-size: var(--ert-h4); margin-top: 1.2em; }
.ert-content ul, .ert-content ol { padding-left: 1.3em; }
.ert-content img { border-radius: var(--ert-radius); }
.ert-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--ert-primary); background: var(--ert-soft); }

/* ---------- Buttons ---------- */
.ert-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ert-btns--center { justify-content: center; }
.ert-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--ert-btn-radius); border: 1px solid transparent; font-weight: 500; font-size: var(--ert-fs-btn); line-height: 1.2; text-align: center; white-space: nowrap; cursor: pointer; transition: background .25s var(--ert-ease), color .25s, border-color .25s, transform .25s var(--ert-ease), box-shadow .25s; }
.ert-btn:hover { transform: translateY(-1px); }
.ert-btn .ert-icon { width: 1.25em; height: 1.25em; }
.ert-btn--primary { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-btn--primary:hover { background: var(--ert-primary-dark); color: var(--ert-on-primary); }
.ert-btn--outline { background: transparent; border-color: currentColor; color: var(--ert-heading); }
.ert-btn--outline:hover { background: var(--ert-heading); border-color: var(--ert-heading); color: var(--ert-bg); }
.ert-bg-dark .ert-btn--outline { color: #fff; }
.ert-bg-primary .ert-btn--outline { color: var(--ert-on-primary); }
.ert-bg-dark .ert-btn--outline:hover, .ert-bg-primary .ert-btn--outline:hover { background: #fff; color: var(--ert-heading); border-color: #fff; }
.ert-btn--light { background: var(--ert-surface); color: var(--ert-heading); }
.ert-btn--light:hover { background: var(--ert-soft); color: var(--ert-heading); border-color: var(--ert-border); }
.ert-btn--dark { background: var(--ert-dark); color: #fff; border-color: var(--ert-border); }
.ert-btn--dark:hover { background: var(--ert-primary-dark); color: #fff; }
.ert-btn--whatsapp { background: #25d366; color: #fff; }
.ert-btn--whatsapp:hover { background: #1da851; color: #fff; }
.ert-btn--sm { padding: 9px 14px; font-size: calc(var(--ert-fs-btn) * .95); }
.ert-btn--block { width: 100%; }
.ert-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ert-heading); }
.ert-link-arrow .ert-icon { transition: transform .25s var(--ert-ease); color: var(--ert-primary); }
.ert-link-arrow:hover { color: var(--ert-primary); }
.ert-link-arrow:hover .ert-icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.ert-header { position: relative; z-index: 100; background: var(--ert-header-bg); transition: background .3s, box-shadow .3s; }
.ert-header--sticky { position: sticky; top: 0; }
.admin-bar .ert-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .ert-header--sticky { top: 0; } }
.ert-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .22); }
.ert-topbar { background: var(--ert-dark); color: rgba(255, 255, 255, .75); font-size: 0.8125rem; transition: margin .3s; }
.ert-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.ert-topbar__text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ert-topbar__links { display: flex; align-items: center; gap: 18px; }
.ert-topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ert-topbar a:hover { color: #fff; }
.ert-topbar .ert-icon { width: 14px; height: 14px; }
@media (max-width: 900px) { .ert-topbar__text, .ert-topbar__social { display: none; } .ert-topbar__inner { justify-content: center; } }
@media (max-width: 520px) { .ert-topbar a[href^="mailto"] span { display: none; } }

.ert-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--ert-header-h); }
.ert-logo { display: inline-flex; align-items: center; flex-shrink: 0; position: relative; color: var(--ert-heading); }
.ert-logo__img { height: var(--logo-h, 44px); width: auto; max-width: 220px; object-fit: contain; }
.ert-logo__text { font-family: var(--ert-font-heading); font-size: 1.75rem; font-weight: var(--ert-heading-weight); letter-spacing: -.01em; color: var(--ert-heading); white-space: nowrap; }
.ert-logo--light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }

.ert-nav { margin-left: auto; }
.ert-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.ert-menu > li { position: relative; }
.ert-menu a { display: block; padding: 10px 14px; color: var(--ert-menu); font-weight: 500; font-size: var(--ert-fs-menu); border-radius: 8px; }
.ert-menu > li > a { position: relative; }
.ert-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ert-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ert-ease); }
.ert-menu > li:hover > a::after, .ert-menu > .current-menu-item > a::after, .ert-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.ert-menu .menu-item-has-children > a { padding-right: 26px; }
.ert-menu .menu-item-has-children > a::before { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.ert-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--ert-surface); border-radius: var(--ert-radius); box-shadow: var(--ert-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ert-ease); }
.ert-menu li:hover > .sub-menu, .ert-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ert-menu .sub-menu a { color: var(--ert-text); }
.ert-menu .sub-menu a:hover { background: var(--ert-soft); color: var(--ert-primary); }

.ert-header__actions { display: flex; align-items: center; gap: 14px; }
.ert-header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ert-menu); font-weight: 500; font-size: var(--ert-fs-menu); white-space: nowrap; }
.ert-header__phone .ert-icon { width: 17px; height: 17px; }
.ert-burger { display: none; background: none; border: 0; padding: 8px; color: var(--ert-menu); }
.ert-burger .ert-icon { width: 28px; height: 28px; }
@media (max-width: 1280px) { .ert-header__phone span { display: none; } }
@media (max-width: 1100px) {
  .ert-nav { display: none; }
  .ert-header__actions { margin-left: auto; }
  .ert-burger { display: inline-flex; }
}
@media (max-width: 600px) { .ert-header__actions .ert-btn { display: none; } :root { --ert-header-h: 68px; } }

/* Transparent header over a hero */
.has-transparent-header .ert-header--transparent { position: fixed; left: 0; right: 0; top: 0; background: transparent; }
.admin-bar.has-transparent-header .ert-header--transparent { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-transparent-header .ert-header--transparent { top: 46px; } }
.ert-header--transparent:not(.is-scrolled) .ert-topbar { background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }
.ert-header--transparent:not(.is-scrolled) .ert-header__main { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ert-header--transparent:not(.is-scrolled) .ert-menu > li > a, .ert-header--transparent:not(.is-scrolled) .ert-header__phone, .ert-header--transparent:not(.is-scrolled) .ert-burger, .ert-header--transparent:not(.is-scrolled) .ert-logo__text { color: #fff; }
.ert-header--transparent:not(.is-scrolled) .ert-logo--light { opacity: 1; }
.ert-header--transparent:not(.is-scrolled) .ert-logo--dark { opacity: 0; }
.ert-header--transparent.is-scrolled { background: var(--ert-header-bg); }
.ert-header--transparent.is-scrolled .ert-topbar { margin-top: -40px; }

/* Mobile menu */
.ert-mobile { position: fixed; inset: 0; z-index: 400; background: rgba(17, 20, 24, .55); backdrop-filter: blur(3px); }
.ert-mobile__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--ert-surface); display: flex; flex-direction: column; padding: 20px 24px; overflow-y: auto; animation: ertSlideIn .35s var(--ert-ease); }
@keyframes ertSlideIn { from { transform: translateX(100%); } to { transform: none; } }
.ert-mobile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ert-mobile__close { background: var(--ert-soft); border: 0; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ert-heading); }
.ert-mobile__menu { list-style: none; margin: 0; padding: 0; }
.ert-mobile__menu li { border-bottom: 1px solid var(--ert-border); }
.ert-mobile__menu a { display: block; padding: 14px 0; color: var(--ert-heading); font-weight: 500; font-size: 1.0625rem; }
.ert-mobile__menu .sub-menu { list-style: none; padding: 0 0 10px 14px; margin: 0; }
.ert-mobile__menu .sub-menu li { border: 0; }
.ert-mobile__menu .sub-menu a { padding: 8px 0; font-size: 0.9375rem; color: var(--ert-text); }
.ert-mobile__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

/* ---------- Home hero + search ---------- */
.ert-hero { position: relative; display: flex; align-items: center; color: #fff; background: var(--ert-dark); overflow: hidden; isolation: isolate; }
.ert-hero--full { min-height: clamp(640px, 100svh, 980px); }
.ert-hero--large { min-height: 720px; }
.ert-hero--medium { min-height: 560px; }
.has-transparent-header .ert-section:first-child .ert-hero { padding-top: calc(var(--ert-header-h) + 40px); }
.ert-hero__bg, .ert-hero__overlay { position: absolute; inset: 0; z-index: -1; }
.ert-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.ert-hero__slide.is-active { opacity: 1; }
.ert-hero__slide img, .ert-hero__video { width: 100%; height: 100%; object-fit: cover; }
.ert-hero__slide.is-active img { animation: ertZoom 14s ease-out both; }
@keyframes ertZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ert-hero__video { position: absolute; inset: 0; }
.ert-hero__overlay { background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--overlay) * .7)) 0%, rgba(0, 0, 0, var(--overlay)) 100%); }
.ert-hero__content { padding-block: 80px 60px; }
.ert-hero__title { color: #fff; font-size: var(--ert-h1); max-width: 900px; margin-bottom: 18px; line-height: 1.08; }
.ert-hero__subtitle { font-size: 1.0625rem; max-width: 640px; color: rgba(255, 255, 255, .85); }
.ert-hero__btns { margin-top: 24px; }

.ert-search { margin-top: 40px; max-width: 1080px; }
.ert-search__tabs { display: inline-flex; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); border-radius: var(--ert-radius) var(--ert-radius) 0 0; }
.ert-search__tab { background: none; border: 0; color: #fff; padding: 10px 26px; border-radius: calc(var(--ert-radius) - 3px); font-weight: 600; font-size: 0.9375rem; transition: background .2s, color .2s; }
.ert-search__tab.is-active { background: var(--ert-surface); color: var(--ert-heading); }
.ert-search__form { display: flex; align-items: stretch; gap: 0; background: var(--ert-surface); border-radius: 0 var(--ert-radius-lg) var(--ert-radius-lg) var(--ert-radius-lg); padding: 10px; box-shadow: var(--ert-shadow-lg); color: var(--ert-text); }
.ert-search__field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 8px 18px; border-right: 1px solid var(--ert-border); }
.ert-search__field--grow { flex-grow: 1.4; }
.ert-search__field span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ert-muted); }
.ert-search__field select { border: 0; background: transparent; padding: 4px 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--ert-heading); outline: none; width: 100%; cursor: pointer; }
.ert-search__field:nth-last-child(2) { border-right: 0; }
.ert-search__submit { padding-inline: 32px; border-radius: var(--ert-btn-radius); }
@media (max-width: 900px) {
  .ert-search__form { flex-wrap: wrap; border-radius: 0 var(--ert-radius) var(--ert-radius) var(--ert-radius); }
  .ert-search__field { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid var(--ert-border); }
  .ert-search__submit { flex: 1 1 100%; margin-top: 8px; padding: 14px; }
}
@media (max-width: 520px) { .ert-search__field { flex-basis: 100%; } .ert-search__tab { padding: 9px 16px; } }

/* ---------- Inner page banner ---------- */
.ert-pagehero { position: relative; background: var(--ert-dark); color: rgba(255, 255, 255, .85); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.ert-pagehero--small { min-height: 280px; }
.ert-pagehero--medium { min-height: 420px; }
.ert-pagehero--large { min-height: 560px; }
.has-transparent-header .ert-section:first-child .ert-pagehero { padding-top: var(--ert-header-h); }
.ert-pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.ert-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ert-pagehero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .3) 100%); }
.ert-pagehero:not(.has-image)::after { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--ert-primary) 45%, transparent), transparent 55%); }
.ert-pagehero__content { padding-block: 56px 48px; }
.ert-pagehero__title { color: #fff; font-size: var(--ert-h1); margin-bottom: 10px; }
.ert-pagehero__subtitle { font-size: 1.125rem; max-width: 720px; margin: 0; }
.ert-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.875rem; margin-bottom: 16px; color: rgba(255, 255, 255, .7); }
.ert-breadcrumbs a { color: rgba(255, 255, 255, .85); }
.ert-breadcrumbs a:hover { color: #fff; }
.ert-breadcrumbs .ert-icon { width: 14px; height: 14px; opacity: .6; }
.ert-breadcrumbs--dark { color: var(--ert-muted); padding-top: 24px; }
.ert-breadcrumbs--dark a { color: var(--ert-text); }
.ert-breadcrumbs--dark a:hover { color: var(--ert-primary); }

/* ---------- Carousel ---------- */
.ert-carousel { position: relative; }
.ert-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 24px; margin: -6px -4px 0; overscroll-behavior-x: contain; }
.ert-carousel__track::-webkit-scrollbar { display: none; }
.ert-carousel__slide { scroll-snap-align: start; min-width: 0; }
.ert-carousel__slide > * { height: 100%; }
.ert-carousel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.ert-carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ert-border); background: var(--ert-surface); display: grid; place-items: center; color: var(--ert-heading); transition: all .25s; }
.ert-carousel__btn:hover:not(:disabled) { background: var(--ert-primary); border-color: var(--ert-primary); color: var(--ert-on-primary); }
.ert-carousel__btn:disabled { opacity: .35; cursor: default; }
.ert-carousel.is-static .ert-carousel__nav { display: none; }
.ert-carousel--communities .ert-carousel__track { grid-auto-columns: calc((100% - 3 * 28px) / 4); }
.ert-carousel--testimonials .ert-carousel__track { grid-auto-columns: calc((100% - 2 * 28px) / 3); }
@media (max-width: 1024px) { .ert-carousel__track, .ert-carousel--communities .ert-carousel__track, .ert-carousel--testimonials .ert-carousel__track { grid-auto-columns: calc((100% - 28px) / 2); } }
@media (max-width: 640px) { .ert-carousel__track, .ert-carousel--communities .ert-carousel__track, .ert-carousel--testimonials .ert-carousel__track { grid-auto-columns: 86%; gap: 16px; } }

/* ---------- Cards ---------- */
.ert-card { position: relative; display: flex; flex-direction: column; background: var(--ert-surface); border-radius: var(--ert-radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ert-border); transition: box-shadow .35s var(--ert-ease), transform .35s var(--ert-ease); }
.ert-card:hover { box-shadow: 0 0 0 1px transparent, var(--ert-shadow-lg); transform: translateY(-4px); }
.ert-card__media { position: relative; display: block; aspect-ratio: 36 / 26; overflow: hidden; background: var(--ert-soft); }
.ert-card__media img, .ert-card__media .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-card:hover .ert-card__media img { transform: scale(1.06); }
.ert-card__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ert-card__badges--static { position: static; margin-bottom: 14px; }
.ert-badge { display: inline-block; padding: 5px 11px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; background: var(--ert-surface); color: var(--ert-heading); line-height: 1.2; }
.ert-badge--sale, .ert-badge--rent { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-badge--rent { background: var(--ert-dark); }
.ert-badge--featured { background: var(--ert-accent); color: var(--ert-on-primary); }
.ert-badge--status { background: var(--ert-surface); color: var(--ert-primary); }
.ert-badge--stage { background: rgba(255, 255, 255, .95); color: var(--ert-heading); }
.ert-badge--muted { background: var(--ert-soft); color: var(--ert-muted); }
.ert-card__count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 30px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 0.75rem; }
.ert-card__count .ert-icon { width: 14px; height: 14px; }
.ert-card__dev { position: absolute; right: 14px; bottom: 14px; background: #fff; border-radius: 8px; padding: 6px 10px; box-shadow: var(--ert-shadow); }
.ert-card__dev img { height: 28px; width: auto; max-width: 90px; object-fit: contain; }
.ert-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.ert-card__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ert-primary); margin: 0 0 6px; }
.ert-card__price { font-family: var(--ert-font-body); font-size: 1.25rem; font-weight: 700; color: var(--ert-heading); margin-bottom: 6px; }
.ert-card__title { font-size: var(--ert-h3); line-height: 1.3; margin: 0 0 8px; }
.ert-card__title a { color: var(--ert-heading); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ert-ease); }
.ert-card:hover .ert-card__title a { background-size: 100% 1px; }
.ert-card__loc { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ert-muted); margin: 0 0 14px; }
.ert-card__loc .ert-icon { width: 16px; height: 16px; color: var(--ert-primary); }
.ert-card__specs { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--ert-border); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; color: var(--ert-text); }
.ert-card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.ert-card__specs .ert-icon { width: 18px; height: 18px; color: var(--ert-muted); }
.ert-card__tags { font-size: 0.8125rem; color: var(--ert-muted); margin: 10px 0 0; }
.ert-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--ert-border); }
.ert-card__facts dt { font-size: 0.75rem; color: var(--ert-muted); text-transform: uppercase; letter-spacing: .05em; }
.ert-card__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ert-heading); font-size: 0.9375rem; }
.ert-card__facts .ert-card__price { font-size: 0.9375rem; margin: 2px 0 0; }
.ert-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; } /* wraps on very narrow cards (320px phones) */
.ert-card__actions .ert-btn { flex: 1; }
.ert-img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--ert-soft), color-mix(in srgb, var(--ert-muted) 25%, var(--ert-surface))); color: var(--ert-muted); }
.ert-img-placeholder .ert-icon { width: 40px; height: 40px; }

/* ---------- Communities ---------- */
.ert-communities { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ert-communities--mosaic { grid-auto-rows: 260px; }
.ert-communities--mosaic .ert-community:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.ert-communities--mosaic .ert-community:nth-child(6n+4) { grid-column: span 2; }
.ert-communities--grid .ert-community { aspect-ratio: 4 / 5; }
@media (max-width: 1000px) { .ert-communities { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ert-communities--mosaic .ert-community:nth-child(n) { grid-column: auto; grid-row: auto; } .ert-communities--mosaic { grid-auto-rows: 240px; } }
@media (max-width: 520px) { .ert-communities { grid-template-columns: 1fr; } }
.ert-community { position: relative; display: block; border-radius: var(--ert-radius-lg); overflow: hidden; color: #fff; background: var(--ert-dark); isolation: isolate; min-height: 240px; height: 100%; }
.ert-community img, .ert-community .ert-img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ert-ease); }
.ert-community::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 60%); transition: background .4s; }
.ert-community:hover img { transform: scale(1.08); }
.ert-community:hover { color: #fff; }
.ert-community__body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.ert-community__name { font-family: var(--ert-font-heading); font-size: var(--ert-h3); font-weight: var(--ert-heading-weight); line-height: 1.2; }
.ert-community__count { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; opacity: .85; }
.ert-community__count .ert-icon { transition: transform .3s var(--ert-ease); }
.ert-community:hover .ert-community__count .ert-icon { transform: translateX(4px); }

/* ---------- Text + image ---------- */
.ert-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ert-split--image-left .ert-split__media { order: -1; }
@media (max-width: 900px) { .ert-split { grid-template-columns: 1fr; } .ert-split--image-left .ert-split__media { order: 0; } }
.ert-split__media { position: relative; }
.ert-split__media.has-small { padding: 0 12% 12% 0; }
.ert-split__img { border-radius: var(--ert-radius-lg); overflow: hidden; aspect-ratio: 5 / 6; }
.ert-split__img img, .ert-split__img .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ert-split__img-small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--ert-radius-lg); overflow: hidden; border: 8px solid var(--ert-bg); box-shadow: var(--ert-shadow-lg); }
.ert-split__img-small img { width: 100%; height: 100%; object-fit: cover; }
.ert-split__badge { position: absolute; left: -18px; top: 32px; background: var(--ert-primary); color: var(--ert-on-primary); padding: 20px 24px; border-radius: var(--ert-radius-lg); box-shadow: var(--ert-shadow-lg); max-width: 190px; }
.ert-split__badge strong { display: block; font-family: var(--ert-font-heading); font-size: var(--ert-h2); line-height: 1; }
.ert-split__badge span { font-size: 0.875rem; opacity: .9; }
@media (max-width: 600px) { .ert-split__badge { left: 12px; } }
.ert-checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ert-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.ert-checklist .ert-icon { color: var(--ert-primary); margin-top: 3px; }

/* ---------- Stats ---------- */
.ert-stats { position: relative; isolation: isolate; }
.ert-stats.has-image { margin-block: calc(var(--ert-section) * -1); padding-block: var(--ert-section); color: #fff; }
.ert-stats.has-image h2 { color: #fff; }
.ert-stats.has-image .ert-lead { color: rgba(255, 255, 255, .8); }
.ert-stats__bg { position: absolute; inset: 0; z-index: -1; }
.ert-stats__bg img { width: 100%; height: 100%; object-fit: cover; }
.ert-stats__bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, .72); }
.ert-stats__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; background: var(--ert-border); border-radius: var(--ert-radius-lg); overflow: hidden; border: 1px solid var(--ert-border); }
.ert-stats.has-image .ert-stats__grid, .ert-bg-dark .ert-stats__grid { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .15); }
.ert-stat { background: var(--ert-surface); padding: clamp(24px, 3vw, 40px) 24px; text-align: center; }
.ert-bg-light .ert-stat { background: var(--ert-soft); }
.ert-stats.has-image .ert-stat, .ert-bg-dark .ert-stat { background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.ert-stat__num { font-family: var(--ert-font-heading); font-size: var(--ert-h1); font-weight: var(--ert-heading-weight); color: var(--ert-primary); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.ert-stats.has-image .ert-stat__num, .ert-bg-dark .ert-stat__num { color: #fff; }
.ert-stat__label { font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 800px) { .ert-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Features / steps ---------- */
.ert-feature { display: block; position: relative; padding: 32px 28px; background: var(--ert-surface); border-radius: var(--ert-radius-lg); box-shadow: 0 0 0 1px var(--ert-border); color: var(--ert-text); transition: transform .35s var(--ert-ease), box-shadow .35s; }
a.ert-feature:hover { transform: translateY(-4px); box-shadow: var(--ert-shadow-lg); color: var(--ert-text); }
.ert-bg-light .ert-feature { box-shadow: none; }
.ert-bg-dark .ert-feature { background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.ert-feature__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--ert-primary) 10%, transparent); color: var(--ert-primary); margin-bottom: 20px; }
.ert-feature__icon .ert-icon { width: 28px; height: 28px; }
.ert-feature__title { font-size: var(--ert-h3); margin-bottom: 8px; }
.ert-feature__text { margin: 0; font-size: 0.9375rem; }
.ert-features--numbered .ert-feature__icon { background: none; width: auto; height: auto; place-items: start; }
.ert-features--numbered .ert-feature__icon b { font-family: var(--ert-font-heading); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ert-primary); }
.ert-features--minimal .ert-feature { background: none; box-shadow: none; padding: 0; }

/* ---------- CTA banner ---------- */
.ert-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--ert-radius-lg) * 1.4); padding: clamp(40px, 6vw, 80px); color: rgba(255, 255, 255, .85); background: var(--ert-dark); display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.ert-cta--brand { background: var(--ert-primary); }
.ert-cta--boxed { background: var(--ert-soft); color: var(--ert-text); grid-template-columns: 1.1fr .9fr; }
.ert-cta--boxed .ert-cta__title { color: var(--ert-heading); }
.ert-cta--boxed .ert-eyebrow--light { color: var(--ert-primary); }
.ert-cta__bg { position: absolute; inset: 0; z-index: -1; }
.ert-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.ert-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 100%); }
.ert-cta__text { max-width: 640px; }
.ert-cta__title { color: #fff; font-size: var(--ert-h2); }
.ert-cta__img { border-radius: var(--ert-radius-lg); overflow: hidden; }
.ert-cta__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .ert-cta--boxed { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.ert-testimonial { position: relative; margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--ert-surface); padding: 26px 24px 22px; border-radius: var(--ert-radius); box-shadow: 0 0 0 1px var(--ert-border); }
.ert-bg-light .ert-testimonial { box-shadow: none; }
.ert-testimonial blockquote { margin: 0 0 22px; font-size: .9375rem; line-height: 1.75; color: var(--ert-text); flex: 1; }
.ert-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.ert-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ert-testimonial__initial { display: grid; place-items: center; background: var(--ert-primary); color: var(--ert-on-primary); font-weight: 600; font-size: 1.125rem; }
.ert-testimonial__who { min-width: 0; }
.ert-testimonial figcaption strong { display: block; color: var(--ert-heading); font-size: .875rem; font-weight: 600; }
.ert-testimonial figcaption small { display: block; color: var(--ert-muted); }
.ert-stars { margin-left: auto; color: color-mix(in srgb, var(--ert-muted) 45%, transparent); letter-spacing: 1px; white-space: nowrap; font-size: .9375rem; }
.ert-stars .is-on { color: var(--ert-accent); }
.ert-testimonial > .ert-stars { margin: 0 0 14px; }

/* ---------- FAQs ---------- */
.ert-faqs--side { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .ert-faqs--side { grid-template-columns: 1fr; } }
.ert-faqs:not(.ert-faqs--side) .ert-accordion { max-width: 880px; margin-inline: auto; }
.ert-accordion { display: grid; gap: 12px; }
.ert-accordion__item { background: var(--ert-surface); border-radius: var(--ert-radius); box-shadow: 0 0 0 1px var(--ert-border); transition: box-shadow .3s; }
.ert-accordion__item[open] { box-shadow: 0 0 0 1px var(--ert-primary), var(--ert-shadow); }
.ert-accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; color: var(--ert-heading); cursor: pointer; font-size: 1.0313rem; }
.ert-accordion summary::-webkit-details-marker { display: none; }
.ert-accordion summary .ert-icon { transition: transform .3s var(--ert-ease); color: var(--ert-primary); }
.ert-accordion__item[open] summary .ert-icon { transform: rotate(180deg); }
.ert-accordion__body { padding: 0 22px 20px; }
.ert-faqs__side { position: sticky; top: calc(var(--ert-header-h) + 24px); }
.ert-faqs__img { border-radius: var(--ert-radius-lg); margin-bottom: -40px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ert-faqs__card { position: relative; background: var(--ert-dark); color: rgba(255, 255, 255, .78); padding: 32px; border-radius: var(--ert-radius-lg); margin-inline: 16px; }
.ert-faqs__card h3 { color: #fff; font-size: var(--ert-h3); }
.ert-faqs__card .ert-btns { margin-top: 18px; }
.ert-faqs__card .ert-btn--outline { color: #fff; }

/* ---------- Services ---------- */
.ert-service { display: flex; flex-direction: column; background: var(--ert-surface); border-radius: var(--ert-radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ert-border); transition: transform .35s var(--ert-ease), box-shadow .35s; }
.ert-service:hover { transform: translateY(-4px); box-shadow: var(--ert-shadow-lg); }
.ert-service__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ert-service__media img, .ert-service__media .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-service:hover .ert-service__media img { transform: scale(1.06); }
.ert-service__media .ert-service__icon { position: absolute; left: 22px; bottom: -26px; }
.ert-service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ert-primary); color: var(--ert-on-primary); box-shadow: var(--ert-shadow); }
.ert-service__icon .ert-icon { width: 26px; height: 26px; }
.ert-service__icon--big { margin: 28px 28px 0; }
.ert-service__body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ert-services--icon .ert-service__body { padding-top: 20px; }
.ert-service__title { font-size: var(--ert-h3); }
.ert-service__body p { font-size: 0.9375rem; flex: 1; }

/* ---------- Team ---------- */
.ert-member { text-align: center; }
.ert-member__photo { aspect-ratio: 4 / 5; border-radius: var(--ert-radius-lg); overflow: hidden; background: var(--ert-soft); margin-bottom: 16px; }
.ert-member__photo img, .ert-member__photo .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-member:hover .ert-member__photo img { transform: scale(1.05); }
.ert-member__name { font-size: var(--ert-h4); margin-bottom: 2px; }
.ert-member__role { color: var(--ert-primary); font-weight: 500; margin: 0; font-size: 0.9375rem; }
.ert-member__lang { color: var(--ert-muted); font-size: 0.8125rem; margin: 2px 0 0; }
.ert-member__links { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ert-member__links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ert-soft); color: var(--ert-heading); }
.ert-member__links a:hover { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-member__links .ert-icon { width: 17px; height: 17px; }

/* ---------- Gallery ---------- */
.ert-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.ert-chips--static { justify-content: flex-start; margin: 20px 0 0; }
.ert-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 30px; border: 1px solid var(--ert-border); background: var(--ert-surface); color: var(--ert-heading); font-size: 0.875rem; font-weight: 500; }
.ert-chip .ert-icon { width: 15px; height: 15px; color: var(--ert-primary); }
button.ert-chip:hover, .ert-chip.is-active { background: var(--ert-heading); color: var(--ert-bg); border-color: var(--ert-heading); }
.ert-gallery { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.ert-gallery--2 { --cols: 2; } .ert-gallery--3 { --cols: 3; } .ert-gallery--4 { --cols: 4; }
@media (max-width: 800px) { .ert-gallery { --cols: 2 !important; } }
.ert-gallery__cell.is-filtered { display: none; }
.ert-gallery__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--ert-radius); background: var(--ert-soft); }
.ert-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-gallery__zoom { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.ert-gallery__zoom .ert-icon { width: 34px; height: 34px; }
.ert-gallery__item:hover img { transform: scale(1.07); }
.ert-gallery__item:hover .ert-gallery__zoom { opacity: 1; }
.ert-album__cover { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--ert-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ert-dark); text-align: left; color: #fff; isolation: isolate; }
.ert-album__cover img, .ert-album__cover .ert-img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ert-ease); }
.ert-album__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 60%); }
.ert-album__cover:hover img { transform: scale(1.06); }
.ert-album__meta { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; flex-direction: column; }
.ert-album__meta strong { font-family: var(--ert-font-heading); font-size: var(--ert-h3); font-weight: var(--ert-heading-weight); }
.ert-album__meta small { display: inline-flex; gap: 6px; align-items: center; opacity: .85; }

/* ---------- Logos ---------- */
.ert-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.ert-logos__item { display: grid; place-items: center; height: 100px; padding: 18px; border-radius: var(--ert-radius); background: var(--ert-surface); box-shadow: 0 0 0 1px var(--ert-border); color: var(--ert-heading); font-weight: 600; transition: box-shadow .3s; }
.ert-logos__item img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.ert-logos__item:hover { box-shadow: var(--ert-shadow); }
.ert-logos__item:hover img { filter: none; opacity: 1; }

/* ---------- Video ---------- */
.ert-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ert-radius-lg); overflow: hidden; background: #000; }
.ert-video img, .ert-video iframe, .ert-video .ert-img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ert-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--ert-primary); color: var(--ert-on-primary); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255, 255, 255, .2); transition: transform .3s var(--ert-ease); }
.ert-video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.ert-video__play .ert-icon { width: 40px; height: 40px; }

/* ---------- Forms ---------- */
.ert-panel { background: var(--ert-surface); border-radius: var(--ert-radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--ert-shadow-lg); }
.ert-form { position: relative; }
.ert-form__head { margin-bottom: 20px; }
.ert-form__title { font-size: var(--ert-h3); margin-bottom: 6px; }
.ert-form__subtitle { color: var(--ert-muted); margin: 0; font-size: 0.9375rem; }
.ert-form__listing { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; background: var(--ert-soft); border-radius: var(--ert-radius); color: var(--ert-heading); font-weight: 600; font-size: 0.875rem; }
.ert-form__listing .ert-icon { color: var(--ert-primary); }
.ert-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ert-form--sidebar .ert-form__grid, .ert-form--modal.ert-form--callback .ert-form__grid { grid-template-columns: 1fr; }
.ert-form__field { min-width: 0; }
.ert-form__field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .ert-form__grid { grid-template-columns: 1fr; } }
.ert-input { width: 100%; padding: 13px 15px; border: 1px solid var(--ert-border); border-radius: var(--ert-btn-radius); background: var(--ert-surface); color: var(--ert-heading); font-size: .9375rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select.ert-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
textarea.ert-input { resize: vertical; min-height: 96px; }
.ert-input::placeholder { color: var(--ert-muted); }
.ert-input:focus { outline: none; border-color: var(--ert-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ert-primary) 14%, transparent); }
.ert-form__field.has-error .ert-input { border-color: #d63638; }
.ert-form__error { display: block; font-size: 0.7813rem; color: #d63638; margin-top: 4px; }
.ert-form__error:empty { display: none; }
.ert-phone { display: flex; }
.ert-phone__code { width: 118px; flex-shrink: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; background-color: var(--ert-soft); }
.ert-phone .ert-input:not(.ert-phone__code) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ert-form__submit { width: 100%; padding-block: 15px; }
.ert-form__submit.is-loading { opacity: .7; pointer-events: none; }
.ert-form__submit.is-loading .ert-icon { animation: ertSpin 1s linear infinite; }
@keyframes ertSpin { to { transform: rotate(360deg); } }
.ert-form__privacy { font-size: 0.7813rem; color: var(--ert-muted); margin: 12px 0 0; text-align: center; }
.ert-form__msg { margin-top: 14px; padding: 14px 16px; border-radius: var(--ert-radius); font-size: 0.9375rem; }
.ert-form__msg.is-success { background: #ecfdf3; color: #067647; }
.ert-form__msg.is-error { background: #fef3f2; color: #b42318; }
.ert-form__msg .ert-btn { margin-top: 10px; }
.ert-form.is-done .ert-form__grid, .ert-form.is-done .ert-form__privacy { display: none; }
.ert-form.is-done .ert-form__msg { margin-top: 0; }

/* newsletter form (footer & section) */
.ert-form--newsletter .ert-form__grid { display: flex; gap: 8px; }
.ert-form--newsletter .ert-form__field { flex: 1; }
.ert-form--newsletter .ert-form__actions { flex: 0 0 auto; }
.ert-form--newsletter .ert-form__submit { width: auto; padding-inline: 22px; }
@media (max-width: 520px) { .ert-form--newsletter .ert-form__grid { flex-direction: column; } .ert-form--newsletter .ert-form__submit { width: 100%; } }

/* Form section */
.ert-formsec { position: relative; isolation: isolate; }
.ert-formsec__inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ert-formsec--center .ert-formsec__inner { grid-template-columns: minmax(0, 720px); justify-content: center; }
.ert-formsec__text .ert-lead { margin-bottom: 8px; }
.ert-formsec__contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.ert-formsec__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ert-heading); font-weight: 600; }
.ert-formsec__contact .ert-icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ert-soft); color: var(--ert-primary); }
.ert-bg-light .ert-formsec__contact .ert-icon { background: var(--ert-surface); }
.ert-formsec__img { margin-top: 32px; border-radius: var(--ert-radius-lg); overflow: hidden; }
.ert-formsec--image { margin-block: calc(var(--ert-section) * -1); padding-block: var(--ert-section); color: rgba(255, 255, 255, .85); }
.ert-formsec--image .ert-title { color: #fff; }
.ert-formsec--image .ert-lead { color: rgba(255, 255, 255, .8); }
.ert-formsec--image .ert-formsec__contact a { color: #fff; }
.ert-formsec--image .ert-formsec__contact .ert-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.ert-formsec__bg { position: absolute; inset: 0; z-index: -1; }
.ert-formsec__bg img { width: 100%; height: 100%; object-fit: cover; }
.ert-formsec__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .45)); }
@media (max-width: 900px) { .ert-formsec__inner { grid-template-columns: 1fr; } }

/* Newsletter section */
.ert-newsletter { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--ert-radius-lg) * 1.4); padding: clamp(32px, 5vw, 64px); background: var(--ert-primary); color: color-mix(in srgb, var(--ert-on-primary) 85%, transparent); display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 32px; align-items: center; }
.ert-newsletter__bg { position: absolute; inset: 0; z-index: -1; }
.ert-newsletter__bg img { width: 100%; height: 100%; object-fit: cover; }
.ert-newsletter__bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ert-primary) 82%, transparent); }
.ert-newsletter__title { color: var(--ert-on-primary); font-size: var(--ert-h2); margin-bottom: 6px; }
.ert-newsletter p { margin: 0; }
.ert-newsletter .ert-input { border-color: transparent; }
.ert-newsletter .ert-btn--primary { background: var(--ert-dark); box-shadow: none; }
.ert-newsletter .ert-form__msg.is-success { background: rgba(255, 255, 255, .95); }
@media (max-width: 800px) { .ert-newsletter { grid-template-columns: 1fr; } }

/* Contact section */
.ert-contact { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ert-contact--solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .ert-contact { grid-template-columns: 1fr; } }
.ert-contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.ert-contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.ert-contact__icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: color-mix(in srgb, var(--ert-primary) 10%, transparent); color: var(--ert-primary); }
.ert-contact__list small { display: block; font-size: 0.7813rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ert-muted); }
.ert-contact__list a, .ert-contact__list span { color: var(--ert-heading); font-weight: 600; font-size: 1.0625rem; }
.ert-map { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--ert-radius-lg); overflow: hidden; height: 420px; background: var(--ert-soft); }
.ert-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ert-map--inline { margin-top: 0; height: 360px; }

/* ---------- Listing page: filters + results ---------- */
.ert-filters { background: var(--ert-surface); border-radius: var(--ert-radius-lg); box-shadow: var(--ert-shadow-lg); padding: 18px; margin-bottom: 32px; position: relative; z-index: 2; }
.ert-section--listing:first-child, .ert-section--page-hero + .ert-section--listing { padding-top: 0; }
.ert-section--page-hero + .ert-section--listing .ert-filters { margin-top: -48px; }
.ert-section--page-hero:has(+ .ert-section--listing) .ert-pagehero__content { padding-bottom: 96px; }
.ert-filters__search { position: relative; margin-bottom: 12px; }
.ert-filters__search .ert-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ert-muted); }
.ert-filters__search .ert-input { padding-left: 46px; font-size: 1rem; background: var(--ert-soft); border-color: transparent; }
.ert-filters__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.ert-filters__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ert-filters__field > span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ert-muted); }
.ert-filters__field--area { grid-column: span 2; }
@media (max-width: 520px) { .ert-filters__field--area { grid-column: auto; } }
.ert-filters__range { display: flex; gap: 6px; }
.ert-filters__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ert-filters__actions .ert-btn { flex: 1; padding-block: 13px; }
.ert-filters__reset { font-size: 0.875rem; font-weight: 600; color: var(--ert-muted); text-decoration: underline; }
.ert-results { transition: opacity .25s; }
.ert-results.is-loading { opacity: .45; pointer-events: none; }
.ert-results__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ert-results__count { margin: 0; font-weight: 600; color: var(--ert-heading); }
.ert-results__sort { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ert-muted); }
.ert-results__sort .ert-input { width: auto; padding-block: 9px; }
.ert-empty { text-align: center; padding: 56px 24px; background: var(--ert-soft); border-radius: var(--ert-radius-lg); }
.ert-empty > .ert-icon { width: 44px; height: 44px; color: var(--ert-primary); margin-bottom: 12px; }
.ert-empty p { max-width: 520px; margin: 0 auto 18px; }
.ert-pagination { margin-top: 40px; }
.ert-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.ert-pagination a.page-numbers, .ert-pagination span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--ert-btn-radius); border: 1px solid var(--ert-border); color: var(--ert-heading); font-weight: 600; background: var(--ert-surface); }
.ert-pagination a.page-numbers:hover { border-color: var(--ert-heading); }
.ert-pagination .page-numbers.current { background: var(--ert-primary); border-color: var(--ert-primary); color: var(--ert-on-primary); }
.ert-pagination span.dots { border: 0; background: none; }

/* ---------- Single property / project ---------- */
.ert-single { padding-bottom: 0; }
.ert-sgallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; margin: 20px 0 36px; border-radius: var(--ert-radius-lg); overflow: hidden; }
.ert-sgallery__item { position: relative; display: block; overflow: hidden; background: var(--ert-soft); }
.ert-sgallery__item:first-child { grid-row: span 2; }
.ert-sgallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-sgallery__item:hover img { transform: scale(1.05); }
.ert-sgallery--1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
.ert-sgallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 460px; }
.ert-sgallery--2 .ert-sgallery__item:first-child { grid-row: auto; }
.ert-sgallery--3 { grid-template-columns: 2fr 1fr; }
.ert-sgallery--4 .ert-sgallery__item:nth-child(4) { grid-column: span 2; }
.ert-sgallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.375rem; font-weight: 600; }
.ert-sgallery__all { position: absolute; right: 16px; bottom: 16px; box-shadow: var(--ert-shadow); }
.ert-sgallery--empty { display: block; height: 380px; }
@media (max-width: 800px) {
  .ert-sgallery, .ert-sgallery--3, .ert-sgallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 140px; }
  .ert-sgallery__item:first-child { grid-column: span 2; grid-row: auto; }
  .ert-sgallery__item:nth-child(n+4) { display: none; }
  .ert-sgallery--1 { grid-template-rows: 300px; }
  .ert-sgallery--2 { grid-template-rows: 260px; }
}
.ert-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: var(--ert-section); }
@media (max-width: 1000px) { .ert-single__layout { grid-template-columns: 1fr; } }
.ert-single__header { margin-bottom: 24px; }
.ert-single__title { font-size: var(--ert-h2); margin-bottom: 8px; }
.ert-single__loc { display: flex; align-items: center; gap: 6px; color: var(--ert-muted); margin: 0 0 12px; }
.ert-single__loc .ert-icon { color: var(--ert-primary); }
.ert-single__price { font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 700; color: var(--ert-primary); }
.ert-facts { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; background: var(--ert-soft); border-radius: var(--ert-radius-lg); }
.ert-facts li { display: flex; gap: 12px; align-items: center; }
.ert-facts .ert-icon { width: 42px; height: 42px; padding: 10px; background: var(--ert-surface); border-radius: 12px; color: var(--ert-primary); }
.ert-facts small { display: block; font-size: 0.7813rem; color: var(--ert-muted); }
.ert-facts strong { color: var(--ert-heading); font-weight: 600; }
.ert-facts--bar { position: relative; z-index: 2; margin-top: -48px; background: var(--ert-surface); box-shadow: var(--ert-shadow-lg); margin-bottom: 40px; }
.ert-facts--bar .ert-icon { background: var(--ert-soft); }
.ert-block { padding: 32px 0; border-bottom: 1px solid var(--ert-border); }
.ert-block:last-child { border-bottom: 0; }
.ert-block__title { font-size: var(--ert-h3); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ert-block__tag { font-family: var(--ert-font-body); font-size: 0.875rem; background: var(--ert-primary); color: var(--ert-on-primary); padding: 4px 12px; border-radius: 30px; }
.ert-readmore.is-collapsed { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.ert-readmore__btn { margin-top: 12px; background: none; border: 0; padding: 0; font-weight: 600; color: var(--ert-primary); }
.ert-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ert-amenities li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ert-soft); border-radius: var(--ert-radius); color: var(--ert-heading); font-weight: 500; }
.ert-amenities .ert-icon { color: var(--ert-primary); }
.ert-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ert-plan { display: block; border: 1px solid var(--ert-border); border-radius: var(--ert-radius); overflow: hidden; background: var(--ert-surface); color: var(--ert-heading); }
.ert-plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 10px; }
.ert-plan span { display: block; padding: 10px 14px; font-weight: 600; border-top: 1px solid var(--ert-border); }
.ert-table-wrap { overflow-x: auto; border: 1px solid var(--ert-border); border-radius: var(--ert-radius); }
.ert-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ert-table th, .ert-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ert-border); }
.ert-table th { background: var(--ert-soft); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ert-muted); }
.ert-table tr:last-child td { border-bottom: 0; }
.ert-payplan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; counter-reset: step; }
.ert-payplan li { position: relative; padding: 22px 20px; border-radius: var(--ert-radius-lg); background: var(--ert-soft); display: flex; flex-direction: column; }
.ert-payplan strong { font-family: var(--ert-font-heading); font-size: 2.375rem; line-height: 1; color: var(--ert-primary); margin-bottom: 8px; }
.ert-payplan span { font-weight: 600; color: var(--ert-heading); }
.ert-payplan small { color: var(--ert-muted); }
.ert-nearby { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; }
.ert-nearby li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--ert-border); }
.ert-nearby .ert-icon { color: var(--ert-primary); width: 17px; height: 17px; }
.ert-nearby span { flex: 1; }
.ert-nearby strong { color: var(--ert-heading); font-weight: 600; font-size: 0.875rem; }

.ert-sidebar { position: sticky; top: calc(var(--ert-header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; } /* never wider than its column */
.ert-agent { padding: 22px; }
.ert-agent__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ert-agent__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--ert-soft); display: grid; place-items: center; color: var(--ert-muted); }
.ert-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.ert-agent__photo.is-logo img { object-fit: contain; padding: 8px; }
.ert-agent__head strong { display: block; color: var(--ert-heading); font-size: 1.0625rem; }
.ert-agent__head small { color: var(--ert-muted); }
.ert-agent__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ert-sidebar .ert-form__title { font-size: var(--ert-h4); }

.ert-projhero { position: relative; isolation: isolate; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; color: rgba(255, 255, 255, .88); background: var(--ert-dark); }
.has-transparent-header .ert-projhero { padding-top: var(--ert-header-h); }
.ert-projhero__bg { position: absolute; inset: 0; z-index: -2; }
.ert-projhero__bg img, .ert-projhero__bg .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ert-projhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .15) 70%); }
.ert-projhero__content { padding-block: 60px 96px; }
.ert-projhero__title { color: #fff; font-size: var(--ert-h1); margin: 14px 0 8px; }
.ert-projhero__tagline { font-size: 1.1875rem; max-width: 700px; }
.ert-projhero__dev { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px; margin-right: 10px; vertical-align: middle; }
.ert-projhero__dev img { height: 34px; width: auto; }
.ert-projhero .ert-single__loc { color: rgba(255, 255, 255, .8); }

/* Posts */
.ert-post-image { border-radius: var(--ert-radius-lg); overflow: hidden; margin-bottom: 32px; }
.ert-404__code { display: block; font-family: var(--ert-font-heading); font-size: clamp(5.625rem, 16vw, 11.25rem); line-height: 1; color: var(--ert-primary); }
.ert-404 .ert-empty { background: none; }

/* ---------- Footer ---------- */
.ert-footer { background: var(--ert-footer-bg); color: var(--ert-footer-text); font-size: .875rem; }
.ert-footer a { color: var(--ert-footer-text); }
.ert-footer a:hover { color: var(--ert-primary); }
.ert-footer h4 { color: var(--ert-heading); font-family: var(--ert-font-body); font-size: .875rem; font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 16px; }
.ert-footer__newsletter { background: var(--ert-primary); color: color-mix(in srgb, var(--ert-on-primary) 82%, transparent); }
.ert-footer__newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px 48px; align-items: center; padding-block: 26px; }
.ert-footer__newsletter-title { color: var(--ert-on-primary); font-size: var(--ert-h3); margin-bottom: 2px; }
.ert-footer__newsletter p { margin: 0; font-size: var(--ert-fs-small); }
.ert-footer__newsletter .ert-form--newsletter .ert-form__grid { gap: 0; }
.ert-footer__newsletter .ert-input { background: var(--ert-surface); border-color: var(--ert-surface); color: var(--ert-heading); border-radius: var(--ert-btn-radius) 0 0 var(--ert-btn-radius); padding-block: 11px; font-size: var(--ert-fs-small); }
.ert-footer__newsletter .ert-form__submit { background: var(--ert-dark); color: #fff; border-radius: 0 var(--ert-btn-radius) var(--ert-btn-radius) 0; padding-block: 11px; }
.ert-footer__newsletter .ert-form__submit:hover { background: var(--ert-heading); color: var(--ert-bg); }
.ert-footer__newsletter .ert-form__msg.is-success { background: rgba(255, 255, 255, .95); }
.ert-footer__follow { display: flex; align-items: center; gap: 10px; color: var(--ert-on-primary); font-size: var(--ert-fs-small); white-space: nowrap; }
.ert-footer__follow .ert-socials { margin: 0; gap: 2px; }
.ert-footer__follow .ert-socials a { width: 32px; height: 32px; background: none; color: var(--ert-on-primary); }
.ert-footer__follow .ert-socials a:hover { background: color-mix(in srgb, var(--ert-on-primary) 14%, transparent); color: var(--ert-on-primary); }
@media (max-width: 1000px) { .ert-footer__newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ert-footer__newsletter .ert-input, .ert-footer__newsletter .ert-form__submit { border-radius: var(--ert-btn-radius); } .ert-footer__newsletter .ert-form--newsletter .ert-form__grid { gap: 8px; } }
.ert-footer__grid { display: flex; flex-wrap: wrap; gap: 36px 40px; padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px); }
.ert-footer__brand { flex: 1.6 1 240px; }
.ert-footer__col { flex: 1 1 150px; }
.ert-logo--footer { margin-bottom: 14px; }
.ert-footer__brand p { max-width: 300px; font-size: var(--ert-fs-small); }
.ert-socials { display: flex; gap: 8px; margin-top: 20px; }
.ert-socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ert-soft); color: var(--ert-heading); transition: background .25s, color .25s; }
.ert-socials a:hover { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-socials .ert-icon { width: 17px; height: 17px; }
.ert-footer__links, .ert-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--ert-fs-small); }
.ert-footer__links a { display: inline-block; transition: transform .25s var(--ert-ease), color .2s; }
.ert-footer__links a:hover { transform: translateX(3px); }
.ert-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ert-footer__contact .ert-icon { color: var(--ert-heading); margin-top: 3px; width: 15px; height: 15px; }
.ert-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--ert-border); font-size: .75rem; padding-right: calc(var(--ert-gutter) + 64px); }
.ert-footer__bottom p { margin: 0; }
.ert-footer__legal { opacity: .8; }
.ert-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 560px) { .ert-footer__grid { gap: 28px 24px; } .ert-footer__col { flex-basis: 40%; } }

/* ---------- WhatsApp floating button ---------- */
.ert-wa { position: fixed; bottom: 22px; z-index: 300; display: flex; align-items: center; gap: 10px; color: #fff; }
.ert-wa--right { right: 22px; flex-direction: row-reverse; }
.ert-wa--left { left: 22px; }
.ert-wa__icon { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: #25d366; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); position: relative; transition: transform .3s var(--ert-ease); }
.ert-wa::before { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; background: #25d366; animation: ertPulse 2.4s ease-out infinite; z-index: -1; }
.ert-wa--right::before { right: 0; }
.ert-wa--left::before { left: 0; }
@keyframes ertPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
.ert-wa:hover { color: #fff; }
.ert-wa:hover .ert-wa__icon { transform: scale(1.08); }
.ert-wa__label { background: var(--ert-surface); color: var(--ert-heading); padding: 8px 14px; border-radius: 30px; font-weight: 600; font-size: 0.875rem; box-shadow: var(--ert-shadow); white-space: nowrap; opacity: 0; transform: translateX(10px); transition: all .3s var(--ert-ease); pointer-events: none; }
.ert-wa--left .ert-wa__label { transform: translateX(-10px); }
.ert-wa:hover .ert-wa__label { opacity: 1; transform: none; }
@media (max-width: 600px) { .ert-wa { bottom: 16px; } .ert-wa--right { right: 16px; } .ert-wa--left { left: 16px; } .ert-wa__icon, .ert-wa::before { width: 54px; height: 54px; } .ert-wa__label { display: none; } }

/* ---------- Modal ---------- */
.ert-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.ert-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 24, .7); backdrop-filter: blur(4px); animation: ertFade .25s ease; }
.ert-modal__dialog { position: relative; width: 100%; max-width: 580px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--ert-surface); border-radius: var(--ert-radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ert-shadow-lg); animation: ertPop .35s var(--ert-ease); }
.ert-modal[data-ert-modal-box="callback"] .ert-modal__dialog { max-width: 460px; }
.ert-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ert-soft); color: var(--ert-heading); display: grid; place-items: center; }
.ert-modal__close:hover { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-modal .ert-form__head { padding-right: 40px; }
@keyframes ertFade { from { opacity: 0; } }
@keyframes ertPop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* ---------- Lightbox ---------- */
.ert-lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(8, 9, 11, .95); display: flex; align-items: center; justify-content: center; animation: ertFade .25s ease; }
.ert-lightbox__stage { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); text-align: center; }
.ert-lightbox__stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border-radius: 6px; object-fit: contain; }
.ert-lightbox__stage figcaption { color: rgba(255, 255, 255, .7); margin-top: 12px; font-size: 0.875rem; }
.ert-lightbox__close, .ert-lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.ert-lightbox__close:hover, .ert-lightbox__nav:hover { background: var(--ert-primary); }
.ert-lightbox__close { top: 18px; right: 18px; }
.ert-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ert-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.ert-lightbox__count { position: absolute; top: 30px; left: 24px; color: rgba(255, 255, 255, .7); font-size: 0.875rem; }
@media (max-width: 700px) { .ert-lightbox__stage { max-width: 100vw; padding: 0 8px; } .ert-lightbox__nav { top: auto; bottom: 18px; transform: none; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ert-js .ert-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ert-ease), transform .9s var(--ert-ease); }
  .ert-js .ert-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Property detail page (.ert-pd) — scoped so other pages are unaffected.
   Accent colour comes from Theme Settings → Property Page (--pd-accent).
   ========================================================================= */
.ert-pd { --pd-accent: var(--ert-primary); --pd-accent-dark: var(--ert-primary-dark); --pd-border: var(--ert-border); --pd-muted: var(--ert-muted); --pd-radius: var(--ert-radius); background: var(--ert-bg); padding-top: clamp(20px, 3vw, 40px); }
.ert-btn--accent { background: var(--pd-accent, var(--ert-primary)); color: var(--ert-on-primary); border-color: transparent; box-shadow: none; }
.ert-btn--accent:hover { background: var(--pd-accent-dark, var(--ert-primary-dark)); color: var(--ert-on-primary); }
.ert-btn--accent-outline { background: transparent; color: var(--pd-accent, var(--ert-primary)); border-color: var(--pd-accent, var(--ert-primary)); }
.ert-btn--accent-outline:hover { background: var(--pd-accent, var(--ert-primary)); color: var(--ert-on-primary); }
.ert-btn--xs { padding: 6px 12px; font-size: calc(var(--ert-fs-btn) * .95); border-radius: var(--ert-btn-radius); gap: 6px; }
.ert-btn--xs .ert-icon { width: 14px; height: 14px; }
.ert-pd .ert-btn:hover { transform: none; }

/* Gallery */
.ert-pd-gallery { position: relative; display: grid; gap: 12px; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); grid-template-rows: repeat(2, clamp(150px, 16vw, 300px)); }
.ert-pd-gallery__item, .ert-pd-gallery__main { display: block; position: relative; overflow: hidden; border-radius: var(--pd-radius); background: var(--ert-soft); }
.ert-pd-gallery__main { grid-row: 1 / span 2; }
.ert-pd-gallery__item img, .ert-pd-gallery__main .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ert-ease); }
.ert-pd-gallery__item:hover img { transform: scale(1.03); }
.ert-pd-gallery--0, .ert-pd-gallery--1 { grid-template-columns: 1fr; grid-template-rows: clamp(260px, 34vw, 612px); }
.ert-pd-gallery--0 .ert-pd-gallery__main, .ert-pd-gallery--1 .ert-pd-gallery__main { grid-row: auto; }
.ert-pd-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(240px, 30vw, 560px); }
.ert-pd-gallery--2 .ert-pd-gallery__main { grid-row: auto; }
.ert-pd-gallery__view { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 4px; background: rgba(17, 17, 17, .78); color: #fff; font-size: 0.7813rem; backdrop-filter: blur(4px); }
.ert-pd-gallery__view:hover { background: #111; }
.ert-pd-gallery__view .ert-icon { width: 14px; height: 14px; }

/* Summary + specifications */
.ert-pd__summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(40px, 8vw, 140px); row-gap: 28px; padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); align-items: start; }
.ert-pd__price { margin: 0 0 4px; color: var(--pd-muted); font-size: 1rem; }
.ert-pd__price span { color: var(--pd-accent); font-weight: 500; }
.ert-pd__price small { font-size: inherit; }
.ert-pd__title { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; margin: 6px 0 4px; }
.ert-pd__location { margin: 0 0 14px; color: var(--ert-text); font-size: 0.875rem; }
.ert-pd__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ert-pd__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.ert-pd__spec dt { font-family: var(--ert-font-heading); color: var(--ert-heading); font-size: 0.9375rem; line-height: 1.3; }
.ert-pd__spec dd { margin: 3px 0 0; color: var(--pd-muted); font-size: 0.875rem; }

/* Main layout: description | agent card, then the rest of the page under the description */
.ert-pd__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); column-gap: clamp(40px, 8vw, 140px); grid-template-areas: "first aside" "rest aside"; align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.ert-pd__main--first { grid-area: first; }
.ert-pd__main--rest { grid-area: rest; }
.ert-pd__aside { grid-area: aside; align-self: stretch; }
.ert-pd__block { padding: 0 0 clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--pd-border); }
.ert-pd__main--rest > .ert-pd__block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ert-pd__heading { font-size: var(--ert-h2); font-weight: var(--ert-heading-weight); margin: 0 0 20px; letter-spacing: -.015em; }
.ert-pd__desc { font-size: 0.9063rem; line-height: 1.7; color: var(--ert-text); }
.ert-pd__desc.is-collapsed { max-height: var(--ert-readmore-h, 170px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.ert-pd .ert-readmore__btn, .ert-pd__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; background: none; border: 0; font-size: 0.8125rem; font-weight: 600; color: var(--ert-heading); }
.ert-pd .ert-readmore__btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; }
.ert-pd .ert-readmore__btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.ert-pd__more .ert-icon { width: 15px; height: 15px; transition: transform .25s; }
[data-ert-more-list].is-expanded .ert-pd__more .ert-icon { transform: rotate(180deg); }

/* Off-plan promotion */
.ert-pd-cta { position: relative; display: block; overflow: hidden; border-radius: var(--pd-radius); background: var(--ert-dark); color: #fff; margin-bottom: clamp(48px, 6vw, 72px); min-height: 180px; isolation: isolate; }
.ert-pd-cta:hover { color: #fff; }
.ert-pd-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ert-ease); }
.ert-pd-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 28, .88) 0%, rgba(10, 18, 28, .55) 100%); }
.ert-pd-cta:hover .ert-pd-cta__bg { transform: scale(1.04); }
.ert-pd-cta__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(22px, 3vw, 32px); max-width: 520px; }
.ert-pd-cta__title { font-family: var(--ert-font-heading); font-weight: 500; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.3; }
.ert-pd-cta__text { font-size: 0.8438rem; opacity: .85; line-height: 1.55; }
.ert-pd-cta__btn { margin-top: 8px; padding: 7px 14px; border-radius: 4px; background: var(--pd-accent); color: var(--ert-on-primary); font-size: 0.8125rem; font-weight: 500; }

/* Amenities */
.ert-pd__amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ert-pd__amenities li { padding: 12px 0; border-bottom: 1px solid var(--pd-border); font-size: 0.875rem; color: var(--ert-text); }
.ert-pd__amenities li.is-extra { display: none; }
[data-ert-more-list].is-expanded .ert-pd__amenities li.is-extra { display: block; }

/* Location */
.ert-pd__map { height: clamp(240px, 24vw, 340px); border-radius: var(--pd-radius); overflow: hidden; background: var(--ert-soft); }
.ert-pd__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Agent / enquiry card */
.ert-pd-agent { position: sticky; top: calc(var(--ert-header-h) + 24px); border: 1px solid var(--pd-border); border-radius: var(--pd-radius); padding: clamp(18px, 2vw, 26px); background: var(--ert-surface); box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .35); }
.ert-pd-agent__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ert-pd-agent__photo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--ert-soft); display: grid; place-items: center; color: var(--pd-muted); }
.ert-pd-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.ert-pd-agent__photo.is-logo img { object-fit: contain; padding: 8px; }
.ert-pd-agent__info { display: flex; flex-direction: column; min-width: 0; }
.ert-pd-agent__info strong { font-family: var(--ert-font-heading); font-weight: 500; font-size: 1.125rem; color: var(--ert-heading); line-height: 1.25; }
.ert-pd-agent__info span { font-size: 0.8125rem; color: var(--pd-muted); }
.ert-pd-agent__info small { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--pd-muted); margin-top: 3px; }
.ert-pd-agent__info small .ert-icon { width: 13px; height: 13px; }
.ert-pd-agent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.ert-pd-agent__actions .ert-btn { border-radius: 4px; padding-block: 9px; }
.ert-pd-agent .ert-form__grid { grid-template-columns: 1fr; gap: 14px; }
.ert-form__label { display: block; font-size: 0.8125rem; color: var(--ert-heading); margin-bottom: 6px; }
.ert-pd-agent .ert-input { padding: 10px 12px; border-width: 1px; border-color: var(--ert-border); border-radius: 4px; font-size: 0.875rem; }
.ert-pd-agent .ert-phone__code { width: 100px; }
.ert-pd-agent .ert-form__submit { background: var(--pd-accent); color: var(--ert-on-primary); border-radius: 4px; box-shadow: none; padding-block: 11px; font-weight: 500; }
.ert-pd-agent .ert-form__submit:hover { background: var(--pd-accent-dark); }
.ert-pd-agent .ert-form__submit .ert-icon { display: none; }
.ert-pd-agent .ert-form__privacy { font-size: 0.7188rem; }
.ert-pd-agent__share { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px; padding: 4px; background: none; border: 0; font-size: 0.7813rem; color: var(--ert-heading); }
.ert-pd-agent__share .ert-icon { width: 14px; height: 14px; }
.ert-pd-agent__share:hover { color: var(--pd-accent); }

/* Related properties */
.ert-pd-related { padding: clamp(48px, 7vw, 100px) 0 clamp(56px, 8vw, 120px); border-top: 1px solid var(--pd-border); }
.ert-pd-related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.ert-pd-related__head .ert-pd__heading { margin: 0; }
.ert-pd-related__head p { max-width: 430px; margin: 0; font-size: 0.875rem; color: var(--ert-text); }
.ert-card--related { --pd-border: var(--ert-border); --pd-radius: var(--ert-radius); --pd-muted: var(--ert-muted); border-radius: var(--pd-radius); box-shadow: 0 0 0 1px var(--pd-border); }
.ert-card--related:hover { transform: none; box-shadow: 0 0 0 1px var(--pd-border), 0 18px 40px -26px rgba(0, 0, 0, .35); }
.ert-card--related .ert-card__media { margin: 10px 10px 0; border-radius: 6px; aspect-ratio: 16 / 10; }
.ert-card--related .ert-card__badges { top: 10px; left: 10px; }
.ert-badge--type { background: var(--pd-accent, var(--ert-primary)); color: var(--ert-on-primary); border-radius: 4px; font-weight: 500; }
.ert-card--related .ert-card__body { padding: 18px 16px 16px; }
.ert-card--related .ert-card__price { font-size: 0.9375rem; font-weight: 600; color: var(--pd-accent, var(--ert-primary)); }
.ert-card__price-label { color: var(--ert-heading); }
.ert-card--related .ert-card__title { font-size: 1rem; font-weight: 500; }
.ert-card--related .ert-card__title a { background: none; }
.ert-card--related .ert-card__loc { font-size: 0.8125rem; margin-bottom: 12px; }
.ert-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ert-card__chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--pd-border); border-radius: 4px; font-size: 0.7813rem; color: var(--ert-heading); }
.ert-card__chips .ert-icon { width: 14px; height: 14px; }
.ert-card--related .ert-card__actions { padding-top: 16px; }
.ert-card--related .ert-btn { border-radius: 4px; }

/* Property page responsive */
@media (max-width: 1024px) {
  .ert-pd__summary, .ert-pd__layout { column-gap: 40px; }
  .ert-pd__layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 860px) {
  .ert-pd-gallery, .ert-pd-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(220px, 52vw, 420px) clamp(120px, 26vw, 220px); }
  .ert-pd-gallery__main, .ert-pd-gallery--2 .ert-pd-gallery__main { grid-column: 1 / -1; grid-row: auto; }
  .ert-pd-gallery--2 .ert-pd-gallery__side { grid-column: 1 / -1; }
  .ert-pd__summary { grid-template-columns: 1fr; }
  .ert-pd__specs { padding: 20px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); }
  .ert-pd__layout { grid-template-columns: 1fr; grid-template-areas: "first" "aside" "rest"; }
  .ert-pd__main--first .ert-pd__block { border-bottom: 0; margin-bottom: 32px; padding-bottom: 0; }
  .ert-pd__aside { margin-bottom: 48px; }
  .ert-pd-agent { position: static; }
}
@media (max-width: 480px) {
  .ert-pd__amenities { grid-template-columns: 1fr; }
  .ert-pd__specs { gap: 16px 20px; }
  .ert-pd__cta .ert-btn { flex: 1 1 auto; }
}

/* =========================================================================
   Premium home layouts — light hero + slim search, trust bar, compact cards,
   community slider, split stats, video band, outlined services, FAQ split.
   Every colour, font and size comes from Theme Settings → Global Styles.
   ========================================================================= */

/* View-all link with round arrow */
.ert-viewall { display: inline-flex; align-items: center; gap: 12px; color: var(--ert-heading); font-size: var(--ert-fs-small); font-weight: 500; white-space: nowrap; }
.ert-viewall__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ert-primary); color: var(--ert-on-primary); transition: transform .3s var(--ert-ease), background .3s; }
.ert-viewall__icon .ert-icon { width: 14px; height: 14px; }
.ert-viewall:hover { color: var(--ert-primary); }
.ert-viewall:hover .ert-viewall__icon { transform: translateX(3px); background: var(--ert-primary-dark); }
.ert-bg-dark .ert-viewall { color: #fff; }
.ert-bg-primary .ert-viewall { color: var(--ert-on-primary); }
.ert-bg-primary .ert-viewall__icon { background: var(--ert-on-primary); color: var(--ert-primary); }
.ert-head--split { align-items: flex-end; }

/* Header over a light hero */
.ert-header__actions .ert-btn { padding: 10px 18px; }
.ert-header--on-light:not(.is-scrolled) .ert-menu > li > a,
.ert-header--on-light:not(.is-scrolled) .ert-header__phone,
.ert-header--on-light:not(.is-scrolled) .ert-burger,
.ert-header--on-light:not(.is-scrolled) .ert-logo__text { color: var(--ert-menu); }
.ert-header--on-light:not(.is-scrolled) .ert-logo--dark { opacity: 1; }
.ert-header--on-light:not(.is-scrolled) .ert-header__main { border-bottom-color: transparent; }

/* Hero */
.ert-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.ert-hero__grid.has-aside { grid-template-columns: minmax(0, 1fr) auto; }
.ert-hero__eyebrow { color: #fff; letter-spacing: .38em; margin-bottom: 16px; }
.ert-hero__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 36px; padding-top: 4px; text-align: right; color: #fff; }
.ert-hero__script { font-family: var(--ert-font-script); font-size: clamp(1.75rem, 2.6vw, 2.625rem); line-height: 1; margin: 0; transform: rotate(-7deg); }
.ert-playlink { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font-size: var(--ert-fs-small); font-weight: 500; }
.ert-playlink__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ert-heading); color: var(--ert-bg); transition: transform .3s var(--ert-ease), background .3s; }
.ert-hero--dark .ert-playlink__icon { background: #fff; color: #9f7a3e; }
.ert-playlink__icon .ert-icon { width: 14px; height: 14px; margin-left: 2px; }
.ert-playlink:hover .ert-playlink__icon { transform: scale(1.1); }
.ert-hero--light { color: var(--ert-text); background: var(--ert-bg); }
.ert-hero--light .ert-hero__overlay { background: none; }
.ert-hero--light .ert-hero__script { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.ert-hero__eyebrow { word-spacing: .5em; }
.ert-hero--light .ert-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); max-width: 620px; }
.ert-hero--light .ert-hero__subtitle { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); max-width: 500px; font-size: .9375rem; }
.ert-hero--light .ert-hero__eyebrow, .ert-hero--light .ert-hero__aside { color: #fff; }
@media (max-width: 760px) {
  .ert-hero__grid.has-aside { grid-template-columns: 1fr; gap: 20px; }
  .ert-hero__aside { flex-direction: row; align-items: center; text-align: left; }
  .ert-hero__script { display: none; }
  .ert-hero--light .ert-hero__overlay { background: none; }
}

/* Slim search bar with separate tabs */
.ert-search--bar { margin-top: 30px; max-width: 820px; }
.ert-search--bar .ert-search__tabs { display: flex; gap: 8px; padding: 0; margin-bottom: 10px; background: none; backdrop-filter: none; border-radius: 0; }
.ert-search--bar .ert-search__tab { padding: 9px 26px; border-radius: var(--ert-btn-radius); background: color-mix(in srgb, var(--ert-surface) 92%, transparent); color: var(--ert-heading); font-size: var(--ert-fs-btn); font-weight: 500; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.ert-search--bar .ert-search__tab.is-active { background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-search--bar .ert-search__form { padding: 6px; border-radius: var(--ert-btn-radius); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); }
.ert-search--bar .ert-search__field { justify-content: center; padding: 2px 14px; }
.ert-search--bar .ert-search__field select { padding: 10px 18px 10px 0; font-size: var(--ert-fs-small); font-weight: 400; color: var(--ert-text); appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; }
.ert-search--bar .ert-search__submit { padding: 11px 26px; }
@media (max-width: 900px) { .ert-search--bar .ert-search__submit { padding: 12px; } }

/* Trust bar */
.ert-features--strip { gap: 20px; }
.ert-features--strip .ert-feature { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0; background: none; box-shadow: none; color: var(--ert-text); }
.ert-features--strip .ert-feature__icon { width: auto; height: auto; margin: 0; background: none; border-radius: 0; color: var(--ert-heading); }
.ert-features--strip .ert-feature__icon .ert-icon { width: 30px; height: 30px; stroke-width: 1.5; }
.ert-features--strip .ert-feature__body { display: flex; flex-direction: column; line-height: 1.4; }
.ert-features--strip .ert-feature__title { font-family: var(--ert-font-body); font-size: .8125rem; font-weight: 600; color: var(--ert-heading); margin: 0; }
.ert-features--strip .ert-feature__text { font-size: .75rem; color: var(--ert-muted); }
@media (max-width: 900px) { .ert-features--strip { --cols: 2; } .ert-features--strip .ert-feature { justify-content: flex-start; } }
@media (max-width: 600px) { .ert-grid.ert-features--strip { --cols: 2 !important; gap: 18px 12px; } .ert-features--strip .ert-feature { gap: 10px; } .ert-features--strip .ert-feature__icon .ert-icon { width: 24px; height: 24px; } }

/* Compact project card */
.ert-card--compact { border-radius: var(--ert-radius); box-shadow: 0 0 0 1px var(--ert-border); }
.ert-card--compact:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ert-border), var(--ert-shadow-lg); }
.ert-card--compact .ert-card__media { margin: 8px 8px 0; border-radius: calc(var(--ert-radius) - 2px); aspect-ratio: 16 / 9.5; }
.ert-card--compact .ert-card__badges { top: 10px; left: 10px; }
.ert-badge--tag { border-radius: 3px; background: var(--ert-primary); color: var(--ert-on-primary); font-weight: 500; font-size: .6875rem; padding: 4px 9px; }
.ert-badge--tag.is-featured { background: var(--ert-dark); color: #fff; }
.ert-badge--tag.is-accent { background: var(--ert-accent); color: var(--ert-on-primary); }
.ert-card--compact .ert-card__body { padding: 14px 16px 16px; }
.ert-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ert-card--compact .ert-card__title { font-family: var(--ert-font-body); font-size: .9375rem; font-weight: 600; text-transform: none; margin: 0 0 4px; }
.ert-card--compact .ert-card__title a { background: none; }
.ert-card--compact .ert-card__loc { font-size: .75rem; margin: 0 0 10px; }
.ert-card--compact .ert-card__loc .ert-icon { width: 13px; height: 13px; color: var(--ert-muted); }
.ert-card__from { margin: 0 0 12px; color: var(--ert-heading); font-size: .8125rem; font-weight: 500; }
.ert-card__from strong { font-size: 1.0625rem; font-weight: 600; }
.ert-card__meta { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: .75rem; color: var(--ert-text); }
.ert-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.ert-card__meta .ert-icon { width: 15px; height: 15px; color: var(--ert-muted); }
.ert-fav { flex-shrink: 0; width: 30px; height: 30px; margin: -5px -7px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ert-heading); transition: color .2s, transform .2s; }
.ert-fav .ert-icon { width: 18px; height: 18px; }
.ert-fav:hover { color: var(--ert-primary); transform: scale(1.1); }
.ert-fav.is-on { color: #b8433a; }
.ert-fav.is-on .ert-icon { fill: currentColor; }

/* Community slider */
.ert-carousel--slider .ert-carousel__track { grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; padding-bottom: 6px; }
.ert-carousel--slider .ert-carousel__nav { margin: 0; }
.ert-carousel--slider .ert-carousel__btn { position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; background: var(--ert-bg); border-color: var(--ert-border); box-shadow: var(--ert-shadow); }
.ert-carousel--slider [data-ert-prev] { left: calc(-1 * clamp(12px, 3.4vw, 56px)); }
.ert-carousel--slider [data-ert-next] { right: calc(-1 * clamp(12px, 3.4vw, 56px)); }
.ert-carousel--slider .ert-carousel__btn:disabled { opacity: .55; }
.ert-community--simple { min-height: 0; height: auto; aspect-ratio: 5 / 4; border-radius: var(--ert-radius); }
.ert-community--simple::after { background: linear-gradient(0deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 45%); }
.ert-community--simple .ert-community__body { left: 10px; right: 10px; bottom: 14px; align-items: center; text-align: center; }
.ert-community--simple .ert-community__name { font-family: var(--ert-font-body); font-size: .875rem; font-weight: 600; text-transform: none; }
@media (max-width: 1024px) { .ert-carousel--slider .ert-carousel__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 640px) {
  .ert-carousel--slider .ert-carousel__track { grid-auto-columns: 62%; gap: 12px; }
  .ert-carousel--slider [data-ert-prev] { left: 4px; }
  .ert-carousel--slider [data-ert-next] { right: 4px; }
}

/* Stats — heading left, counter boxes right */
.ert-stats--split .ert-stats__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ert-stats--split .ert-head { margin: 0; }
.ert-stats--split .ert-lead { font-size: var(--ert-fs-small); }
.ert-stats__boxes { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.ert-statbox { text-align: center; padding: clamp(18px, 2.4vw, 28px) 10px; border: 1px solid var(--ert-border); border-radius: var(--ert-radius); }
.ert-bg-dark .ert-statbox, .ert-stats.has-image .ert-statbox { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.ert-bg-primary .ert-statbox { border-color: color-mix(in srgb, var(--ert-on-primary) 25%, transparent); background: color-mix(in srgb, var(--ert-on-primary) 4%, transparent); }
.ert-statbox__icon { display: inline-grid; margin-bottom: 10px; color: var(--ert-primary); }
.ert-bg-dark .ert-statbox__icon, .ert-stats.has-image .ert-statbox__icon { color: #fff; }
.ert-bg-primary .ert-statbox__icon { color: var(--ert-on-primary); }
.ert-statbox__icon .ert-icon { width: 30px; height: 30px; stroke-width: 1.3; }
.ert-statbox__num { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.15; color: var(--ert-heading); font-variant-numeric: tabular-nums; }
.ert-bg-dark .ert-statbox__num, .ert-stats.has-image .ert-statbox__num { color: #fff; }
.ert-bg-primary .ert-statbox__num { color: var(--ert-on-primary); }
.ert-statbox__label { margin-top: 4px; font-size: .75rem; opacity: .85; }
.ert-stat__icon { display: inline-grid; margin-bottom: 10px; color: var(--ert-primary); }
@media (max-width: 960px) { .ert-stats--split .ert-stats__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ert-stats__boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Text + image: landscape image, 2-column bullets, caption card */
.ert-split--landscape { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.ert-split--landscape .ert-split__img { aspect-ratio: 16 / 10.5; border-radius: var(--ert-radius); }
@media (max-width: 900px) { .ert-split--landscape { grid-template-columns: 1fr; } }
.ert-checklist--2 { grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: .8125rem; color: var(--ert-heading); }
.ert-checklist--2 li { align-items: center; }
.ert-checklist--2 .ert-icon { width: 18px; height: 18px; margin: 0; }
@media (max-width: 480px) { .ert-checklist--2 { grid-template-columns: 1fr; } }
.ert-split__card { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 18px; background: color-mix(in srgb, var(--ert-surface) 94%, transparent); border-radius: var(--ert-radius); box-shadow: var(--ert-shadow); backdrop-filter: blur(6px); }
.ert-split__card-label { font-family: var(--ert-font-heading); color: var(--ert-heading); font-size: 1.0625rem; line-height: 1.2; }
.ert-roundplay { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--ert-heading); color: var(--ert-bg); transition: transform .3s var(--ert-ease), background .3s; }
.ert-roundplay .ert-icon { width: 16px; height: 16px; margin-left: 2px; }
.ert-roundplay:hover { transform: scale(1.08); background: var(--ert-primary); color: var(--ert-on-primary); }
.ert-roundplay--lg { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .94); color: #9f7a3e; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); }
.ert-roundplay--lg .ert-icon { width: 22px; height: 22px; }
.ert-roundplay--lg:hover { background: #fff; color: var(--ert-primary); }

/* Services — minimal outlined cards */
.ert-services--outline .ert-service { padding: 26px 24px 22px; border-radius: var(--ert-radius); box-shadow: 0 0 0 1px var(--ert-border); }
.ert-services--outline .ert-service:hover { transform: translateY(-3px); }
.ert-services--outline .ert-service__icon { width: auto; height: auto; margin: 0 0 14px; background: none; box-shadow: none; border-radius: 0; place-items: start; color: var(--ert-heading); }
.ert-services--outline .ert-service__icon .ert-icon { width: 26px; height: 26px; }
.ert-services--outline .ert-service__body { padding: 0; }
.ert-services--outline .ert-service__title { font-size: var(--ert-h4); margin-bottom: 8px; }
.ert-services--outline .ert-service__body p { font-size: var(--ert-fs-small); margin-bottom: 16px; }
.ert-services--outline .ert-link-arrow { font-size: var(--ert-fs-small); font-weight: 500; }
.ert-services--outline .ert-link-arrow .ert-icon { color: currentColor; width: 14px; height: 14px; }
@media (max-width: 1100px) { .ert-services--outline.ert-grid--4 { --cols: 2; } }

/* Video band — image left, text right */
.ert-videoband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ert-videoband__media { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: var(--ert-radius); background: rgba(0, 0, 0, .15); }
.ert-videoband__media img, .ert-videoband__media .ert-img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ert-videoband__text .ert-head { margin-bottom: 22px; }
.ert-videoband__text .ert-lead { font-size: .875rem; }
.ert-bg-primary .ert-btn--light { background: var(--ert-on-primary); color: var(--ert-primary); }
.ert-bg-primary .ert-btn--light:hover { background: var(--ert-dark); color: #fff; }
@media (max-width: 860px) { .ert-videoband { grid-template-columns: 1fr; } }

/* FAQs — intro left, questions right */
.ert-faqs--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ert-faqs--split .ert-head { margin-bottom: 0; }
.ert-faqs.ert-faqs--split .ert-accordion { max-width: none; margin: 0; }
.ert-faqs--split .ert-lead { font-size: .875rem; }
.ert-faqs--split .ert-btns { margin-top: 24px; }
.ert-accordion--plus { gap: 10px; }
.ert-accordion--plus .ert-accordion__item { border-radius: var(--ert-btn-radius); box-shadow: 0 0 0 1px var(--ert-border); }
.ert-accordion--plus .ert-accordion__item[open] { box-shadow: 0 0 0 1px var(--ert-primary); }
.ert-accordion--plus summary { padding: 14px 18px; font-size: var(--ert-fs-small); font-weight: 500; }
.ert-accordion--plus summary .ert-icon { width: 16px; height: 16px; color: var(--ert-heading); }
.ert-accordion--plus .ert-accordion__item[open] summary .ert-icon { transform: rotate(45deg); }
.ert-accordion--plus .ert-accordion__body { padding: 0 18px 16px; font-size: var(--ert-fs-small); }
@media (max-width: 860px) { .ert-faqs--split { grid-template-columns: 1fr; } }

/* Video pop-up */
.ert-vmodal { position: fixed; inset: 0; z-index: 650; display: grid; place-items: center; padding: 72px 16px; background: rgba(8, 9, 11, .92); animation: ertFade .25s ease; }
.ert-vmodal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: var(--ert-radius); overflow: hidden; }
.ert-vmodal__frame iframe, .ert-vmodal__frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; }

/* =========================================================================
   Premium search panel + premium details + motion.
   Colours come from Global Styles; all motion respects reduced-motion.
   ========================================================================= */

/* Search panel: text tabs with brand underline, labelled fields, price slider, live count */
.ert-search--panel { margin-top: clamp(36px, 5vw, 64px); max-width: none; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 32px); background: color-mix(in srgb, var(--ert-surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--ert-heading) 16%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.ert-search--panel .ert-search__tabs { display: flex; gap: clamp(20px, 2.6vw, 36px); padding: 0; margin: 0 0 24px; background: none; backdrop-filter: none; border-radius: 0; border-bottom: 1px solid var(--ert-border); }
.ert-search--panel .ert-search__tab { position: relative; padding: 4px 0 16px; border-radius: 0; background: none; color: var(--ert-text); font-size: var(--ert-fs-small); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.ert-search--panel .ert-search__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ert-primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ert-ease); }
.ert-search--panel .ert-search__tab:hover { color: var(--ert-heading); }
.ert-search--panel .ert-search__tab.is-active { background: none; color: var(--ert-primary); }
.ert-search--panel .ert-search__tab.is-active::after { transform: scaleX(1); }
.ert-search--panel .ert-search__form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.3fr) auto; gap: 22px; align-items: end; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.ert-search--panel .ert-search__field { padding: 0; border: 0; justify-content: flex-end; }
.ert-search__label { display: block; margin-bottom: 10px; font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ert-primary); }
.ert-search--panel .ert-search__field select { padding: 12px 26px 14px 4px; border-bottom: 1px solid var(--ert-border); font-size: 1.0625rem; font-weight: 400; color: var(--ert-heading); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b69367' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; appearance: none; -webkit-appearance: none; transition: border-color .3s; }
.ert-search--panel .ert-search__field select:hover, .ert-search--panel .ert-search__field select:focus { border-bottom-color: var(--ert-primary); }
.ert-search--panel .ert-search__field select option { background: var(--ert-surface); color: var(--ert-heading); }
.ert-search__range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ert-search__range-head .ert-search__label { margin: 0; color: var(--ert-text); }
.ert-search__price { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--ert-heading); font-variant-numeric: tabular-nums; }
.ert-range { --pct: 100%; width: 100%; height: 20px; margin: 0 0 8px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.ert-range:disabled { opacity: .4; cursor: default; }
.ert-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ert-primary) 0 var(--pct), var(--ert-border) var(--pct) 100%); }
.ert-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--ert-border); }
.ert-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ert-primary); }
.ert-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ert-bg); border: 2px solid var(--ert-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ert-primary) 18%, transparent); transition: transform .2s, box-shadow .2s; }
.ert-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ert-bg); border: 2px solid var(--ert-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ert-primary) 18%, transparent); }
.ert-range:hover::-webkit-slider-thumb, .ert-range:focus-visible::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 7px color-mix(in srgb, var(--ert-primary) 22%, transparent); }
.ert-range:focus { outline: none; }
.ert-search--panel .ert-search__submit { min-width: 230px; height: 60px; padding: 0 28px; border-radius: 0; font-size: .75rem; letter-spacing: .1em; }
.ert-search--panel .ert-search__submit span { transition: opacity .2s; }
.ert-search--panel.is-counting .ert-search__submit span { opacity: .55; }
.ert-search__submit.is-empty { opacity: .75; }
@media (max-width: 1080px) {
  .ert-search--panel .ert-search__form { grid-template-columns: 1fr 1fr; }
  .ert-search--panel .ert-search__submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 600px) {
  .ert-search--panel .ert-search__form { grid-template-columns: 1fr; gap: 18px; }
  .ert-search--panel .ert-search__tabs { gap: 22px; margin-bottom: 18px; }
  .ert-search--panel .ert-search__submit { height: 54px; }
}

/* Accent words in headings: *text* */
.ert-accent-text { font-style: italic; color: var(--ert-primary); font-weight: inherit; }
.ert-hero__title .ert-accent-text { display: inline-block; }

/* Premium typography details */
.ert-eyebrow { color: var(--ert-primary); }
.ert-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; transform-origin: left; }
.ert-head--center .ert-eyebrow::before { display: none; }
.ert-bg-light .ert-eyebrow { color: color-mix(in srgb, var(--ert-primary) 80%, var(--ert-light-heading)); }
.ert-hero__eyebrow { color: var(--ert-primary); }
.ert-btn { text-transform: uppercase; letter-spacing: .1em; font-size: calc(var(--ert-fs-btn) * .92); }
.ert-btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.ert-btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ert-ease); }
.ert-btn--primary:hover::after { transform: translateX(120%); }
.ert-head--split { padding-bottom: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--ert-border); }
.ert-viewall { text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
.ert-menu a { letter-spacing: .06em; text-transform: uppercase; font-size: calc(var(--ert-fs-menu) * .92); }
.ert-menu > li > a { white-space: nowrap; padding-inline: 11px; }
.ert-menu > li > a::after { left: 11px; right: 11px; }
@media (max-width: 1360px) { .ert-header__phone span { display: none; } }
.ert-header.is-scrolled { background: color-mix(in srgb, var(--ert-header-bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ert-border); }
.ert-header__main { transition: border-color .4s; }

/* Hover refinements */
.ert-card--compact, .ert-testimonial, .ert-services--outline .ert-service, .ert-statbox, .ert-accordion--plus .ert-accordion__item { transition: transform .5s var(--ert-ease), box-shadow .5s var(--ert-ease), border-color .5s, background .5s; }
.ert-card--compact:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ert-primary) 55%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.ert-card--compact .ert-card__media img { transition: transform 1.4s var(--ert-ease); }
.ert-card--compact:hover .ert-card__media img { transform: scale(1.07); }
.ert-services--outline .ert-service:hover, .ert-testimonial:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ert-primary) 50%, transparent); transform: translateY(-4px); }
.ert-services--outline .ert-service__icon { transition: color .4s, transform .5s var(--ert-ease); }
.ert-services--outline .ert-service:hover .ert-service__icon { color: var(--ert-primary); transform: translateY(-3px); }
.ert-statbox:hover { border-color: color-mix(in srgb, var(--ert-on-primary) 55%, transparent); transform: translateY(-4px); }
.ert-community--simple .ert-community__name { position: relative; padding-bottom: 6px; }
.ert-community--simple .ert-community__name::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 1px; background: var(--ert-primary); transform: translateX(-50%) scaleX(0); transition: transform .5s var(--ert-ease); }
.ert-community--simple:hover .ert-community__name::after { transform: translateX(-50%) scaleX(1); }
.ert-community--simple img { transition: transform 1.4s var(--ert-ease); }
.ert-split__img img, .ert-videoband__media img { transition: transform 1.6s var(--ert-ease); }
.ert-split__media:hover .ert-split__img img, .ert-videoband__media:hover img { transform: scale(1.04); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ertRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes ertFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes ertLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes ertFloat { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-6px); } }
  @keyframes ertPulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ert-primary) 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

  /* Hero intro sequence */
  .ert-hero__eyebrow { animation: ertRise .9s var(--ert-ease) .15s both; }
  .ert-hero__eyebrow::before { animation: ertLine 1s var(--ert-ease) .35s both; }
  .ert-hero__title { animation: ertRise 1.1s var(--ert-ease) .3s both; }
  .ert-hero__title .ert-accent-text { animation: ertRise 1.1s var(--ert-ease) .6s both; }
  .ert-hero__subtitle { animation: ertRise 1s var(--ert-ease) .55s both; }
  .ert-hero__btns { animation: ertRise 1s var(--ert-ease) .7s both; }
  .ert-hero__aside { animation: ertFadeIn 1.4s ease .9s both; }
  .ert-hero__script { animation: ertFloat 7s ease-in-out 2.2s infinite; }
  .ert-hero .ert-search { animation: ertRise 1.1s var(--ert-ease) .8s both; }
  .ert-playlink__icon { animation: ertPulseRing 2.4s ease-out 2s infinite; }
  .ert-header { animation: ertFadeIn 1s ease both; }

  /* Scroll reveal (staggered by --ert-delay from front.js) */
  .ert-js .ert-reveal { transition-delay: var(--ert-delay, 0ms); }
  .ert-js .ert-reveal.ert-head .ert-eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ert-ease) calc(var(--ert-delay, 0ms) + .25s); }
  .ert-js .ert-reveal.ert-head.is-visible .ert-eyebrow::before { transform: scaleX(1); }
  .ert-js .ert-reveal.ert-head--split { border-bottom-color: transparent; transition: opacity .9s var(--ert-ease), transform .9s var(--ert-ease), border-color 1.2s ease .3s; }
  .ert-js .ert-reveal.ert-head--split.is-visible { border-bottom-color: var(--ert-border); }
  /* Images open like a curtain */
  /* The clip sits on the inner image: a clipped observed element would never report as visible. */
  .ert-js .ert-split__media.ert-reveal, .ert-js .ert-videoband__media.ert-reveal { transform: none; transition: opacity .6s ease var(--ert-delay, 0ms); }
  .ert-js .ert-split__media.ert-reveal .ert-split__img, .ert-js .ert-videoband__media.ert-reveal > img, .ert-js .ert-videoband__media.ert-reveal > .ert-img-placeholder { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ert-ease) var(--ert-delay, 0ms); }
  .ert-js .ert-split__media.ert-reveal.is-visible .ert-split__img, .ert-js .ert-videoband__media.ert-reveal.is-visible > img, .ert-js .ert-videoband__media.ert-reveal.is-visible > .ert-img-placeholder { clip-path: inset(0 0 0 0); }
  /* FAQ items slide in sideways: clip the section so items still off to the right never widen the page (horizontal scroll on phones). */
  .ert-section--faqs { overflow-x: clip; }
  .ert-js .ert-accordion__item.ert-reveal { transform: translateX(24px); }
  .ert-js .ert-accordion__item.ert-reveal.is-visible { transform: none; }
  .ert-js .ert-statbox.ert-reveal { transform: translateY(28px) scale(.97); }
  .ert-js .ert-statbox.ert-reveal.is-visible { transform: none; }
}

/* =========================================================================
   Premium navbar — logo and menu together on the left, action on the right.
   ========================================================================= */
:root { --ert-header-h: 92px; }
.ert-header__inner { gap: 0; transition: min-height .45s var(--ert-ease); }
.ert-nav { margin-left: clamp(28px, 3vw, 56px); }
.ert-header__actions { margin-left: auto; gap: 18px; }
.ert-header__main { position: relative; }
.ert-header__main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ert-primary) 40%, transparent) 18%, color-mix(in srgb, var(--ert-primary) 40%, transparent) 82%, transparent); pointer-events: none; }
.ert-header--transparent:not(.is-scrolled) .ert-header__main { border-bottom: 0; }
.ert-logo__img { max-width: 300px; transition: height .45s var(--ert-ease), opacity .3s; }
.ert-header.is-scrolled { --ert-header-h: 74px; }
.ert-header.is-scrolled .ert-header__inner .ert-logo__img { height: calc(var(--logo-h, 44px) * .84); }
.ert-menu { gap: 0; }
.ert-menu > li > a { padding: 10px 13px; font-size: 1.125rem; font-weight: 500; letter-spacing: normal; text-transform: none; color: color-mix(in srgb, var(--ert-menu) 80%, transparent); transition: color .3s; }
.ert-header.ert-header .ert-menu > li:hover > a, .ert-header.ert-header .ert-menu > .current-menu-item > a, .ert-header.ert-header .ert-menu > .current-menu-ancestor > a { color: var(--ert-primary); }
.ert-header .ert-menu > li > a::after { left: 50%; right: auto; bottom: 2px; width: 16px; height: 1px; transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .45s var(--ert-ease); }
.ert-header .ert-menu > li:hover > a::after, .ert-header .ert-menu > .current-menu-item > a::after, .ert-header .ert-menu > .current-menu-ancestor > a::after { transform: translateX(-50%) scaleX(1); }
.ert-menu .sub-menu { border: 1px solid var(--ert-border); border-radius: 0; padding: 10px; }
.ert-menu .sub-menu a { text-transform: uppercase; letter-spacing: .12em; font-size: .6875rem; border-radius: 0; }
.ert-header__actions .ert-btn { padding: 14px 24px; border-radius: 0; font-size: .6875rem; letter-spacing: .16em; }
.ert-logo--footer.has-footer-logo .ert-logo__img { width: min(230px, 100%); height: auto; max-width: none; }
@media (max-width: 1200px) {
  .ert-nav { display: none; }
  .ert-header__actions { margin-left: auto; }
  .ert-burger { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --ert-header-h: 70px; }
  .ert-header__inner .ert-logo__img, .ert-header.is-scrolled .ert-header__inner .ert-logo__img { height: 36px; }
}

/* For sale / For rent switch on card sections */
.ert-switch { display: flex; gap: clamp(20px, 2.6vw, 36px); margin: calc(clamp(8px, 1.2vw, 16px) * -1) 0 clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--ert-border); }
.ert-switch__btn { position: relative; padding: 4px 0 14px; border: 0; background: none; color: var(--ert-text); font-size: var(--ert-fs-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: color .3s; }
.ert-switch__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ert-primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ert-ease); }
.ert-switch__btn:hover { color: var(--ert-heading); }
.ert-switch__btn.is-active { color: var(--ert-primary); }
.ert-switch__btn.is-active::after { transform: scaleX(1); }
.ert-switch__panel:not([hidden]) { animation: ertFade .5s ease; }
.ert-head--split + .ert-switch { margin-top: 0; }

/* Counter boxes with descriptions (e.g. About page) */
.ert-stats__boxes.has-text .ert-statbox { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: clamp(22px, 2.6vw, 32px); }
.ert-stats__boxes.has-text .ert-statbox__icon { margin-bottom: 14px; }
.ert-stats__boxes.has-text .ert-statbox__label { margin-top: 6px; font-size: var(--ert-fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: 1; }
.ert-statbox.is-textonly .ert-statbox__label { margin-top: 0; font-family: var(--ert-font-heading); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: var(--ert-heading-weight); letter-spacing: 0; text-transform: none; line-height: 1.25; color: var(--ert-heading); }
.ert-bg-primary .ert-statbox.is-textonly .ert-statbox__label { color: var(--ert-on-primary); }
.ert-statbox__text, .ert-stat__text { margin: 10px 0 0; font-size: .8125rem; line-height: 1.65; opacity: .85; }
.ert-stat__text { max-width: 30ch; margin-inline: auto; }
@media (max-width: 560px) { .ert-stats__boxes.has-text { grid-template-columns: 1fr; } }

/* FAQ split: image under the heading, stays in view while the questions scroll */
.ert-faqs--split .ert-faqs__intro { position: sticky; top: calc(var(--ert-header-h, 80px) + 24px); }
.ert-faqs__media { position: relative; margin-top: clamp(24px, 3vw, 40px); overflow: hidden; border-radius: var(--ert-radius); aspect-ratio: 4 / 5; }
.ert-faqs__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--ert-primary) 55%, transparent); border-radius: calc(var(--ert-radius) * .6); pointer-events: none; }
.ert-faqs__media .ert-faqs__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ert-ease); }
.ert-faqs__media:hover .ert-faqs__img { transform: scale(1.04); }
@media (max-width: 860px) { .ert-faqs--split .ert-faqs__intro { position: static; } .ert-faqs__media { aspect-ratio: 16 / 10; } }

/* Footer newsletter band — refined: one-piece subscribe bar, balanced columns */
.ert-footer__newsletter-inner { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 1fr) auto; gap: 20px clamp(28px, 4vw, 64px); padding-block: clamp(28px, 3.2vw, 40px); }
.ert-footer__newsletter-title { font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.2; margin: 0 0 6px; }
.ert-footer__newsletter p { max-width: 46ch; line-height: 1.6; color: color-mix(in srgb, var(--ert-on-primary) 78%, transparent); }
.ert-footer__newsletter .ert-form--newsletter { position: relative; }
.ert-footer__newsletter .ert-form--newsletter .ert-form__grid { display: flex; align-items: stretch; gap: 0; padding: 5px; background: var(--ert-on-primary); border: 1px solid color-mix(in srgb, var(--ert-on-primary) 70%, var(--ert-primary)); border-radius: calc(var(--ert-btn-radius) + 3px); box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .6); transition: box-shadow .35s, border-color .35s; }
.ert-footer__newsletter .ert-form--newsletter .ert-form__grid:focus-within { border-color: var(--ert-heading); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ert-on-primary) 22%, transparent), 0 14px 34px -20px rgba(0, 0, 0, .6); }
.ert-footer__newsletter .ert-form__field { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.ert-footer__newsletter .ert-form__actions { flex: 0 0 auto; display: flex; }
.ert-footer__newsletter .ert-input { height: 48px; margin: 0; padding: 0 16px; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ert-heading); font-size: var(--ert-fs-small); letter-spacing: .02em; }
.ert-footer__newsletter .ert-input::placeholder { color: color-mix(in srgb, var(--ert-heading) 55%, transparent); }
.ert-footer__newsletter .ert-input:focus { outline: 0; box-shadow: none; }
.ert-footer__newsletter .ert-form__submit { height: 48px; margin: 0; padding: 0 clamp(18px, 1.8vw, 26px); gap: 10px; background: var(--ert-primary); color: var(--ert-on-primary); border: 0; border-radius: var(--ert-btn-radius); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; box-shadow: none; }
.ert-footer__newsletter .ert-form__submit .ert-icon { width: 15px; height: 15px; transition: transform .35s var(--ert-ease); }
.ert-footer__newsletter .ert-form__submit:hover { background: var(--ert-heading); color: var(--ert-on-primary); }
.ert-footer__newsletter .ert-form__submit:hover .ert-icon { transform: translate(2px, -2px); }
.ert-footer__newsletter .ert-form__error { position: absolute; left: 0; top: calc(100% + 10px); margin: 0; font-size: .75rem; color: var(--ert-on-primary); font-weight: 600; }
.ert-footer__newsletter .ert-form__msg { margin-top: 10px; }
.ert-footer__follow { gap: 14px; }
.ert-footer__follow > span { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ert-footer__follow .ert-socials { gap: 8px; }
.ert-footer__follow .ert-socials a { width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--ert-on-primary) 35%, transparent); border-radius: 50%; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.ert-footer__follow .ert-socials a .ert-icon { width: 16px; height: 16px; }
.ert-footer__follow .ert-socials a:hover { background: var(--ert-on-primary); border-color: var(--ert-on-primary); color: var(--ert-primary); transform: translateY(-2px); }
@media (max-width: 1100px) { .ert-footer__newsletter-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); } .ert-footer__follow { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ert-footer__newsletter-inner { grid-template-columns: minmax(0, 1fr); } }
.ert-footer__newsletter .ert-form--newsletter, .ert-footer__newsletter .ert-input { min-width: 0; width: 100%; }
@media (max-width: 520px) {
  .ert-footer__newsletter .ert-form--newsletter .ert-form__grid { flex-direction: row; gap: 0; }
  .ert-footer__newsletter .ert-form__submit { width: auto; padding-inline: 14px; border-radius: var(--ert-btn-radius); letter-spacing: .1em; }
}

/* Phone country code picker with flag images (the plain select stays for no-JS) */
.ert-phone { position: relative; }
.ert-phone__code--native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; }
.ert-js .ert-phone__btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-align: left; }
.ert-phone__btn .ert-icon { margin-left: auto; opacity: .6; transition: transform .3s; }
.ert-phone.is-open .ert-phone__btn .ert-icon { transform: rotate(180deg); }
.ert-flag { flex: 0 0 auto; width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.ert-phone__dial { font-variant-numeric: tabular-nums; }
.ert-phone__list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: max(260px, 100%); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--ert-surface); border: 1px solid var(--ert-border); border-radius: var(--ert-radius); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.ert-phone__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: calc(var(--ert-radius) * .7); font-size: var(--ert-fs-small); color: var(--ert-text); cursor: pointer; }
.ert-phone__opt .ert-phone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ert-phone__opt .ert-phone__dial { color: var(--ert-muted); }
.ert-phone__opt:hover { background: color-mix(in srgb, var(--ert-primary) 12%, transparent); color: var(--ert-heading); }
.ert-phone__opt.is-selected { background: color-mix(in srgb, var(--ert-primary) 18%, transparent); color: var(--ert-heading); }
.ert-phone__opt.is-selected .ert-phone__dial { color: var(--ert-primary); }
.ert-phone__list::-webkit-scrollbar { width: 8px; }
.ert-phone__list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ert-primary) 45%, transparent); border-radius: 8px; }

/* Grid children must be allowed to shrink, or wide images push the page sideways on phones */
.ert-sgallery, .ert-sgallery--1, .ert-sgallery--2, .ert-sgallery--3, .ert-sgallery--4, .ert-sgallery--5 { grid-auto-columns: minmax(0, 1fr); }
.ert-sgallery > * { min-width: 0; }
.ert-sgallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.ert-sgallery--1 { grid-template-columns: minmax(0, 1fr); }
.ert-sgallery--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ert-sgallery--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 800px) {
  .ert-sgallery, .ert-sgallery--3, .ert-sgallery--4, .ert-sgallery--5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Listing pages: the content column must be able to shrink so wide tables scroll instead of widening the page */
.ert-single__layout { grid-template-columns: minmax(0, 1fr) 380px; }
.ert-single__main, .ert-single__side { min-width: 0; }
@media (max-width: 1000px) { .ert-single__layout { grid-template-columns: minmax(0, 1fr); } }
.ert-table-wrap { max-width: 100%; }
@media (max-width: 560px) { .ert-table { min-width: 420px; } }

/* =========================================================================
   Premium pop-up forms — image panel on the left, form on the right.
   ========================================================================= */
.ert-modal__dialog { max-width: 1000px; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); background: var(--ert-surface); border: 1px solid var(--ert-border); }
.ert-modal[data-ert-modal-box="callback"] .ert-modal__dialog { max-width: 940px; }
.ert-modal__close { top: 18px; right: 18px; z-index: 3; background: color-mix(in srgb, var(--ert-bg) 70%, transparent); border: 1px solid var(--ert-border); backdrop-filter: blur(6px); }

/* Left panel */
.ert-modal__aside { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 480px; padding: clamp(24px, 2.6vw, 34px); color: #fff; overflow: hidden; }
.ert-modal__aside-bg { position: absolute; inset: 0; z-index: -2; }
.ert-modal__aside-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.ert-modal__aside::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ert-dark) 55%, transparent) 0%, color-mix(in srgb, var(--ert-dark) 30%, transparent) 40%, color-mix(in srgb, var(--ert-dark) 92%, transparent) 100%); }
.ert-modal__aside:not(:has(.ert-modal__aside-bg)) { background: linear-gradient(160deg, var(--ert-dark), color-mix(in srgb, var(--ert-primary) 40%, var(--ert-dark))); }
.ert-modal__brand { display: flex; flex-direction: column; gap: 12px; }
.ert-modal__logo { width: auto; height: 42px; object-fit: contain; object-position: left; }
.ert-modal__logo-text { font-family: var(--ert-font-heading); font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.ert-modal__tagline { max-width: 20ch; font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); line-height: 1.9; }
.ert-modal__aside-title { color: #fff; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.22; margin: 0 0 8px; }
.ert-modal__aside-text { margin: 0; font-size: .8125rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.ert-modal__points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.ert-modal__points li { display: flex; align-items: center; gap: 8px; font-size: .75rem; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.ert-modal__points .ert-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ert-primary); }

/* Right panel */
.ert-modal__body { padding: clamp(26px, 3vw, 44px); overflow-y: auto; max-height: calc(100vh - 32px); }
.ert-modal .ert-form__head { padding-right: 44px; margin-bottom: 18px; }
.ert-form__eyebrow { margin-bottom: 10px; }
.ert-modal .ert-form__title { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.15; margin-bottom: 10px; }
.ert-modal .ert-form__subtitle { font-size: .875rem; line-height: 1.65; }

/* Promise badges */
.ert-form__badges { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; }
.ert-form__badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .6875rem; line-height: 1.3; color: var(--ert-text); }
.ert-form__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--ert-primary) 14%, transparent); color: var(--ert-primary); }
.ert-form__badge-icon .ert-icon { width: 19px; height: 19px; }

/* Fields with a leading icon */
.ert-form__field.has-icon { position: relative; }
.ert-form__icon { position: absolute; top: 14px; left: 15px; display: grid; place-items: center; color: var(--ert-muted); pointer-events: none; transition: color .25s; }
.ert-form__icon .ert-icon { width: 18px; height: 18px; }
.ert-form__field.has-icon .ert-input { padding-left: 46px; }
.ert-form__field.has-icon .ert-phone .ert-input:not(.ert-phone__code):not(.ert-phone__btn) { padding-left: 15px; }
.ert-form__field.has-icon .ert-phone__btn, .ert-form__field.has-icon .ert-phone__code { padding-left: 46px; }
.ert-form__field.has-icon:focus-within .ert-form__icon { color: var(--ert-primary); }
.ert-form__field.has-error .ert-form__icon { color: #d63638; }
.ert-form__field.has-icon textarea.ert-input { padding-top: 13px; }

.ert-modal .ert-input { padding-block: 15px; }
.ert-modal .ert-form__submit { margin-top: 4px; padding-block: 17px; font-size: var(--ert-fs-btn); letter-spacing: .14em; }
.ert-form__privacy { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: left; }
.ert-form__privacy .ert-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ert-primary); }

/* Inline forms keep the same field polish without the side panel */
.ert-form--inline .ert-form__field.has-icon .ert-input, .ert-form--sidebar .ert-form__field.has-icon .ert-input { padding-left: 46px; }

@media (max-width: 900px) {
  .ert-modal__dialog { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 24px); overflow-y: auto; }
  .ert-modal__aside { min-height: 0; padding: 22px; gap: 16px; }
  .ert-modal__aside-title { font-size: 1.25rem; }
  .ert-modal__aside-text, .ert-modal__points { display: none; }
  .ert-modal__brand { flex-direction: row; align-items: center; gap: 14px; }
  .ert-modal__logo { height: 34px; }
  .ert-modal__tagline { display: none; }
  .ert-modal__body { max-height: none; padding: 22px; }
}
@media (max-width: 560px) {
  .ert-form__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-bottom: 18px; }
  .ert-modal .ert-form__title { font-size: 1.375rem; }
}
.ert-form__field.has-icon .ert-phone__btn, .ert-form__field.has-icon .ert-phone__code { width: 148px; }
.ert-modal .ert-phone__list { width: max(280px, 60%); }
/* The newsletter bar has no room for a field icon */
.ert-footer__newsletter .ert-form__icon, .ert-newsletter .ert-form__icon { display: none; }
.ert-footer__newsletter .ert-form__field.has-icon .ert-input, .ert-newsletter .ert-form__field.has-icon .ert-input { padding-left: 16px; }

/* Slider arrows stay inside the screen on narrower viewports */
@media (max-width: 1180px) {
  .ert-carousel--slider .ert-carousel__btn { left: auto; right: auto; }
  .ert-carousel--slider [data-ert-prev] { left: 6px; }
  .ert-carousel--slider [data-ert-next] { right: 6px; }
}

/* =========================================================================
   One button shape across the site — every button follows
   Global Styles → Button radius instead of its own hard-coded corners.
   ========================================================================= */
.ert-header__actions .ert-btn,
.ert-search--panel .ert-search__submit,
.ert-pd-agent__actions .ert-btn,
.ert-card--related .ert-btn,
.ert-sgallery__all,
.ert-switch__btn,
.ert-mobile__foot .ert-btn { border-radius: var(--ert-btn-radius); }
.ert-menu .sub-menu a { border-radius: calc(var(--ert-btn-radius) * .75); }
.ert-menu .sub-menu { border-radius: var(--ert-btn-radius); }
.ert-footer__newsletter .ert-form__submit { border-radius: var(--ert-btn-radius); }
/* Round icon buttons (arrows, socials, close) keep their circle. */
.ert-carousel__btn, .ert-socials a, .ert-modal__close, .ert-lightbox__close, .ert-lightbox__nav, .ert-whatsapp__btn { border-radius: 50%; }

/* =========================================================================
   Admin bar offsets for the fixed/sticky header (logged-in users only).
   WordPress: bar is 32px on desktop, 46px and fixed down to 601px,
   and below 600px it scrolls away with the page — so the header sits at the top.
   ========================================================================= */
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .ert-header--sticky,
  .admin-bar.has-transparent-header .ert-header--transparent { top: 46px; }
}
@media (max-width: 600px) {
  /* Sits under the bar at the top of the page, then takes the top once the bar has scrolled away. */
  .admin-bar .ert-header--sticky,
  .admin-bar.has-transparent-header .ert-header--transparent { top: 46px; }
  .admin-bar .ert-header--sticky.is-scrolled,
  .admin-bar.has-transparent-header .ert-header--transparent.is-scrolled { top: 0; }
}

/* Newsletter bar: keep the error readable on the gold band and out of the way */
.ert-footer__newsletter .ert-form__error { position: absolute; top: 100%; left: 2px; margin-top: 10px; font-size: .75rem; font-weight: 600; color: var(--ert-on-primary); }
.ert-footer__newsletter-inner:has(.has-error), .ert-footer__newsletter-inner:has(.ert-form__msg:not([hidden])) { padding-bottom: calc(clamp(28px, 3.2vw, 40px) + 26px); }
.ert-footer__newsletter .ert-form--newsletter .ert-form__grid { margin: 0; }
.ert-footer__newsletter .ert-form__msg { margin-top: 10px; padding: 9px 14px; border-radius: var(--ert-btn-radius); font-size: .75rem; font-weight: 500; }
.ert-footer__newsletter .ert-form__msg.is-error { background: color-mix(in srgb, var(--ert-on-primary) 88%, transparent); color: #ffb4ad; }
.ert-footer__newsletter .ert-form__msg.is-success { background: color-mix(in srgb, var(--ert-on-primary) 88%, transparent); color: #7ee0a8; }
.ert-footer__newsletter .ert-form__field.has-error + .ert-form__actions .ert-form__submit, .ert-footer__newsletter .ert-form__grid:has(.has-error) { border-color: #e06b63; }

/* =========================================================================
   Pop-up forms fit the screen — no scrolling inside the dialog.
   Spacing tightens as the window gets shorter.
   ========================================================================= */
.ert-modal { padding: 12px; }
.ert-modal__dialog { max-height: calc(100vh - 24px); }
.admin-bar .ert-modal__dialog { max-height: calc(100vh - 56px); }
.ert-modal__body { max-height: none; display: flex; flex-direction: column; justify-content: center; }
.ert-modal .ert-form__grid { gap: 10px; }
.ert-modal textarea.ert-input { min-height: 96px; height: 96px; }
.ert-modal .ert-form__privacy { margin-top: 10px; }

@media (max-height: 900px) {
  .ert-modal__body { padding: clamp(20px, 2.4vw, 32px); }
  .ert-modal .ert-form__head { margin-bottom: 14px; }
  .ert-modal .ert-form__title { font-size: clamp(1.375rem, 2vw, 1.75rem); margin-bottom: 6px; }
  .ert-modal .ert-form__subtitle { font-size: .8125rem; }
  .ert-form__badges { margin-bottom: 16px; gap: 8px; }
  .ert-form__badge-icon { width: 36px; height: 36px; }
  .ert-form__badge-icon .ert-icon { width: 17px; height: 17px; }
  .ert-modal .ert-input { padding-block: 12px; }
  .ert-modal textarea.ert-input { min-height: 78px; height: 78px; }
  .ert-modal .ert-form__submit { padding-block: 14px; }
}
@media (max-height: 760px) {
  .ert-modal__body { padding: 18px 20px; }
  .ert-form__eyebrow { display: none; }
  .ert-modal .ert-form__subtitle { display: none; }
  .ert-form__badges { margin-bottom: 12px; }
  .ert-form__badges li { font-size: .625rem; }
  .ert-form__badge-icon { width: 32px; height: 32px; }
  .ert-modal .ert-form__grid { gap: 8px; }
  .ert-modal .ert-input { padding-block: 10px; font-size: .875rem; }
  .ert-modal textarea.ert-input { min-height: 62px; height: 62px; }
  .ert-modal .ert-form__privacy { font-size: .6875rem; margin-top: 8px; }
}
@media (max-height: 620px) {
  .ert-form__badges { display: none; }
  .ert-modal .ert-form__title { font-size: 1.25rem; }
}

/* =========================================================================
   Logo palette on light sections: the antique gold reads well on dark,
   but needs a deeper tone on paper-white to stay legible (WCAG AA).
   ========================================================================= */
/* Resolved at the root, then swapped in — a variable can't safely refer to itself. */
:root {
  --ert-primary-deep: color-mix(in srgb, var(--ert-primary) 62%, #000);
  --ert-primary-deeper: color-mix(in srgb, var(--ert-primary) 52%, #000);
  --ert-accent-deep: color-mix(in srgb, var(--ert-accent) 70%, #000);
}
.ert-bg-light {
  --ert-primary: var(--ert-primary-deep);
  --ert-primary-dark: var(--ert-primary-deeper);
  --ert-on-primary: var(--ert-light);
  --ert-accent: var(--ert-accent-deep);
}

/* The OBELUM lockup is wide: let it shrink so the menu button always fits on small phones */
.ert-header__inner .ert-logo { min-width: 0; flex-shrink: 1; }
.ert-header__inner .ert-logo__img { width: auto; max-width: min(320px, calc(100vw - 120px)); object-fit: contain; object-position: left center; }
@media (max-width: 600px) { .ert-header__inner .ert-logo__img, .ert-header.is-scrolled .ert-header__inner .ert-logo__img { height: 30px; } }

/* ---------- Premium hero: layered shade keeps text and menu legible on any photo or video ---------- */
.ert-hero--dark .ert-hero__overlay { background:
  linear-gradient(180deg, rgba(12, 9, 5, .62) 0%, rgba(12, 9, 5, 0) 26%),
  linear-gradient(90deg, rgba(12, 9, 5, calc(var(--overlay) * 1.5)) 0%, rgba(12, 9, 5, calc(var(--overlay) * .8)) 45%, rgba(12, 9, 5, calc(var(--overlay) * .15)) 100%),
  linear-gradient(0deg, rgba(12, 9, 5, .45) 0%, rgba(12, 9, 5, 0) 35%); }
.ert-hero--dark .ert-hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.ert-hero--dark .ert-hero__title em, .ert-hero--dark .ert-hero__title i, .ert-hero--dark .ert-hero__script { color: #d2ad72; }
.ert-hero--dark .ert-hero__subtitle { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.ert-hero--dark .ert-hero__eyebrow { color: #fff; }
/* Fixed navbar: glass over the hero, frosted white once scrolled */
.ert-header--transparent:not(.is-scrolled) { background: linear-gradient(180deg, rgba(12, 9, 5, .55), rgba(12, 9, 5, 0)); }
.ert-header--transparent:not(.is-scrolled) .ert-menu > li > a { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ert-header--transparent:not(.is-scrolled) .ert-menu > li:hover > a { color: #d2ad72; }
.ert-header--transparent:not(.is-scrolled) .ert-header__main::after { opacity: .5; }
.ert-header.is-scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -18px rgba(33, 29, 24, .35); }
.ert-header { transition: background .4s, box-shadow .4s; }

/* ---------- Contact page ---------- */
.ert-ccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: calc(var(--ert-section) * -.55) 0 clamp(40px, 5vw, 72px); position: relative; z-index: 2; }
.ert-ccard { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; background: #fff; border: 1px solid var(--ert-border); border-radius: var(--ert-radius-lg); box-shadow: var(--ert-shadow); color: var(--ert-heading); transition: transform .35s var(--ert-ease), box-shadow .35s, border-color .35s; }
a.ert-ccard:hover { transform: translateY(-4px); box-shadow: var(--ert-shadow-lg); border-color: var(--ert-primary); color: var(--ert-heading); }
.ert-ccard .ert-contact__icon { margin-bottom: 12px; background: var(--ert-primary); color: #fff; }
.ert-ccard small { font-size: .7188rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ert-muted); }
.ert-ccard strong { font-weight: 600; font-size: 1.0313rem; line-height: 1.45; overflow-wrap: anywhere; }
.ert-contact { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.ert-contact__info { display: flex; flex-direction: column; }
.ert-contact__photo { position: relative; flex: 1; min-height: 340px; margin: 28px 0 0; border-radius: var(--ert-radius-lg); overflow: hidden; }
.ert-contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; }
.ert-contact__photo figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: var(--ert-radius); color: var(--ert-heading); font-weight: 600; font-size: .9375rem; }
.ert-contact__photo figcaption .ert-icon { color: var(--ert-primary); width: 22px; height: 22px; }
.ert-contact__photo figcaption small { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ert-muted); font-weight: 500; }
.ert-contact__hours { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--ert-heading); font-weight: 600; }
.ert-contact__form { border: 1px solid var(--ert-border); box-shadow: var(--ert-shadow-lg); }
@media (max-width: 900px) { .ert-contact { grid-template-columns: 1fr; } .ert-contact__photo { min-height: 280px; flex: none; } }
.ert-pagehero .ert-eyebrow { color: rgba(255, 255, 255, .85); }
.ert-pagehero .ert-eyebrow::before { background: currentColor; }

/* Brand and dark bands are warm cream with brown text, like the light sections */
.ert-bg-primary, .ert-bg-dark, .ert-pagehero:not(.has-image) { background: var(--ert-light); color: var(--ert-light-text); }
.ert-bg-primary h1, .ert-bg-primary h2, .ert-bg-primary h3, .ert-bg-primary h4,
.ert-bg-dark h1, .ert-bg-dark h2, .ert-bg-dark h3, .ert-bg-dark h4,
.ert-pagehero:not(.has-image) .ert-pagehero__title { color: var(--ert-light-heading); }
.ert-bg-primary .ert-eyebrow, .ert-bg-dark .ert-eyebrow, .ert-pagehero:not(.has-image) .ert-eyebrow { color: var(--ert-primary); }
.ert-pagehero:not(.has-image) { color: var(--ert-light-text); }
.ert-pagehero:not(.has-image) .ert-breadcrumbs, .ert-pagehero:not(.has-image) .ert-breadcrumbs a { color: var(--ert-muted); }
.ert-bg-dark, .ert-bg-primary { --ert-heading: var(--ert-light-heading); --ert-text: var(--ert-light-text); --ert-border: color-mix(in srgb, var(--ert-light-heading) 14%, var(--ert-light)); --ert-surface: color-mix(in srgb, #fff 50%, var(--ert-light)); }
.ert-bg-dark .ert-stats__grid, .ert-bg-primary .ert-stats__grid { background: var(--ert-border); border-color: var(--ert-border); }
.ert-bg-dark .ert-stat, .ert-bg-primary .ert-stat { background: var(--ert-surface); backdrop-filter: none; }
.ert-bg-dark .ert-stat__num, .ert-bg-primary .ert-stat__num { color: var(--ert-primary); }
.ert-bg-dark .ert-btn--outline, .ert-bg-primary .ert-btn--outline { color: var(--ert-primary); border-color: var(--ert-primary); }
.ert-bg-dark .ert-btn--outline:hover, .ert-bg-primary .ert-btn--outline:hover { background: var(--ert-primary); color: #fff; border-color: var(--ert-primary); }
.ert-badge--featured { background: var(--ert-primary); color: #fff; }
.ert-bg-primary { --ert-on-primary: var(--ert-light-heading); }
.ert-bg-primary .ert-viewall__icon { background: var(--ert-primary); color: #fff; }
.ert-bg-primary .ert-btn--light { background: var(--ert-primary); color: #fff; }
.ert-bg-primary .ert-btn--light:hover { background: var(--ert-primary-dark); color: #fff; }
.ert-bg-primary .ert-statbox { background: color-mix(in srgb, #fff 55%, var(--ert-light)); }

/* ---------- Buttons: #C4A46A with deep brown label ---------- */
:root { --ert-btn-bg: #c4a46a; --ert-btn-bg-hover: #b3925a; --ert-btn-text: #3a2b14; }
.ert-btn--primary, .ert-btn--accent, .ert-btn--dark, .ert-btn--light, .ert-bg-primary .ert-btn--light,
.ert-footer__newsletter .ert-form__submit, .ert-form__submit, .ert-search__submit { background: var(--ert-btn-bg); color: var(--ert-btn-text); border-color: transparent; }
.ert-btn--primary:hover, .ert-btn--accent:hover, .ert-btn--dark:hover, .ert-btn--light:hover, .ert-bg-primary .ert-btn--light:hover,
.ert-footer__newsletter .ert-form__submit:hover, .ert-form__submit:hover, .ert-search__submit:hover { background: var(--ert-btn-bg-hover); color: var(--ert-btn-text); }
.ert-btn--outline, .ert-btn--accent-outline, .ert-bg-primary .ert-btn--outline, .ert-bg-dark .ert-btn--outline { color: var(--ert-btn-text); border-color: var(--ert-btn-bg); background: transparent; }
.ert-btn--outline:hover, .ert-btn--accent-outline:hover, .ert-bg-primary .ert-btn--outline:hover, .ert-bg-dark .ert-btn--outline:hover { background: var(--ert-btn-bg); color: var(--ert-btn-text); border-color: var(--ert-btn-bg); }
.ert-header__actions .ert-btn { background: var(--ert-btn-bg); color: var(--ert-btn-text); }
.ert-viewall__icon, .ert-bg-primary .ert-viewall__icon { background: var(--ert-btn-bg); color: var(--ert-btn-text); }
.ert-btn--primary::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }

/* Avatars, newsletter band and other brand-filled accents use the button gold */
.ert-testimonial__initial, .ert-socials a:hover { background: var(--ert-btn-bg); color: var(--ert-btn-text); }
.ert-footer__newsletter { background: var(--ert-btn-bg); color: var(--ert-btn-text); --ert-on-primary: var(--ert-btn-text); }
.ert-footer__newsletter-title, .ert-footer__newsletter p { color: var(--ert-btn-text); }
.ert-footer__newsletter .ert-form--newsletter .ert-form__grid { background: #fff; border-color: #fff; }
.ert-footer__follow .ert-socials a { color: var(--ert-btn-text); border-color: color-mix(in srgb, var(--ert-btn-text) 45%, transparent); }
.ert-footer__follow .ert-socials a:hover { background: var(--ert-btn-text); border-color: var(--ert-btn-text); color: var(--ert-btn-bg); }
.ert-footer__newsletter .ert-form__submit { background: var(--ert-btn-bg); color: var(--ert-btn-text); }
.ert-footer__newsletter .ert-form__submit:hover { background: var(--ert-btn-bg-hover); color: var(--ert-btn-text); }

/* ---------- Consistency: every filled brand element is the button gold with a deep brown label ---------- */
.ert-badge--sale, .ert-badge--rent, .ert-badge--featured, .ert-badge--tag, .ert-badge--tag.is-featured, .ert-block__tag,
.ert-split__badge, .ert-testimonial__initial, .ert-service__icon, .ert-ccard .ert-contact__icon,
.ert-video__play, .ert-search--bar .ert-search__tab.is-active, .ert-pagination .page-numbers.current,
.ert-member__links a:hover, .ert-socials a:hover, .ert-modal__close:hover, .ert-lightbox__close:hover, .ert-lightbox__nav:hover,
.ert-carousel__btn:hover:not(:disabled), .ert-roundplay:hover, .ert-cta--brand, .ert-newsletter,
.ert-newsletter .ert-btn--primary, .ert-playlink__icon, .ert-roundplay, button.ert-chip:hover, .ert-chip.is-active
{ background: var(--ert-btn-bg); color: var(--ert-btn-text); border-color: var(--ert-btn-bg); }
.ert-newsletter, .ert-cta--brand { --ert-on-primary: var(--ert-btn-text); color: var(--ert-btn-text); }
.ert-newsletter h2, .ert-newsletter h3, .ert-newsletter p, .ert-cta--brand .ert-cta__title, .ert-cta--brand p { color: var(--ert-btn-text); }
.ert-newsletter .ert-btn--primary { background: var(--ert-btn-text); color: #fff; }
.ert-viewall:hover .ert-viewall__icon { background: var(--ert-btn-bg-hover); }
.ert-range::-moz-range-progress { background: var(--ert-btn-bg); }
.ert-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--ert-btn-bg) 0 var(--pct), var(--ert-border) var(--pct) 100%); }
.ert-menu > li > a::after, .ert-search--panel .ert-search__tab::after, .ert-switch__btn::after, .ert-community--simple .ert-community__name::after { background: var(--ert-btn-bg); }
.ert-topbar { color: var(--ert-btn-text); } .ert-topbar a { color: var(--ert-btn-text); }
.ert-faqs__card { color: var(--ert-btn-text); } .ert-faqs__card h3 { color: var(--ert-btn-text); }
.ert-faqs__card .ert-btn--outline { color: var(--ert-btn-text); border-color: var(--ert-btn-text); }
.ert-faqs__card .ert-btn--outline:hover { background: var(--ert-btn-text); color: #fff; }
.ert-pagehero:not(.has-image) { background: var(--ert-light); }

/* CTA banner with a photo on the right (brand, dark and boxed styles) */
.ert-cta.has-image:not(.ert-cta--image) { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: 0; padding-right: 0; gap: clamp(24px, 4vw, 56px); }
.ert-cta.has-image:not(.ert-cta--image) .ert-cta__text { padding-block: clamp(40px, 6vw, 80px); }
.ert-cta.has-image:not(.ert-cta--image) .ert-cta__img { align-self: stretch; min-height: 320px; border-radius: 0; position: relative; }
.ert-cta.has-image:not(.ert-cta--image) .ert-cta__img img { position: absolute; inset: 0; object-position: 40% 50%; }
@media (max-width: 800px) { .ert-cta.has-image:not(.ert-cta--image) { grid-template-columns: 1fr; padding-right: clamp(40px, 6vw, 80px); padding-bottom: 0; } .ert-cta.has-image:not(.ert-cta--image) .ert-cta__text { padding-bottom: 0; } .ert-cta.has-image:not(.ert-cta--image) .ert-cta__img { margin-inline: calc(clamp(40px, 6vw, 80px) * -1); min-height: 240px; } }
.ert-cta--brand .ert-btn--dark, .ert-cta--brand .ert-btn--primary { background: var(--ert-btn-text); color: #fff; }
.ert-cta--brand .ert-btn--dark:hover, .ert-cta--brand .ert-btn--primary:hover { background: #241a0b; color: #fff; }

/* ---------- Styled search dropdowns ---------- */
.ert-select { position: relative; }
.ert-select__native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; overflow: hidden; }
.ert-select__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 4px 0 0; border: 0; background: transparent; text-align: left; font: inherit; text-transform: none; letter-spacing: normal; font-size: 0.9375rem; font-weight: 500; color: var(--ert-heading); cursor: pointer; }
.ert-select__btn::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.6px solid var(--ert-primary); border-bottom: 1.6px solid var(--ert-primary); transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ert-ease); }
.ert-select.is-open .ert-select__btn::after { transform: translateY(1px) rotate(-135deg); }
.ert-select__btn.is-placeholder { color: var(--ert-text); }
.ert-select__btn:focus-visible { outline-offset: 4px; }
.ert-search--panel .ert-select__btn { padding: 12px 4px 14px; border-bottom: 1px solid var(--ert-border); font-size: 1.0625rem; font-weight: 400; transition: border-color .3s; }
.ert-search--panel .ert-select__btn:hover, .ert-search--panel .ert-select.is-open .ert-select__btn { border-bottom-color: var(--ert-primary); }
.ert-search--bar .ert-select__btn { padding: 10px 4px 10px 0; font-size: var(--ert-fs-small); font-weight: 400; }
.ert-select__panel { position: fixed; z-index: 1000; margin: 0; padding: 8px; list-style: none; overflow-y: auto; background: #fff; border: 1px solid var(--ert-border); border-radius: calc(var(--ert-radius) + 2px); box-shadow: 0 24px 60px -18px rgba(58, 43, 20, .35), 0 4px 14px -6px rgba(58, 43, 20, .15); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ert-ease), visibility .2s; scrollbar-width: thin; scrollbar-color: var(--ert-btn-bg) transparent; }
.ert-select__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.ert-select__panel li { position: relative; padding: 11px 38px 11px 14px; border-radius: var(--ert-radius); font-size: .9375rem; color: var(--ert-heading); cursor: pointer; transition: background .15s, color .15s, padding .2s; outline: 0; }
.ert-select__panel li:hover, .ert-select__panel li:focus { background: var(--ert-light); padding-left: 18px; }
.ert-select__panel li.is-selected { font-weight: 600; background: color-mix(in srgb, var(--ert-btn-bg) 22%, #fff); }
.ert-select__panel li.is-selected::after { content: ""; position: absolute; right: 16px; top: 50%; width: 5px; height: 10px; border-right: 2px solid var(--ert-primary); border-bottom: 2px solid var(--ert-primary); transform: translateY(-65%) rotate(45deg); }
.ert-select__panel li:first-child { color: var(--ert-muted); }
.ert-select__panel li:first-child.is-selected { color: var(--ert-heading); }
.ert-select__btn span { font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; color: inherit; }

/* ---------- Contact cards, second design: one panel, four hairline-divided cells ---------- */
.ert-ccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; background: #fff; border: 1px solid var(--ert-border); border-radius: calc(var(--ert-radius-lg) * 1.3); box-shadow: 0 30px 60px -38px rgba(74, 58, 36, .4); overflow: hidden; margin: calc(var(--ert-section) * -.55) 0 clamp(40px, 5vw, 72px); }
.ert-ccard { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: clamp(24px, 2.6vw, 34px); background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ert-heading); isolation: isolate; transition: background .35s var(--ert-ease); }
.ert-ccard + .ert-ccard::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--ert-border); }
.ert-ccard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ert-btn-bg); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ert-ease); }
a.ert-ccard:hover { transform: none; box-shadow: none; border-color: transparent; background: color-mix(in srgb, var(--ert-btn-bg) 10%, #fff); color: var(--ert-heading); }
a.ert-ccard:hover::after { transform: scaleX(1); }
.ert-ccard__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ert-btn-bg); background: #fff; color: var(--ert-primary); transition: background .35s, color .35s, transform .45s var(--ert-ease); }
.ert-ccard__icon .ert-icon { width: 20px; height: 20px; }
a.ert-ccard:hover .ert-ccard__icon { background: var(--ert-btn-bg); color: var(--ert-btn-text); transform: rotate(-8deg) scale(1.05); }
.ert-ccard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ert-ccard small { font-size: .6875rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ert-muted); }
.ert-ccard strong { font-family: var(--ert-font-heading); font-weight: 400; font-size: 1.1875rem; line-height: 1.35; color: var(--ert-heading); overflow-wrap: anywhere; }
.ert-ccard em { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ert-primary); }
.ert-ccard em .ert-icon { width: 14px; height: 14px; transition: transform .35s var(--ert-ease); }
a.ert-ccard:hover em .ert-icon { transform: translateX(4px); }
@media (max-width: 700px) { .ert-ccard + .ert-ccard::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; } }
.ert-ccard { flex-direction: row; align-items: flex-start; }
.ert-ccard + .ert-ccard::before { top: 18%; bottom: 18%; }

/* ---------- Contact cards, third design: four soft tiles that fill with gold on hover ---------- */
.ert-ccards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.ert-ccard { flex-direction: column; align-items: stretch; gap: 0; min-height: 250px; padding: 28px 26px 24px; background: var(--ert-light); border: 1px solid transparent; border-radius: calc(var(--ert-radius-lg) * 1.4); overflow: hidden; transition: background .4s var(--ert-ease), transform .4s var(--ert-ease), box-shadow .4s, border-color .4s; }
.ert-ccard + .ert-ccard::before { display: none; }
.ert-ccard::after { content: ""; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--ert-btn-bg) 22%, transparent); transform: none; transition: transform .6s var(--ert-ease), background .4s; z-index: -1; }
a.ert-ccard:hover { background: var(--ert-btn-bg); transform: translateY(-6px); box-shadow: 0 28px 44px -26px rgba(74, 58, 36, .55); border-color: transparent; }
a.ert-ccard:hover::after { transform: scale(1.9); background: rgba(255, 255, 255, .16); }
.ert-ccard__icon { width: 56px; height: 56px; border: 0; background: var(--ert-btn-bg); color: var(--ert-btn-text); box-shadow: 0 10px 20px -12px rgba(74, 58, 36, .6); }
a.ert-ccard:hover .ert-ccard__icon { background: #fff; color: var(--ert-primary); transform: none; }
.ert-ccard__body { flex: 1; margin-top: 26px; gap: 4px; }
.ert-ccard small { color: var(--ert-muted); font-weight: 500; }
.ert-ccard strong { font-size: 1.25rem; }
a.ert-ccard:hover small, a.ert-ccard:hover strong, a.ert-ccard:hover em { color: #3a2b14; }
.ert-ccard em { margin-top: auto; padding-top: 22px; }
.ert-ccard em::before { content: ""; position: absolute; left: 26px; right: 26px; bottom: 62px; height: 1px; background: var(--ert-border); opacity: 0; }
.ert-ccard__body { display: flex; }
.ert-ccard em { border-top: 1px solid color-mix(in srgb, var(--ert-heading) 12%, transparent); width: 100%; justify-content: space-between; margin-top: 22px; padding-top: 16px; }
a.ert-ccard:hover em { border-top-color: rgba(58, 43, 20, .25); }
.ert-ccard::after { left: auto; bottom: auto; right: -58px; top: -58px; width: 140px; height: 140px; }
.ert-ccard__body { flex: 1; flex-direction: column; }
.ert-ccard strong { margin-bottom: 22px; }
.ert-ccard em { margin-top: auto; }

/* ---------- Location / project suggestions ---------- */
.ert-suggest { position: relative; }
.ert-suggest__input::-webkit-search-cancel-button { cursor: pointer; }
.ert-suggest__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 260px; max-height: 340px; overflow-y: auto; padding: 8px; background: var(--ert-surface); border: 1px solid var(--ert-border); border-radius: var(--ert-btn-radius); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.ert-suggest__group { margin: 8px 10px 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ert-primary); }
.ert-suggest__item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: calc(var(--ert-btn-radius) * .75); background: none; color: var(--ert-heading); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer; }
.ert-suggest__item:hover, .ert-suggest__item.is-active { background: color-mix(in srgb, var(--ert-primary) 14%, transparent); }
.ert-suggest__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ert-suggest__sub, .ert-suggest__count { flex: 0 0 auto; font-size: .75rem; color: var(--ert-text); white-space: nowrap; }
.ert-suggest__empty { margin: 8px 10px; font-size: .8125rem; color: var(--ert-text); }
.ert-search--panel .ert-search__form { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .7fr) minmax(0, 1.25fr) auto; }
.ert-search--panel .ert-suggest__input { width: 100%; padding: 12px 4px 14px; border: 0; border-bottom: 1px solid var(--ert-border); border-radius: 0; background: transparent; color: var(--ert-heading); font: inherit; font-size: 1.0625rem; outline: none; transition: border-color .3s; }
.ert-search--panel .ert-suggest__input::placeholder { color: color-mix(in srgb, var(--ert-heading) 55%, transparent); }
.ert-search--panel .ert-suggest__input:hover, .ert-search--panel .ert-suggest__input:focus { border-bottom-color: var(--ert-primary); }
@media (max-width: 1080px) {
  .ert-search--panel .ert-search__form { grid-template-columns: 1fr 1fr; }
  .ert-search--panel .ert-search__field--keyword { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .ert-search--panel .ert-search__form { grid-template-columns: 1fr; } }

/* ---------- Listing descriptions: "Label:" headings and "– item" lists ---------- */
.ert-content .ert-desc__head { margin: 1.6em 0 .7em; font-family: var(--ert-font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ert-heading); }
.ert-content .ert-desc__head:first-child { margin-top: 0; }
.ert-content .ert-desc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.ert-content .ert-desc__list li { position: relative; margin: 0; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--ert-border); line-height: 1.5; }
.ert-content .ert-desc__list li::before { content: ""; position: absolute; left: 2px; top: calc(9px + .75em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--ert-primary); }
.ert-content .ert-desc__list--one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .ert-content .ert-desc__list { grid-template-columns: 1fr; } }

/* reCAPTCHA v2: the widget is a fixed 304px iframe. */
.ert-form__captcha .g-recaptcha { max-width: 100%; }
.ert-form--newsletter > .ert-form__captcha { margin-top: 12px; }
