/*
Theme Name: ERB
Theme URI: https://www.exclusiverealtybrasil.com
Author: Exclusive Realty Brasil
Description: Lightweight, fast theme for Exclusive Realty Brasil. Works with the ERB Core plugin (properties, forms, SEO).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: erb
*/

:root {
	--navy: #101e30;
	--navy-2: #1a2b42;
	--gold: #c5a059;
	--gold-d: #a8843f;
	--cream: #f6f2ea;
	--sand: #ece5d7;
	--ink: #1b2330;
	--muted: #5b6573;
	--line: #e3dccd;
	--white: #fff;
	--on-gold: #101e30; /* text on gold buttons and badges */
	--gold-l: #c5a059; /* gold text on the navy bands, header and footer */
	--radius: 4px;
	--shadow: 0 1px 2px rgba(7, 16, 28, .06), 0 8px 24px rgba(7, 16, 28, .06);
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--on-gold); padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none !important; } }
.eyebrow { font: 600 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.h-section { text-align: left; margin-bottom: 1.2em; }
.h-sub { font-size: 1.7rem; margin-top: 2.2rem; }

/* ---------- Buttons ---------- */
.erb-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em; border: 1px solid transparent; border-radius: var(--radius);
	font: 600 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.erb-btn--gold, .wp-block-button__link { background: var(--gold); color: var(--on-gold); }
.erb-btn--gold:hover, .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.erb-btn--line { border-color: rgba(255, 255, 255, .45); color: var(--white); background: transparent; }
.erb-btn--line:hover { border-color: var(--gold); color: var(--gold); }
.erb-btn--wa { background: #1f9d55; color: #fff; }
.erb-btn--wa:hover { background: #17824a; color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.erb-btn.is-busy { opacity: .6; pointer-events: none; }
.erb-i { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: rgba(255, 255, 255, .75); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { text-decoration: none; margin-right: 18px; }
.topbar a:hover { color: var(--gold); }
.topbar__tools { display: flex; gap: 14px; align-items: center; }
.cur { display: flex; gap: 2px; }
.cur button { background: none; border: 0; color: rgba(255, 255, 255, .6); padding: 4px 6px; cursor: pointer; font-size: .72rem; letter-spacing: .06em; }
.cur button[aria-pressed="true"] { color: var(--gold); }
.lang { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; text-transform: uppercase; }
.lang .current-lang a { color: var(--gold); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-logo { display: block; flex: none; text-decoration: none; }
.site-logo img { width: 170px; height: auto; }
.site-logo__txt { font: 500 1.4rem/1 var(--serif); color: var(--white); letter-spacing: .08em; text-transform: uppercase; }
.site-logo__txt em { font-style: normal; color: var(--gold); }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; font-size: .83rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .88); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--gold); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--navy-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .9rem; padding: 8px 18px; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1.5px; background: var(--white); }
@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.header__cta { margin-left: auto; }
	.main-nav { position: fixed; inset: 112px 0 0 0; background: var(--navy); padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; margin: 0; }
	.nav-open .main-nav { display: block; }
	.nav-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; }
	.main-nav a { font-size: 1rem; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 14px; }
}

/* ---------- Page heads & sections ---------- */
.page-head { position: relative; background: var(--cream); padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); overflow: hidden; }
.page-head--img { background: var(--navy); color: var(--white); min-height: 46vh; display: flex; align-items: flex-end; }
.page-head--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 16, 28, .15) 0%, rgba(7, 16, 28, .75) 100%); }
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head--img h1, .page-head--img .lead, .page-head--img .eyebrow { color: var(--white); }
.page-head--img .eyebrow { color: var(--gold); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding-top: 32px; }
.section--alt { background: var(--cream); }
.band { padding: clamp(40px, 6vw, 72px) 0; }
.band--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.band--navy h2 { color: var(--white); }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band__in > div { max-width: 680px; }
.band__in p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; text-decoration: none; background: var(--white); }
.chips a[aria-current] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Content (block editor) ---------- */
.entry > * { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry > .alignwide { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.entry > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry { padding: clamp(32px, 5vw, 64px) 0; }
.entry--home, .entry--landing { padding: 0; }
.entry--property { padding: 0; }
.entry--property > * { max-width: none; padding: 0; }
.entry h2 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry blockquote { border-left: 2px solid var(--gold); margin-left: auto; padding-left: 1.2em; font: italic 500 1.4rem/1.45 var(--serif); color: var(--navy); }
.entry img { border-radius: var(--radius); }
.entry .wp-block-group.alignfull, .entry .wp-block-cover.alignfull { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.entry .wp-block-group.alignfull > .wp-block-group__inner-container,
.entry .wp-block-group.alignfull.is-layout-constrained > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.entry .wp-block-group.alignfull.is-layout-constrained > .alignfull { max-width: none; }
.has-navy-background-color { color: rgba(255, 255, 255, .85); }
.has-navy-background-color h1, .has-navy-background-color h2, .has-navy-background-color h3 { color: var(--white); }
.wp-block-columns { gap: clamp(24px, 4vw, 56px); }
.wp-block-image figcaption { font-size: .85rem; color: var(--muted); }
.entry--article { font-size: 1.07rem; }
.entry--article > p:first-child { font-size: 1.2rem; }

/* Hero (cover block with class "erb-hero") */
.erb-hero.wp-block-cover { min-height: min(88vh, 820px) !important; padding: 120px var(--gutter) 64px !important; align-items: flex-end; }
.erb-hero .wp-block-cover__inner-container { max-width: var(--wrap); width: 100%; margin: 0 auto; }
.erb-hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 900px; }
.erb-hero p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 620px; }
.erb-hero .erb-search { margin-top: 32px; }

/* ---------- Search ---------- */
.erb-search { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.erb-search__f { background: var(--white); padding: 12px 16px; display: flex; flex-direction: column; }
.erb-search label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.erb-search select { border: 0; background: transparent; padding: 4px 0; font-weight: 500; color: var(--ink); appearance: auto; }
.erb-search .erb-btn { border-radius: 0; padding: 0 32px; }
.erb-search--full { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
@media (max-width: 1180px) { .erb-search--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } .erb-search--full .erb-btn { grid-column: 1 / -1; padding: 16px; } .erb-search--full > :first-child { border-radius: var(--radius) 0 0 0; } .erb-search--full > .erb-btn { border-radius: 0 0 var(--radius) var(--radius); } }
@media (max-width: 860px) {
	.erb-search { grid-template-columns: 1fr 1fr; }
	.erb-search .erb-btn { grid-column: 1 / -1; padding: 16px; }
}

/* ---------- Cards ---------- */
.erb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.erb-card { background: var(--white); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.erb-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.erb-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
/* Photo strip: swipe on touch, arrows on hover (desktop). */
.erb-card__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.erb-card__track::-webkit-scrollbar { display: none; }
.erb-card__track > img, .erb-card__track > span { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.erb-card__end { display: flex !important; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.erb-card__nav { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(7, 16, 28, .18); opacity: 0; transition: opacity .2s; }
.erb-card__nav--prev { left: 10px; } .erb-card__nav--next { right: 10px; }
.erb-card:hover .erb-card__nav, .erb-card__nav:focus-visible { opacity: 1; }
.erb-card__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.erb-card__count { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(7, 16, 28, .6); color: var(--white); font: 600 .7rem/1 var(--sans); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; }
@media (hover: none) { .erb-card__nav { display: none; } }
.erb-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), var(--cream)); }
.erb-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.erb-card__loc { display: flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.erb-card__loc .erb-i { width: 14px; height: 14px; color: var(--gold-d); }
.erb-card__title { font-size: 1.45rem; margin: 0 0 12px; }
.erb-card__title a { text-decoration: none; }
.erb-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--ink); }
.erb-specs li { display: flex; align-items: center; gap: 6px; }
.erb-specs .erb-i { width: 17px; height: 17px; color: var(--gold-d); }
.erb-specs span { color: var(--muted); }
.erb-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.erb-price { font: 600 1.05rem/1.2 var(--sans); color: var(--navy); }
.erb-price--sold { color: var(--muted); }
.erb-card__ref { font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.erb-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--on-gold); font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; }
.erb-badge--under-offer { background: var(--white); }
.erb-badge--sold { background: var(--navy); color: var(--white); }
.property__pricebar .erb-badge { position: static; }

