/* ==========================================================================
   ESTORA THEME — Real Estate & Property
   Design language: warm ivory, deep forest green, sand accents,
   soft serif headlines (Fraunces) and airy photography-led layouts.
   ========================================================================== */
:root {
  --bg: #f7f4ee; --bg-2: #efe9df; --surface: #fffdf9; --surface-2: #f1ece3;
  --text: #1b2621; --muted: #65706a; --line: rgba(27, 38, 33, .12);
  --primary: #1f3d33; --primary-2: #3e6b58; --accent: #d9b88f; --on-primary: #fff;
  --font-head: "Fraunces", Georgia, serif; --font-body: "Outfit", sans-serif;
  --font-logo: "Cinzel", serif; --logo-weight: 600; --logo-size: 1.35rem; --logo-tracking: .14em; --logo-case: uppercase;
  --head-weight: 500; --head-tracking: -0.025em;
  --radius-sm: 10px; --radius: 18px; --radius-lg: 26px; --radius-btn: 12px;
  --gradient: linear-gradient(135deg, #1f3d33, #3e6b58);
  --shadow: 0 20px 45px -24px rgba(27, 38, 33, .35);
}
[data-theme="dark"] {
  --bg: #0f1512; --bg-2: #151d19; --surface: #18221d; --surface-2: #1e2a24;
  --text: #efe9df; --muted: #a3ab9f; --line: rgba(239, 233, 223, .12);
  --primary: #d9b88f; --on-primary: #1b2621;
}
body { font-weight: 300; }
strong, b { font-weight: 500; }
.hero__title em, .h2 em { font-style: italic; color: var(--primary-2); }
[data-theme="dark"] .hero__title em { color: var(--accent); }
.logo__mark { border-radius: 50%; background: transparent; border: 1.5px solid currentColor; color: inherit; }
.eyebrow { color: var(--primary-2); font-family: var(--font-body); font-weight: 500; }
[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow::before { width: 28px; height: 1px; }
.btn { font-weight: 500; }
.btn::after { background: rgba(255,255,255,.12); }
.btn--light { --btn-bg: var(--accent); --btn-fg: #1b2621; }
.icon-box { border-radius: 50%; background: var(--bg-2); color: var(--primary); }
.card { background: var(--surface); }
.stat__num { font-weight: 400; }
.cta-box { background: var(--primary); }
[data-theme="dark"] .cta-box { background: #1e2a24; color: var(--text); }
.plan--featured { background: var(--primary); }
.site-footer { background: #17231e; color: #efe9df; --text: #efe9df; --muted: #a3ab9f; --line: rgba(239,233,223,.12); --primary: #d9b88f; --on-primary: #1b2621; --surface: #1e2a24; }
.footer-mega { font-weight: 600; letter-spacing: .1em; opacity: .06; }
.text-band { background: var(--primary); color: #efe9df; --text: #efe9df; border: 0; }
.text-band .marquee__track span { font-style: italic; font-weight: 400; }
.text-band .marquee__track .ti { color: var(--accent); }

/* Hero: agency ---------------------------------------------------------- */
.e-hero { align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.e-hero .hero__title { max-width: 13ch; font-weight: 400; }
.e-hero .hero__title em { color: var(--accent); }
.e-eyebrow { color: #fff !important; }
.e-eyebrow::before { background: var(--accent); }
.search { margin-top: 12px; max-width: 1080px; color: var(--text); --text: #1b2621; --muted: #65706a; --line: rgba(27,38,33,.12); }
.search__tabs { display: inline-flex; gap: 4px; padding: 6px 6px 0; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border-radius: 14px 14px 0 0; }
.search__tabs button { padding: 10px 22px; border-radius: 10px 10px 0 0; color: #fff; font-weight: 500; }
.search__tabs button.is-active { background: #fffdf9; color: #1b2621; }
.search__fields { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px; background: #fffdf9; border-radius: 0 18px 18px 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
@media (min-width: 1024px) { .search__fields { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; } }
.search__field { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; color: #1b2621; }
.search__field + .search__field { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .search__field + .search__field { border-top: 0; border-left: 1px solid var(--line); } }
.search__field > .ti { font-size: 1.4rem; color: var(--primary-2); }
.search__field div { flex: 1; min-width: 0; }
.search__field label { display: block; font-size: .78rem; color: var(--muted); }
.search__field input, .search__field select { width: 100%; border: 0; background: transparent; padding: 2px 0; font-weight: 500; color: #1b2621; outline: none; appearance: none; }
.search .btn { --btn-bg: #1f3d33; --btn-fg: #fff; }
.e-rent .search__fields { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 1024px) { .e-rent .search__fields { grid-template-columns: 1fr 1fr; } .e-rent .search__field:nth-child(3) { border-left: 0; } .e-rent .search .btn { width: 100%; } }

/* Property card --------------------------------------------------------- */
.prop { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.prop:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop__img { position: relative; display: block; overflow: hidden; }
.prop__img img { width: 100%; aspect-ratio: 4/3; transition: transform 1.2s var(--ease); }
.prop:hover .prop__img img { transform: scale(1.06); }
.prop__tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 8px; background: #fffdf9; color: #1b2621; font-size: .78rem; font-weight: 500; }
.prop__fav { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,253,249,.9); color: #1b2621; font-size: 1.15rem; }
.prop__fav[aria-pressed="true"] { background: #e5484d; color: #fff; }
.prop__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop__price { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary-2); }
[data-theme="dark"] .prop__price { color: var(--accent); }
.prop h3 { font-size: 1.2rem; margin: 0; letter-spacing: -0.01em; }
.prop__loc { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .92rem; margin: 0; }
.prop__specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.prop__specs li { display: inline-flex; align-items: center; gap: 6px; }
.prop__specs .ti { color: var(--primary-2); font-size: 1.1rem; }
.grid-4 .prop__specs { gap: 6px 12px; font-size: .84rem; }

/* About duo, neighbourhoods, agents ------------------------------------- */
.e-duo { position: relative; padding: 0 12% 12% 0; }
.e-duo__a { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 7/8.6; }
.e-duo__b { position: absolute; right: 0; bottom: 0; width: 46%; border-radius: var(--radius); border: 8px solid var(--bg-2); aspect-ratio: 6/7; }
.e-badge { position: absolute; left: 24px; top: 24px; display: grid; justify-items: center; padding: 18px 20px; border-radius: 50%; aspect-ratio: 1; align-content: center; background: var(--accent); color: #1b2621; text-align: center; line-height: 1.1; }
.e-badge b { font-family: var(--font-head); font-size: 1.8rem; }
.e-badge span { font-size: .72rem; max-width: 8ch; }
.hoods { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .hoods { grid-template-columns: repeat(4, 1fr); } .hoods > :nth-child(even) { transform: translateY(48px); } }
.hood { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; }
.hood img { width: 100%; aspect-ratio: 7/9; transition: transform 1.2s var(--ease); }
.hood:hover img { transform: scale(1.07); }
.hood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.7)); }
.hood div { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.hood h3 { margin: 0 0 2px; font-size: 1.4rem; }
.hood span { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; opacity: .9; }
.agent__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.agent__img img { width: 100%; aspect-ratio: 6/7; transition: transform 1s var(--ease); }
.agent:hover .agent__img img { transform: scale(1.05); }
.agent h3 { font-size: 1.25rem; margin-bottom: 2px; }
.agent p { color: var(--muted); margin: 0 0 12px; }
.agent__meta { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.agent__meta span { display: inline-flex; gap: 6px; align-items: center; margin-right: auto; color: var(--muted); }
.agent__meta a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.agent__meta a:hover { background: var(--primary); color: #fff; border-color: transparent; }

/* Luxury ---------------------------------------------------------------- */
.e-lux .hero__title { font-weight: 400; font-size: clamp(2.8rem, 8.4vw, 8rem); }
.e-lux .hero__title em { display: block; color: var(--accent); }
.e-lux .btn:not(.btn--ghost) { --btn-bg: var(--accent); --btn-fg: #1b2621; }
.e-lux__img { overflow: hidden; border-radius: var(--radius-lg); }
.e-lux__img img { width: 100%; aspect-ratio: 2/1; min-height: 320px; }
.e-luxlist { display: grid; gap: clamp(64px, 9vw, 120px); }
.e-lux__price { font-family: var(--font-head); font-size: 2rem; color: var(--primary); margin: 10px 0 18px; }
.e-luxrow .prop__specs { border-top: 0; padding-top: 0; }

/* Rentals --------------------------------------------------------------- */
.e-rent__vis img { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); aspect-ratio: 9/10 !important; }

/* Single property ------------------------------------------------------- */
.e-single .hero__title { font-weight: 400; max-width: 14ch; }
.e-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 36px; }
.e-specs li { display: grid; min-width: 120px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.e-specs b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; }
.e-specs span { font-size: .85rem; color: var(--muted); }
.e-specs--left { justify-content: flex-start; }
.e-single__img { width: 100%; aspect-ratio: 18/9.5; min-height: 300px; border-radius: var(--radius-lg); }
.e-amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-top: 24px; }
.e-amen li { display: flex; align-items: center; gap: 10px; }
.e-amen .ti { color: var(--primary-2); font-size: 1.2rem; }
.e-gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.e-gallery img { width: 100%; height: 100%; border-radius: var(--radius); }
@media (min-width: 1024px) { .e-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; } .e-gallery img:first-child { grid-row: span 2; } .e-gallery img:nth-child(4) { grid-column: 2 / span 2; } .e-gallery img:nth-child(5) { display: none; } }
.agent-inline { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-width: 420px; }
.agent-inline img { width: 60px; height: 60px; border-radius: 50%; }
.agent-inline strong { display: block; }

/* Mortgage calculator --------------------------------------------------- */
.mortgage { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mortgage .h3 { margin: 0; }
.mortgage label { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 500; margin-bottom: 8px; }
.mortgage output { color: var(--primary-2); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--primary); }
.mortgage__result { display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: var(--primary); color: #fff; --muted: rgba(255,255,255,.7); }
.mortgage__result b { font-family: var(--font-head); font-size: 2.4rem; font-weight: 500; line-height: 1.1; }
[data-theme="dark"] .mortgage__result { background: var(--surface-2); color: var(--text); }

/* Listings -------------------------------------------------------------- */
.list-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .list-layout { grid-template-columns: 300px 1fr; align-items: start; } .filters-side { position: sticky; top: 90px; } }
.filters-side { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.filters-side .h3 { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; padding: 10px 0; min-width: 48px; border-radius: 10px; border: 1px solid var(--line); font-size: .88rem; }
.seg button.is-active { background: var(--primary); color: #fff; border-color: transparent; }
.check { display: flex !important; gap: 10px; align-items: center; font-weight: 400 !important; padding: 4px 0; }
.check input { accent-color: var(--primary); width: 18px; height: 18px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.list-bar .select { max-width: 220px; min-height: 46px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); }
.pagination a.is-active, .pagination a:hover { background: var(--primary); color: #fff; border-color: transparent; }

/* Property details ------------------------------------------------------ */
.e-prop h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 14px 0 8px; }
.e-prop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.e-prop__head .muted { display: flex; gap: 6px; align-items: center; margin: 0; }
.e-prop__price { text-align: right; }
.e-prop__price b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; color: var(--primary-2); }
.e-pgal { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.e-pgal img { width: 100%; height: 100%; border-radius: var(--radius); aspect-ratio: 3/2; }
.e-pgal img:first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .e-pgal { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; } .e-pgal img { aspect-ratio: auto; } .e-pgal img:first-child { grid-column: auto; grid-row: span 2; } }
.e-detail { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .e-detail { grid-template-columns: 1fr 380px; align-items: start; } .e-side { position: sticky; top: 90px; } }
.e-side { display: grid; gap: 20px; }
.agent-card { display: grid; gap: 16px; }
.agent-card > img { width: 64px; height: 64px; border-radius: 50%; }
.agent-card > div strong { display: block; font-size: 1.1rem; }
.agent-card:hover { transform: none; }
.e-map { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--bg-2) 12px, var(--bg-2) 24px); }
.e-map .ti { font-size: 2.4rem; color: var(--primary-2); }
.e-hero::before { background: linear-gradient(90deg, rgba(10,16,13,.72) 0%, rgba(10,16,13,.35) 60%, rgba(10,16,13,.15)); }
