/* ====================================================
   Acord Imobiliar - public site
   Design system taken from property-detail-standalone.html.

   LIGHT ONLY. The dark theme was removed with this change: the demo has no
   dark mode, and carrying one meant every rule written twice (a
   prefers-color-scheme block plus a data-theme block) and every contrast pair
   checked twice. The map's "hartă întunecată" tool survives as a manual
   control - see .tiles-osm.is-dark near the end of this file.
   ==================================================== */

:root{
    /* ---------- brand ----------
       Red survives in four places only: the logo, the favicon, and the two
       "Vinde prin Acord" / "Sună acum" calls to action. */
    --red:#ED1C24;
    --red-deep:#C41119;
    --red-soft:#FF4D52;
    --brass:#B08A46;
    --sand:#E8DCC4;

    /* status - these carry meaning, not brand, so they stay off the blue */
    --ok:#157F5C;
    --warn:#C2761A;
    --alert:#B3261E;
    --red-100:#FDECEC; --red-200:#F9B9BB; --red-300:#F57377; --red-500:#ED1C24; --red-700:#C41119; --red-900:#8E0F15;
    --brass-100:#F6F1E6; --brass-200:#E8DCC4; --brass-300:#CBAA6C; --brass-500:#B08A46; --brass-700:#8A6C33; --brass-900:#5A4620;

    /* ---------- surfaces ---------- */
    --bg:#f6f8fb;
    --surface:#ffffff;
    --surface-2:#f8fafc;      /* chips, inset rows */
    --surface-3:#fbfcfe;      /* input fill */
    --line:#e8eaee;
    --line-2:#eef1f5;
    --line-3:#e2e6ec;         /* input border */
    --line-strong:#d5dae2;

    /* ---------- text ---------- */
    --text:#16181d;           /* headings, values */
    --text-2:#55606f;         /* body copy */
    --text-3:#6b7280;         /* muted */
    --text-4:#8b94a3;         /* LABELS ONLY - 3.2:1, never body copy */
    --placeholder:#a2aab6;

    /* ---------- accent ----------
       Split by job, and NOT the way the demo does it. The demo uses #1d6ff2
       for link text on its own --bg, where it measures 4.24:1 and fails AA.
       White on #1d6ff2 is 4.51:1 and passes, so fills are fine; text steps
       down to #1554bd (6.93:1 on white, 6.52:1 on --bg), which is the demo's
       own hover colour. */
    --accent:#1d6ff2;
    --accent-text:#1554bd;
    --accent-hover:#1554bd;
    /* Alias. It existed because the old #2EA3E0 could not carry white text at
       2.83:1; #1d6ff2 can, so it is no longer a step-down - kept so the ~30
       call sites in map.css and the card rules keep resolving. */
    --accent-strong:#1d6ff2;
    --accent-50:#eef4ff;
    --accent-100:#dfeaff;
    --accent-200:#cfe0fb;
    --accent-border:#d8e6fd;
    /* The old ramp, re-pointed at the new palette. Kept as aliases rather than
       swept, because its 20 call sites are almost all in map.css and the
       listing-card rules - which are staying exactly as they are. */
    --blue-100:var(--accent-50);
    --blue-200:var(--accent-border);
    --blue-300:#7fb1ff;
    --blue-500:var(--accent);
    --blue-700:var(--accent-hover);
    --blue-900:#1554bd;       /* carries white text: 6.93:1 */

    /* ---------- navy ---------- */
    --navy:#0d1b33;
    --navy-2:#14315e;
    --navy-ink:#0d1b33;
    --navy-mid:#14315e;
    --navy-text:#33507d;
    --navy-soft:#2a4a7f;
    --navy-light:#7fb1ff;
    --blue-bright:#3b8bff;
    --rail:#0d1b33;
    --navy-100:#e7ecf2; --navy-200:#c2cedc; --navy-300:#6b84a2;
    --navy-500:#14315e; --navy-700:#0d1b33; --navy-900:#0d1b33;
    /* On-navy text ramp, for the utility strip and footer. */
    --on-navy:rgba(255,255,255,.78);
    --on-navy-dim:rgba(255,255,255,.60);
    --on-navy-line:rgba(255,255,255,.12);

    /* ---------- geometry ---------- */
    --r-xs:10px;
    --r-sm:12px;
    --r-md:16px;
    --r-lg:20px;
    --r-xl:22px;
    --r-pill:999px;
    --container:1240px;
    /* Old names, so nothing dangles mid-refactor. */
    --radius:var(--r-sm);
    --radius-sm:var(--r-xs);
    --radius-lg:var(--r-md);

    /* ---------- shadows ---------- */
    --shadow:0 12px 30px rgba(13,27,51,.06);
    --shadow-lg:0 16px 34px rgba(13,27,51,.10);
    --shadow-hero:0 34px 70px rgba(13,27,51,.24);
    --shadow-accent:0 14px 28px rgba(29,111,242,.38);

    /* ---------- spacing ---------- */
    --s1:4px; --s2:8px; --s3:14px; --s4:22px; --s5:26px; --s6:48px; --s7:64px; --s8:96px;

    /* ---------- type ----------
       One family now, at five weights. The demo uses no monospace at all, so
       --display and --mono are aliases: every eyebrow and label moved to the
       demo's recipe instead (see .eyebrow below), and tabular figures come
       from font-variant-numeric, which needs no mono face. */
    --sans:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
    --display:var(--sans);
    --mono:var(--sans);

    --ease:cubic-bezier(.2,.7,.3,1);

    /* CLAUDE.md aliases, so the documented names still resolve */
    --main:var(--navy);
    --dark:var(--navy-ink);
    --light:var(--bg);
    --accent-1:var(--accent);
    --accent-2:var(--brass);
    --porcelain:#f6f8fb;
    --mist:#e8eaee;
    --harbor:#55606f;
    --graphite:#16181d;
}

/* ----- Reset ----- */
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
    font-family:var(--sans);
    font-size:16px;line-height:1.6;
    color:var(--text);background:var(--bg);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}
img,svg,video{max-width:100%;display:block;}
img{height:auto;}
a{color:var(--accent-text);text-decoration:none;transition:color .15s var(--ease);}
a:hover{color:var(--accent-hover);}
button,input,select,textarea{font:inherit;color:inherit;}
input::placeholder,textarea::placeholder{color:var(--placeholder);}
ol,ul{list-style:none;}
::selection{background:var(--accent-200);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px;}

h1,h2,h3,h4{font-family:var(--display);font-weight:800;letter-spacing:-.03em;line-height:1.12;text-wrap:balance;}
h1{font-size:clamp(30px,4.6vw,54px);line-height:1.06;letter-spacing:-.032em;}
h2{font-size:clamp(22px,2.7vw,28px);font-weight:700;letter-spacing:-.02em;}
h3{font-size:19px;font-weight:700;letter-spacing:-.01em;}
p{text-wrap:pretty;}

.container{max-width:var(--container);margin:0 auto;padding:0 32px;}

/* The demo has no monospace. Every eyebrow, label and badge count uses this
   recipe instead: 12px, 700, wide tracking, uppercase. */
.eyebrow{
    font-family:var(--sans);font-size:12px;font-weight:700;
    letter-spacing:.07em;text-transform:uppercase;color:var(--text-4);
}
.mono{font-variant-numeric:tabular-nums;}

.skip-link{
    position:absolute;left:-9999px;top:0;z-index:200;
    background:var(--navy);color:#fff;padding:12px 20px;border-radius:0 0 var(--r-sm) 0;
}
.skip-link:focus{left:0;color:#fff;}

/* Screen-reader-only. This class was referenced by five templates and
   viewing.js from the day each was written and had never been defined
   anywhere, so every one of them rendered its text in the page: the
   portfolio panel's aria-live announcement, /anunt's slot-grid caption and
   its per-cell labels, the comparison table's first header, the price
   index's caption, and - loudest of all - the trend chart's entire data
   table, which exists precisely so a screen reader has numbers the SVG
   cannot give it. No display:none: that would take the content away from
   assistive technology as well, which is the opposite of the intent. */
.visually-hidden{
    position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;
    border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);
    white-space:nowrap;
}

