@layer reset, base, layout, components, utilities;

:root {
  /* Palette — near-black on white, single red accent */
  --bg: #FFFFFF;
  --bg-soft: #f3f3f3;
  --ink: #1c1c1c;
  --ink-2: #555555;
  --ink-3: #7a7a7a;
  --line: #e2e2e2;
  --accent: #FA2109;        /* bright red — the only accent */
  --accent-dark: #d61a05;
  --black: #111111;

  /* Type — Poppins everywhere */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Geometry — sharp 4px */
  --r: 4px;
  --header-h: 74px;

  /* Shadows — subtle */
  --sh-1: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-2: 0 6px 22px rgba(0,0,0,.10);
}

@layer reset {
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { min-height: 100%; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
  input, select, textarea { font: inherit; color: inherit; }
  ul { list-style: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
}

@layer base {
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.2; color: var(--ink); }
  h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
  h3 { font-size: 1.15rem; font-weight: 600; }
  p { color: var(--ink-2); }
  strong { color: var(--ink); font-weight: 600; }
  .tnum { font-variant-numeric: tabular-nums; }
}

@layer layout {
  .wrap { width: min(1240px, 92%); margin-inline: auto; }
  .wrap-narrow { width: min(820px, 92%); margin-inline: auto; }
  .sec { padding: clamp(2.5rem, 5vw, 4rem) 0; }
  .sec--soft { background: var(--bg-soft); }
  .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
  .lead { font-size: clamp(1rem, 1.8vw, 1.12rem); color: var(--ink-2); }
}

@layer components {
  /* ---- Buttons ---- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .92rem; padding: .75rem 1.4rem; border-radius: var(--r); transition: background .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; }
  .btn svg { flex: none; }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-dark); }
  .btn-dark { background: var(--black); color: #fff; }
  .btn-dark:hover { background: #000; }
  .btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
  .btn-secondary:hover { background: var(--ink); color: #fff; }
  .btn-ghost { color: var(--accent); padding-inline: 0; }
  .btn-ghost:hover { color: var(--accent-dark); }
  .btn-block { width: 100%; }
  .link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
  .link-arrow svg { transition: transform .2s ease; }
  .link-arrow:hover svg { transform: translateX(3px); }

  /* ---- Header (white, sticky) ---- */
  .header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
  .header-in { display: flex; align-items: center; gap: 1.4rem; min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
  .brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; display: block; }
  .brand-mark svg { width: 100%; height: 100%; display: block; }
  .brand-name { font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); }
  .nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
  .nav a { font-weight: 500; font-size: .88rem; color: var(--ink-2); padding: .3rem 0; transition: color .18s ease; position: relative; }
  .nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .22s ease; }
  .nav a:hover, .nav a.active { color: var(--ink); }
  .nav a:hover::after, .nav a.active::after { right: 0; }
  .header-cta { display: flex; align-items: center; gap: 1rem; margin-left: 1rem; }
  .hdr-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--accent); white-space: nowrap; }
  .hdr-phone:hover { color: var(--accent-dark); }
  .hdr-phone svg { flex: none; }
  .burger { display: none; width: 44px; height: 44px; border-radius: var(--r); align-items: center; justify-content: center; color: var(--ink); flex: none; margin-right: -10px; }
  .burger svg { width: 26px; height: 26px; }
  .burger .ic-close { display: none; }
  body.menu-open .burger .ic-open { display: none; }
  body.menu-open .burger .ic-close { display: block; }

  /* Mobile menu panel */
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: #fff; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; display: flex; flex-direction: column; padding: 1.5rem 0 2.5rem; overflow-y: auto; }
  body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu .wrap { display: flex; flex-direction: column; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { font-size: 1.15rem; font-weight: 500; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu nav a.active { color: var(--accent); }
  .mobile-menu .mm-foot { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
  .mm-phone { font-size: 1.5rem; color: var(--accent); font-weight: 700; }

  /* ---- Hero (full-bleed cityscape) ---- */
  .hero { position: relative; overflow: hidden; color: #fff; }
  .hero-bg { position: absolute; inset: 0; z-index: 0; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
  .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.42) 60%, rgba(0,0,0,.55) 100%); }
  .hero-in { position: relative; z-index: 1; width: min(1240px, 92%); margin-inline: auto; padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
  .hero h1 { color: #fff; font-weight: 600; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -.01em; }
  .hero .hero-sub { color: #fff; font-weight: 600; font-size: clamp(1rem, 2vw, 1.3rem); margin-top: .4rem; }

  /* ---- Hero search bar (horizontal white pills) ---- */
  .search-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); align-items: stretch; }
  .sb-cell { background: #fff; color: var(--ink); border-radius: var(--r); height: 48px; display: flex; align-items: center; }
  .sb-select, .sb-input { background: #fff; color: var(--ink); border: none; border-radius: var(--r); height: 48px; padding: 0 1rem; font-size: .92rem; outline: none; }
  .sb-select { min-width: 200px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
  .sb-input { flex: 1; min-width: 220px; }
  .sb-input::placeholder { color: var(--ink-3); }
  .sb-toggle { display: inline-flex; background: #fff; border-radius: var(--r); padding: 4px; height: 48px; }
  .sb-toggle button { padding: 0 1.1rem; border-radius: var(--r); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background .18s ease, color .18s ease; }
  .sb-toggle button.active { background: var(--black); color: #fff; }
  .sb-btn { background: var(--accent); color: #fff; border-radius: var(--r); height: 48px; padding: 0 1.6rem; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; transition: background .18s ease; }
  .sb-btn:hover { background: var(--accent-dark); }
  .search-checks { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1rem; }
  .check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #fff; cursor: pointer; }
  .check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

  /* ---- Property cards grid (homepage + listing) ---- */
  .grid-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .grid-props.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, border-color .2s ease; }
  .pcard:hover { box-shadow: var(--sh-2); border-color: #d2d2d2; }
  .pcard-media { position: relative; aspect-ratio: 4/3; overflow: hidden; display: block; }
  .pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .pcard:hover .pcard-media img { transform: scale(1.03); }
  .pcard-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
  .pcard-title { font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.35; }
  .pcard-title a:hover { color: var(--accent); }
  .pcard-price { font-weight: 700; font-size: 1.2rem; color: var(--accent); letter-spacing: -.01em; }
  .pcard-price small { font-weight: 600; font-size: .82rem; color: var(--accent); margin-left: .15rem; }
  .pcard-price-old { display: inline-block; font-weight: 600; font-size: .82rem; color: var(--ink-3); text-decoration: line-through; margin-right: .4rem; }
  .pcard-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--ink-2); margin-top: .1rem; }
  .pcard-meta span { display: inline-flex; align-items: center; gap: .3rem; }
  .pcard-meta svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
  .pcard-excl { font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
  /* Overlay badge chip on the card photo (Exclusivitate / Comision 0% / Redus) */
  .pcard-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; font-size: .72rem; font-weight: 600; line-height: 1; padding: .38rem .6rem; border-radius: var(--r); background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
  .pcard-badge.is-excl { background: var(--accent); color: #fff; }
  .pcard-badge.is-redus { background: var(--black); color: #fff; }
  .pcard-badge.is-com { background: rgba(255,255,255,.95); color: var(--ink); }

  /* Favorite (heart) button — top-right over the card photo. Positioned
     against .pcard so it sits over .pcard-media without nesting inside the link. */
  .pcard { position: relative; }
  .fav-btn { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink-2); display: grid; place-items: center; box-shadow: 0 1px 5px rgba(0,0,0,.18); transition: background .15s ease, color .15s ease, transform .15s ease; }
  .fav-btn:hover { background: #fff; color: var(--accent); transform: scale(1.06); }
  .fav-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
  .fav-btn.is-on { color: var(--accent); }
  .fav-btn.is-on svg { fill: var(--accent); stroke: var(--accent); }

  /* Header "Favorite" wishlist link + live count badge */
  .fav-link { position: relative; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .88rem; color: var(--ink-2); white-space: nowrap; transition: color .18s ease; }
  .fav-link:hover { color: var(--accent); }
  .fav-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
  .fav-link .fav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; }
  .fav-link .fav-count[hidden] { display: none; }

  /* Favorites bar on the listing page (shown only with ?favorite=1) */
  .fav-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; background: rgba(250,33,9,.06); border: 1px solid rgba(250,33,9,.18); border-radius: var(--r); padding: .9rem 1.1rem; margin-bottom: 1.3rem; }
  .fav-bar .fav-bar-title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
  .fav-bar .fav-bar-title svg { width: 19px; height: 19px; fill: var(--accent); stroke: var(--accent); stroke-width: 2; flex: none; }
  .fav-bar a { font-size: .88rem; color: var(--accent); font-weight: 600; }
  .fav-bar a:hover { color: var(--accent-dark); }

  /* ---- Budget tiles ("Caută după buget") ---- */
  .tile-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .budget-tile { display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
  .budget-tile:hover { border-color: #cdcdcd; box-shadow: var(--sh-2); transform: translateY(-2px); }
  .budget-tile .bt-label { font-weight: 600; color: var(--ink); font-size: 1rem; }
  .budget-tile .bt-sub { font-size: .82rem; color: var(--ink-3); }
  .budget-tile .bt-arrow { margin-top: .4rem; color: var(--accent); font-weight: 600; font-size: .85rem; }

  /* ---- Residential developments (ansambluri) ---- */
  .ans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .ans-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, border-color .2s ease; }
  .ans-card:hover { box-shadow: var(--sh-2); border-color: #d2d2d2; }
  .ans-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
  .ans-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .ans-card:hover .ans-media img { transform: scale(1.03); }
  .ans-tag { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 600; padding: .34rem .6rem; border-radius: var(--r); background: var(--black); color: #fff; }
  .ans-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
  .ans-body h3 { font-size: 1.08rem; }
  .ans-zone { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; color: var(--ink-2); }
  .ans-zone svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
  .ans-from { font-weight: 700; color: var(--accent); font-size: 1.05rem; margin-top: .35rem; }
  .ans-from small { font-weight: 500; font-size: .78rem; color: var(--ink-2); }
  .ans-units { font-size: .84rem; color: var(--ink-2); }
  .ans-link { margin-top: .55rem; }

  /* ---- Popular neighbourhoods (cartiere) ---- */
  .zone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
  .zone-tile { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1.1rem; font-weight: 500; color: var(--ink); transition: border-color .18s ease, color .18s ease, background .18s ease; }
  .zone-tile:hover { border-color: var(--accent); color: var(--accent); }
  .zone-tile svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; transition: color .18s ease; }
  .zone-tile:hover svg { color: var(--accent); }

  /* ---- Trust stats row ("De ce Cartier Imobiliare") ---- */
  .trust { background: var(--black); color: #fff; border-radius: var(--r); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.4rem); }
  .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
  .trust-stat b { display: block; font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: #fff; line-height: 1; }
  .trust-stat span { display: block; margin-top: .5rem; font-size: .86rem; color: rgba(255,255,255,.72); }

  /* ---- Owner CTA band (evaluare gratuită) ---- */
  .owner-cta { background: var(--accent); color: #fff; border-radius: var(--r); padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.8rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
  .owner-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
  .owner-cta p { color: rgba(255,255,255,.9); margin-top: .4rem; max-width: 52ch; }
  .owner-cta .btn-white { background: #fff; color: var(--accent); }
  .owner-cta .btn-white:hover { background: #f1f1f1; }

  /* Team preview grid (homepage — 3 across) */
  .grid-team-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

  /* ---- Four black full-width buttons row ---- */
  .black-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .black-btn { background: var(--black); color: #fff; border-radius: var(--r); padding: 1rem 1.2rem; text-align: center; font-weight: 500; font-size: .95rem; transition: background .18s ease; }
  .black-btn:hover { background: #000; }

  /* ---- Social row ---- */
  .social-row { background: var(--bg-soft); padding: 2.2rem 0; }
  .social-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
  .social-in .label { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
  .social-icons { display: inline-flex; gap: .7rem; }
  .social-icons a { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .18s ease; }
  .social-icons a:hover { background: var(--accent-dark); }
  .social-icons svg { width: 19px; height: 19px; }

  /* ---- Floating WhatsApp ---- */
  .wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(37,211,102,.45); transition: transform .18s ease; }
  .wa-float:hover { transform: scale(1.06); }
  .wa-float svg { width: 30px; height: 30px; }

  /* ---- Page header (inner pages) ---- */
  .page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.4rem) 0; }
  .crumb { font-size: .82rem; color: var(--ink-2); margin-bottom: .55rem; }
  .crumb a { color: var(--ink-2); }
  .crumb a:hover { color: var(--accent); }
  .crumb span { color: var(--ink); }

  /* ---- Forms ---- */
  .form { display: flex; flex-direction: column; gap: 1rem; }
  .field { display: flex; flex-direction: column; gap: .4rem; }
  .field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
  .field input, .field select, .field textarea { width: 100%; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
  .field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250,33,9,.12); }
  .field textarea { resize: vertical; min-height: 110px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
  .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; cursor: pointer; }
  .consent a { color: var(--accent); text-decoration: underline; }

  /* ---- Listing page (proprietati) ---- */
  .listing { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
  .filters-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .fgroup { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .fgroup:first-of-type { padding-top: 0; }
  .fgroup:last-of-type { border-bottom: none; }
  .fgroup > .flabel { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
  .ftabs { display: inline-flex; background: var(--bg-soft); border-radius: var(--r); padding: 3px; width: 100%; }
  .ftab { flex: 1; padding: .5rem; border-radius: var(--r); font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: background .18s ease, color .18s ease; }
  .ftab.active { background: var(--black); color: #fff; }
  .frange { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .frange input, .fselect { width: 100%; padding: .58rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: .9rem; }
  .frange input:focus, .fselect:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250,33,9,.12); }
  .room-toggle { display: flex; gap: .4rem; }
  .room-toggle button { flex: 1; padding: .55rem; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: all .15s ease; }
  .room-toggle button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .fcheck { display: flex; flex-direction: column; gap: .55rem; }
  .fcheck .check { color: var(--ink-2); }
  .filters-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.1rem; }

  .listing-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
  .results-count { font-size: 1rem; color: var(--ink-2); }
  .results-count b { font-size: 1.3rem; color: var(--ink); font-weight: 700; }
  .sort-wrap { display: flex; align-items: center; gap: .6rem; }
  .sort-wrap label { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
  .sort-wrap select { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: .9rem; }
  .sort-wrap select:focus { outline: none; border-color: var(--accent); }
  .filters-toggle { display: none; }
  .no-results { padding: 3rem 1rem; text-align: center; color: var(--ink-2); grid-column: 1 / -1; }

  .pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.2rem; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: all .15s ease; }
  .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
  .pagination a:hover { border-color: var(--accent); color: var(--accent); }
  .pagination .disabled { opacity: .45; pointer-events: none; }

  /* ---- Property detail (proprietate) ---- */
  .prop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
  .gallery-main { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-soft); }
  .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .5rem; z-index: 2; }
  .gallery-badges span { font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: var(--r); background: rgba(255,255,255,.94); color: var(--ink); }
  .gallery-badges span.excl { background: var(--accent); color: #fff; }
  .gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1); z-index: 2; transition: background .18s ease; }
  .gnav:hover { background: #fff; }
  .gnav.prev { left: 1rem; }
  .gnav.next { right: 1rem; }
  .gnav svg { width: 22px; height: 22px; }
  .gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-top: .65rem; }
  .gthumb { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 2px solid transparent; padding: 0; transition: border-color .18s ease; }
  .gthumb img { width: 100%; height: 100%; object-fit: cover; }
  .gthumb.active { border-color: var(--accent); }

  .prop-title-row { margin-top: 1.8rem; }
  .prop-title-row h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
  .prop-loc { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); margin-top: .5rem; }
  .prop-loc svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
  .prop-code { font-size: .85rem; color: var(--ink-2); margin-top: .3rem; }
  .prop-price { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--accent); margin-top: 1rem; letter-spacing: -.01em; }
  .prop-price small { font-size: .9rem; font-weight: 600; color: var(--accent); margin-left: .5rem; }

  .spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.6rem; }
  .spec { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; }
  .spec .sl { font-size: .76rem; color: var(--ink-2); }
  .spec .sv { font-weight: 600; color: var(--ink); margin-top: .15rem; }

  .prop-section { margin-top: 2.2rem; }
  .prop-section h2 { font-size: 1.35rem; margin-bottom: 1rem; }
  .prop-desc p { margin-bottom: 1rem; line-height: 1.75; }
  .amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.5rem; }
  .amenities li { display: flex; gap: .6rem; align-items: center; color: var(--ink); }
  .amenities svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

  .agent-box { position: sticky; top: calc(var(--header-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--sh-1); }
  .agent-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
  .agent-head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
  .agent-head .an { font-weight: 600; font-size: 1.05rem; }
  .agent-head .ar { font-size: .85rem; color: var(--ink-2); }
  .agent-box .agent-phone { margin-bottom: 1rem; }

  /* ---- Map ---- */
  .mapframe { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
  .mapframe iframe { width: 100%; height: 400px; border: 0; display: block; }

  /* ---- Contact cards ---- */
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
  .info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem; }
  .info-row { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .info-row:last-child { border-bottom: none; }
  .info-row .ii { flex: none; width: 40px; height: 40px; border-radius: var(--r); background: rgba(250,33,9,.1); color: var(--accent); display: grid; place-items: center; }
  .info-row .ii svg { width: 19px; height: 19px; }
  .info-row .il { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
  .info-row .iv { font-weight: 600; color: var(--ink); }
  .info-row .iv a { color: var(--accent); }
  .info-row .iv a:hover { color: var(--accent-dark); }
  .info-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.3rem; }
  .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem; }

  /* ---- Team ---- */
  .grid-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .tcard { text-align: left; }
  .tcard-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; margin-bottom: .85rem; border: 1px solid var(--line); }
  .tcard-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.1); }
  .tcard h3 { font-size: 1.1rem; }
  .tcard .role { font-size: .85rem; color: var(--ink-2); margin-bottom: .5rem; }
  .tcard .tcontact { display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
  .tcard .tcontact a { color: var(--accent); }
  .tcard .tcontact a:hover { color: var(--accent-dark); }

  /* ---- Split block (despre) ---- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
  .split-media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
  .split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
  .feature-list { display: flex; flex-direction: column; gap: .85rem; margin: 1.5rem 0; }
  .feature-list li { display: flex; gap: .7rem; align-items: flex-start; }
  .feature-list .fi { flex: none; width: 26px; height: 26px; border-radius: var(--r); background: rgba(250,33,9,.1); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
  .feature-list .fi svg { width: 15px; height: 15px; }
  .feature-list b { display: block; color: var(--ink); }
  .feature-list span { font-size: .9rem; color: var(--ink-2); }

  .eyebrow { display: inline-block; font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
  .stat b { display: block; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--ink); line-height: 1; }
  .stat span { font-size: .88rem; color: var(--ink-2); margin-top: .5rem; display: block; }

  /* ---- Footer (light gray, compact) ---- */
  .footer { background: var(--bg-soft); color: var(--ink-2); padding: clamp(1.8rem, 3.5vw, 2.4rem) 0 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
  .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 1.6rem 2rem; }
  .footer .brand-name { color: var(--ink); font-size: 1.05rem; }
  .footer-brand { display: inline-flex; align-items: center; gap: .5rem; }
  .footer-brand .brand-mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
  .footer-brand .brand-mark svg { width: 100%; height: 100%; display: block; }
  .footer-desc { font-size: .84rem; margin: .4rem 0 .7rem; max-width: 32ch; color: var(--ink-2); }
  .footer-nap { font-size: .84rem; line-height: 1.65; }
  .footer-nap a { color: var(--accent); font-weight: 600; }
  .footer-nap a:hover { color: var(--accent-dark); }
  .footer-nap .addr { color: var(--ink-2); }
  .footer-nap .maps { color: var(--accent); font-weight: 600; }
  .footer h4 { color: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; font-weight: 600; }
  .footer-col a { display: block; font-size: .84rem; margin: .3rem 0; transition: color .18s ease; color: var(--ink-2); }
  .footer-col a:hover { color: var(--accent); }
  .footer-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
  .anpc-banner { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; box-shadow: var(--sh-1); transition: box-shadow .18s ease; }
  .anpc-banner:hover { box-shadow: var(--sh-2); }
  .anpc-banner img { display: block; }

  /* SEO zones — single compact inline row */
  .footer-seo { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 1rem 0; }
  .footer-seo .seo-title { color: var(--ink-2); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
  .footer-seo .seo-links { display: flex; flex-wrap: wrap; gap: .35rem .65rem; }
  .footer-seo .seo-links a { font-size: .8rem; color: var(--ink-2); position: relative; }
  .footer-seo .seo-links a:not(:last-child)::after { content: '·'; color: var(--ink-3); margin-left: .65rem; }
  .footer-seo .seo-links a:hover { color: var(--accent); }

  .footer-legal { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; font-size: .78rem; }
  .footer-legal-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; color: var(--ink-2); }
  .footer-legal-links a { color: var(--ink-2); }
  .footer-legal-links a:hover { color: var(--accent); }
  .footer-credit { color: var(--ink-2); }
  .footer-credit a { color: var(--accent); font-weight: 600; }
  .footer-credit a:hover { color: var(--accent-dark); }
}

@layer utilities {
  .mt-1 { margin-top: 1rem; }
  .mt-2 { margin-top: 2rem; }
  .center { text-align: center; }
  .muted { color: var(--ink-2); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .listing { grid-template-columns: 1fr; }
  .prop-layout { grid-template-columns: 1fr; }
  .agent-box { position: static; }
  .grid-team { grid-template-columns: repeat(2, 1fr); }
  .grid-props, .grid-props.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .black-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tile-row { grid-template-columns: repeat(3, 1fr); }
  .ans-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-team-preview { grid-template-columns: repeat(3, 1fr); }

  /* mobile filters drawer */
  .filters-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 60; border-radius: 0; max-width: none; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease; padding: 1.3rem; }
  body.filters-open .filters { transform: translateX(0); }
  .filters-head { display: flex; }
}

@media (max-width: 860px) {
  .nav, .hdr-phone, .fav-link { display: none; }
  .burger { display: flex; }
  /* header becomes: brand left, burger flush right, vertically centered */
  .header-cta { margin-left: auto; gap: 0; }
  .search-bar { flex-direction: column; }
  /* On mobile (column flex) the text input collapses to content height — force all
     controls to an equal, comfortable tap-target height so they look consistent.
     line-height on the input vertically centers its placeholder/value. */
  .sb-select, .sb-input, .sb-toggle, .sb-btn { width: 100%; min-width: 0; height: 52px; box-sizing: border-box; }
  .sb-input { line-height: 52px; }
  .sb-toggle button { flex: 1; }
  .sb-btn { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .ans-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-team-preview { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .owner-cta { flex-direction: column; align-items: flex-start; }
  .owner-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .grid-team { grid-template-columns: 1fr; }
  /* property cards: 2 across on larger phones/tablet */
  .grid-props, .grid-props.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  /* black buttons: 2x2 on mobile */
  .black-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .social-in { flex-direction: column; }
  .tile-row { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  /* small phones: single column cards */
  .grid-props, .grid-props.cols-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pcard:hover .pcard-media img { transform: none; }
}

/* Discreet back-to-agency button (added by RTR) */
.rtr-back{position:fixed;left:16px;bottom:18px;z-index:70;display:inline-flex;align-items:center;gap:.35rem;background:rgba(18,18,18,.72);color:#fff;font-size:12px;font-weight:500;line-height:1;padding:.5rem .8rem;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.22);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:background .18s ease,transform .18s ease;text-decoration:none}
.rtr-back:hover{background:rgba(18,18,18,.92);transform:translateY(-1px)}
@media(max-width:560px){.rtr-back{left:12px;bottom:14px;font-size:11px;padding:.45rem .7rem}}
@media(prefers-reduced-motion:reduce){.rtr-back:hover{transform:none}}

/* fouc-reveal */
body { opacity: 1; }
