/*
Theme Name: Intellego Real Estate
Theme URI: https://property.intellego-ic.com/
Author: Intellego Real Estate Advisors
Description: Premium property theme for Intellego Real Estate Advisors. Requires the Intellego Properties plugin.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: intellego-realestate
*/

:root {
	--teal-950: #072e2a;
	--teal-900: #0b3f39;
	--teal-800: #0d5149;
	--teal-700: #10675d;
	--teal-500: #018080;
	--teal-100: #e3efed;
	--gold-600: #8f7f63;
	--gold-500: #a8977b;
	--gold-400: #c2b480;
	--sand-200: #e6ded2;
	--sand-100: #f4f0ea;
	--ivory: #faf8f5;
	--white: #ffffff;
	--ink: #202020;
	--text: #3f4245;
	--muted: #75797d;
	--line: #e4e0d9;
	--font-head: "Raleway", "Montserrat", system-ui, sans-serif;
	--font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 4px;
	--radius-lg: 8px;
	--shadow-sm: 0 1px 2px rgba(7, 46, 42, .06), 0 2px 8px rgba(7, 46, 42, .05);
	--shadow: 0 10px 30px -12px rgba(7, 46, 42, .25);
	--shadow-lg: 0 30px 60px -20px rgba(7, 46, 42, .35);
	--ease: cubic-bezier(.22, .61, .36, 1);
	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--teal-700); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-400); }