/* ====================================================
   Buttons
   btn-primary is the blue accent. Red is reserved for
   .btn-brand - "Vinde prin Acord" and "Sună acum" - and
   for status (see .flash-err, .tag-alert), nothing else.
   ==================================================== */
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    border:1px solid transparent;border-radius:var(--r-sm);
    padding:14px 22px;
    font:700 15px/1 var(--sans);letter-spacing:0;
    cursor:pointer;white-space:nowrap;
    transition:background .18s var(--ease),color .18s var(--ease),
               border-color .18s var(--ease),transform .18s var(--ease),box-shadow .18s var(--ease);
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-hover));color:#fff;}
.btn-primary:hover{color:#fff;box-shadow:var(--shadow-accent);}
/* The two brand calls to action that stay red. */
.btn-brand{background:var(--red);color:#fff;}
.btn-brand:hover{background:var(--red-deep);color:#fff;box-shadow:0 14px 28px rgba(237,28,36,.32);}
.btn-ghost{background:var(--surface);color:var(--text);border-color:var(--line-3);}
.btn-ghost:hover{background:var(--accent-50);color:var(--accent-text);border-color:var(--accent-border);}
.btn-navy{background:var(--navy);color:#fff;}
.btn-navy:hover{background:var(--navy-2);color:#fff;box-shadow:0 14px 28px rgba(13,27,51,.28);}
/* Soft blue fill - the demo's "Call"/"WhatsApp" pair and card actions. */
.btn-soft{background:var(--accent-50);color:var(--accent-text);}
.btn-soft:hover{background:var(--accent-100);color:var(--accent-text);}
.btn-sm{padding:10px 16px;font-size:13.5px;}
.btn-lg{padding:16px 28px;font-size:16px;}
.btn-block{width:100%;}
/* The hero and other over-photo actions. */
.btn-pill{border-radius:var(--r-pill);padding:13px 24px;font-size:14px;}
/* On the dark hero band. */
.btn-onnavy{background:#fff;color:var(--navy);}
.btn-onnavy:hover{background:#fff;color:var(--navy);box-shadow:0 12px 26px rgba(0,0,0,.28);}
.btn-onnavy-ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.32);}
.btn-onnavy-ghost:hover{background:rgba(255,255,255,.18);color:#fff;}
.btn-onnavy-ghost.is-on{background:var(--accent);border-color:var(--accent);color:#fff;}

/* ====================================================
   Flash
   ==================================================== */
.flash{
    max-width:var(--container);margin:16px auto;padding:14px 20px;
    border-radius:var(--r-sm);font-size:14.5px;border:1px solid;
}
.flash-ok{background:#E4F1EC;color:#0F6146;border-color:#BEDFD2;}
.flash-err{background:var(--red-100);color:var(--red-900);border-color:var(--red-200);}

/* ====================================================
   Utility strip + header
   ==================================================== */
.utility-strip{background:var(--navy);color:var(--on-navy-dim);font-size:12.5px;}
.utility-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:38px;}
.utility-right{display:flex;gap:20px;}
.utility-strip a{color:var(--on-navy);}
.utility-strip a:hover{color:#fff;}

.site-header{
    position:sticky;top:0;z-index:60;
    background:var(--navy);color:#fff;
    border-bottom:1px solid var(--on-navy-line);
}
.site-header-inner{display:flex;align-items:center;gap:24px;height:70px;}

/* The logo is red type over white type on transparency, drawn for dark
   backgrounds. Header and footer are both navy, so it needs no variant. */
.brand{display:block;flex-shrink:0;line-height:0;}
.brand img{width:auto;height:42px;}
.brand-img{width:auto;height:38px;}

.site-nav{display:flex;align-items:center;gap:4px;margin-left:auto;}
.nav-link{
    display:block;padding:9px 14px;border-radius:var(--r-xs);
    color:var(--on-navy);font-size:14px;font-weight:600;
}
.nav-link:hover{color:#fff;background:rgba(255,255,255,.09);}
.nav-item{position:relative;}
.nav-sub{
    position:absolute;top:100%;left:0;min-width:240px;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
    box-shadow:var(--shadow-lg);padding:8px;
    opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .18s var(--ease),transform .18s var(--ease),visibility .18s;
}
.nav-item:hover .nav-sub,.nav-item:focus-within .nav-sub{opacity:1;visibility:visible;transform:translateY(0);}
/* Backstop: an empty dropdown box must never be shown. */
.nav-sub:empty{display:none;}
.nav-sub a{
    display:flex;justify-content:space-between;align-items:baseline;gap:14px;
    padding:10px 12px;border-radius:var(--r-xs);
    color:var(--text-2);font-size:14px;font-weight:600;
    transition:background .16s var(--ease),color .16s var(--ease);
}
.nav-sub a:hover{background:var(--accent-50);color:var(--accent-text);}
.nav-sub b{
    font-size:11.5px;font-weight:700;letter-spacing:.04em;
    color:var(--text-4);font-variant-numeric:tabular-nums;
}
.nav-cta{margin-left:10px;padding:11px 18px;font-size:14px;}

.nav-toggle{
    display:none;margin-left:auto;background:none;border:0;cursor:pointer;
    width:42px;height:42px;padding:10px;flex-direction:column;justify-content:space-between;
}
.nav-toggle span{display:block;height:2px;background:#fff;border-radius:1px;transition:transform .2s var(--ease),opacity .2s;}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(9px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

/* ====================================================
   Breadcrumbs + section heads
   ==================================================== */
.breadcrumbs{padding:18px 0 0;font-size:13px;color:var(--text-3);}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:8px;}
.breadcrumbs li+li::before{content:"/";margin-right:8px;color:var(--line-strong);}
.breadcrumbs a{color:var(--text-3);}
.breadcrumbs a:hover{color:var(--accent-text);}
/* Over the dark hero band on a property page. */
.breadcrumbs-dark{padding:0;color:rgba(255,255,255,.62);}
.breadcrumbs-dark a{color:rgba(255,255,255,.62);}
.breadcrumbs-dark a:hover{color:#fff;}
.breadcrumbs-dark li:last-child{color:#fff;}
.breadcrumbs-dark li+li::before{color:rgba(255,255,255,.38);}

.section{padding:var(--s7) 0;}
.section+.section{padding-top:0;}
.section-tint{background:var(--surface-2);}
.sec-head{margin-bottom:var(--s4);display:flex;flex-direction:column;gap:8px;}
.sec-head-row{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap;}
.sec-head p{color:var(--text-2);font-size:15px;line-height:1.7;max-width:66ch;}
.sec-cta{font-size:14px;font-weight:700;white-space:nowrap;}

/* Centred variant used by every property grid. */
.sec-head-center{
    align-items:center;text-align:center;gap:10px;margin-bottom:0;
}
.sec-head-center .eyebrow{color:var(--accent-text);letter-spacing:.09em;}
.sec-head-center h2{font-size:clamp(28px,3.6vw,42px);font-weight:800;letter-spacing:-.03em;}
.sec-head-center .sec-cta{margin-top:2px;}

/* ====================================================
   Property card
   ==================================================== */
.card-grid{
    display:grid;gap:32px;
    grid-template-columns:repeat(3,minmax(0,1fr));
}
/* Only the grids that carry a section heading need the gap under it; the
   listing page puts its grid straight after the results bar. */
.section .card-grid{margin-top:52px;}
.grid-tabs{
    display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
    margin-top:28px;
}
.grid-tab{
    font:600 14px/1 var(--sans);padding:11px 22px;border-radius:999px;
    background:var(--surface-2);color:var(--text-2);white-space:nowrap;
    transition:background .15s var(--ease),color .15s var(--ease);
}
.grid-tab:hover{background:var(--blue-100);color:var(--accent-text);}
.grid-tab.is-active{background:var(--accent-strong);color:#fff;}
.grid-tab.is-active:hover{background:var(--blue-900);color:#fff;}

.card{
    background:var(--surface);border:1px solid var(--line);border-radius:14px;
    overflow:hidden;display:flex;flex-direction:column;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
    transition:border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease);
}
.card:hover{
    border-color:var(--line-strong);
    box-shadow:0 14px 34px rgba(16,24,40,.10);
    transform:translateY(-3px);
}

.card-media{
    position:relative;display:block;height:274px;
    background:linear-gradient(150deg,var(--navy-mid),var(--navy));
    overflow:hidden;
}
.card-media picture,.card-media img{width:100%;height:100%;}
.card-media img{object-fit:cover;transition:transform .4s var(--ease);}
.card:hover .card-media img{transform:scale(1.04);}
.card-media .ph-img{object-fit:contain;padding:18%;opacity:.5;}

.card-badges{position:absolute;top:14px;left:16px;z-index:3;display:flex;gap:8px;}
.card-badge{
    font:600 11.5px/1 var(--sans);padding:6px 11px;border-radius:999px;
    color:#fff;white-space:nowrap;
}
.card-badge-accent{background:var(--accent-strong);}
.card-badge-glass{background:rgba(30,34,42,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
/* Movement badges. Red is the site's status colour and is spent sparingly -
   a reduction is the one thing on a card that is genuinely time-sensitive. */
.card-badge-redus{background:var(--red);}
.card-badge-nou{background:var(--ok);}
.card-badge-exclusiv{background:var(--brass-500);}

/* Top-right, opposite the badges: the bottom of the photo belongs to the
   address bar. It also doubles as the carousel position - site.js rewrites it
   to "3 / 18" once someone starts browsing, which is what the dots used to say. */
.card-count{
    position:absolute;top:14px;right:16px;z-index:3;
    background:rgba(15,18,24,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
    color:#fff;font:500 10.5px/1 var(--mono);letter-spacing:.06em;
    padding:6px 9px;border-radius:999px;
}

.card-addr{
    position:absolute;left:0;right:0;bottom:0;z-index:3;
    display:flex;align-items:center;gap:7px;
    padding:40px 16px 14px;
    color:#fff;font-size:13.5px;font-weight:500;line-height:1.2;
    text-shadow:0 1px 10px rgba(15,18,24,.55);
    background:linear-gradient(to top,rgba(15,18,24,.72),rgba(15,18,24,0));
    pointer-events:none;
}
.card-addr svg{flex:0 0 auto;}
.card-addr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ----- card photo browsing (slides injected by site.js on first interaction) ----- */
.card-slide{
    position:absolute;inset:0;
    opacity:0;pointer-events:none;
    transition:opacity .28s var(--ease);
}
.card-slide.is-on{opacity:1;}
/* Before the slides are built there is only the cover, which needs no
   absolute positioning; once built it becomes a .card-slide like the rest. */

.card-nav{
    position:absolute;inset:0;z-index:4;
    display:flex;align-items:center;justify-content:space-between;
    padding:0 6px;pointer-events:none;
    opacity:0;transition:opacity .2s var(--ease);
}
.card:hover .card-nav,.card-media:focus-within .card-nav{opacity:1;}
.card-arrow{
    pointer-events:auto;
    width:30px;height:30px;border-radius:50%;border:0;cursor:pointer;
    background:rgba(255,255,255,.92);color:var(--navy);
    font-size:17px;line-height:1;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 2px 8px rgba(7,23,38,.28);
    transition:background .15s var(--ease),transform .15s var(--ease);
}
.card-arrow:hover{background:#fff;transform:scale(1.08);}

/* Touch has no hover, so the arrows stay visible. */
@media (hover:none){
    .card-nav{opacity:1;}
    .card-arrow{width:34px;height:34px;}
}
@media (prefers-reduced-motion:reduce){
    .card-slide,.card-nav{transition:none;}
}

.card-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1;}

/* .tag / .tag-ok / .tag-warn / .tag-alert / .tag-brass were removed with the
   card's status row. The card was their only user - availability is 1 on every
   published property, so "Disponibil" appeared on all 738 cards and said
   nothing, and exclusivity is set on 2. Status still reads red where it
   carries meaning: .flash-err. */

.card-title{
    font-family:var(--sans);font-weight:600;font-size:19px;line-height:1.35;letter-spacing:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-title a{color:var(--text);}
.card-title a:hover{color:var(--accent-text);}

.card-stats{
    display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 18px;
    font-size:14px;color:var(--text-2);
}
.card-stat{display:inline-flex;align-items:center;gap:6px;}
.card-stat .stat-ico{flex:0 0 auto;opacity:.85;}
.card-stat b{font-weight:600;color:var(--text);}

/* The 18px above the divider is the stats' bottom margin, NOT a margin-top on
   the footer: `.card-stats+.card-foot` would out-specify `margin-top:auto` and
   the footer would stop pinning to the bottom, leaving cards in the same row
   with their prices at different heights. */
.card-foot{
    margin-top:auto;padding-top:16px;border-top:1px solid var(--line);
    display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.card-agent{display:flex;align-items:center;gap:10px;min-width:0;}
.card-avatar{
    width:38px;height:38px;border-radius:50%;flex:0 0 auto;
    display:flex;align-items:center;justify-content:center;
    background:var(--blue-100);color:var(--accent-text);
    font:600 12px/1 var(--mono);letter-spacing:.04em;
}
.card-agent-name{
    font-size:14px;font-weight:500;color:var(--text-2);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.card-price{
    flex:0 0 auto;white-space:nowrap;
    font:700 20px/1 var(--sans);color:var(--text);
    font-variant-numeric:tabular-nums;
}
.card-per{font:400 12px/1 var(--sans);color:var(--text-2);}
.card-ask{font:600 14px/1.3 var(--sans);color:var(--text-2);}

/* --blue-100 is a light tint and would be near-invisible on a dark card. */

/* ====================================================
   Homepage hero - the split (homepage-1b-split.html)
   ====================================================
   A navy panel on the left, a full-bleed photograph on the right with the
   main menu laid over it as a glass bar. Values are the design file's own.

   The split starts at 1280px, not where the design's breakpoints sit. The
   design drops "Hartă", "Despre noi" and "Contact" from its menu below
   1240px; this menu keeps every item, and at about 700px wide it needs the
   photograph half to be at least that, which 1280px is the first width to
   give. Below it the photograph goes, the normal header comes back and the
   panel is the whole hero - the design's own phone view. */
.hero-split{
    --hs-navy:#0d1a33;
    --hs-blue:#1d56c9;
    position:relative;display:flex;
    background:var(--hs-navy);color:#fff;
}
.hs-panel{
    position:relative;display:flex;flex-direction:column;
    width:100%;box-sizing:border-box;
    padding:44px 24px 28px;
    background:
        radial-gradient(600px 500px at 0% 100%,rgba(29,86,201,.35),transparent 70%),
        var(--hs-navy);
}
.hs-brand-slot{display:none;}
.hs-main{margin-top:auto;}
.hero-split .hs-eyebrow{font-size:12px;letter-spacing:.09em;color:var(--navy-light);}
.hero-split h1{
    margin:12px 0 0;color:#fff;
    font-size:clamp(30px,3vw,44px);line-height:1.06;letter-spacing:-.03em;
    /* The base h1 balances its lines, which here strands "potrivită" alone
       and pushes "în" down; the design breaks greedily: "potrivită în". */
    text-wrap:wrap;
}
.hs-lede{margin:14px 0 0;font-size:15px;line-height:1.6;color:rgba(255,255,255,.72);max-width:52ch;}

/* ---------- the search card ---------- */
.hs-card{
    margin-top:24px;padding:14px;
    background:#fff;color:#16181d;border-radius:18px;
    box-shadow:0 24px 50px rgba(0,0,0,.3);
}
/* Vânzare / Închiriere: two radios and a sliding pill, no JavaScript. The
   inputs stay in the accessibility tree (clipped, not display:none) so the
   pair is a real radio group with arrow-key navigation. */
.hs-mode{
    position:relative;display:flex;margin:0;padding:4px;border:0;min-width:0;
    background:#f2f4f7;border-radius:12px;
}
.hs-mode input{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none;}
.hs-mode label{
    position:relative;z-index:1;flex:1 1 0;
    display:flex;align-items:center;justify-content:center;height:36px;
    border-radius:10px;cursor:pointer;
    font-size:14px;font-weight:700;color:#4b5563;
    transition:color .3s;
}
.hs-mode input:checked + label{color:#fff;}
.hs-mode input:focus-visible + label{outline:2px solid var(--hs-blue);outline-offset:2px;}
.hs-mode-pill{
    position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);
    border-radius:9px;background:var(--hs-blue);box-shadow:0 6px 14px rgba(29,86,201,.3);
    transition:transform .45s cubic-bezier(.5,.1,.2,1.2);
}
.hs-mode input[value="inchiriere"]:checked ~ .hs-mode-pill{transform:translateX(100%);}

.hs-q{display:flex;gap:8px;margin-top:10px;}
.hs-q-input{
    flex:1 1 0;min-width:0;height:50px;padding:0 14px;
    font-family:var(--sans);font-size:14px;color:#16181d;
    background:#f8fafc;border:1px solid #e2e6ec;border-radius:12px;
    transition:border-color .2s,box-shadow .2s;
}
.hs-q-input::placeholder{color:var(--placeholder);}
.hs-q-input:focus{outline:none;border-color:var(--hs-blue);box-shadow:0 0 0 4px rgba(29,86,201,.13);}
.hs-q-go{
    flex:0 0 auto;padding:0 22px;border:0;border-radius:12px;cursor:pointer;
    background:var(--hs-blue);color:#fff;font-family:var(--sans);font-size:15px;font-weight:700;
    transition:background .2s;
}
.hs-q-go:hover{background:#1748ab;}
.hs-q-go:focus-visible{outline:2px solid var(--hs-blue);outline-offset:2px;}
.hs-hint{margin:8px 0 0;font-size:11px;line-height:1.5;color:#6b7480;}

.hs-more{margin-top:12px;border-top:1px solid #eef1f5;padding-top:10px;}
.hs-more summary{color:var(--hs-blue);}
.hs-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}

.hs-contact{
    margin-top:auto;padding-top:20px;
    display:flex;flex-wrap:wrap;gap:6px 18px;
    font-size:12px;font-weight:600;color:rgba(255,255,255,.62);
}
.hs-contact a{color:inherit;}
.hs-contact a:hover{color:#fff;}

/* ---------- the photograph half (1280px and up only) ---------- */
.hs-media{display:none;position:relative;flex:1 1 0;min-width:0;overflow:hidden;}
.hs-photo img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
    object-position:46% 50%;
    animation:kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns{
    0%{transform:scale(1.02) translate3d(0,0,0);}
    100%{transform:scale(1.14) translate3d(-1.5%,-1%,0);}
}
.hs-shade{
    position:absolute;inset:0;pointer-events:none;
    background:
        linear-gradient(90deg,rgba(13,26,51,.55) 0%,rgba(13,26,51,0) 22%),
        linear-gradient(180deg,rgba(8,16,32,.45) 0%,rgba(8,16,32,0) 22%,rgba(8,16,32,0) 55%,rgba(8,16,32,.75) 100%);
}

/* The four category tiles: links into /oferte, glass until hovered. One row,
   across the foot of the photograph. The tracks are "auto": each starts at
   its label's width and the spare room is shared out, so "Spații comerciale"
   gets what it needs instead of four equal tracks clipping it. The arrow
   costs 36px a tile and appears only where four of them fit (1680px). */
.hs-cats{
    position:absolute;left:clamp(20px,2.8vw,40px);right:clamp(20px,2.8vw,40px);bottom:32px;
    display:grid;grid-template-columns:repeat(4,auto);gap:10px;
}
.hs-cat{
    display:flex;align-items:center;gap:10px;
    padding:7px 10px 7px 7px;border-radius:14px;
    background:rgba(13,26,51,.38);color:#fff;border:1px solid rgba(255,255,255,.2);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    transition:background .3s,color .3s,transform .25s;
}
.hs-cat img,.hs-cat-noimg{
    flex:0 0 auto;width:42px;height:42px;border-radius:10px;object-fit:cover;
    background:rgba(255,255,255,.12);
}
.hs-cat-txt{flex:1 1 0;min-width:0;}
.hs-cat-txt b{display:block;font-size:14px;font-weight:700;white-space:nowrap;}
.hs-cat-txt small{display:block;margin-top:1px;white-space:nowrap;font-size:12px;font-weight:600;color:rgba(255,255,255,.75);transition:color .3s;}
.hs-cat-go{
    flex:0 0 auto;width:26px;height:26px;border-radius:50%;
    display:none;align-items:center;justify-content:center;
    font-size:13px;font-weight:700;background:rgba(255,255,255,.16);color:#fff;
    transition:transform .35s,background .3s;
}
.hs-cat:hover,.hs-cat:focus-visible{background:#fff;color:#16181d;border-color:#fff;}
.hs-cat:hover .hs-cat-txt small,.hs-cat:focus-visible .hs-cat-txt small{color:var(--hs-blue);}
.hs-cat:hover .hs-cat-go,.hs-cat:focus-visible .hs-cat-go{background:var(--hs-blue);transform:rotate(-45deg);}
.hs-cat:focus-visible{outline:2px solid #fff;outline-offset:2px;}

/* ---------- entrance ----------
   The design's [data-reveal]: up 22px and in, staggered by ~90ms. "backwards"
   fill, so with animations off (reduced motion) everything is simply there. */
@keyframes hsIn{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}
.hs-reveal{animation:hsIn .7s cubic-bezier(.2,.7,.2,1) backwards;}
.hs-eyebrow.hs-reveal{animation-delay:.12s;}
.hero-split h1.hs-reveal{animation-delay:.21s;}
.hs-lede.hs-reveal{animation-delay:.30s;}
.hs-card.hs-reveal{animation-delay:.39s;}
.hs-cat:nth-child(1){animation-delay:.48s;}
.hs-cat:nth-child(2){animation-delay:.57s;}
.hs-cat:nth-child(3){animation-delay:.66s;}
.hs-cat:nth-child(4){animation-delay:.75s;}

/* ---------- the homepage header ----------
   The utility strip's phones and e-mail are the panel's contact line here. */
.page-home .utility-strip{display:none;}

@media (min-width:641px){
    .hs-panel{padding:56px max(32px,calc((100% - 620px) / 2)) 32px;}
}

@media (min-width:1280px){
    .hero-split{height:100vh;height:100svh;min-height:780px;overflow:hidden;}
    .hs-panel{
        /* 470px at 1280, 560 at 1440, 640 from 1582 up. It grows faster
           than the viewport so the glass menu (~704px) still clears the
           panel at 1280, where the split starts. */
        width:clamp(440px,calc(56.25vw - 250px),640px);flex:0 0 auto;
        padding:34px clamp(28px,3.6vw,56px) 30px clamp(28px,4.2vw,64px);
    }
    /* The logo's height; the logo itself is the header's, laid over this. */
    .hs-brand-slot{display:block;height:44px;}
    .hs-media{display:block;}

    /* While the hero is on screen the header sits ON it: no bar, no border,
       the logo over the panel and the menu as a glass bar over the
       photograph. site.js adds .hero-passed once the hero has scrolled away,
       and from then on the ordinary navy header slides in, fixed. Fixed, not
       sticky: the overlay header takes no space in the flow, so switching it
       to sticky would push the page down by 70px mid-scroll. */
    .page-home:not(.hero-passed) .site-header{
        position:absolute;top:0;left:0;right:0;
        background:transparent;border-bottom:0;pointer-events:none;
    }
    .page-home:not(.hero-passed) .site-header .container{max-width:none;padding:0;}
    .page-home:not(.hero-passed) .site-header-inner{display:block;height:0;}
    .page-home:not(.hero-passed) .brand{
        position:absolute;top:34px;left:clamp(28px,4.2vw,64px);pointer-events:auto;
    }
    .page-home:not(.hero-passed) .site-nav{
        position:absolute;top:28px;right:32px;margin:0;gap:4px;padding:6px;
        border-radius:14px;pointer-events:auto;
        background:rgba(13,26,51,.42);border:1px solid rgba(255,255,255,.18);
        -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    }
    .page-home:not(.hero-passed) .nav-link{padding:9px 13px;border-radius:9px;color:#fff;}
    .page-home:not(.hero-passed) .nav-link:hover{background:rgba(255,255,255,.12);}
    .page-home:not(.hero-passed) .nav-cta{margin-left:6px;padding:10px 16px;border-radius:9px;}
    .page-home:not(.hero-passed) .nav-sub{top:calc(100% + 10px);}

    .page-home.hero-passed .site-header{
        position:fixed;top:0;left:0;right:0;
        animation:hsHeaderIn .3s var(--ease) both;
    }
}
@media (min-width:1680px){
    .hs-cat-go{display:flex;}
}
@keyframes hsHeaderIn{from{transform:translateY(-100%);}to{transform:none;}}

@media (max-width:640px){
    /* 16px or iOS zooms the page when the field takes focus. */
    .hs-q-input{font-size:16px;}
    .hs-more-grid{grid-template-columns:1fr;}
}

.search-more{margin-top:16px;border-top:1px solid var(--line-2);padding-top:14px;}
.search-more summary{
    cursor:pointer;font-size:13px;font-weight:700;color:var(--accent-text);
    list-style:none;display:inline-flex;align-items:center;gap:6px;
}
.search-more summary::-webkit-details-marker{display:none;}
.search-more summary::after{content:"\25be";font-size:11px;transition:transform .2s var(--ease);}
.search-more[open] summary::after{transform:rotate(180deg);}
.search-more .search-row{margin-top:14px;}

/* The echo line on /oferte: what the sentence became. Its text is built from
   the FILTERS via alert_label(), never from the query, so it cannot disagree
   with the chips below it - and the x clears q and nq together. */
.nl-echo{
    position:relative;margin:0 0 18px;padding:16px 46px 16px 18px;
    background:var(--accent-50);border:1px solid var(--accent-border);
    border-radius:var(--r-sm);
}
.nl-echo p{margin:0;}
.nl-echo-q{font-size:15.5px;font-weight:600;color:var(--text);}
.nl-echo-f{margin-top:5px!important;font-size:14px;color:var(--text-2);}
.nl-echo-f strong{color:var(--accent-text);}
.nl-echo-rest{margin-top:4px!important;font-size:13px;color:var(--text-3);}
.nl-echo-x{
    position:absolute;top:10px;right:12px;
    width:28px;height:28px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:18px;line-height:1;color:var(--text-3);
}
.nl-echo-x:hover{background:var(--surface);color:var(--text);}


.search-row{display:grid;gap:12px;grid-template-columns:repeat(4,1fr) auto;align-items:end;}
.field{display:flex;flex-direction:column;gap:7px;min-width:0;}
.field label,.general-label{
    font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);line-height:1.4;
}
.general-input,.general-select,.general-textarea{
    width:100%;background:var(--surface-3);
    border:1px solid var(--line-3);border-radius:var(--r-sm);
    padding:13px 15px;font-size:15px;color:var(--text);
    transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.general-input:focus,.general-select:focus,.general-textarea:focus{
    outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(29,111,242,.13);
}
.general-textarea{min-height:130px;resize:vertical;line-height:1.6;}
.general-select{appearance:none;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238b94a3' stroke-width='1.8' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 14px center;padding-right:34px;}
.range-pair{display:flex;gap:8px;align-items:center;}
.range-pair .general-input{min-width:0;}

/* ====================================================
   Quick links
   ==================================================== */
.quick-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));}
.quick-tile{
    display:flex;flex-direction:column;gap:5px;
    background:var(--surface);border:1px solid var(--line);
    border-radius:var(--r-md);padding:20px 22px;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
    transition:border-color .22s var(--ease),transform .22s var(--ease),box-shadow .22s var(--ease);
}
.quick-tile:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--accent-border);}
.quick-tile .qt-kind{
    font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);
}
.quick-tile .qt-label{font-weight:700;font-size:20px;color:var(--text);letter-spacing:-.02em;line-height:1.25;}
.quick-tile .qt-count{font-size:13px;color:var(--text-3);font-variant-numeric:tabular-nums;}

/* ====================================================
   Zones
   ==================================================== */
.zone-list{display:flex;flex-wrap:wrap;gap:10px;}
.zone-chip{
    display:inline-flex;align-items:baseline;gap:9px;
    border:1px solid var(--line);background:var(--surface);border-radius:var(--r-pill);
    padding:11px 18px;font-size:14px;font-weight:600;color:var(--text-2);
    transition:border-color .18s var(--ease),background .18s var(--ease),
               color .18s var(--ease),transform .18s var(--ease);
}
.zone-chip:hover{
    border-color:var(--accent-border);background:var(--accent-50);
    color:var(--accent-text);transform:translateY(-2px);
}
.zone-chip b{font-size:12px;font-weight:700;color:var(--text-4);font-variant-numeric:tabular-nums;}

/* ====================================================
   Bands (about / map teaser / sell)
   ==================================================== */
.band{
    display:grid;gap:var(--s6);grid-template-columns:1.1fr .9fr;align-items:center;
}
.band-copy h2{margin-bottom:var(--s3);}
.band-copy p{color:var(--text-2);margin-bottom:var(--s3);max-width:60ch;line-height:1.75;}
.band-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:var(--s4);}

.band-navy{
    position:relative;overflow:hidden;
    background:var(--navy);color:#fff;border-radius:var(--r-lg);padding:var(--s6);
}
.band-navy::after{
    content:"";position:absolute;pointer-events:none;
    width:420px;height:420px;top:-220px;right:-140px;
    background:radial-gradient(circle,rgba(29,111,242,.55),transparent 65%);
    animation:drift 20s ease-in-out infinite;
}
.band-navy>*{position:relative;z-index:1;}
.band-navy h2{color:#fff;}
.band-navy p{color:rgba(255,255,255,.66);}
.band-navy .eyebrow{color:var(--navy-light);}

.map-teaser{
    position:relative;display:block;border-radius:var(--r-lg);overflow:hidden;
    min-height:280px;border:1px solid var(--line);
    background:
      radial-gradient(circle at 30% 40%, rgba(29,111,242,.28) 0 6px, transparent 7px),
      radial-gradient(circle at 52% 28%, rgba(29,111,242,.28) 0 5px, transparent 6px),
      radial-gradient(circle at 68% 58%, rgba(29,111,242,.28) 0 7px, transparent 8px),
      radial-gradient(circle at 40% 70%, rgba(29,111,242,.28) 0 5px, transparent 6px),
      linear-gradient(150deg,var(--navy-2),var(--navy));
}
.map-teaser-inner{
    position:absolute;inset:auto 0 0 0;padding:22px 24px;
    background:linear-gradient(transparent,rgba(13,27,51,.85));color:#fff;
}
.map-teaser-inner strong{display:block;font-weight:700;font-size:21px;letter-spacing:-.02em;}
.map-teaser-inner span{font-size:14px;color:rgba(255,255,255,.66);}

/* ====================================================
   Agents
   ==================================================== */
.agent-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));}
.agent-card{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
    padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
    transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease);
}
.agent-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--accent-border);}
/* There are no agent photographs - avatar_file is NULL on all 15 rows and the
   importer has never written it - so the monogram is the treatment, not a
   placeholder for one. */
.agent-mono{
    width:52px;height:52px;border-radius:50%;
    background:var(--accent-50);color:var(--accent-text);
    display:flex;align-items:center;justify-content:center;
    font:700 17px/1 var(--sans);letter-spacing:.01em;
    margin-bottom:8px;
}
.agent-name{font-weight:700;font-size:16px;letter-spacing:-.01em;}
.agent-pos{
    font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);line-height:1.5;
}
.agent-meta{font-size:13px;color:var(--text-3);}
a.agent-phone{
    display:block;font-size:15px;font-weight:700;margin-top:6px;
    color:var(--accent-text);font-variant-numeric:tabular-nums;
}
a.agent-phone:hover{color:var(--accent-hover);}
/* .agent-box and .price-box went with the property page rebuild - the sidebar
   is .p-card now. .agent-mono, .agent-name and .agent-pos survive because
   band-agents.php and the property sidebar both still use them. */

/* ====================================================
   Listing page
   ==================================================== */
.page-head{padding:var(--s5) 0 var(--s4);}
.page-head h1{margin-bottom:8px;}
.page-head p{color:var(--text-2);max-width:70ch;}

.filter-bar{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
    padding:16px;margin-bottom:var(--s4);
}
/* First row: type, zone, rooms (or a plot's surface), price, then the two
   buttons. Every control is 52px tall, the buttons included - the old row put
   a 45px button beside 52px fields and left a sixth grid track empty, which
   is what read as "offset". */
.filter-row{
    display:grid;gap:12px;align-items:end;
    grid-template-columns:minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,.85fr) minmax(0,1.45fr) auto;
}
.filter-row.is-land{grid-template-columns:minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.45fr) auto;}
.filter-row .general-input,.filter-row .general-select,
.filter-actions .btn,.filter-more .general-input,.filter-more .general-select{height:52px;}
.filter-row .general-select,.filter-more .general-select{padding-top:0;padding-bottom:0;text-overflow:ellipsis;}
.filter-actions{display:flex;gap:8px;}
.filter-actions .btn{padding-top:0;padding-bottom:0;}
.fm-btn{position:relative;user-select:none;}
.fm-btn svg,.fm-go svg{flex:0 0 auto;}
.fm-count{
    min-width:22px;height:22px;padding:0 6px;border-radius:999px;
    display:inline-flex;align-items:center;justify-content:center;
    background:var(--accent);color:#fff;font-size:12px;font-weight:800;
}
/* The panel's switch is a nameless checkbox before the row, so it works
   without JS and is never submitted. Its focus ring is drawn on the label. */
.fm-toggle:focus-visible ~ .filter-row .fm-btn{outline:3px solid var(--accent);outline-offset:2px;}
.fm-toggle:checked ~ .filter-row .fm-btn{background:var(--accent-50);color:var(--accent-text);border-color:var(--accent-border);}

.filter-more{display:none;margin-top:16px;padding-top:20px;border-top:1px solid var(--line);}
.fm-toggle:checked ~ .filter-more{display:block;animation:fmIn .22s var(--ease);}
@keyframes fmIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
.fm-grid{display:grid;gap:20px 18px;grid-template-columns:repeat(4,minmax(0,1fr));}
.fm-group{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:9px;}
.fm-wide{grid-column:1/-1;}
/* A legend is not a flex item, so the column gap never reaches it. */
legend.fm-h{margin-bottom:9px;}
.fm-h{
    padding:0;font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);line-height:1.4;
}
.fm-pills{display:flex;flex-wrap:wrap;gap:8px;}
.fm-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.fm-pill{position:relative;display:block;cursor:pointer;}
.fm-pill input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.fm-pill span{
    display:flex;align-items:center;justify-content:center;gap:7px;
    min-height:44px;padding:0 16px;border-radius:999px;
    background:var(--surface);border:1px solid var(--line-3);
    font-size:14px;font-weight:600;color:var(--text-2);white-space:nowrap;
    transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease);
}
.fm-seg .fm-pill span{min-height:52px;padding:0 6px;border-radius:var(--r-sm);}
.fm-pill:hover span{border-color:var(--accent-border);color:var(--text);}
.fm-pill input:checked + span{background:var(--accent-50);border-color:var(--accent);color:var(--accent-text);}
.fm-pills .fm-pill input:checked + span::before{
    content:"";width:12px;height:7px;margin-top:-3px;
    border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);
}
.fm-pill input:focus-visible + span{outline:3px solid var(--accent);outline-offset:2px;}
.fm-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;}

.filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;}
.filter-reset{font-size:13px;font-weight:700;color:var(--accent-text);margin-left:4px;padding:5px 2px;}
.filter-reset:hover{text-decoration:underline;}
.filter-chip{
    display:inline-flex;align-items:center;gap:7px;
    background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
    padding:5px 8px 5px 13px;font-size:12.5px;color:var(--text-2);
}
.filter-chip a{color:var(--text-2);font-size:15px;line-height:1;padding:0 3px;}
.filter-chip a:hover{color:var(--alert);}

.results-bar{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    flex-wrap:wrap;margin-bottom:var(--s4);
}
.results-count{font-size:14.5px;color:var(--text-2);}
.results-count strong{color:var(--text);font-weight:800;font-variant-numeric:tabular-nums;}
.results-tools{display:flex;align-items:center;gap:10px;}
.results-tools label{
    font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);
}
.results-tools .general-select{width:auto;padding-top:10px;padding-bottom:10px;}

/* ====================================================
   Pagination
   ==================================================== */
.pagination{
    display:flex;align-items:center;justify-content:center;gap:8px;
    margin-top:var(--s6);flex-wrap:wrap;
}
.pg-numbers{display:flex;gap:6px;}
.pg-num,.pg-arrow{
    display:inline-flex;align-items:center;gap:6px;justify-content:center;
    min-width:42px;height:42px;padding:0 14px;
    border:1px solid var(--line);border-radius:var(--r-sm);
    background:var(--surface);color:var(--text-2);
    font:700 14px/1 var(--sans);font-variant-numeric:tabular-nums;
    transition:background .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease);
}
.pg-num:hover,.pg-arrow:hover{background:var(--accent-50);border-color:var(--accent-border);color:var(--accent-text);}
.pg-num.is-current{background:var(--accent);border-color:var(--accent);color:#fff;}
.pg-num.is-current:hover{background:var(--accent);color:#fff;}
.pg-arrow.is-off{opacity:.4;pointer-events:none;}
.pg-gap{padding:0 4px;color:var(--text-4);align-self:center;}

/* ====================================================
   Empty state
   ==================================================== */
.empty-state{
    text-align:center;padding:var(--s7) 24px;
    background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--r-lg);
    color:var(--text-2);
}
.empty-state svg{margin:0 auto var(--s3);color:var(--line-strong);}
.empty-state h2{color:var(--text);margin-bottom:8px;}
.empty-state p{max-width:48ch;margin:0 auto;}
.empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:var(--s4);}

/* ====================================================
   Detail page

   Rebuilt to property-detail-standalone.html. The photo slider inside
   .p-gallery is the untouched .cine block - gallery.css owns it entirely and
   was not opened for this change.
   ==================================================== */
.p-hero{
    position:relative;overflow:hidden;
    background:linear-gradient(160deg,var(--navy) 0%,var(--navy-2) 55%,var(--accent) 130%);
    color:#fff;padding:44px 0 210px;
}
.p-hero-blob{
    position:absolute;pointer-events:none;
    width:720px;height:720px;top:-320px;right:-180px;
    background:radial-gradient(circle,rgba(84,163,255,.55),transparent 62%);
    animation:drift 18s ease-in-out infinite;
}
.p-hero-blob-2{
    width:560px;height:560px;top:auto;right:auto;bottom:-300px;left:-120px;
    background:radial-gradient(circle,rgba(29,111,242,.42),transparent 65%);
    animation:drift 24s ease-in-out infinite reverse;
}
.p-hero-inner{position:relative;z-index:1;}
.p-hero-grid{
    display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
    gap:28px;margin-top:26px;
}
.p-hero-copy{max-width:720px;}
.p-badges{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:16px;}
.p-badge{
    font-size:12px;font-weight:700;letter-spacing:.04em;
    padding:7px 14px;border-radius:var(--r-pill);white-space:nowrap;
    background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);color:#fff;
}
.p-badge-accent{background:var(--accent);border-color:transparent;box-shadow:0 8px 22px rgba(29,111,242,.5);}
.p-hero h1{margin:0;color:#fff;}
.p-hero-place{
    display:flex;align-items:center;gap:9px;margin-top:18px;
    color:rgba(255,255,255,.78);font-size:15px;
}
.p-hero-place svg{flex:0 0 auto;}
.p-hero-id{color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums;}
.p-hero-price{text-align:right;flex:1 1 280px;min-width:260px;}
.p-hero-price .p-ask{font-size:13px;color:rgba(255,255,255,.6);font-weight:600;letter-spacing:.06em;}
.p-hero-price .p-amount{
    font-size:clamp(32px,4vw,46px);font-weight:800;letter-spacing:-.03em;
    margin-top:4px;line-height:1.05;font-variant-numeric:tabular-nums;
}
.p-hero-price .p-amount small{font-size:.42em;font-weight:600;letter-spacing:0;}
.p-hero-price .p-sqm{font-size:14px;color:rgba(255,255,255,.62);}
.p-hero-actions{display:flex;gap:10px;margin-top:20px;justify-content:flex-end;flex-wrap:wrap;}

/* The gallery overlaps the hero, exactly as in the demo. */
.p-gallery{position:relative;z-index:2;margin-top:-170px;}

.p-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:16px;margin-top:22px;}
.p-stat{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
    padding:20px 22px;
    transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease);
}
.p-stat:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--accent-border);}
.p-stat-ico{
    width:40px;height:40px;border-radius:11px;background:var(--accent-50);color:var(--accent);
    display:flex;align-items:center;justify-content:center;margin-bottom:14px;
}
.p-stat-ico svg{width:20px;height:20px;}
.p-stat-label{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-4);}
.p-stat-value{font-size:26px;font-weight:700;letter-spacing:-.02em;margin-top:3px;font-variant-numeric:tabular-nums;}