/* Destinations */
.erb-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.erb-dest { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--white); background: var(--navy-2); }
.erb-dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.erb-dest:hover img { transform: scale(1.05); }
.erb-dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 16, 28, .8)); }
.erb-dest__txt { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; }
.erb-dest__txt strong { font: 500 1.9rem/1.1 var(--serif); }
.erb-dest__txt small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.erb-dest:hover { color: var(--white); }

/* Results bar */
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 20px; gap: 12px; flex-wrap: wrap; }
.results-bar p { margin: 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.empty { max-width: 760px; margin: 32px auto; text-align: center; }
.empty .erb-form { text-align: left; }

/* Pagination */
.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; padding: 0 10px; }
.page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Property page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 30vh)); gap: 6px; padding: 6px; background: var(--white); }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--sand); }
.gallery__item:first-child { grid-row: 1 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item.is-more { display: none; }
.gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7, 16, 28, .55); color: var(--white); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.gallery--few { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 60vh); }
.gallery--few .gallery__item:not(:first-child) { display: none; }
@media (max-width: 760px) {
	.gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 56vw 26vw; padding: 0; gap: 3px; }
	.gallery__item:first-child { grid-column: 1 / 3; grid-row: 1; }
	.gallery__item:nth-child(n+4) { display: none; }
	.gallery__item:nth-child(3) .gallery__more, .gallery__item:nth-child(3)::after { }
}
.property__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); padding-top: 32px; padding-bottom: 72px; }
@media (max-width: 980px) { .property__layout { grid-template-columns: 1fr; } }
.crumbs { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.property__loc { display: flex; align-items: center; gap: 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.property__loc .erb-i { width: 16px; color: var(--gold-d); }
.property__title { font-size: clamp(2rem, 3.8vw, 3rem); }
.property__pricebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 12px 0 28px; }
.property__pricebar .erb-price { font-size: 1.6rem; font-weight: 600; }
.specs-big { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); padding: 0; margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.specs-big li { background: var(--white); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.specs-big .erb-i { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--gold-d); }
.specs-big strong { font-size: 1.15rem; color: var(--navy); }
.specs-big span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.features { list-style: none; columns: 2 220px; column-gap: 32px; padding: 0; margin: 0; }
.features li { display: flex; gap: 10px; align-items: center; padding: 7px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
.features .erb-i { width: 17px; color: var(--gold-d); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; }
.video__play .erb-i { width: 28px; height: 28px; fill: currentColor; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.property__side { position: relative; }
/* --enq-top is set by erb.js: when the box is taller than the screen it sticks by its bottom edge, so the page scroll reveals all of it. */
.enquire { position: sticky; top: var(--enq-top, 130px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.enquire h2 { font-size: 1.6rem; }
.enquire__alt { margin-top: 16px; }
.enquire__or { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.enquire__alt .erb-btn { width: 100%; }
.agent { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; font-size: .9rem; }
.agent span { color: var(--muted); font-size: .82rem; }
.mobile-enquire { display: none; }
@media (max-width: 980px) {
	.enquire { position: static; }
	.mobile-enquire { display: flex; position: fixed; left: 16px; right: 84px; bottom: 16px; z-index: 40; box-shadow: var(--shadow); }
}

/* ---------- Forms ---------- */
.erb-form { display: grid; gap: 14px; }
.erb-form__title { margin: 0; }
.erb-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.erb-form--property .erb-form__grid, .enquire .erb-form__grid { grid-template-columns: 1fr; }
.erb-field { display: flex; flex-direction: column; gap: 5px; }
.erb-field--wide { grid-column: 1 / -1; }
.erb-field label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.erb-field input, .erb-field select, .erb-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 1rem; }
.erb-field input:focus, .erb-field select:focus, .erb-field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, .2); }
.erb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.erb-consent input { margin-top: 4px; accent-color: var(--gold-d); }
.erb-form .erb-btn { justify-self: start; }
.erb-form__ok { background: #e9f5ee; border: 1px solid #b9dfc8; color: #1d5e39; padding: 14px 16px; border-radius: var(--radius); }
.erb-form__err { background: #fbeceb; border: 1px solid #f0c3bf; color: #8a2b22; padding: 12px 14px; border-radius: var(--radius); margin: 0; }
.erb-form.is-sent .erb-form__grid, .erb-form.is-sent .erb-consent, .erb-form.is-sent button { display: none; }
.erb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .erb-form__grid { grid-template-columns: 1fr; } }
.erb-form--dark .erb-field label, .erb-form--dark .erb-consent { color: rgba(255, 255, 255, .6); }
.erb-form--dark .erb-field input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: var(--white); }
.erb-form--dark .erb-form__grid { grid-template-columns: 1fr; }
.erb-form--dark .erb-consent a { color: var(--gold); }
.has-navy-background-color .erb-field label, .has-navy-background-color .erb-consent { color: rgba(255, 255, 255, .7); }
.erb-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.erb-contact li { display: flex; gap: 12px; align-items: center; }
.erb-contact .erb-i { color: var(--gold-d); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding-top: 16px; }
.post-card__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px; }
.post-card__title { font-size: 1.5rem; }
.post-card__title a { text-decoration: none; }
.post-card p { color: var(--muted); font-size: .95rem; }
.article__cta { padding-bottom: 72px; }
.article__cta h2 { border-top: 1px solid var(--line); padding-top: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .site-logo { margin-bottom: 20px; }
.footer__h { font: 600 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__list a, .social a, .legal a { text-decoration: none; }
.footer__list a:hover, .social a:hover, .legal a:hover { color: var(--gold); }
.footer__creci { font-size: .8rem; letter-spacing: .06em; }
.footer__small { font-size: .85rem; color: var(--muted); }
.site-footer .footer__small { color: rgba(255, 255, 255, .55); }
.social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.footer__bar-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.legal { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.wa-float .erb-i { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; background: #17824a; }

/* ---------- Lightbox ---------- */
.erb-lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 24, .96); display: flex; align-items: center; justify-content: center; }
.erb-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.erb-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 12px 18px; line-height: 1; }
.erb-lb__x { top: 8px; right: 8px; }
.erb-lb__p { left: 4px; top: 50%; transform: translateY(-50%); }
.erb-lb__nx { right: 4px; top: 50%; transform: translateY(-50%); }
.erb-lb__n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .85rem; }

/* ---------- Home helpers (classes used in patterns) ---------- */
.erb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: left; }
.erb-stat strong { display: block; font: 500 3rem/1 var(--serif); color: var(--gold); }
.erb-stat span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.erb-steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.erb-steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 18px; }
.erb-steps li::before { content: "0" counter(s); display: block; font: 500 2rem/1 var(--serif); color: var(--gold-d); margin-bottom: 10px; }
.erb-steps strong { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.erb-quote { font: italic 500 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--serif); color: var(--navy); }
.erb-press { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: center; font: 500 1.25rem/1 var(--serif); color: var(--muted); letter-spacing: .04em; list-style: none; padding: 0 !important; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.erb-link { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gold-d); border-bottom: 1px solid currentColor; padding-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


/* Latest posts block (homepage journal) */
.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; padding: 0; margin: 0; }
.wp-block-latest-posts.is-grid li { margin: 0; width: auto; }
.wp-block-latest-posts__featured-image { margin-bottom: 14px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-latest-posts__post-title { display: block; font: 500 1.4rem/1.2 var(--serif); color: var(--navy); text-decoration: none; }
.wp-block-latest-posts__post-date { display: block; margin-top: 8px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.entry .section-head { max-width: var(--wrap); }
.entry .erb-grid, .entry .erb-dests, .entry .erb-search { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.team__m { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.team__m h3 { margin-bottom: 4px; }
.team__m p { margin: 0 0 6px; font-size: .92rem; }
.team__role { color: var(--gold-d); font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px !important; }

.wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; }
.wp-block-latest-posts.is-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .wp-block-latest-posts.is-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wp-block-latest-posts.is-grid { grid-template-columns: 1fr; } }
.erb-dests { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .erb-dests { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .erb-dests { grid-template-columns: 1fr; } .erb-dest { aspect-ratio: 4 / 3; } }
.erb-link + .erb-link { margin-left: 28px; }
p:has(> .erb-link + .erb-link) { line-height: 2.6; }

.header__in .site-logo + .header__cta { margin-left: auto; }
.site-main { overflow-x: clip; }
.erb-search__f, .erb-search select { min-width: 0; width: 100%; }
.erb-hero .wp-block-cover__inner-container { min-width: 0; }
@media (max-width: 700px) {
	.erb-stats { grid-template-columns: 1fr 1fr; }
	.erb-stat strong { font-size: 2.4rem; }
	.header__in { min-height: 64px; }
	.site-logo img { width: 138px; }
	.main-nav { top: 100px; }
	.erb-hero.wp-block-cover { padding-top: 64px !important; min-height: 92vh !important; }
	.erb-hero h1 { font-size: 2.4rem; }
	.erb-search { grid-template-columns: 1fr; }
	.erb-search__f { padding: 10px 14px; }
	.property__layout { padding-top: 20px; }
}


/* ---------- v1.1: darker navy, smaller logo, fine animated icons, journal ---------- */
.site-logo img { width: 132px; }
.footer__brand .site-logo img { width: 150px; }
.header__in { min-height: 68px; }
@media (max-width: 700px) { .site-logo img { width: 112px; } .header__in { min-height: 58px; } .main-nav { top: 94px; } }
@media (max-width: 1080px) { .main-nav { inset: 104px 0 0 0; } }

.erb-feature-i { display: inline-flex; color: var(--gold); margin-bottom: 18px; }
.erb-feature-i .erb-i { width: 52px; height: 52px; stroke-width: .9; }
.erb-anim path, .erb-anim circle { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.9s cubic-bezier(.65, 0, .35, 1); }
.erb-anim > :nth-child(2) { transition-delay: .35s; }
.erb-anim > :nth-child(3) { transition-delay: .7s; }
.erb-anim.is-in path, .erb-anim.is-in circle { stroke-dashoffset: 0; }
.erb-reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.erb-reveal.is-in { opacity: 1; transform: none; }
.erb-specs .erb-i, .specs-big .erb-i, .features .erb-i, .erb-card__loc .erb-i, .property__loc .erb-i { stroke-width: 1.25; }
.erb-stat { border-top: 1px solid var(--line); padding-top: 14px; }
.has-navy-background-color .erb-stat { border-color: rgba(255, 255, 255, .12); }

/* Journal */
.page-head--journal { padding-bottom: 40px; }
.chips span { color: var(--muted); font-size: .75rem; margin-left: 2px; }
.chips a[aria-current] span { color: rgba(255, 255, 255, .6); }
.post-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-card__media { position: relative; }
.post-card__cat { position: absolute; left: 14px; top: 14px; background: rgba(7, 16, 28, .82); color: var(--white); font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.post-card__meta { color: var(--muted); letter-spacing: .08em; }
.post-card__title { font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.post-card .erb-link { margin-top: auto; align-self: flex-start; }
.post-grid--lead > .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-grid--lead > .post-card:first-child .post-card__media { aspect-ratio: 16 / 10; }
.post-grid--lead > .post-card:first-child .post-card__title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.post-grid--lead > .post-card:first-child .post-card__excerpt { font-size: 1.05rem; }
@media (max-width: 800px) { .post-grid--lead > .post-card:first-child { grid-template-columns: 1fr; gap: 0; } }

/* Article */
.article__head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 28px; text-align: center; }
.article__head .crumbs { justify-content: center; }
.article__head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.article__hero { margin: 0 auto; }
.article__hero img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); }
.entry--article { font-size: 1.1rem; line-height: 1.8; }
.entry--article > p:first-of-type:not(.press-source)::first-letter { float: left; font: 500 4.2rem/.8 var(--serif); color: var(--gold-d); margin: 8px 12px 0 0; }
/* Press summaries: source line + attribution */
.entry .press-source { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4em; }
.entry .press-source strong { color: var(--navy); font-weight: 600; }
.entry blockquote cite { display: block; margin-top: .5em; font: normal 400 .82rem/1.4 var(--sans, inherit); color: var(--muted); }
.entry blockquote cite::before { content: '— '; }
.entry--article h2 { font-size: 2rem; }
.entry--article h3 { font-size: 1.5rem; margin-top: 1.4em; }
.entry--article a { color: var(--gold-d); }
.article__foot { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 48px; }
.article__share { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .85rem; margin: 0; }
.article__share span { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.article__share a { text-decoration: none; border-bottom: 1px solid var(--line); }
.article__cta { padding-top: 56px; }
.article__cta h2 { border: 0; padding-top: 0; }

.erb-band3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 4px; max-width: none !important; padding: 0 !important; }
.erb-band3 img { width: 100%; height: clamp(220px, 40vh, 460px); object-fit: cover; border-radius: 0 !important; }
@media (max-width: 700px) { .erb-band3 { grid-template-columns: 1fr 1fr; } .erb-band3 img:first-child { grid-column: 1 / -1; } .erb-band3 img { height: 200px; } }


/* ---------- Framed hero (homepage) ---------- */
.erb-hero--framed.wp-block-cover { border: clamp(8px, 1.2vw, 18px) solid var(--navy); border-top-width: 0; background: var(--navy); min-height: min(90vh, 880px) !important; padding: 120px clamp(24px, 5vw, 72px) clamp(40px, 6vw, 80px) !important; overflow: hidden; }
.erb-hero--framed .wp-block-cover__image-background, .erb-hero--framed .wp-block-cover__background { border-radius: clamp(10px, 1.4vw, 22px); }
.erb-hero--framed .wp-block-cover__background { background: linear-gradient(100deg, rgba(7, 16, 28, .72) 0%, rgba(7, 16, 28, .35) 55%, rgba(7, 16, 28, .15) 100%) !important; opacity: 1 !important; }
.erb-hero--framed .wp-block-cover__image-background { animation: erb-kenburns 26s ease-out both; transform-origin: 70% 60%; }
@keyframes erb-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.erb-hero--framed h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 1.02; max-width: 980px; letter-spacing: -.01em; text-wrap: balance; }
.erb-hero--framed h1, .erb-hero--framed .eyebrow, .erb-hero--framed .wp-block-cover__inner-container > p, .erb-hero--framed .erb-search { animation: erb-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.erb-hero--framed .eyebrow { animation-delay: .1s; }
.erb-hero--framed h1 { animation-delay: .25s; }
.erb-hero--framed .erb-search { animation-delay: .55s; }
@keyframes erb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.erb-hero--framed .erb-search { max-width: 1040px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; animation: erb-rise 1.1s .75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(7, 16, 28, .18); transition: background .25s, border-color .25s, color .25s; }
.hero-pills a::after { content: "→"; transition: transform .25s; }
.hero-pills a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hero-pills a:hover::after { transform: translateX(3px); }
.hero-badge { position: absolute; right: clamp(24px, 5vw, 80px); top: 34%; width: 132px; height: 132px; color: #fff; text-decoration: none; z-index: 2; }
.hero-badge > svg { width: 100%; height: 100%; animation: erb-spin 22s linear infinite; }
.hero-badge text { fill: currentColor; font: 600 9.5px/1 var(--sans); }
.hero-badge__i { position: absolute; inset: 34px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, border-color .25s; }
.hero-badge:hover .hero-badge__i { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hero-badge__i svg { animation: erb-bob 2.4s ease-in-out infinite; }
@keyframes erb-spin { to { transform: rotate(360deg); } }
@keyframes erb-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (max-width: 900px) { .hero-badge { display: none; } }
@media (max-width: 700px) {
	.erb-hero--framed.wp-block-cover { border-width: 0 6px 6px; padding: 56px 20px 28px !important; }
	.erb-hero--framed h1 { font-size: 2.5rem; }
	.hero-pills a { padding: 9px 14px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .erb-hero--framed .wp-block-cover__image-background, .hero-badge > svg, .hero-badge__i svg { animation: none !important; } }
html { scroll-padding-top: 110px; }


/* v1.2 fixes: mobile menu icon, consent text, budget field, map link */
.nav-toggle { position: relative; display: none; padding: 0; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1080px) { .nav-toggle { display: block; } }
.erb-consent > span { flex: 1; line-height: 1.5; }
.erb-consent a { color: var(--gold-d); }
.erb-budget { display: flex; gap: 8px; }
.erb-budget select { flex: 0 0 104px; width: 104px; }
.erb-budget input { flex: 1; min-width: 0; }
.erb-field:has(.erb-budget) { grid-column: 1 / -1; }
.map { height: 420px; }
.map-link { margin-top: 10px; font-size: .85rem; }
.map-link a { color: var(--gold-d); }

/* Buying timeline choice pills */
.erb-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.erb-choice label { position: relative; cursor: pointer; }
.erb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.erb-choice span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .9rem; transition: background .2s, border-color .2s, color .2s; }
.erb-choice label:hover span { border-color: var(--gold); }
.erb-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.erb-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.erb-form--dark .erb-choice span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }

/* About page */
.erb-stats--2 { grid-template-columns: 1fr 1fr; }
.team--big { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.team--big .team__m { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; padding: 28px; }
.team__photo { width: 180px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 500 3rem/1 var(--serif); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__body p { font-size: .95rem; color: var(--muted); }
.team__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem !important; }
.team__links a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .team--big .team__m { grid-template-columns: 1fr; } .team__photo { width: 100%; max-width: 280px; } }
.award { margin: 0 auto; text-align: center; max-width: 760px !important; }
.award img { margin: 0 auto 14px; max-width: 520px; width: 100%; mix-blend-mode: multiply; }
.award figcaption { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery: all photos + lightbox thumbnails ---------- */
.gallery { position: relative; }
.gallery__all { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(255, 255, 255, .94); color: var(--navy); border: 0; border-radius: var(--radius); font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 18px rgba(7, 16, 28, .18); }
.gallery__all:hover { background: var(--white); }
@media (max-width: 760px) { .gallery__all { right: 10px; bottom: 10px; padding: 8px 12px; } }
.erb-lb { flex-direction: column; padding: 56px 0 0; user-select: none; }
.erb-lb__stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.erb-lb__stage img { max-width: 92vw; max-height: 100%; object-fit: contain; transition: filter .25s; }
.erb-lb__stage img.is-loading { filter: blur(6px); }
.erb-lb__n { position: absolute; top: 20px; bottom: auto; left: 24px; transform: none; }
.erb-lb__g { top: 8px; right: 64px; font-size: 1rem !important; padding: 14px !important; }
.erb-lb__thumbs { display: flex; gap: 6px; width: 100%; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; scrollbar-width: thin; }
.erb-lb__thumbs button { position: static !important; flex: 0 0 auto; width: 72px; height: 54px; padding: 0 !important; opacity: .5; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s; }
.erb-lb__thumbs button:hover { opacity: .85; }
.erb-lb__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--gold); }
.erb-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Grid view: every photo at once. */
.erb-lb.is-grid .erb-lb__stage, .erb-lb.is-grid .erb-lb__p, .erb-lb.is-grid .erb-lb__nx { display: none; }
.erb-lb.is-grid .erb-lb__thumbs { flex: 1; flex-wrap: wrap; align-content: flex-start; overflow-y: auto; gap: 8px; padding: 8px 24px 32px; max-width: 1280px; margin: 0 auto; }
.erb-lb.is-grid .erb-lb__thumbs button { width: calc((100% - 32px) / 5); height: auto; aspect-ratio: 4 / 3; opacity: 1; }
@media (max-width: 760px) {
	.erb-lb.is-grid .erb-lb__thumbs { padding: 8px 10px 24px; gap: 4px; }
	.erb-lb.is-grid .erb-lb__thumbs button { width: calc((100% - 8px) / 3); }
	.erb-lb__thumbs button { width: 56px; height: 42px; }
	.erb-lb__p, .erb-lb__nx { display: none; }
}

/* ---------- Map: click to interact ---------- */
.map-wrap { position: relative; }
.map-wrap .map { display: block; }
.map-cover { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; border-radius: var(--radius); }
.map-cover span { background: rgba(7, 16, 28, .8); color: var(--white); font: 500 .8rem/1 var(--sans); letter-spacing: .06em; padding: 10px 16px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.map-cover:hover span, .map-cover:focus-visible span { opacity: 1; }
@media (hover: none) { .map-cover span { opacity: 1; } }
.map-wrap.is-active .map-cover { display: none; }

/* Buying-timeline pills: compact, sentence case. */
.erb-choice { gap: 6px; }
.erb-choice label { display: inline-block; margin: 0; }
.erb-choice span { padding: 6px 12px; font-size: .8rem; font-weight: 400; line-height: 1.3; text-transform: none; letter-spacing: 0; }

.erb-lb { z-index: 100000; background: #070d16; }
.erb-lb.is-grid .erb-lb__thumbs { justify-content: flex-start; }

/* Header logo: crop off the small tagline (unreadable at this size); footer keeps the full logo. */
.header__in .site-logo img { width: 150px; height: auto; aspect-ratio: 651 / 142; object-fit: cover; object-position: top; }
@media (max-width: 700px) { .header__in .site-logo img { width: 126px; } }

/* Mobile: compact 2x2 hero search so the first screen shows more of the hero. */
@media (max-width: 560px) {
	.erb-search { grid-template-columns: 1fr 1fr; }
	.erb-search__f { padding: 8px 12px; }
	.erb-search label { font-size: .6rem; letter-spacing: .1em; }
	.erb-search select { font-size: .92rem; padding: 2px 0; }
	.erb-hero .erb-search { margin-top: 22px; }
}

.mobile-enquire { transition: opacity .2s, transform .2s; }
.enq-visible .mobile-enquire { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Alignment: hero content lines up with the header (logo / WhatsApp button) on wide screens. */
.erb-hero--framed .wp-block-cover__inner-container { width: min(var(--wrap), 100%) !important; max-width: var(--wrap) !important; margin-left: auto !important; margin-right: auto !important; }
.erb-hero--framed .hero-badge { right: 0; }
/* Eyebrow sits directly above its heading. */
.eyebrow + h1, .eyebrow + h2, .eyebrow + .wp-block-heading { margin-top: 0 !important; }
/* Buying process: 4 equal steps, links aligned under the columns. */
.erb-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.erb-steps + p { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; }
@media (max-width: 1000px) { .erb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .erb-steps { grid-template-columns: 1fr; } }
/* Contact list aligned with the text above it. */
.erb-contact, .entry .erb-contact, .wp-block-group .erb-contact { padding-left: 0 !important; margin: 22px 0 0 !important; }
.erb-contact li { margin: 0; }
/* Card facts in an even 2-column grid. */
.erb-card .erb-specs { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 28px; row-gap: 8px; }

/* ---------- Multi-select search fields ---------- */
.erb-search { overflow: visible; position: relative; }
.erb-search > :first-child { border-radius: var(--radius) 0 0 var(--radius); }
.erb-search > .erb-btn { border-radius: 0 var(--radius) var(--radius) 0; }
.erb-ms { position: relative; }
.erb-ms__label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.erb-ms details { position: static; }
.erb-ms summary { list-style: none; cursor: pointer; padding: 4px 22px 4px 0; font-weight: 500; color: var(--ink); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erb-ms summary::-webkit-details-marker { display: none; }
.erb-ms summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.erb-ms details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.erb-ms.has-value summary { color: var(--navy); font-weight: 600; }
.erb-ms__panel { position: absolute; left: -1px; top: calc(100% + 6px); z-index: 40; width: max(100%, 300px); max-height: min(420px, 60vh); overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(7, 16, 28, .18); padding: 8px 0 0; text-align: left; }
.erb-search label.erb-ms__opt, .erb-ms__opt { display: flex; align-items: center; gap: 10px; padding: 7px 16px; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.erb-ms__opt:hover { background: var(--cream); }
.erb-search label.erb-ms__opt--top { font-weight: 600; }
.erb-search label.erb-ms__opt--sub { padding-left: 42px; font-size: .86rem; color: var(--muted); }
.erb-ms__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); flex: none; }
.erb-ms__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; margin-top: 8px; border-top: 1px solid var(--line); background: var(--white); }
.erb-ms__foot button { border: 0; background: none; cursor: pointer; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; color: var(--muted); }
.erb-ms__foot .erb-ms__done { color: var(--white); background: var(--navy); padding: 9px 16px; border-radius: var(--radius); }
@media (max-width: 560px) {
	.erb-ms { position: static; }
	.erb-ms__panel { left: 0; right: 0; width: auto; top: auto; margin-top: 6px; }
	.erb-ms summary { font-size: .92rem; padding: 2px 18px 2px 0; }
	.erb-ms__label { font-size: .6rem; letter-spacing: .1em; }
}

.erb-ms--up .erb-ms__panel { top: auto; bottom: calc(100% + 6px); }
@media (max-width: 560px) { .erb-ms--up .erb-ms__panel { bottom: 100%; margin: 0 0 6px; } }

/* Consent: optional marketing box sits close under the required one. */
.erb-consent--optional { margin-top: -6px; }
/* Draft/approval note box. */
.erb-note { background: #fbf4e2; border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: var(--radius); }

/* ---------- Test home (story first) ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .erb-btn { min-width: 190px; justify-content: center; }
.hero-actions__alt { flex-basis: 100%; margin: 6px 0 0; font-size: .92rem; }
.erb-hero .hero-actions__alt a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .45); }
.erb-hero .hero-actions__alt a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 560px) { .hero-actions .erb-btn { flex: 1 1 100%; } }

.erb-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.erb-story__img { margin: 0; position: relative; }
.erb-story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.erb-story__img figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.erb-story h2 { font-size: clamp(2rem, 4vw, 3rem); }
.erb-story .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--navy); }
.erb-story__sig { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.erb-story__sig strong { display: block; color: var(--navy); font-size: 1rem; }
@media (max-width: 800px) { .erb-story { grid-template-columns: 1fr; } .erb-story__img img { aspect-ratio: 4 / 3; } }

.erb-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; text-align: center; }
.erb-numbers strong { display: block; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--serif); color: var(--gold); margin-bottom: 8px; }
.erb-numbers span { font-size: .85rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
@media (max-width: 700px) { .erb-numbers { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

.erb-coast { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
.erb-coast__map { position: relative; min-height: 560px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.erb-coast__canvas { position: absolute; inset: 0; z-index: 1; }
.erb-coast__map .map-cover { z-index: 500; }
.erb-coast__map.is-active .map-cover { display: none; }
.erb-coast__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.erb-coast__list li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.erb-coast__list li:first-child { border-top: 1px solid var(--line); }
.erb-coast__list button { flex: 1; display: flex; gap: 14px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 14px 0; cursor: pointer; font: inherit; color: inherit; }
.erb-coast__n { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-d); font: 600 .75rem/24px var(--sans); text-align: center; transition: background .2s, color .2s; }
.erb-coast__t strong { display: block; font: 500 1.25rem/1.2 var(--serif); color: var(--navy); }
.erb-coast__t small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.erb-coast__go { flex: 0 0 auto; font-size: .78rem; letter-spacing: .04em; color: var(--gold-d); white-space: nowrap; }
.erb-coast__list li.is-on .erb-coast__n, .erb-coast__list button:hover .erb-coast__n { background: var(--gold); color: var(--on-gold); }
.erb-pin span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(7, 16, 28, .35); font: 600 .78rem/26px var(--sans); text-align: center; transition: transform .2s, background .2s; }
.erb-pin.is-on span, .erb-pin:hover span { background: var(--gold); color: var(--on-gold); transform: scale(1.15); }
.erb-pop { display: block; color: var(--ink); }
.erb-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; display: block; }
.erb-pop strong { display: block; font: 500 1.15rem/1.2 var(--serif); color: var(--navy); }
.erb-pop small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 4px 0 6px; }
.erb-pop em { font-style: normal; font-size: .78rem; color: var(--gold-d); }
.leaflet-popup-content { margin: 10px; }
.leaflet-container { font-family: var(--sans); }
@media (max-width: 900px) {
	.erb-coast { grid-template-columns: 1fr; gap: 20px; }
	.erb-coast__map { min-height: 380px; }
	.erb-coast__go { display: none; }
	.erb-coast__t small { font-size: .82rem; }
}
.section-intro { max-width: 640px; color: var(--muted); margin: -4px 0 28px; }

.erb-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.erb-path { background: var(--cream); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); }
.erb-path--alt { background: var(--navy); }
.erb-path--alt h2, .erb-path--alt p { color: var(--white); }
.erb-path--alt .eyebrow { color: var(--gold); }
.erb-path h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.erb-path__steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 20px; }
.erb-path__steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.erb-path__steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-d); font: 600 .75rem/24px var(--sans); text-align: center; }
.erb-path__steps strong { color: var(--navy); }
@media (max-width: 800px) { .erb-paths { grid-template-columns: 1fr; } }
.erb-band { padding-top: clamp(40px, 6vw, 64px) !important; padding-bottom: clamp(40px, 6vw, 64px) !important; }
.erb-coast .leaflet-tile-pane { filter: grayscale(.55) sepia(.15) brightness(1.03) contrast(.95); }
.leaflet-container a.erb-pop, .erb-pop * { text-decoration: none; color: inherit; }
.leaflet-container a.erb-pop strong { color: var(--navy); } .leaflet-container a.erb-pop small { color: var(--muted); } .leaflet-container a.erb-pop em { color: var(--gold-d); }

/* Area map on listings */
.erb-area { margin-top: 8px; }
.erb-area__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.erb-area__map { position: relative; height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.erb-area__canvas { position: absolute; inset: 0; z-index: 1; }
.erb-area__map .map-cover { z-index: 500; }
.erb-area__map.is-active .map-cover { display: none; }
.erb-area__map .leaflet-tile-pane { filter: grayscale(.55) sepia(.15) brightness(1.03) contrast(.95); }
/* Hide the hairline seams between map tiles (1px overlap). */
.leaflet-container img.leaflet-tile { width: 257px !important; height: 257px !important; mix-blend-mode: normal !important; }
.erb-area__txt p { margin-top: 0; }
.erb-area__high { grid-template-columns: 1fr !important; margin: 0 0 20px; }
/* Area links: one column, even spacing */
.erb-area__txt > p:has(> .erb-link) { margin: 0 0 18px !important; line-height: 1.2; }
.erb-area__txt .guide-links--area { flex-direction: column; align-items: flex-start; gap: 18px; margin: 0; }
.erb-area__pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.erb-area__pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.erb-area__note { margin-top: 12px; }
.leaflet-tooltip.erb-area__label { background: var(--navy); color: var(--white); border: 0; border-radius: 999px; padding: 6px 14px; font: 600 .78rem/1 var(--sans); letter-spacing: .04em; box-shadow: 0 2px 8px rgba(7, 16, 28, .3); }
.leaflet-tooltip.erb-area__label::before { display: none; }
@media (max-width: 900px) { .erb-area__grid { grid-template-columns: 1fr; } .erb-area__map { height: 300px; } .erb-area__pics { grid-template-columns: repeat(2, 1fr); } }

/* Photos: no drag-to-desktop */
.gallery img, .erb-lb img, .erb-card img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Test home: lighter hero, the photo shows; text stays readable on a soft bottom gradient */
.erb-hero--bright .wp-block-cover__background { opacity: 0 !important; }
.erb-hero--bright::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .52) 100%), linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) 55%); }
.erb-hero--bright .wp-block-cover__inner-container { position: relative; z-index: 2 !important; }
.erb-hero--bright h1, .erb-hero--bright p { text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 2px 24px rgba(0, 0, 0, .45); }

/* Test home: about section without portrait */
.erb-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.erb-intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.erb-intro .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--navy); margin-top: 0; }
@media (max-width: 800px) { .erb-intro { grid-template-columns: 1fr; gap: 16px; } }