.lead { font-size: 18px; color: var(--ink); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-800); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold-500); color: #fff; }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: var(--sand-100); color: var(--teal-900); }
.btn--outline { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn--outline:hover { background: var(--teal-700); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-700); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--teal-900); color: rgba(255,255,255,.78); font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar__contact { display: flex; align-items: center; gap: 24px; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold-400); }
.topbar .icon { color: var(--gold-400); width: 14px; height: 14px; }
.topbar__group { letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(7,46,42,.35); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--teal-700); flex-shrink: 0; }
.brand__logo { height: 58px; width: auto; }
.brand__divider { width: 1px; height: 38px; background: var(--gold-400); opacity: .7; }
.brand__label { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; line-height: 1.45; color: var(--gold-500); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--teal-700); position: relative; }
.nav__list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list > li > a:hover::after, .nav__list > .current-menu-item > a::after, .nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav__list .menu-item-has-children > a { padding-right: 26px; }
.nav__list .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); }
.sub-menu { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-top: 2px solid var(--teal-700); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 22px; font-size: 14px; color: var(--text); }
.sub-menu a:hover { color: var(--teal-700); background: var(--sand-100); }
.nav__cta { min-height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--teal-700); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -2%; background-size: cover; background-position: center; z-index: -2; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,46,42,.9) 0%, rgba(7,46,42,.68) 42%, rgba(7,46,42,.2) 100%), linear-gradient(0deg, rgba(7,46,42,.55), transparent 45%); }
.hero__inner { padding-top: 80px; padding-bottom: 80px; }
.hero__copy { max-width: 720px; }
.hero__title { color: #fff; font-weight: 300; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.hero__text { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero search (frosted glass) */
.hero-search { max-width: 1040px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-radius: var(--radius-lg); padding: 14px; position: relative; }
.hero-search__tabs { display: inline-flex; gap: 4px; margin: 0 0 12px 4px; }
.hero-search__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.hero-search__tabs span { display: block; padding: 7px 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); border-radius: 999px; cursor: pointer; transition: all .2s var(--ease); }
.hero-search__tabs input:checked + span { background: #fff; color: var(--teal-900); }
.hero-search__tabs input:focus-visible + span { outline: 2px solid var(--gold-400); }
.hero-search__fields { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr auto; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hs-field { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border-right: 1px solid var(--line); min-width: 0; color: var(--text); }
.hs-field__label { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.hs-field input, .hs-field select { border: 0; padding: 4px 0 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); width: 100%; outline: none; appearance: none; -webkit-appearance: none; }
.hs-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2310675D' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 18px; cursor: pointer; }
.hero-search__submit { border-radius: 0; min-height: 70px; padding: 0 32px; }
.hero-search__more { position: absolute; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-search__more:hover { color: var(--gold-400); }

/* ---------- Credentials strip ---------- */
.credentials { background: var(--teal-700); color: #fff; }
.credentials__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credential { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 6px; }
.credential:first-child { border-left: 0; padding-left: 0; }
.credential__num { font-family: var(--font-head); font-size: 32px; font-weight: 300; color: var(--gold-400); line-height: 1; }
.credential__label { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--sand-100); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head-actions { display: flex; align-items: center; gap: 28px; }
.section__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; color: var(--teal-900); max-width: 760px; margin: 0; }

/* ---------- Horizontal scrollers ---------- */
.scroller { display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 30px; scrollbar-width: none; cursor: grab; outline: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller.is-dragging a { pointer-events: none; }
.scroller > * { scroll-snap-align: start; flex-shrink: 0; }
.scroller-nav { display: flex; gap: 10px; }
.scroller-nav__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-700); display: grid; place-items: center; transition: all .25s var(--ease); }
.scroller-nav__btn:hover:not(:disabled) { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.scroller-nav__btn:disabled { opacity: .35; cursor: default; }
.scroller-progress { height: 2px; background: var(--line); position: relative; overflow: hidden; margin-top: 4px; }
.scroller-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--teal-700); transition: transform .15s linear, width .2s; }

/* Category tiles (immersive) */
.cat-tile { position: relative; width: clamp(270px, 26vw, 380px); aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; display: block; box-shadow: var(--shadow); }
.cat-tile__img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.cat-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,46,42,.05) 30%, rgba(7,46,42,.75) 100%); transition: background .5s var(--ease); }
.cat-tile__num { position: absolute; top: 22px; left: 24px; font-family: var(--font-head); font-size: 14px; letter-spacing: .2em; color: rgba(255,255,255,.85); }
.cat-tile__num::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold-400); vertical-align: middle; margin-left: 10px; }
.cat-tile__glass { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 22px 22px 20px; border-radius: var(--radius); background: rgba(7,46,42,.28); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); display: flex; flex-direction: column; gap: 6px; transition: transform .5s var(--ease), background .5s var(--ease); }
.cat-tile__title { font-family: var(--font-head); font-size: 23px; font-weight: 400; line-height: 1.2; }
.cat-tile__desc { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s; }
.cat-tile__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-top: 4px; }
.cat-tile__meta .icon { transition: transform .3s var(--ease); }
.cat-tile:hover { color: #fff; }
.cat-tile:hover .cat-tile__img, .cat-tile:focus-visible .cat-tile__img { transform: scale(1.09); filter: blur(2px) brightness(.9); }
.cat-tile:hover .cat-tile__shade { background: linear-gradient(180deg, rgba(7,46,42,.25) 0%, rgba(7,46,42,.85) 100%); }
.cat-tile:hover .cat-tile__glass, .cat-tile:focus-visible .cat-tile__glass { background: rgba(7,46,42,.45); }
.cat-tile:hover .cat-tile__desc, .cat-tile:focus-visible .cat-tile__desc { max-height: 90px; opacity: 1; margin: 4px 0; }
.cat-tile:hover .cat-tile__meta .icon { transform: translateX(5px); }
@media (hover: none) { .cat-tile__desc { max-height: 90px; opacity: 1; } }

/* ---------- Property cards ---------- */
.card { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.scroller .card { width: clamp(280px, 24vw, 340px); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__link { position: absolute; inset: 0; z-index: 3; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,46,42,.35), transparent 35%, transparent 70%, rgba(7,46,42,.35)); pointer-events: none; }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 1; }
.card__type { position: absolute; bottom: 12px; left: 14px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.badge--sale { background: var(--teal-700); color: #fff; }
.badge--rent { background: var(--gold-500); color: #fff; }
.badge--status { background: #fff; color: var(--teal-900); }
.badge--available { background: var(--teal-100); color: var(--teal-800); }
.badge--plain { background: var(--sand-100); color: var(--gold-600); }
.card__body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.card__location { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 8px; }
.card__location .icon { width: 14px; height: 14px; }
.card__title { font-size: 19px; font-weight: 500; color: var(--teal-900); margin: 0 0 10px; line-height: 1.3; transition: color .2s; }
.card:hover .card__title { color: var(--teal-700); }
.card__price { font-family: var(--font-body); font-size: 19px; font-weight: 600; color: var(--teal-700); margin: 0 0 16px; }
.ire-price-suffix { font-size: .68em; font-weight: 500; color: var(--muted); }
.card__specs { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text); }
.card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.card__specs .icon { color: var(--gold-500); }
.card__specs span { color: var(--muted); }
.card--more { width: 220px !important; background: var(--teal-700); color: #fff; justify-content: center; align-items: center; text-align: center; gap: 16px; padding: 30px; font-family: var(--font-head); font-size: 20px; border: 0; }
.card--more:hover { color: #fff; background: var(--teal-800); }
.card--more .icon { width: 30px; height: 30px; color: var(--gold-400); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__tab { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: all .2s var(--ease); }
.tabs__tab:hover { border-color: var(--teal-700); color: var(--teal-700); }
.tabs__tab.is-active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.browse-row[hidden] { display: none; }
.browse-row.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- About / services ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about__badge { position: absolute; right: -20px; bottom: 40px; background: var(--teal-700); color: #fff; padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.about__badge span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.about__badge strong { font-family: var(--font-head); font-size: 22px; font-weight: 400; }
.about__copy .section__title { margin-bottom: 22px; }
.services { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 0; }
.services li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li > span { font-family: var(--font-head); font-size: 15px; color: var(--gold-500); padding-top: 2px; }
.services strong { color: var(--teal-900); font-weight: 600; font-size: 15px; }
.services p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.services--cards li { background: var(--sand-100); border: 0; border-radius: var(--radius); padding: 22px; margin-bottom: 12px; }

/* ---------- Buy / Sell band ---------- */
.buysell { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.buysell__panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.buysell__bg { position: absolute; inset: -10px; background-size: cover; background-position: center; z-index: -2; transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.buysell__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .6s var(--ease); }
.buysell__panel--buy::before { background: linear-gradient(180deg, rgba(7,46,42,.35), rgba(7,46,42,.92)); }
.buysell__panel--sell::before { background: linear-gradient(180deg, rgba(32,28,20,.3), rgba(51,42,28,.9)); }
.buysell__panel:hover .buysell__bg { transform: scale(1.05); filter: blur(3px); }
.buysell__content { padding: clamp(40px, 6vw, 80px); max-width: 620px; }
.buysell__title { color: #fff; font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 16px; }
.buysell__content > p { color: rgba(255,255,255,.85); margin-bottom: 30px; }
.buysell__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand-100); color: var(--text); font-size: 14px; border-top: 3px solid var(--teal-700); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.site-footer__brand p { margin: 22px 0; color: var(--muted); font-size: 13.5px; max-width: 380px; }
.brand--footer .brand__logo { height: 52px; }
.site-footer__title { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-900); margin-bottom: 20px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { color: var(--text); }
.site-footer__links a:hover { color: var(--teal-700); }
.site-footer__contact { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.site-footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.site-footer__contact .icon { color: var(--gold-500); margin-top: 3px; }
.site-footer__contact a { color: var(--text); }
.site-footer__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--teal-700); background: #fff; }
.social a:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.site-footer__bar { background: var(--teal-900); color: rgba(255,255,255,.7); font-size: 12.5px; }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bar a { color: var(--gold-400); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(70px, 9vw, 120px) 0 clamp(90px, 10vw, 130px); overflow: hidden; isolation: isolate; background: var(--teal-900); }
.page-hero--tall { padding-bottom: clamp(110px, 12vw, 160px); }
.page-hero__bg { position: absolute; inset: -20px; background-size: cover; background-position: center; z-index: -2; filter: blur(3px); transform: scale(1.04); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,46,42,.94), rgba(7,46,42,.7) 60%, rgba(7,46,42,.5)); }
.page-hero--plain { padding: 70px 0; }
.page-hero__title { color: #fff; font-weight: 300; font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 12px; max-width: 900px; }
.page-hero__text { color: rgba(255,255,255,.82); max-width: 680px; font-size: 16px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span { opacity: .7; }
.breadcrumb--dark { color: var(--muted); margin: 26px 0 18px; }
.breadcrumb--dark a { color: var(--teal-700); }

/* ---------- Filters ---------- */
.search-wrap { position: relative; z-index: 5; margin-top: -60px; }
.filters { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line); }
.filters__row--main { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: end; }
.filters__more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters__toggle { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); padding: 0; }
.field select, .field input[type="text"], .ire-field input, .ire-field select, .ire-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: 10px 14px; font-size: 14.5px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field select, .ire-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2310675D' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; cursor: pointer; }
.field select:focus, .field input:focus, .ire-field input:focus, .ire-field select:focus, .ire-field textarea:focus { outline: none; border-color: var(--teal-700); background-color: #fff; box-shadow: 0 0 0 3px rgba(16,103,93,.12); }
.field__input-icon { position: relative; display: block; }
.field__input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold-500); }
.field__input-icon input { padding-left: 40px !important; }
.segmented { display: flex; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; height: 48px; padding: 0 18px; border: 1px solid var(--line); margin-left: -1px; font-size: 13.5px; font-weight: 500; cursor: pointer; background: var(--ivory); white-space: nowrap; transition: all .2s; }
.segmented label:first-of-type span { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.segmented label:last-of-type span { border-radius: 0 var(--radius) var(--radius) 0; }
.segmented input:checked + span { background: var(--teal-700); border-color: var(--teal-700); color: #fff; position: relative; z-index: 1; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold-500); }
.filters__actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 20px; }
.filters__clear { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.filters__clear:hover { color: var(--teal-700); }

/* ---------- Results ---------- */
.results { padding-top: 40px; padding-bottom: clamp(64px, 8vw, 110px); }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.results__count { margin: 0; font-size: 15px; }
.results__count strong { font-family: var(--font-head); font-size: 26px; font-weight: 400; color: var(--teal-900); margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--teal-100); color: var(--teal-800); font-size: 12.5px; font-weight: 500; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: var(--teal-700); color: #fff; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select { min-height: 42px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2310675D' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-size: 14px; color: var(--ink); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 50px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: 14px; }
.pagination .current { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.pagination a:hover { border-color: var(--teal-700); color: var(--teal-700); }
.empty { text-align: center; padding: 70px 20px; background: var(--sand-100); border-radius: var(--radius-lg); }
.empty > .icon { width: 44px; height: 44px; color: var(--gold-500); margin: 0 auto 16px; display: block; }
.empty h2 { font-size: 28px; font-weight: 300; color: var(--teal-900); }
.empty p { max-width: 560px; margin: 0 auto 24px; }
.empty__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Single listing ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 10px; position: relative; }
.gallery__item { padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand-200); cursor: zoom-in; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(.92); }
.gallery__item--0 { grid-row: 1 / 3; }
.gallery:has(.gallery__item:only-of-type) { grid-template-columns: 1fr; }
.gallery__item--0:only-of-type { grid-row: 1 / 3; }
.gallery:not(:has(.gallery__item--3)) { grid-template-columns: 2fr 1fr; }
.gallery:not(:has(.gallery__item--2)) .gallery__item--1 { grid-row: 1 / 3; }
.gallery__all { position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; box-shadow: var(--shadow); }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 70px); padding-top: 44px; padding-bottom: clamp(64px, 8vw, 110px); align-items: start; }
.listing__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.listing__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; color: var(--teal-900); margin-bottom: 12px; }
.listing__location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.listing__location .icon { color: var(--gold-500); }
.listing__price-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 20px; }
.listing__price { font-size: 30px; font-weight: 600; color: var(--teal-700); margin: 0; }
.listing__ref { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.listing__ref strong { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 30px 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.facts li { background: var(--sand-100); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.facts .icon { width: 26px; height: 26px; color: var(--gold-500); margin-bottom: 6px; }
.facts strong { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--teal-900); line-height: 1.1; }
.facts span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.listing__section { padding-top: 34px; }
.listing__h2 { font-size: 24px; font-weight: 400; color: var(--teal-900); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.listing__h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--gold-500); }
.prose { font-size: 15.5px; }
.prose p { margin-bottom: 1.1em; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .icon { color: var(--teal-700); margin-top: 4px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.listing__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.enquiry-card, .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; border-top: 3px solid var(--teal-700); }
.enquiry-card__price { font-size: 26px; font-weight: 600; color: var(--teal-700); margin: 0; }
.enquiry-card__ref { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2px 0 20px; }
.enquiry-card__title, .form-card__title { font-size: 21px; font-weight: 400; color: var(--teal-900); margin-bottom: 16px; }
.form-card__text { color: var(--muted); font-size: 14px; margin-top: -8px; }
.enquiry-card__direct { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.enquiry-card__direct a, .enquiry-card__direct button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--teal-700); }
.enquiry-card__direct a:hover, .enquiry-card__direct button:hover { color: var(--gold-600); }

/* ---------- Forms ---------- */
.ire-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.enquiry-card .ire-form__grid, .form-card--narrow .ire-form__grid { grid-template-columns: 1fr; }
.ire-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ire-field--wide { grid-column: 1 / -1; }
.ire-field label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.ire-field label span { color: #b3412b; }
.ire-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.ire-form__privacy { font-size: 12px; color: var(--muted); margin: 14px 0 16px; }
.ire-form .btn { width: 100%; }
.ire-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ire-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.ire-notice--ok { background: var(--teal-100); color: var(--teal-900); border-left: 3px solid var(--teal-700); }
.ire-notice--err { background: #fbeeea; color: #7a2a1b; border-left: 3px solid #b3412b; }

/* ---------- Split pages (Sell / Contact) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.split .form-card { margin-top: -160px; position: relative; z-index: 2; }
.steps { list-style: none; padding: 0; margin: 30px 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li > span { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-400); display: grid; place-items: center; font-family: var(--font-head); color: var(--gold-600); }
.steps strong { color: var(--teal-900); font-size: 16px; font-weight: 600; }
.steps p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); }
.contact-list strong { display: block; color: var(--teal-900); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(7,46,42,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .1em; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; padding: 0 70px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: #fff; color: var(--teal-900); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__thumbs { display: flex; gap: 8px; padding: 16px; overflow-x: auto; justify-content: center; }
.lightbox__thumbs img { width: 76px; height: 54px; object-fit: cover; border-radius: 3px; opacity: .45; cursor: pointer; transition: opacity .2s; flex-shrink: 0; }
.lightbox__thumbs img.is-active, .lightbox__thumbs img:hover { opacity: 1; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav { gap: 12px; }
	.nav__list > li > a { padding: 10px 9px; font-size: 13.5px; }
	.nav__list > li > a::after { left: 9px; right: 9px; }
	.grid { grid-template-columns: repeat(2, 1fr); }
	.listing { grid-template-columns: minmax(0, 1fr) 360px; }
	.filters__more { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.brand__logo { height: 48px; }
	.nav-toggle { display: flex; }
	.nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(380px, 100%); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open .nav { transform: none; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li > a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
	.nav__list > li > a::after { display: none; }
	.nav__list .menu-item-has-children > a::before { right: 4px; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 14px; min-width: 0; }
	.sub-menu a { padding: 8px 0; }
	.nav__cta { margin-top: 22px; }
	.hero-search__fields { grid-template-columns: 1fr 1fr; }
	.hs-field--loc { grid-column: 1 / -1; }
	.hs-field { border-bottom: 1px solid var(--line); }
	.hero-search__submit { grid-column: 1 / -1; min-height: 56px; }
	.credentials__grid { grid-template-columns: repeat(2, 1fr); }
	.credential:nth-child(3) { border-left: 0; padding-left: 0; }
	.credential { border-top: 1px solid rgba(255,255,255,.12); }
	.credential:nth-child(-n+2) { border-top: 0; }
	.about { grid-template-columns: 1fr; }
	.about__media { max-width: 560px; }
	.about__badge { right: 16px; }
	.listing { grid-template-columns: 1fr; }
	.listing__aside { position: static; }
	.split { grid-template-columns: 1fr; }
	.split .form-card { margin-top: 0; order: -1; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.filters__more { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	body { font-size: 14.5px; }
	.topbar__hours, .topbar__contact a:nth-child(2) { display: none; }
	.topbar__group { font-size: 11.5px; }
	.brand__label { font-size: 9px; letter-spacing: .18em; }
	.brand__logo { height: 42px; }
	.brand { gap: 10px; }
	.hero { min-height: auto; }
	.hero__inner { padding-top: 56px; padding-bottom: 56px; }
	.hero-search__more { position: static; margin: 12px 4px 2px; display: inline-flex; }
	.hero-search__tabs span { padding: 7px 14px; }
	.section__head { align-items: flex-start; flex-direction: column; }
	.section__head-actions { width: 100%; justify-content: space-between; }
	.scroller-nav { display: none; }
	.cat-tile { width: 78vw; }
	.scroller .card { width: 82vw; }
	.buysell { grid-template-columns: 1fr; }
	.buysell__panel { min-height: 460px; }
	.grid { grid-template-columns: 1fr; }
	.filters { padding: 18px; }
	.filters__row--main { grid-template-columns: 1fr; }
		.segmented span { justify-content: center; padding: 0 8px; }
	.filters__toggle { display: inline-flex; }
	.js .filters__more { display: none; }
	.js .filters.is-expanded .filters__more { display: grid; }
	.filters__more { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.filters__actions { justify-content: space-between; }
	.results__bar { flex-direction: column; align-items: flex-start; }
	.gallery { grid-template-columns: 1fr 1fr !important; grid-template-rows: 240px 110px; padding: 0; }
	.gallery__item--0 { grid-column: 1 / -1; grid-row: 1; }
	.gallery__item--1 { grid-row: 2 !important; }
	.gallery__item--3, .gallery__item--4 { display: none; }
	.gallery__all { right: 12px; bottom: 130px; }
	.features, .specs { grid-template-columns: 1fr; }
	.ire-form__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
	.lightbox__stage { padding: 0 10px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 90px; transform: none; }
	.credential__num { font-size: 26px; }
	.credential { padding: 22px 14px; }
}

/* 4-photo gallery: let the last thumbnail fill the row */
@media (min-width: 761px) { .gallery:has(.gallery__item--3):not(:has(.gallery__item--4)) .gallery__item--3 { grid-column: span 2; } }

/* ---------- Team ---------- */
.section--team { background: var(--sand-100); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; align-items: start; }
.member { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.member:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(180deg, var(--sand-200), var(--sand-100)); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 22px 24px 24px; }
.member__name { font-size: 22px; font-weight: 400; color: var(--teal-900); margin: 0 0 4px; }
.member__role { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 14px; }
.member__text, .member__short, .member__full { font-size: 14px; color: var(--text); line-height: 1.65; }
.member__bio summary { list-style: none; cursor: pointer; }
.member__bio summary::-webkit-details-marker { display: none; }
.member__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.member__more::after { content: "+"; font-size: 15px; }
.member__bio[open] .member__short { display: none; }
.member__bio[open] .member__more::before { content: "Show less"; }
.member__bio[open] .member__more { font-size: 0; }
.member__bio[open] .member__more::before { font-size: 12px; }
.member__bio[open] .member__more::after { content: "−"; font-size: 15px; }
.member__bio[open] summary { order: 2; }
.member__bio[open] { display: flex; flex-direction: column; }
.member__full p { margin: 0 0 .8em; }
.member__links { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.member__links a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--teal-700); }
.member__links a:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.member__links:empty { display: none; }