.p-layout{display:flex;flex-wrap:wrap;gap:34px;align-items:flex-start;margin-top:52px;}
.p-main{flex:1 1 560px;min-width:0;display:flex;flex-direction:column;gap:26px;}
.p-aside{
    position:sticky;top:24px;flex:1 1 340px;min-width:0;max-width:384px;
    display:flex;flex-direction:column;gap:20px;
}
.p-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:34px 36px;}
.p-card h2{font-size:26px;font-weight:700;letter-spacing:-.02em;margin-bottom:16px;}
.p-card>p{font-size:16px;line-height:1.75;color:var(--text-2);}

.p-desc{white-space:pre-line;}
.p-more{overflow:hidden;transition:max-height .45s cubic-bezier(.3,.7,.2,1),opacity .35s;max-height:0;opacity:0;}
.p-more.is-open{opacity:1;}
.p-more-btn{
    margin-top:18px;background:none;border:0;padding:0;cursor:pointer;
    font:700 15px/1 var(--sans);color:var(--accent-text);
    display:flex;align-items:center;gap:7px;
}
.p-more-btn:hover{color:var(--accent-hover);}
.p-more-btn span{display:inline-block;transition:transform .3s var(--ease);}
.p-more-btn.is-open span{transform:rotate(180deg);}