/* Open dropdowns sit above the destination pills */
.erb-search .erb-ms:has(details[open]) { z-index: 80; }
.erb-ms__panel { z-index: 80; background: var(--white); }

/* Hero search lines up with the heading (left), not centred */
.erb-hero .erb-search { margin-left: 0; margin-right: 0; }
/* Mobile menu starts exactly under the header */
@media (max-width: 1080px) { .main-nav { top: var(--nav-top, 104px) !important; } }

/* Every hero: content column matches the header width */
.erb-hero.wp-block-cover .wp-block-cover__inner-container { width: min(var(--wrap), 100%) !important; max-width: var(--wrap); margin-left: auto !important; margin-right: auto !important; }

/* Opening option A (main home): photo starts black-and-white and slowly turns to colour, with a slow zoom */
@keyframes erb-colour { from { filter: grayscale(1) brightness(.92); } to { filter: none; } }
@keyframes erb-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.erb-hero--reveal .wp-block-cover__image-background { animation: erb-colour 3.5s ease-out .4s both, erb-zoom 18s ease-out both; }

/* Opening option B (test home): crossfading photos with a gentle zoom */
.hero-slide { opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero-slide.is-on { opacity: 1; animation: erb-zoom 8s ease-out both; }
@media (prefers-reduced-motion: reduce) { .erb-hero--reveal .wp-block-cover__image-background, .hero-slide.is-on { animation: none; } }

/* Team: two wide cards per row, so three people sit 2 + 1 */
.team--big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }

/* Guide maps (area and restaurant guides) */
.erb-guide-map { position: relative; height: 520px; border-radius: var(--radius); overflow: hidden; background: var(--sand); margin: 8px 0 12px; }
.erb-guide-map__canvas { position: absolute; inset: 0; z-index: 1; }
.erb-guide-map .map-cover { z-index: 500; }
.erb-guide-map.is-active .map-cover { display: none; }
.erb-guide-map .leaflet-tile-pane { filter: grayscale(.55) sepia(.15) brightness(1.03) contrast(.95); }
.erb-gpin span { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(7, 16, 28, .4); background: var(--navy); }
.erb-gpin--beach span { background: #3a8fb7; }
.erb-gpin--food span { background: var(--gold); }
.erb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .85rem; color: var(--muted); }
.erb-legend li::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: var(--navy); }
.erb-legend .is-beach::before { background: #3a8fb7; }
.erb-legend .is-food::before { background: var(--gold); }
.erb-pop a { display: inline-block; margin-top: 4px; font-size: .8rem; color: var(--gold-d); }
.erb-guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.erb-guide-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.erb-guide-list h3 { font-size: 1.35rem; margin: 0 0 6px; }
.erb-guide-list p { margin: 0 0 8px; font-size: .94rem; color: var(--muted); }
.erb-guide-list .erb-link { font-size: .75rem; }
.erb-guide-tag { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 6px; }
@media (max-width: 700px) { .erb-guide-map { height: 380px; } }

/* Guides v2: coast-map layout with numbered (communities) and lettered (beaches) pins */
.erb-pin--alt span { background: var(--white); color: var(--navy); border-color: var(--navy); }
.erb-pin--alt.is-on span, .erb-pin--alt:hover span { background: var(--gold); color: var(--on-gold); border-color: var(--white); }
.erb-coast--guide { margin-top: 8px; margin-bottom: 56px; }
.erb-coast--guide .erb-coast__map { min-height: 640px; }
.erb-coast--guide .erb-coast__list { justify-content: flex-start; }
.erb-coast--guide .erb-coast__list button { padding: 10px 0; }
.erb-coast--guide .erb-coast__t strong { font-size: 1.12rem; }
.erb-coast--guide .erb-coast__t small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.erb-coast__sep { border: 0 !important; padding: 18px 0 6px; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); }
.erb-coast__sep:first-child { padding-top: 0; }
.erb-coast__n--alt { border-color: var(--navy); color: var(--navy); }
.erb-guide-list h3 .erb-coast__n { display: inline-block; width: 26px; height: 26px; margin-right: 10px; vertical-align: 3px; font-size: .72rem; }
.entry > .alignwide .erb-guide-list { margin: 0 0 8px; }
@media (max-width: 900px) { .erb-coast--guide .erb-coast__map { min-height: 400px; } }