.p-callout{
    background:linear-gradient(120deg,var(--accent-50),#f7fbff);
    border:1px solid var(--accent-border);border-radius:var(--r-lg);
    padding:24px 28px;display:flex;gap:16px;align-items:flex-start;
}
.p-callout-ico{
    flex:none;width:34px;height:34px;border-radius:var(--r-xs);
    background:var(--accent);color:#fff;
    display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;
}
.p-callout p{margin:0;font-size:15px;line-height:1.7;color:var(--navy-text);}

/* Caracteristici. Kept as the full 20-row table rather than the demo's short
   chip list, because every row is real data we already hold. */
.spec-grid{
    display:grid;gap:0;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden;background:var(--surface);
}
.spec-item{display:flex;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid var(--line);font-size:14px;}
.spec-item dt{color:var(--text-4);font-weight:600;}
.spec-item dd{font-weight:700;text-align:right;color:var(--text);font-variant-numeric:tabular-nums;}

/* Dotări - the demo's check chips. */
.feature-groups{display:flex;flex-direction:column;gap:22px;}
.feature-group h3{
    font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
    color:var(--text-4);margin-bottom:12px;
}
/* auto-FILL, not auto-fit: several groups hold a single item, and auto-fit
   would collapse the empty tracks and stretch that one chip across the whole
   card. */
.feature-group ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:14px 18px;}
.feature-group li{
    display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:var(--r-sm);
    background:var(--surface-2);border:1px solid var(--line-2);
    font-size:15px;font-weight:500;color:#3c4657;
    transition:background .2s var(--ease),transform .2s var(--ease),color .2s var(--ease);
}
.feature-group li:hover{background:var(--accent-50);color:var(--accent-text);transform:translateX(4px);}
.feature-group li svg{flex:none;}

/* ----- mortgage calculator ----- */
.p-calc{
    position:relative;overflow:hidden;
    background:var(--navy);color:#fff;border-radius:var(--r-lg);padding:36px 38px;
}
.p-calc::after{
    content:"";position:absolute;pointer-events:none;
    width:420px;height:420px;top:-220px;right:-140px;
    background:radial-gradient(circle,rgba(29,111,242,.55),transparent 65%);
    animation:drift 20s ease-in-out infinite;
}
.p-calc-inner{position:relative;z-index:1;}
.p-calc .eyebrow{color:var(--navy-light);letter-spacing:.1em;}
.p-calc h2{margin:8px 0 4px;font-size:28px;color:#fff;}
.p-calc-sub{margin:0 0 28px;font-size:15px;color:rgba(255,255,255,.6);}
.p-calc-cols{display:flex;flex-wrap:wrap;gap:34px;align-items:flex-start;}
.p-calc-sliders{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:26px;}
.p-slider-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px;}
.p-slider-head span{font-size:14px;font-weight:600;color:rgba(255,255,255,.72);}
.p-slider-head output{font-size:19px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;}
.p-calc input[type=range]{
    -webkit-appearance:none;appearance:none;width:100%;height:6px;
    border-radius:var(--r-pill);outline:none;
}
.p-calc input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;
    width:22px;height:22px;border-radius:50%;background:#fff;border:5px solid var(--accent);
    cursor:grab;box-shadow:0 3px 10px rgba(29,111,242,.45);transition:transform .15s var(--ease);
}
.p-calc input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.14);}
.p-calc input[type=range]:active::-webkit-slider-thumb{cursor:grabbing;transform:scale(1.2);}
.p-calc input[type=range]::-moz-range-thumb{
    width:22px;height:22px;border-radius:50%;background:#fff;border:5px solid var(--accent);
    cursor:grab;box-shadow:0 3px 10px rgba(29,111,242,.45);
}
.p-slider-scale{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:rgba(255,255,255,.42);}
.p-calc-out{
    flex:1 1 268px;min-width:0;text-align:center;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
    border-radius:18px;padding:26px 24px;
}
.p-donut{
    position:relative;width:176px;height:176px;margin:0 auto 20px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;transition:background .25s var(--ease);
}
.p-donut-hole{
    width:128px;height:128px;border-radius:50%;background:var(--navy);
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
}
.p-donut-hole span{font-size:11px;font-weight:700;letter-spacing:.08em;color:rgba(255,255,255,.5);}
.p-donut-hole b{font-size:27px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;}
.p-calc-legend{display:flex;flex-direction:column;gap:10px;text-align:left;}
.p-calc-legend div{display:flex;align-items:center;gap:9px;font-size:13px;}
.p-calc-legend i{width:9px;height:9px;border-radius:50%;flex:none;}
.p-calc-legend span{color:rgba(255,255,255,.66);flex:1;}
.p-calc-legend b{font-weight:700;font-variant-numeric:tabular-nums;}
.p-calc-rule{height:1px;background:rgba(255,255,255,.12);margin:18px 0 14px;}
.p-calc-total{display:flex;justify-content:space-between;font-size:13px;color:rgba(255,255,255,.6);margin-top:7px;}
.p-calc-total b{color:#fff;font-weight:700;font-variant-numeric:tabular-nums;}
.p-calc-note{margin-top:20px;font-size:12.5px;line-height:1.6;color:rgba(255,255,255,.45);}

/* ----- zone / €per m2 ----- */
.p-sqm-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.p-sqm-head b{font-size:24px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;}
.p-sqm-head span{font-size:13px;color:var(--text-3);}
.p-bar{height:8px;border-radius:8px;background:var(--surface-2);overflow:hidden;margin-top:10px;position:relative;}
.p-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,var(--navy-light),var(--accent));width:0;transition:width 1s cubic-bezier(.2,.8,.2,1);}
.p-bar u{position:absolute;top:-3px;width:2px;height:14px;background:var(--text-3);border-radius:2px;}

/* ----- sidebar ----- */
.p-aside .p-card{padding:28px 26px;box-shadow:var(--shadow);}
.p-agent-top{display:flex;align-items:center;gap:15px;}
.p-agent-top .agent-mono{width:66px;height:66px;font-size:21px;margin:0;flex:none;}
.p-agent-role{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-4);}
.p-agent-name{font-size:20px;font-weight:700;letter-spacing:-.01em;}
.p-rows{display:flex;flex-direction:column;gap:2px;margin-top:22px;}
.p-row{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 12px;border-radius:var(--r-xs);transition:background .18s var(--ease);
}
.p-row:hover{background:var(--bg);}
.p-row dt{font-size:13px;font-weight:600;color:var(--text-4);}
.p-row dd{font-size:14px;font-weight:600;color:#2b3342;text-align:right;}
.p-row dd a{color:#2b3342;}
.p-row dd a:hover{color:var(--accent-text);}
.p-form-sub{margin:0 0 20px;font-size:14px;color:var(--text-3);}
.p-quick{display:flex;gap:10px;margin-top:2px;}
.p-quick .btn{flex:1;padding:13px;}

.loc-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;}
.loc-map{height:260px;background:var(--surface-2);}
.loc-note{padding:14px 16px;font-size:13px;color:var(--text-3);border-top:1px solid var(--line);}

.share-row{display:flex;gap:10px;flex-wrap:wrap;}

/* ====================================================
   Contact + forms
   ==================================================== */
.contact-layout{display:grid;gap:var(--s6);grid-template-columns:1fr 1fr;align-items:start;}
.info-list{display:flex;flex-direction:column;gap:2px;margin:var(--s4) 0;}
.info-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px;}
.info-row dt{color:var(--text-4);font-weight:600;}
.info-row dd{font-weight:700;text-align:right;}
.info-row dd a{color:var(--accent-text);}
.info-row dd a:hover{color:var(--accent-hover);}
.form-card{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    padding:28px 26px;box-shadow:var(--shadow);
}
.form-grid{display:grid;gap:14px;grid-template-columns:1fr 1fr;}
.form-grid .field-full{grid-column:1/-1;}
.general-submit{margin-top:6px;}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.form-note{font-size:13px;color:var(--text-3);margin-top:12px;line-height:1.6;}

/* ====================================================
   Editorial pages
   ==================================================== */
.prose{max-width:74ch;}
.prose h2{font-size:24px;margin:var(--s5) 0 var(--s2);}
.prose h3{font-size:18px;margin:var(--s4) 0 6px;}
.prose p{margin-bottom:var(--s3);color:var(--text-2);line-height:1.75;}
.prose ul{margin:0 0 var(--s3) 0;display:flex;flex-direction:column;gap:8px;}
.prose ul li{padding-left:22px;position:relative;color:var(--text-2);line-height:1.7;}
.prose ul li::before{
    content:"";position:absolute;left:0;top:10px;width:8px;height:8px;
    border-radius:50%;background:var(--accent-200);
}
.prose strong{font-weight:700;color:var(--text);}
.prose a{text-decoration:underline;text-underline-offset:2px;}

.legal-warning{
    border:1px solid var(--brass-300);border-left:3px solid var(--brass);
    background:var(--brass-100);color:var(--brass-900);
    border-radius:var(--r-sm);padding:16px 20px;margin-bottom:var(--s5);font-size:14.5px;
}
.legal-warning strong{
    display:block;font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;margin-bottom:4px;
}

.alpha-index{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:var(--s5);}
.alpha-index a,.alpha-index span{
    display:flex;align-items:center;justify-content:center;
    width:38px;height:38px;border:1px solid var(--line);border-radius:var(--r-xs);
    background:var(--surface);font:700 13.5px/1 var(--sans);
}
.alpha-index a{color:var(--accent-text);transition:background .18s var(--ease),border-color .18s var(--ease);}
.alpha-index a:hover{background:var(--accent);color:#fff;border-color:var(--accent);}
.alpha-index span{opacity:.35;}
.dict-group{margin-bottom:var(--s6);scroll-margin-top:110px;}
.dict-group>h2{font-size:26px;font-weight:800;color:var(--text);letter-spacing:-.03em;margin-bottom:var(--s3);}
.dict-term{
    padding:20px 22px;margin-bottom:12px;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
    scroll-margin-top:110px;
}
.dict-term h3{font-size:16px;font-weight:700;letter-spacing:-.01em;margin-bottom:6px;}
.dict-term p{color:var(--text-2);font-size:15px;line-height:1.7;}

/* ====================================================
   Footer
   ==================================================== */
.site-footer{background:var(--navy);color:var(--on-navy-dim);margin-top:var(--s8);padding:var(--s7) 0 var(--s4);font-size:14px;}
.footer-grid{display:grid;gap:var(--s5);grid-template-columns:1.8fr 1fr 1fr 1fr 1.3fr;}
.footer-brand p{margin-top:14px;color:var(--on-navy-dim);font-size:14px;line-height:1.7;max-width:36ch;}
.footer-social{display:flex;gap:14px;margin-top:16px;font-size:13.5px;}
.footer-col{display:flex;flex-direction:column;gap:10px;}
.footer-col h3{
    font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
    color:var(--navy-light);margin-bottom:4px;
}
.site-footer a{color:var(--on-navy);font-size:14px;}
.site-footer a:hover{color:#fff;}
.footer-contact p{font-size:14px;color:var(--on-navy-dim);}
.footer-hours{margin-top:6px;}

.footer-legal{
    border-top:1px solid var(--on-navy-line);margin-top:var(--s6);padding-top:var(--s4);
    display:flex;flex-direction:column;gap:10px;font-size:13px;
}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:18px;}
.footer-company{display:flex;flex-wrap:wrap;gap:18px;color:rgba(255,255,255,.45);font-size:12px;}
.footer-copy{color:rgba(255,255,255,.45);}

.cookie-note{
    position:fixed;left:16px;right:16px;bottom:16px;z-index:80;max-width:560px;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
    box-shadow:var(--shadow-lg);padding:18px 20px;
    display:flex;align-items:center;gap:16px;font-size:14px;
}
.cookie-note p{flex:1;color:var(--text-2);}
/* The `hidden` attribute only sets display:none in the UA stylesheet, so the
   author display:flex above beat it and the banner could never be dismissed. */
.cookie-note[hidden]{display:none;}

/* ====================================================
   Basemap tinting

   Lives here rather than in map.css because the mini map on /anunt and
   /contact needs it too, and those pages never load map.css.

   Applied only when the tiles are OpenStreetMap's standard style, which
   map.js and site.js flag with .tiles-osm. A real light basemap (MapTiler,
   with a key) gets no filter at all.

   OSM raw is warm and heavily coloured - beige land, pink motorways, amber
   primaries - and a filter cannot recolour roads on its own. Pushed this hard
   it still lands close to Google's pale grey and white: nearly all saturation
   gone, land lifted toward white, contrast flattened, and the residual beige
   rotated off toward blue. The previous saturate(.62) brightness(1.06) was far
   too timid to read as light.
   ==================================================== */
.tiles-osm .leaflet-tile-pane{
    filter:saturate(.26) brightness(1.13) contrast(.88) hue-rotate(-8deg);
}
/* invert() alone turns blue water orange; rotating the hues 180deg puts them
   back, which is the standard way to derive a dark map from light tiles. */
.tiles-osm.is-dark .leaflet-tile-pane{
    filter:invert(.93) hue-rotate(180deg) saturate(.35) brightness(1.02) contrast(.92);
}
.loc-map .leaflet-container{height:100%;}

/* ====================================================
   Motion
   ==================================================== */
/* The demo's reveal, folded into the .reveal/.is-in observer that already
   existed in site.js rather than added as a second system. site.js sets the
   stagger delay inline, 70ms apart and capped at 280ms. */
@keyframes floatUp{from{opacity:0;transform:translateY(26px);}to{opacity:1;transform:none;}}
@keyframes drift{
    0%{transform:translate3d(0,0,0) scale(1);}
    50%{transform:translate3d(3%,-4%,0) scale(1.08);}
    100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes pulseRing{
    0%{transform:scale(.75);opacity:.55;}
    70%{transform:scale(2.1);opacity:0;}
    100%{opacity:0;}
}
.reveal{opacity:0;}
.reveal.is-in{animation:floatUp .68s cubic-bezier(.2,.7,.2,1) forwards;}

@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
    .reveal{opacity:1;transform:none;}
    .hs-photo img,.p-hero-blob,.band-navy::after,.p-calc::after{animation:none;}
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width:1000px){
    .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
    .section .card-grid{margin-top:38px;}
}

@media (max-width:1080px){
    .footer-grid{grid-template-columns:1fr 1fr 1fr;}
    .footer-brand{grid-column:1/-1;}
    .filter-row,.filter-row.is-land{grid-template-columns:repeat(2,minmax(0,1fr));}
    .filter-actions{grid-column:1/-1;}
    .filter-actions .btn{flex:1 1 0;}
    .fm-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .p-card{padding:28px 26px;}
    .p-calc{padding:28px 26px;}
}

@media (max-width:900px){
    .utility-left{display:none;}
    .utility-inner{justify-content:center;}
    .utility-right{gap:14px;font-size:12px;}

    .nav-toggle{display:flex;}
    .site-nav{
        position:absolute;top:100%;left:0;right:0;
        flex-direction:column;align-items:stretch;gap:2px;
        background:var(--navy);border-bottom:1px solid rgba(255,255,255,.1);
        padding:12px 24px 20px;margin:0;
        max-height:0;overflow:hidden;opacity:0;
        transition:max-height .25s var(--ease),opacity .2s var(--ease),padding .25s var(--ease);
    }
    .site-nav.is-open{max-height:80vh;overflow-y:auto;opacity:1;}
    .nav-link{padding:12px 4px;font-size:15px;border-bottom:1px solid rgba(255,255,255,.07);border-radius:0;}
    .nav-sub{
        position:static;opacity:1;visibility:visible;transform:none;
        background:transparent;border:0;box-shadow:none;padding:0 0 8px 14px;
        display:none;
    }
    .nav-item.is-open .nav-sub{display:block;}
    .nav-sub a{color:var(--on-navy);padding:9px 0;}
    .nav-sub a:hover{background:transparent;color:#fff;}
    .nav-cta{margin:14px 0 0;width:100%;}

    .search-row{grid-template-columns:1fr 1fr;}
    .search-row .field-submit{grid-column:1/-1;}
    .search-row .btn{width:100%;}


    .band{grid-template-columns:1fr;gap:var(--s4);}
    .contact-layout{grid-template-columns:1fr;}
    .section{padding:var(--s6) 0;}

    /* The sidebar stops being sticky once it is a full-width row, and the
       gallery's overlap shrinks with the hero's bottom padding. */
    .p-aside{position:static;max-width:none;flex-basis:100%;}
    .p-hero{padding:36px 0 150px;}
    .p-gallery{margin-top:-120px;}
    .p-calc-cols{gap:26px;}
}

@media (max-width:640px){
    .container{padding:0 18px;}
    .card-grid{grid-template-columns:1fr;gap:16px;}
    .section .card-grid{margin-top:28px;}
    .grid-tabs{gap:8px;margin-top:20px;}
    .grid-tab{padding:9px 16px;font-size:13px;}
    .card-media{height:240px;}
    .filter-row,.filter-row.is-land{grid-template-columns:1fr;}
    .filter-bar{padding:14px;}
    .fm-grid{grid-template-columns:1fr;}
    .fm-foot .btn{flex:1 1 0;}
    .form-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .spec-grid{grid-template-columns:1fr;}
    .cookie-note{flex-direction:column;align-items:stretch;}
    .results-bar{flex-direction:column;align-items:flex-start;gap:10px;}
    /* The sort row is a label + select + "Vezi pe hartă" button. With the
       demo's larger control padding it measured 446px against a 390px
       viewport, so it wraps and the select gives up its intrinsic width. */
    .results-tools{flex-wrap:wrap;width:100%;}
    .results-tools .general-select{flex:1 1 140px;min-width:0;width:auto;}
    .band-navy{padding:var(--s4);}

    .p-hero{padding:28px 0 120px;}
    .p-gallery{margin-top:-96px;}
    .p-hero-price{text-align:left;min-width:0;}
    .p-hero-actions{justify-content:flex-start;}
    .p-card,.p-calc,.p-aside .p-card{padding:24px 20px;}
    .p-layout{gap:22px;margin-top:34px;}
    .p-stats{grid-template-columns:1fr 1fr;gap:12px;}
    .p-stat{padding:16px 18px;}
    .p-stat-value{font-size:22px;}
    .feature-group ul{grid-template-columns:1fr;}
    .p-donut{width:150px;height:150px;}
    .p-donut-hole{width:110px;height:110px;}
}

/* ====================================================
   Ascultă descrierea - the generated audio player
   ==================================================== */
.p-desc-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.p-desc-head h2{margin:0;}
.p-listen{
    display:inline-flex;align-items:center;gap:9px;
    padding:9px 16px;border-radius:var(--r-pill);
    border:1px solid var(--accent-border);background:var(--accent-50);
    color:var(--accent-text);font:600 13.5px/1 var(--sans);cursor:pointer;
    transition:background .16s var(--ease),border-color .16s var(--ease);
}
.p-listen:hover{background:var(--accent-100);border-color:var(--accent-200);}
.p-listen:disabled{opacity:.55;cursor:default;}
.p-listen-ico{
    width:0;height:0;flex:0 0 auto;
    border-left:9px solid currentColor;
    border-top:6px solid transparent;border-bottom:6px solid transparent;
}
.p-listen.is-playing .p-listen-ico{
    width:9px;height:12px;border:0;
    border-left:3px solid currentColor;border-right:3px solid currentColor;
    background:transparent;
}
@media (max-width:520px){
    .p-desc-head{gap:10px;}
    .p-listen{width:100%;justify-content:center;}
}

/* ====================================================
   Istoric preț
   ==================================================== */
.p-history{list-style:none;margin:14px 0 0;padding:0;}
.p-history-row{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 0;border-bottom:1px solid var(--line-2);
    font-size:14.5px;
}
.p-history-row:last-child{border-bottom:0;}
.p-history-date{
    color:var(--text-3);font-size:13px;
    min-width:88px;font-variant-numeric:tabular-nums;
}
.p-history-move{font-weight:700;font-variant-numeric:tabular-nums;}
.p-history-move.is-down{color:var(--ok);}   /* a cut is good news for a buyer */
.p-history-move.is-up{color:var(--text-2);} /* neutral: not a warning */
.p-history-prices{color:var(--text-2);margin-left:auto;font-variant-numeric:tabular-nums;}
.p-history-prices s{color:var(--text-4);}
@media (max-width:520px){
    .p-history-prices{margin-left:0;width:100%;}
}

/* ====================================================
   Programează o vizionare

   TWO VIEWS, ONE SET OF CHECKBOXES. The server always renders the full
   7-day x 11-hour week table: that is the no-JS form anunt/manage.php
   validates, and it is also what the overlay shows. So the WEEK RULES ARE
   THE DEFAULTS here, and both the JS-off case and the open overlay share
   them with no duplication.

   viewing.js sets data-viz-view="compact" on the root during init - the
   only thing the compact rules key off - and "week" while the overlay is
   open. With JS off the attribute never appears.

   THERE IS DELIBERATELY NO MEDIA QUERY ON THIS PICKER. The narrow thing is
   the 332px SIDEBAR (.p-aside is max-width:384px with 26px padding), not
   the viewport, which is why the old @media(max-width:640px) compact mode
   fired at 390px and never at 1440px - exactly backwards. Compact is
   correct at every width, so the breakpoint is gone rather than moved.

   Z-INDEX: .viz-backdrop 90 / .viz-sheet 91, above .cookie-note (80, a
   persistent banner that should be covered) and below .skip-link (200).
   But .p-aside is position:sticky, which CREATES A STACKING CONTEXT at
   z-index:auto, so those numbers resolve INSIDE the sidebar and the whole
   sidebar paints below .site-header (sticky, z-index:60). No value here
   can fix that; viewing.js lifts .p-aside itself while the sheet is open.
   ==================================================== */
.p-viz{scroll-margin-top:90px;}

/* THE PICKER OPTS OUT OF THE SCROLL REVEAL, and it has to.
   site.js:401 adds .reveal to every .p-card, and .reveal.is-in runs floatUp
   with animation-fill-mode:forwards. floatUp animates TRANSFORM, and an
   element carrying a filling transform animation is a containing block for
   its position:fixed descendants - even though the filled value is `none`
   and getComputedStyle reports transform:none. So the overlay below centred
   itself on this 384px card instead of the viewport, and the backdrop
   shrank to the card's own box: a sheet at x=770 and no scrim at all, while
   every computed style looked correct. Both selectors are listed so this
   wins on specificity rather than on source order.
   This card is an interactive control, not a decorative tile. */
.p-viz.reveal,.p-viz.reveal.is-in{opacity:1;animation:none;}

/* ---------- chosen slots ---------- */
.viz-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px;}
.viz-chips:empty{margin:0;}
.viz-chip{
    display:inline-flex;align-items:center;gap:8px;
    padding:7px 10px 7px 13px;border-radius:var(--r-pill);
    border:1px solid var(--accent-border);background:var(--accent-50);
    color:var(--accent-text);font:600 13px/1 var(--sans);cursor:pointer;
}
.viz-chip i{font-style:normal;font-size:15px;line-height:1;opacity:.7;}
.viz-chip:hover{background:var(--accent-100);}

/* ---------- day pills ----------
   Hidden by default: with JS off they do nothing, and the week table shows
   every day anyway. Hidden again in week mode, where all seven days are on
   screen and a pill that changes nothing visible is a dead control. */
.viz-days{display:none;gap:5px;overflow-x:auto;padding:4px 0 12px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.viz-days::-webkit-scrollbar{display:none;}
[data-viz-view="compact"] .viz-days{display:flex;}
.viz-day{
    flex:1 1 auto;min-width:40px;max-width:64px;min-height:52px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
    border:1px solid var(--line-3);background:var(--surface);border-radius:var(--r-xs);
    color:var(--text-3);cursor:pointer;padding:6px 8px;
    transition:background .16s var(--ease),border-color .16s var(--ease),color .16s var(--ease);
}
.viz-day-d{font:700 10.5px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;}
.viz-day-n{font:700 15px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--text);}
.viz-day:hover{border-color:var(--accent-border);color:var(--accent-text);}
.viz-day.is-weekend .viz-day-d{color:var(--accent-text);}
.viz-day.is-on{background:var(--accent);border-color:var(--accent);color:#fff;}
.viz-day.is-on .viz-day-n,.viz-day.is-on .viz-day-d{color:#fff;}

/* ---------- the week table (the default view) ---------- */
.viz-grid-wrap{overflow-x:auto;margin-top:6px;}
.viz-grid{width:100%;border-collapse:collapse;font-size:13px;}
.viz-grid th{
    font:700 11.5px/1 var(--sans);letter-spacing:.05em;text-transform:uppercase;
    color:var(--text-4);padding:8px 4px;white-space:nowrap;
}
.viz-grid tbody th{
    text-align:right;padding-right:10px;color:var(--text-3);
    font-variant-numeric:tabular-nums;text-transform:none;letter-spacing:0;font-size:12.5px;
}
.viz-grid th.is-weekend{color:var(--accent-text);}
.viz-grid td{padding:2px;}
.viz-grid td.is-weekend .viz-slot{background:var(--surface-2);}

.viz-slot{
    display:flex;align-items:center;justify-content:center;
    min-height:44px;border-radius:10px;
    border:1px solid var(--line-2);background:var(--surface);
    cursor:pointer;position:relative;
    transition:background .14s var(--ease),border-color .14s var(--ease);
}
.viz-slot input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;}
/* The hour is written into every cell but only shown in compact mode, where
   the row's <th> is hidden and the chip has to name itself. */
.viz-slot-h{display:none;font:700 13px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--text-2);}
.viz-slot:hover{border-color:var(--accent-border);background:var(--accent-50);}
.viz-slot.is-on{background:var(--accent);border-color:var(--accent);}
.viz-slot.is-on .viz-slot-h{color:#fff;}
.viz-slot.is-past{
    background:repeating-linear-gradient(45deg,var(--surface-2),var(--surface-2) 4px,transparent 4px,transparent 8px);
    border-color:transparent;cursor:default;
}
.viz-slot.is-past .viz-slot-h{color:var(--text-4);opacity:.7;}
/* At the cap. The box itself has to fade: the input is opacity:0 and the only
   other children are the hour and the visually-hidden label, so styling any of
   those shows the visitor nothing. is-off is set from JS with aria-disabled. */
.viz-slot.is-off{opacity:.38;cursor:not-allowed;}
.viz-slot.is-off:hover{border-color:var(--line-2);background:var(--surface);}
.viz-slot.is-off input{cursor:not-allowed;}
.viz-slot input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* ---------- compact: one day, three columns ----------
   display:contents dissolves each <tr> so all 77 <td> become children of one
   grid tbody; the 66 belonging to other days are display:none and are not
   grid items at all, so exactly 11 flow into 3 columns - 3+3+3+2, in DOM
   order, which is hour order. The markup and the <td> matrix are untouched,
   which is what keeps the week view's keyboard contract intact.

   is-otherday is set by JS in BOTH views; only this rule acts on it, which is
   why opening the overlay brings all seven days back with no JavaScript. */
[data-viz-view="compact"] .viz-grid{display:block;}
[data-viz-view="compact"] .viz-grid thead{display:none;}
[data-viz-view="compact"] .viz-grid tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
[data-viz-view="compact"] .viz-grid tr{display:contents;}
[data-viz-view="compact"] .viz-grid tbody th{display:none;}
[data-viz-view="compact"] .viz-grid td{padding:0;}
[data-viz-view="compact"] .viz-grid td.is-otherday{display:none;}
[data-viz-view="compact"] .viz-slot-h{display:block;}
[data-viz-view="compact"] .viz-slot{min-height:46px;}
[data-viz-view="compact"] .viz-grid-wrap{overflow:visible;}

/* ---------- the week overlay ----------
   .viz-sheet is promoted in place. Nothing is re-parented: the checkboxes
   must stay inside the <form> or the no-JS POST loses slots[]. */
.viz-sheet-head,.viz-sheet-foot{display:none;}
.viz-weekline{margin:14px 0 18px;}
.viz-week-btn{
    font:700 13px/1 var(--sans);color:var(--accent-text);cursor:pointer;
    background:none;border:0;padding:4px 0;
}
.viz-week-btn:hover{text-decoration:underline;}
.viz-week-btn[hidden]{display:none;}

.viz-backdrop{position:fixed;inset:0;z-index:90;background:rgba(13,27,51,.55);}
/* The `hidden` attribute only sets display:none in the UA stylesheet, so the
   author position:fixed above would beat it and the scrim would never lift.
   Same fault as the cookie banner; see .cookie-note[hidden]. */
.viz-backdrop[hidden]{display:none;}

[data-viz-view="week"] .viz-sheet{
    position:fixed;z-index:91;left:50%;top:5vh;transform:translateX(-50%);
    width:min(680px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    box-shadow:var(--shadow-lg);padding:22px 24px 20px;
}
[data-viz-view="week"] .viz-sheet-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    margin-bottom:14px;
}
[data-viz-view="week"] .viz-sheet-title{font-size:19px;font-weight:700;letter-spacing:-.02em;margin:0;}
.viz-sheet-x{
    flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line-3);
    background:var(--surface);color:var(--text-2);font-size:20px;line-height:1;cursor:pointer;
    transition:background .16s var(--ease),color .16s var(--ease);
}
.viz-sheet-x:hover{background:var(--surface-2);color:var(--text);}
[data-viz-view="week"] .viz-sheet-foot{display:flex;justify-content:flex-end;margin-top:16px;}
[data-viz-view="week"] .viz-sheet-done{min-width:140px;}

.viz-live{margin:10px 0 0;font-size:13.5px;color:var(--text-2);min-height:1.2em;}

/* ---------- one card for a viewing and an enquiry (2026-11-11) ----------
   "Aleg eu ora" / "Oricând" are two radios that are SIBLINGS of
   the grid, the week link and the note, so ~ does the switching and it works
   with JavaScript off. The inputs are .visually-hidden (position:absolute),
   so they take no grid cell; only the two labels sit in the two columns. */
/* Two columns when both labels fit on one line each (the 332px sidebar),
   stacked when they would not (a 360-390px phone) - never a label broken
   mid-word. */
.viz-when{border:0;margin:0;padding:0;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:6px;}
.viz-when > :not(.viz-mode){grid-column:1/-1;}
.viz-step{
    padding:0;margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--text-4);
}
.viz-mode{
    display:flex;align-items:center;justify-content:center;text-align:center;
    min-height:46px;padding:0 8px;border:1px solid var(--line-3);border-radius:var(--r-sm);white-space:nowrap;
    background:var(--surface);font-size:14px;font-weight:700;color:var(--text-2);
    cursor:pointer;user-select:none;
    transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease);
}
.viz-mode:hover{border-color:var(--accent-border);color:var(--text);}
.viz-mode-in:checked + .viz-mode{
    background:var(--accent-50);border-color:var(--accent);color:var(--accent-text);
    box-shadow:inset 0 0 0 1px var(--accent);
}
.viz-mode-in:focus-visible + .viz-mode{outline:3px solid var(--accent);outline-offset:2px;}
.viz-any-note{
    display:none;margin:8px 0 4px;padding:12px 14px;border-radius:var(--r-sm);
    background:var(--surface-2);font-size:14px;line-height:1.5;color:var(--text-2);
}
#viz-mode-any:checked ~ .viz-any-note{display:block;}
#viz-mode-any:checked ~ .viz-holder,
#viz-mode-any:checked ~ .viz-weekline{display:none;}