/* Guides: intro, "next" link and guide links on destination pages */
.guide-intro { display: grid; gap: 16px; margin-bottom: 32px; }
.guide-intro .erb-note { margin: 0; max-width: 760px; }
.guide-intro .lead { margin: 0; max-width: 820px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--navy); }
.guide-next { border-top: 1px solid var(--line); padding-top: 28px !important; margin-top: 48px; margin-bottom: 48px; }
.guide-next__link { font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--serif); color: var(--navy); text-decoration: none; }
.guide-next__link:hover { color: var(--gold-d); }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; }
.page-head--img .guide-links .erb-link { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.guide-links--area { margin-top: 4px; }
.guide-links .erb-link + .erb-link { margin-left: 0; } /* the flex gap already spaces them; the margin pushed wrapped links in */
.erb-area__txt > p:has(> .erb-link) { margin-bottom: 0; }
.entry > .section-head.alignwide { margin-top: 56px; }
/* Bedrooms dropdown: single choice, narrower panel */
.erb-ms--single .erb-ms__panel { min-width: 180px; }
.erb-ms__opt input[type=radio] { accent-color: var(--navy); }

/* ---------- Language & currency selectors ---------- */
.topbar__tools { gap: 6px; }
.erb-sel { position: relative; }
.erb-sel summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 5px 8px; cursor: pointer; color: rgba(255, 255, 255, .8); font-size: .74rem; letter-spacing: .08em; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; user-select: none; }
.erb-sel summary::-webkit-details-marker { display: none; }
.erb-sel summary:hover, .erb-sel[open] summary { color: var(--gold); border-color: rgba(201, 169, 110, .5); }
.erb-sel summary .erb-i { width: 14px; height: 14px; }
.erb-sel summary .erb-i--chev { width: 12px; height: 12px; transition: transform .15s; }
.erb-sel[open] summary .erb-i--chev { transform: rotate(180deg); }
.erb-sel__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--navy); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(7, 16, 28, .22); }
.erb-sel__list a, .erb-sel__list button { display: flex; align-items: baseline; gap: 10px; width: 100%; margin: 0; padding: 9px 10px; border: 0; background: none; color: inherit; font: inherit; font-size: .88rem; letter-spacing: 0; text-align: left; text-decoration: none; border-radius: 6px; cursor: pointer; }
.topbar .erb-sel__list a { margin-right: 0; }
.erb-sel__list a:hover, .erb-sel__list button:hover { background: var(--cream); color: var(--navy); }
.erb-sel__list [aria-current="true"], .erb-sel__list [aria-pressed="true"] { font-weight: 600; }
.erb-sel__list [aria-current="true"]::after, .erb-sel__list [aria-pressed="true"]::after { content: "✓"; margin-left: auto; color: var(--gold); }
.erb-sel__code { min-width: 30px; font-size: .74rem; letter-spacing: .06em; color: #7a8594; }
.erb-sel__list small { color: #7a8594; font-size: .74rem; }
.erb-sel__list em { font-style: normal; font-size: .7rem; color: #a07a2f; margin-left: 4px; }
.erb-sel--cur .erb-sel__list { min-width: 250px; }
.erb-sel__note { margin: 4px 0 0; padding: 10px 10px 6px; border-top: 1px solid #eee; font-size: .74rem; line-height: 1.45; color: #7a8594; }
@media (max-width: 700px) {
	.erb-sel__list { position: fixed; left: 12px; right: 12px; top: 44px; min-width: 0; }
	.erb-sel--cur .erb-sel__list { min-width: 0; }
}

/* ---------- Homepage type scale: two typefaces, six sizes ----------
   Serif (Cormorant) only for headings, titles and numbers; sans (Manrope) for everything else. */
.entry--home {
	--t-h1: clamp(2.6rem, 5.2vw, 4.2rem);
	--t-h2: clamp(1.9rem, 3vw, 2.5rem);
	--t-h3: 1.35rem;
	--t-lead: 1.125rem;
	--t-body: 1rem;
	--t-small: .84rem;
	--t-label: .75rem;
}
.entry--home h1 { font-size: var(--t-h1); }
.entry--home h2 { font-size: var(--t-h2); line-height: 1.15; }
.entry--home h3, .entry--home .erb-card__title, .entry--home .post-card__title, .entry--home .erb-coast__t strong { font-size: var(--t-h3); line-height: 1.2; }
.entry--home .erb-numbers strong, .entry--home .erb-stat strong { font-size: var(--t-h2); }
.entry--home .lead, .entry--home .erb-hero p:not(.eyebrow) { font: 400 var(--t-lead)/1.6 var(--sans); }
.entry--home .lead { color: inherit; }
.entry--home .post-card__excerpt, .entry--home .erb-price { font-size: var(--t-body); }
.entry--home .erb-coast__t small, .entry--home .erb-coast__go, .entry--home .erb-card__body li, .entry--home .erb-card__body span:not(.erb-price):not(.erb-badge),
.entry--home .erb-numbers span, .entry--home .erb-stat span, .entry--home .hero-actions__alt, .entry--home .map-cover span, .entry--home .erb-form label, .entry--home .erb-form small { font-size: var(--t-small); }
.entry--home .eyebrow, .entry--home .erb-btn, .entry--home .erb-link, .entry--home .erb-badge, .entry--home .erb-card__loc,
.entry--home .post-card__cat, .entry--home .post-card__meta { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; }

/* Back button on listing pages, over the gallery */
.property { position: relative; }
.property__back { position: absolute; top: 16px; left: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); color: var(--navy); text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(7, 16, 28, .18); }
.property__back:hover { background: var(--white); }

/* FAQ */
.erb-faq { max-width: 820px; margin: 0 auto; }
.erb-faq > h2 { margin-bottom: 18px; }
.erb-faq__q { border-top: 1px solid var(--line); }
.erb-faq__q:last-of-type { border-bottom: 1px solid var(--line); }
.erb-faq__q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; font: 500 1.3rem/1.3 var(--serif); color: var(--navy); }
.erb-faq__q summary::-webkit-details-marker { display: none; }
.erb-faq__q summary::after { content: '+'; font: 300 1.6rem/1 var(--sans); color: var(--gold-d); transition: transform .2s; flex: none; }
.erb-faq__q[open] summary::after { transform: rotate(45deg); }
.erb-faq__a { padding: 0 0 20px; color: var(--ink); }
.erb-faq__a p { margin: 0 0 .8em; }
.erb-faq__a p:last-child { margin-bottom: 0; }
.erb-faq__note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* Lists in page text: keep bullets inside the text column on small screens */
.entry > ul, .entry > ol { padding-left: calc(var(--gutter) + 1.3em); }
.entry > ul li, .entry > ol li { margin-bottom: .45em; }

/* Area guides: practical notes */
.guide-notes { max-width: 820px; }
.guide-notes h3 { font-size: 1.45rem; margin: 28px 0 8px; }
.guide-notes h3:first-child { margin-top: 0; }
.guide-notes p { margin: 0 0 .8em; }

/* Grey palette (Edmond, 9 Oct): lighter text on the grey header, footer and bands, light gold for accents there */
.site-footer { color: rgba(255, 255, 255, .92); }
.band--navy, .has-navy-background-color { color: rgba(255, 255, 255, .94); }
.site-footer .footer__h, .erb-numbers strong, .erb-path--alt .eyebrow, .page-head--img .eyebrow, .has-navy-background-color .eyebrow { color: var(--gold-l); }
.topbar a:hover, .main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .footer__list a:hover, .social a:hover, .legal a:hover { color: var(--gold-l); }

/* Homepage photos: brighter and warmer, to show the colours of Bahia */
.erb-hero--bright .wp-block-cover__image-background { filter: saturate(1.14) brightness(1.06) contrast(1.03); }
/* Terravista golf photo: keep the cliffs and the sea in view on wide screens */
.erb-hero .wp-block-cover__image-background[src*="05_golf_beside_the_coast"] { object-position: 50% 100% !important; animation: none !important; transform: none !important; }