.viz-fields{display:grid;gap:12px;margin-top:4px;}
.viz-fields .field{gap:6px;}
.viz-req{color:var(--alert);}
.viz-opt{text-transform:none;letter-spacing:0;font-weight:500;}
.viz-note{min-height:84px;}
/* Red only after the visitor has interacted - never on a fresh page. */
.p-viz .general-input:user-invalid{border-color:var(--alert);}

.viz-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:18px;}
.viz-act{display:flex;flex-direction:column;gap:7px;min-width:0;}
.viz-act .btn{width:100%;}
.viz-act-note{margin:0;font-size:13px;line-height:1.45;color:var(--text-3);}
.btn-wa{background:#127A45;color:#fff;}          /* white on it: 5.39:1 */
.btn-wa:hover{background:#0B6E3A;color:#fff;box-shadow:0 14px 28px rgba(18,122,69,.28);}
.viz-status{margin:12px 0 0;font-size:14px;font-weight:600;color:var(--text-2);}
.viz-status:empty{display:none;}
.viz-status.is-err{color:var(--alert);}

/* The only breakpoint left, and it is about the buttons and the sheet's
   shape on a phone - never about the grid, which is compact at every width. */
@media (max-width:640px){
    /* Full-bleed on a phone. The week grid needs 7x44 + the hour column, so
       it scrolls inside .viz-grid-wrap; the targets do not shrink to fit. */
    [data-viz-view="week"] .viz-sheet{
        left:0;top:0;transform:none;width:100vw;max-width:none;
        height:100dvh;max-height:100dvh;border-radius:0;border:0;padding:18px 14px;
    }
}

/* =====================================================
   Favourites: the heart, the header pip, /salvate
   ===================================================== */
/* The heart sits bottom-right of the photo. Top-left is .card-badges and
   top-right is .card-count, both of which can be present at once. .card-addr
   owns the bottom strip but is pointer-events:none, so clicks land here.
   Positioned from the BOTTOM of .card-media-wrap, so it follows the photo when
   it shrinks from 274px to 240px rather than needing a second offset. */
.card-media-wrap{position:relative;}
.card-fav{
    position:absolute;bottom:14px;right:14px;z-index:4;
    width:36px;height:36px;border-radius:999px;display:grid;place-items:center;
    border:0;cursor:pointer;color:#fff;
    background:rgba(15,18,24,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
    transition:background .16s var(--ease),color .16s var(--ease),transform .16s var(--ease);
}
.card-fav:hover{background:rgba(15,18,24,.72);transform:scale(1.06);}
.card-fav.is-on{background:#fff;color:var(--accent);}
.card-fav.is-on svg path{fill:currentColor;}
.card-fav:focus-visible{outline:2px solid #fff;outline-offset:2px;}

/* The saved count, on the header link and the hero button. Hidden at zero by
   the [hidden] attribute - which needs the explicit rule below, because the
   author display:inline-grid beats the UA stylesheet's [hidden]{display:none}.
   Same fault as the cookie banner and the audio bar before it. */
.fav-pip{
    display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;
    margin-left:7px;border-radius:999px;background:var(--accent);color:#fff;
    font-size:11px;font-weight:700;line-height:1;vertical-align:1px;
}
.fav-pip[hidden]{display:none;}

.saved-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px;}
.saved-actions{display:flex;gap:10px;flex-wrap:wrap;}
.saved-empty{
    text-align:center;padding:54px 24px;border:1px dashed var(--line-strong);
    border-radius:14px;background:var(--surface);
}
.saved-empty h2{margin:0 0 8px;font-size:21px;}
.saved-empty p{margin:0 auto 18px;max-width:46ch;color:var(--text-2);}
.saved-gone{
    margin:22px 0 0;padding:14px 16px;border-radius:12px;
    background:var(--surface-2);border:1px solid var(--line);
    font-size:14px;color:var(--text-2);
}

/* ---------- comparison table ---------- */
.cmp-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface);}
.cmp{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;}
.cmp th,.cmp td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);}
.cmp tbody th{
    position:sticky;left:0;z-index:2;background:var(--surface-2);
    font-weight:600;color:var(--text-2);white-space:nowrap;
    min-width:148px;box-shadow:1px 0 0 var(--line);
}
.cmp thead th{
    position:sticky;top:0;z-index:3;background:var(--surface);
    border-bottom:2px solid var(--line-strong);min-width:210px;
}
.cmp thead th:first-child{left:0;z-index:4;background:var(--surface-2);}
.cmp tr:last-child th,.cmp tr:last-child td{border-bottom:0;}
.cmp-thumb{display:block;width:100%;height:118px;border-radius:10px;overflow:hidden;margin-bottom:9px;background:var(--surface-2);}
.cmp-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cmp-title{display:block;font-weight:600;line-height:1.3;margin-bottom:4px;}
.cmp-price{display:block;font-weight:700;font-size:16px;color:var(--accent-text);}
.cmp-drop{margin-top:8px;}
.cmp tr.is-hidden{display:none;}
.cmp-na{color:var(--text-3);}
.cmp-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px;}
.cmp-best{color:#186b3a;font-weight:700;white-space:nowrap;}

@media (max-width:640px){
    .saved-head{flex-direction:column;align-items:stretch;}
    .saved-actions .btn{flex:1 1 auto;}
}

/* Saved: the link in the header, the share row, the disabled compare link. */
.nav-saved{white-space:nowrap;}
.saved-share{margin-top:22px;max-width:560px;}
.share-row{display:flex;gap:10px;align-items:stretch;}
.share-row .general-input{flex:1 1 auto;min-width:0;}
.share-row .btn{flex:0 0 auto;}
.cmp-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;}
/* A link cannot be disabled, so it is made inert both ways: pointer-events
   stops the mouse, and aria-disabled plus the dimming tells everyone else.
   Leaving it live would send a visitor with one saved property to a page that
   can only say "nimic de comparat". */
.is-disabled{opacity:.45;pointer-events:none;}

/* =====================================================
   /vinde - seller funnel
   ===================================================== */
/* THE SAME GRADIENT AS THE HOMEPAGE HERO, stop for stop. It carried
   150deg navy -> navy-mid before, which is the homepage's first two stops
   without its accent stop, so the band read flatter and darker than the hero
   the visitor had just come from. (--navy-mid and --navy-2 are both #14315e.)

   The bottom padding is deliberately deep: .sell-trust hangs 52px up into it. */
.sell-hero{
    position:relative;overflow:hidden;
    background:linear-gradient(160deg,var(--navy) 0%,var(--navy-2) 55%,var(--accent) 130%);
    color:#fff;padding:26px 0 96px;text-align:center;
}
/* The breadcrumbs sit inside the hero now, so they need the gap the page
   background used to give them. */
.sell-hero .breadcrumbs-dark{margin-bottom:30px;position:relative;z-index:2;}
.sell-hero .breadcrumbs-dark ol{justify-content:center;}
.sell-hero-inner{position:relative;z-index:2;}
.sell-hero .eyebrow{color:var(--navy-light);}
.sell-hero h1{margin:14px 0 16px;font-size:clamp(28px,4vw,44px);line-height:1.15;color:#fff;}
.sell-hero-sub{margin:0 auto 28px;max-width:62ch;font-size:16.5px;line-height:1.65;color:rgba(255,255,255,.86);}
.sell-hero-cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;}
.sell-hero-blobs{position:absolute;inset:0;pointer-events:none;}
/* Toned down from .30/.26. At full strength, on a band with no photograph to
   justify them, they read as banner glare rather than as depth - the same
   reason .hero.has-photo switches its blobs off outright. */
.sell-hero-blobs span{
    position:absolute;width:420px;height:420px;border-radius:50%;filter:blur(96px);opacity:.20;
    background:var(--accent);
}
.sell-hero-blobs span:first-child{top:-190px;left:-120px;}
.sell-hero-blobs span:last-child{bottom:-230px;right:-90px;background:#1554bd;opacity:.18;}

/* ---------- the proof card ----------
   A constrained card lifted into the hero's foot, in the idiom /anunt already
   uses for its slider. This was a full-width band with an auto-fit grid, and
   once the portfolio-size tile was removed (2026-09-25) that left the two
   remaining stats 611px WIDE EACH on a 1425px viewport - measured - a 30px
   numeral centred in a 611px box of nothing. */
.sell-trust{position:relative;z-index:1;margin-top:-52px;}
.sell-trust-card{
    max-width:640px;margin:0 auto;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    background:var(--surface);border:1px solid var(--line);border-radius:14px;
    padding:24px 12px;box-shadow:0 14px 34px rgba(16,24,40,.10);
}
.sell-trust-item{display:flex;flex-direction:column;gap:4px;text-align:center;padding:2px 18px;}
.sell-trust-item+.sell-trust-item{border-left:1px solid var(--line);}
.sell-trust-num{font-size:30px;font-weight:800;color:var(--accent-text);line-height:1.1;}
.sell-trust-lab{font-size:13.5px;color:var(--text-2);line-height:1.45;}

/* THE 52px IS THE GAP EVERY HEADING ON THIS PAGE WAS MISSING.
   .sec-head-center carries margin-bottom:0 on purpose, because the gap under a
   centred heading is supplied by `.section .card-grid{margin-top:52px}`.
   /vinde has no card grid, so all three of its headings sat at a measured 0px
   from their content - the titles reported as touching. Every element that can
   follow a heading on this page now states the same 52px. */
.sell-steps{
    list-style:none;margin:52px 0 0;padding:0;position:relative;
    display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
}
.sell-steps li{
    position:relative;z-index:1;
    background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
    transition:box-shadow .18s var(--ease),transform .18s var(--ease),border-color .18s var(--ease);
}
.sell-steps li:hover{
    transform:translateY(-3px);border-color:var(--accent-border);
    box-shadow:0 14px 34px rgba(16,24,40,.10);
}
/* A hairline through the badge row, drawn BEHIND the cards so it shows only in
   the three gaps between them: four stages of one process rather than four
   boxes. Desktop only - at two columns and at one it would be a line to
   nowhere. 24px of card padding + half of the 34px badge = 41px. */
@media (min-width:1001px){
    .sell-steps::before{
        content:"";position:absolute;left:0;right:0;top:41px;height:1px;
        background:var(--line-strong);z-index:0;
    }
}
.sell-step-n{
    display:grid;place-items:center;width:34px;height:34px;border-radius:999px;
    background:var(--accent);color:#fff;font-weight:700;font-size:15px;margin-bottom:14px;
    box-shadow:0 0 0 4px var(--surface);
}
.sell-steps h3{margin:0 0 8px;font-size:16.5px;line-height:1.35;}
.sell-steps p{margin:0;font-size:14px;line-height:1.6;color:var(--text-2);}

/* ---------- the form ---------- */
.sell-form-card{
    background:var(--surface);border:1px solid var(--line);border-radius:14px;
    padding:32px;max-width:860px;margin:52px auto 0;box-shadow:0 8px 24px rgba(2,48,71,.07);
}
.sell-steps-bar{list-style:none;display:flex;gap:6px;margin:0 0 24px;padding:0;}
.sell-steps-bar[hidden]{display:none;}
.sell-steps-item{
    flex:1 1 0;display:flex;align-items:center;gap:8px;
    padding:9px 10px;border-radius:10px;background:var(--surface-2);
    font-size:13px;color:var(--text-3);min-width:0;
}
.sell-steps-n{
    flex:0 0 auto;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;
    background:var(--line-strong);color:#fff;font-size:12px;font-weight:700;
}
.sell-steps-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sell-steps-item.is-on{background:var(--accent-50);color:var(--accent-text);font-weight:600;}
.sell-steps-item.is-on .sell-steps-n{background:var(--accent);}
.sell-steps-item.is-done .sell-steps-n{background:var(--accent-text);}

.sell-step{border:0;padding:0;margin:0 0 6px;min-width:0;}
.sell-step[hidden]{display:none;}
.sell-step legend{font-size:19px;font-weight:700;margin-bottom:16px;padding:0;}
.sell-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
.sell-field{min-width:0;}
.sell-field[hidden]{display:none;}
.sell-field-wide{grid-column:1 / -1;}

.sell-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.sell-tile{position:relative;display:block;cursor:pointer;}
.sell-tile input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;}
.sell-tile span{
    display:grid;place-items:center;min-height:76px;padding:12px;text-align:center;
    border:1.5px solid var(--line);border-radius:12px;background:var(--surface);
    font-weight:600;font-size:14.5px;line-height:1.3;
    transition:border-color .16s var(--ease),background .16s var(--ease);
}
.sell-tile:hover span{border-color:var(--accent-border);background:var(--accent-50);}
.sell-tile input:checked + span{border-color:var(--accent);background:var(--accent-50);color:var(--accent-text);}
.sell-tile input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px;}

.sell-checks{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px;}
.sell-check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;
    border:1px solid var(--line);border-radius:999px;padding:9px 14px;font-size:14px;background:var(--surface);}
.sell-check:hover{border-color:var(--accent-border);}
.sell-consent{display:flex;gap:10px;align-items:flex-start;margin-top:18px;font-size:14px;line-height:1.55;}
.sell-consent input{margin-top:3px;flex:0 0 auto;}

.sell-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}
.sell-actions .btn{flex:1 1 auto;}
.sell-actions .btn[hidden]{display:none;}
.sell-promise{margin-top:14px;}
.sell-form-done{outline:none;}

.faq{max-width:860px;margin:52px auto 0;display:flex;flex-direction:column;gap:10px;}
.faq-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 18px;}
.faq-item summary{
    cursor:pointer;padding:16px 0;font-weight:600;font-size:15.5px;list-style:none;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";font-size:20px;color:var(--text-3);flex:0 0 auto;}
.faq-item[open] summary::after{content:"\2212";}
.faq-item p{margin:0 0 16px;font-size:14.5px;line-height:1.7;color:var(--text-2);}

.sell-dict{
    display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;
    background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:24px 26px;
}
.sell-dict h2{margin:0 0 8px;font-size:19px;}
.sell-dict p{margin:0;color:var(--text-2);font-size:14.5px;}

/* =====================================================
   Market context - NOT an estimate, and must never look like one
   ===================================================== */
.mkt{max-width:960px;margin:0 auto;}
.mkt-eyebrow{
    margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.07em;
    text-transform:uppercase;color:var(--accent-text);
}
.mkt h2{margin:0 0 6px;font-size:clamp(22px,3vw,30px);}
.mkt-lede{margin:0 0 22px;color:var(--text-2);font-size:15.5px;}
.mkt-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px;}
.mkt-stat{
    background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;
    display:flex;flex-direction:column;gap:5px;
}
.mkt-num{font-size:26px;font-weight:800;color:var(--accent-text);line-height:1.15;}
.mkt-lab{font-size:13px;color:var(--text-2);line-height:1.4;}
.mkt-band{margin:0 0 6px;font-size:16px;line-height:1.6;}
.mkt-h3{margin:34px 0 0;font-size:19px;}
/* THE COMPARABLE LISTINGS HAD NO GRID AT ALL. The markup said
   `class="grid grid-properties"`, and NEITHER class is defined by any
   stylesheet on this site - the real one has been `.card-grid` since the cards
   were rebuilt on 2026-08-30. So six cards fell back to block layout: full
   container width, stacked, zero gap, which is exactly "touching and really
   wide". /salvate and /lista/{token} carried the same dead class and the same
   bug. Two columns rather than three because .mkt is a 960px reading column -
   three would put a card designed at ~370px into a 304px track. */
.mkt .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px;}
/* The methodology and consultant lines are small but never faint: they are the
   difference between context and a valuation. */
.mkt-note{margin:14px 0 0;font-size:13px;line-height:1.6;color:var(--text-2);}
.mkt-note-strong{font-weight:600;color:var(--text);}
/* The same 960px column as .mkt. It sat in the bare .container, so the
   buttons started 108px to the left of everything above them. */
.mkt-back{display:flex;gap:10px;flex-wrap:wrap;max-width:960px;margin:32px auto 0;}

@media (max-width:1000px){
    .sell-steps{grid-template-columns:repeat(2,1fr);margin-top:38px;}
    .sell-tiles{grid-template-columns:repeat(2,1fr);}
    .sell-form-card,.faq{margin-top:38px;}
}
@media (max-width:640px){
    .sell-hero{padding:20px 0 78px;}
    .sell-hero-cta .btn{flex:1 1 100%;}
    .sell-trust{margin-top:-46px;}
    .sell-trust-card{grid-template-columns:1fr;padding:20px 8px;}
    .sell-trust-item+.sell-trust-item{
        border-left:0;border-top:1px solid var(--line);margin-top:18px;padding-top:18px;
    }
    .sell-steps{grid-template-columns:1fr;margin-top:28px;}
    .sell-grid{grid-template-columns:1fr;}
    .sell-form-card{padding:20px 16px;margin-top:28px;}
    .faq{margin-top:28px;}
    .mkt-stats{grid-template-columns:1fr;}
    .mkt .card-grid{grid-template-columns:1fr;gap:16px;}
    .sell-actions .btn{flex:1 1 100%;}
    /* The bar keeps four bullets on one line by dropping the words. */
    .sell-steps-t{display:none;}
    .sell-steps-item{justify-content:center;padding:9px 6px;}
    .sell-dict{flex-direction:column;align-items:stretch;}
}

/* =====================================================
   Saved searches (/oferte) and /alerte/{token}
   ===================================================== */
.save-search{
    background:var(--surface);border:1px solid var(--line);border-radius:14px;
    padding:24px 26px;margin:0 0 30px;box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.save-search[hidden]{display:none;}
.save-search-head h2{margin:0 0 6px;font-size:19px;}
.save-search-head p{margin:0 0 18px;color:var(--text-2);font-size:14.5px;line-height:1.6;}
.save-search-row{display:grid;grid-template-columns:2fr 1.2fr auto;gap:14px;align-items:end;}
.save-search-field{min-width:0;}
.save-search-submit .btn{width:100%;}
.save-search-done{text-align:center;padding:26px 18px;}
.save-search-done h2{margin:0 0 8px;font-size:20px;}
.save-search-done p{margin:0;color:var(--text-2);}

.alert-card{
    max-width:640px;margin:0 auto;background:var(--surface);
    border:1px solid var(--line);border-radius:14px;padding:32px;
    box-shadow:0 8px 24px rgba(2,48,71,.07);
}
.alert-card h1{margin:0 0 18px;font-size:clamp(22px,3vw,30px);}
.alert-banner{margin:0 0 20px;}
.alert-banner h1{margin:0 0 8px;}
.alert-banner p{margin:0 0 14px;color:var(--text-2);line-height:1.65;}
.alert-banner-ok h1{color:#166534;}
.alert-note{margin:0 0 18px;padding:12px 14px;border-radius:10px;
    background:var(--surface-2);border:1px solid var(--line);font-size:14px;color:var(--text-2);}
.alert-kv{width:100%;margin:0 0 22px;}
.alert-kv th{text-align:left;padding:8px 14px 8px 0;color:var(--text-2);font-weight:500;
    font-size:13.5px;white-space:nowrap;vertical-align:top;}
.alert-kv td{padding:8px 0;font-size:14.5px;}
.alert-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;}
.alert-actions .btn{flex:1 1 auto;}
/* Destructive, and it says so - but it is not made scary, because the person
   pressing it is trying to stop email from us and must be able to. */
.alert-danger{color:#b42318;border-color:#f0c2bd;}
.alert-danger:hover{background:#fef3f2;border-color:#e0a7a1;}

/* =====================================================
   /zona/{slug} and /preturi-imobiliare-constanta
   ===================================================== */
.zone-head{margin-bottom:30px;}
.zone-head h1{margin:0 0 10px;font-size:clamp(25px,3.6vw,38px);line-height:1.15;}
.zone-head .lede{margin:0 0 18px;color:var(--text-2);font-size:16px;}
.zone-cta{display:flex;gap:10px;flex-wrap:wrap;}

.zone-prices{margin-bottom:40px;}
.zone-price-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;}
.zone-price-card{
    background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;
}
.zone-price-cat{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
    color:var(--text-3);margin-bottom:8px;}
.zone-price-median{font-size:25px;font-weight:800;color:var(--accent-text);line-height:1.15;}
.zone-price-band{margin-top:6px;font-size:13.5px;color:var(--text-2);line-height:1.5;}
.zone-price-n{margin-top:8px;font-size:12.5px;color:var(--text-3);line-height:1.5;}
.zone-thin{margin:16px 0 0;font-size:13.5px;color:var(--text-2);}
.zone-trend-soon{
    margin:18px 0 0;padding:14px 16px;border-radius:12px;
    background:var(--surface-2);border:1px solid var(--line);
    font-size:13.5px;line-height:1.65;color:var(--text-2);
}
.zone-more{margin-top:22px;}
.zone-chips{display:flex;flex-wrap:wrap;gap:9px;}
.zone-chip{
    display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;
    background:var(--surface);border:1px solid var(--line);font-size:14px;
    text-decoration:none;color:var(--text);
}
.zone-chip:hover{border-color:var(--accent-border);background:var(--accent-50);}
.zone-chip b{font-size:12px;color:var(--text-3);font-weight:600;}
.section-inner{margin-top:44px;}

.idx-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 28px;}
.idx-tabs a{
    display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:999px;
    background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600;
    text-decoration:none;color:var(--text);
}
.idx-tabs a:hover{border-color:var(--accent-border);background:var(--accent-50);}
.idx-tabs em{font-style:normal;font-size:12px;color:var(--text-3);font-weight:600;}
.idx-block{margin-bottom:40px;}
.idx-table{width:100%;border-collapse:collapse;font-size:14.5px;background:var(--surface);}
.idx-table th,.idx-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line);}
.idx-table thead th{
    font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
    color:var(--text-3);border-bottom:2px solid var(--line-strong);white-space:nowrap;
}
.idx-table tbody th{font-weight:600;}
.idx-table tbody th a{color:var(--text);text-decoration:none;}
.idx-table tbody th a:hover{color:var(--accent-text);text-decoration:underline;}
.idx-table tr:last-child th,.idx-table tr:last-child td{border-bottom:0;}
.idx-median{font-weight:700;color:var(--accent-text);white-space:nowrap;}
.idx-band{color:var(--text-2);white-space:nowrap;}
.idx-n{color:var(--text-3);}

/* ---------- the trend chart ---------- */
.trend{margin:24px 0 0;padding:20px;background:var(--surface);
    border:1px solid var(--line);border-radius:14px;}
.trend-cap{display:flex;align-items:baseline;justify-content:space-between;gap:14px;
    flex-wrap:wrap;margin-bottom:14px;}
.trend-title{font-weight:600;font-size:15.5px;}
.trend-delta{font-size:14px;font-weight:700;}
.trend-delta.is-up{color:#166534;}
.trend-delta.is-down{color:#b42318;}
/* color, not fill: the gridlines and axis labels are drawn with currentColor
   so they follow the card's text colour rather than being hard-coded grey. */
.trend-svg{display:block;width:100%;height:auto;color:var(--text);}

@media (max-width:760px){
    .save-search-row{grid-template-columns:1fr;}
    .zone-cta .btn{flex:1 1 100%;}
    .alert-card{padding:22px 18px;}
    .alert-actions .btn{flex:1 1 100%;}
}

/* =====================================================
   "Caută după tip" - the homepage portfolio module
   =====================================================
   Geometry, durations and easings are the reference design's, read out of it
   rather than approximated; colours go through the :root tokens wherever the
   two agree, so the section follows the palette rather than pinning its own.

   NOTE the card class is .pf-card, never .card. site.js:400 collects
   '.section .card' into the reveal IntersectionObserver and sets opacity:0 on
   it; a card injected later is never observed, so it would stay invisible. */
.pf-head{
    display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
    gap:16px;margin-bottom:22px;
}
.pf-head h2{margin:4px 0 0;font-size:clamp(24px,2.6vw,30px);font-weight:800;letter-spacing:-.03em;}
.pf-head-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.pf-head-all{font-size:14px;font-weight:700;white-space:nowrap;}

/* ---------- the mode pill ---------- */
.pf-modes{
    position:relative;display:flex;padding:4px;background:var(--surface);
    border:1px solid var(--line-3);border-radius:var(--r-pill);
    box-shadow:0 6px 18px rgba(16,24,40,.05);
}
.pf-modes-pill{
    position:absolute;top:4px;bottom:4px;left:4px;width:104px;border-radius:var(--r-pill);
    background:var(--accent-text);box-shadow:0 6px 16px rgba(29,86,201,.35);
    transition:transform .45s cubic-bezier(.5,.1,.2,1.2);
}
.pf-mode{
    position:relative;z-index:1;width:104px;padding:8px 0;text-align:center;
    border-radius:var(--r-pill);font-size:13px;font-weight:700;
    color:var(--text-2);transition:color .3s var(--ease);
}
.pf-mode.is-active{color:#fff;}
.pf-mode:hover{color:var(--accent-text);}
.pf-mode.is-active:hover{color:#fff;}

/* ---------- the two columns ---------- */
.pf-body{display:flex;flex-wrap:wrap;gap:22px;align-items:stretch;}
.pf-side{
    flex:1 0 320px;max-width:340px;min-width:0;box-sizing:border-box;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    padding:18px;box-shadow:0 20px 50px rgba(16,24,40,.06);
    display:flex;flex-direction:column;gap:18px;
}
.pf-panel{
    flex:999 1 560px;min-width:0;box-sizing:border-box;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    padding:18px 20px 20px;box-shadow:0 20px 50px rgba(16,24,40,.06);
    display:flex;flex-direction:column;
    transition:opacity .18s var(--ease);
}
.pf.is-loading .pf-panel{opacity:.55;}
.pf-side-label,.pf-stat-k{
    font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text-4);
}
.pf-side-label{margin-bottom:10px;}

/* ---------- category rows ---------- */
.pf-cats{display:flex;flex-direction:column;gap:10px;}
.pf-cat{
    position:relative;display:block;height:76px;border-radius:14px;overflow:hidden;
    background:var(--surface-2);color:var(--text);
    transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease);
}
.pf-cat:hover{transform:translateX(3px);}
.pf-cat.is-active{background:var(--accent-50);box-shadow:0 10px 24px rgba(29,86,201,.16);}
.pf-cat-media{position:absolute;top:0;right:0;width:62%;height:100%;overflow:hidden;}
.pf-cat-media img{
    width:100%;height:100%;object-fit:cover;display:block;
    transition:transform .8s cubic-bezier(.2,.7,.2,1);
}
.pf-cat:hover .pf-cat-media img{transform:scale(1.08);}
/* The fade is what makes the text readable over the photograph; it has to
   track the row's background, so it is declared twice rather than using a
   variable the active state would have to override anyway. */
.pf-cat-fade{
    position:absolute;inset:0;pointer-events:none;transition:background .35s var(--ease);
    background:linear-gradient(90deg,var(--surface-2) 38%,rgba(248,250,252,.8) 58%,rgba(248,250,252,0) 100%);
}
.pf-cat.is-active .pf-cat-fade{
    background:linear-gradient(90deg,var(--accent-50) 38%,rgba(238,244,255,.75) 58%,rgba(238,244,255,0) 100%);
}
.pf-cat-glow{
    position:absolute;inset:0;pointer-events:none;
    background:radial-gradient(200px circle at var(--mx,50%) var(--my,50%),rgba(29,86,201,.10),transparent 60%);
    opacity:var(--glow,0);transition:opacity .3s var(--ease);
}
.pf-cat-in{
    position:relative;height:100%;box-sizing:border-box;padding:0 14px 0 16px;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.pf-cat-name{display:block;font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text);}
.pf-cat-n{display:block;font-size:12px;font-weight:600;color:var(--text-2);margin-top:2px;}
.pf-cat-n b{font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;}
.pf-cat.is-active .pf-cat-n b{color:var(--accent-text);}
.pf-cat-go{
    flex:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;
    justify-content:center;font-size:14px;font-weight:700;background:var(--surface);color:var(--text);
    box-shadow:0 2px 8px rgba(16,24,40,.15);
    transition:transform .35s var(--ease),background .3s var(--ease),color .3s var(--ease);
}
.pf-cat.is-active .pf-cat-go{background:var(--accent-text);color:#fff;transform:rotate(90deg);}

/* ---------- stats + CTA ---------- */
.pf-side-foot{
    margin-top:auto;display:flex;flex-direction:column;gap:14px;
    padding-top:16px;border-top:1px solid var(--line-2);
}
.pf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.pf-stat{display:flex;flex-direction:column;gap:2px;min-width:0;}
.pf-stat-v{
    font-size:15px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;
}
.pf-cta{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    font-size:14px;font-weight:700;color:#fff;background:var(--accent-text);
    padding:13px 14px 13px 18px;border-radius:14px;
    box-shadow:0 10px 24px rgba(29,86,201,.28);
    transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease);
}
.pf-cta:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(29,86,201,.38);background:#1a4db5;color:#fff;}
.pf-cta-go{
    flex:none;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.18);
    display:flex;align-items:center;justify-content:center;
}

/* ---------- panel head ---------- */
.pf-panel-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;}
.pf-panel-titles{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0;}
.pf-panel-titles h3{margin:0;font-size:19px;font-weight:800;letter-spacing:-.02em;}
.pf-panel-count{font-size:13px;font-weight:600;color:var(--text-4);white-space:nowrap;}
.pf-sort{display:flex;align-items:center;gap:8px;}
.pf-sort-label{font-size:12px;font-weight:600;color:var(--text-4);}
.pf-sort-group{display:flex;padding:3px;background:var(--surface-2);border-radius:10px;gap:2px;}
.pf-sort-btn{
    padding:6px 11px;border-radius:8px;font-size:12px;font-weight:700;
    color:var(--text-3);transition:background .2s var(--ease),color .2s var(--ease),box-shadow .2s var(--ease);
}
.pf-sort-btn.is-active{background:var(--surface);color:var(--text);box-shadow:0 2px 6px rgba(16,24,40,.1);}

/* ---------- zone chips ---------- */
.pf-chips{
    display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;
    margin-top:12px;padding-bottom:14px;border-bottom:1px solid var(--line-2);
}
.pf-chips-row{display:flex;flex-wrap:wrap;gap:6px;min-width:0;}
.pf-chip{
    padding:6px 12px;border-radius:var(--r-pill);font-size:12px;font-weight:700;
    background:var(--surface);color:var(--text-2);border:1px solid var(--line-3);
    transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease);
}
.pf-chip:hover{border-color:var(--accent-border);color:var(--accent-text);}
.pf-chip.is-active{background:var(--text);color:#fff;border-color:var(--text);}
.pf-chips-all{font-size:13px;font-weight:700;white-space:nowrap;}
.pf-empty{margin:18px 0 0;font-size:14.5px;color:var(--text-2);line-height:1.7;}

/* ---------- the compact card ---------- */
.pf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-top:14px;}
.pf-card{
    border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);
    transition:box-shadow .25s var(--ease),transform .25s var(--ease),border-color .25s var(--ease);
}
.pf-card:hover{box-shadow:0 14px 30px rgba(16,24,40,.12);transform:translateY(-3px);border-color:var(--accent-border);}
.pf-card-media{position:relative;height:112px;overflow:hidden;background:var(--surface-2);}
.pf-card-media picture,.pf-card-media img{width:100%;height:100%;display:block;}
.pf-card-media img{object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1);}
.pf-card:hover .pf-card-media img{transform:scale(1.07);}
.pf-card-media .ph-img{object-fit:contain;padding:18%;opacity:.5;}
.pf-card-badges{position:absolute;top:10px;left:10px;display:flex;gap:5px;z-index:2;}
.pf-badge{font-size:11px;font-weight:700;padding:4px 9px;border-radius:var(--r-pill);white-space:nowrap;}
.pf-badge-mode{background:var(--accent-text);color:#fff;}
.pf-badge-nou{background:rgba(255,255,255,.92);color:var(--text);}
.pf-badge-redus{background:#166534;color:#fff;}
.pf-heart{
    position:absolute;top:9px;right:9px;z-index:2;width:30px;height:30px;border-radius:50%;
    border:0;cursor:pointer;display:grid;place-items:center;
    background:rgba(255,255,255,.92);color:var(--text);
    transition:transform .2s var(--ease),background .2s var(--ease),color .2s var(--ease);
}
.pf-heart:hover{transform:scale(1.1);}
.pf-heart.is-on{background:var(--accent-strong);color:#fff;}
.pf-heart.is-on svg path{fill:currentColor;}
.pf-card-body{padding:11px 13px 12px;}
.pf-card-place,.pf-card-title,.pf-card-specs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pf-card-place{font-size:12px;font-weight:600;color:var(--text-4);}
.pf-card-title{margin:3px 0 0;font-size:15px;font-weight:700;letter-spacing:-.01em;}
.pf-card-title a{color:var(--text);}
.pf-card-title a:hover{color:var(--accent-text);}
.pf-card-specs{font-size:12px;font-weight:600;color:var(--text-2);margin-top:6px;}
.pf-card-foot{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    margin-top:10px;padding-top:10px;border-top:1px solid var(--line-2);
}
.pf-card-price{font-size:16px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;}
.pf-card-per{font-size:12px;font-weight:400;color:var(--text-2);}
.pf-card-ask{font-size:13.5px;font-weight:600;color:var(--text-2);}
.pf-card-go{
    flex:none;width:28px;height:28px;border-radius:50%;background:var(--accent-50);
    display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;
    color:var(--accent-text);transition:background .2s var(--ease),color .2s var(--ease);
}
.pf-card-go:hover{background:var(--accent-text);color:#fff;}

@media (max-width:900px){
    /* The left card becomes a full-width band above the panel. Its rows stay
       76px, so four of them plus the stats is a lot of height before the first
       listing - the category rows go two-up instead of stacking. */
    .pf-side{max-width:none;flex:1 1 100%;}
    .pf-cats{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
    .pf-side-foot{padding-top:14px;}
}
@media (max-width:640px){
    .pf-head{flex-direction:column;align-items:stretch;}
    .pf-head-tools{justify-content:space-between;}
    .pf-cats{grid-template-columns:1fr;}
    .pf-panel{padding:16px 14px 18px;}
    .pf-panel-head{align-items:flex-start;}
    .pf-sort{width:100%;justify-content:space-between;}
    .pf-grid{grid-template-columns:1fr 1fr;gap:10px;}
    .pf-card-media{height:96px;}
    /* Six zone chips wrap to three rows at 390px and push the first listing
       another 70px down for nothing. One scrolling row instead: the order is
       unchanged, nothing is hidden, and the negative margin lets it bleed to
       the panel's edge so the cut-off chip reads as scrollable. */
    .pf-chips-row{
        flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
        -webkit-overflow-scrolling:touch;margin:0 -14px;padding:0 14px 2px;
    }
    .pf-chips-row::-webkit-scrollbar{display:none;}
    .pf-chip{flex:none;}
}

@media (max-width:640px){
    .nl-echo{padding:14px 42px 14px 14px;}
}
