/* ==========================================================================
   „Új design" — SZAKÉRTŐK listája (/uj/szakertok/…)
   Sötét hero statisztikával · típus-fülek · kiemelt szakértők ·
   kereső + rendezés · álló portré-kártyák (telefonon 2 oszlop).
   ========================================================================== */

/* ---------- Hero ---------- */
.exh {
  position: relative; overflow: hidden; color: #fff; padding: var(--s-6) 0 var(--s-8);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(196 64 26 / .45), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgb(14 159 142 / .35), transparent 60%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900));
}
.breadcrumb--light ol { color: rgb(255 255 255 / .6); }
.breadcrumb--light a { color: rgb(255 255 255 / .8); }
.breadcrumb--light [aria-current] { color: #fff; }
.breadcrumb--light li + li::before { color: rgb(255 255 255 / .35); }
.exh__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); align-items: end; }
.exh__eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px; border-radius: var(--r-full); background: rgb(255 255 255 / .1); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-200); }
.exh__eyebrow .ic { width: 16px; height: 16px; }
.exh__title { margin-top: var(--s-4); font-size: var(--fs-5xl); font-weight: 700; letter-spacing: -0.03em; }
.exh__lead { margin-top: var(--s-3); max-width: 38rem; color: rgb(255 255 255 / .78); font-size: var(--fs-lg); }
.exh__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.exh__stats li { display: grid; gap: 2px; padding: var(--s-4); border-radius: var(--r-xl); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(6px); }
.exh__stats strong { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.exh__stats span { font-size: var(--fs-xs); color: rgb(255 255 255 / .7); overflow-wrap: anywhere; hyphens: auto; line-height: 1.3; }
.exh__tabs { display: flex; gap: var(--s-2); margin-top: var(--s-8); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.exh__tabs::-webkit-scrollbar { display: none; }
.exh__tab { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; min-height: 44px; padding: 0 18px; border-radius: var(--r-full); color: rgb(255 255 255 / .85); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.exh__tab:hover { background: rgb(255 255 255 / .16); color: #fff; text-decoration: none; }
.exh__tab:active { transform: scale(.97); }
.exh__tab[aria-current="page"] { background: #fff; color: var(--brand-900); border-color: #fff; }
.exh__tab[aria-current="page"] .ic { color: var(--brand-700); }
.exh :focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .exh__grid { grid-template-columns: 1fr; }
  .exh__title { font-size: var(--fs-4xl); }
}
@media (max-width: 520px) {
  .exh__stats { gap: var(--s-2); }
  .exh__stats li { padding: var(--s-3); }
  .exh__stats strong { font-size: var(--fs-2xl); }
}

.ex-section-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.ex-section-title .ic { color: var(--brand-700); }

/* ---------- Kiemelt szakértők ---------- */
.ex-top { margin-bottom: var(--s-12); }
.ex-top__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ex-top__card {
  position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--s-4);
  padding: var(--s-4); border-radius: var(--r-2xl); background: linear-gradient(135deg, #fff, var(--brand-50)); border: 1px solid var(--brand-100);
  transition: transform var(--t) var(--ease), box-shadow var(--t);
}
.ex-top__card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.ex-top__card:active { transform: translateY(-1px) scale(.99); }
.ex-top__photo { position: relative; width: 96px; height: 120px; border-radius: 20px; overflow: hidden; background: var(--gray-100); }
.ex-top__img { width: 100%; height: 100%; object-fit: cover; }
.ex-top__rank { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-600); color: #fff; font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--sh-sm); }
.ex-top__body { min-width: 0; display: grid; gap: 2px; }
.ex-top__name { font-size: var(--fs-base); line-height: 1.3; }
.ex-top__name a { color: var(--c-text); }
.ex-top__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ex-top__name a:hover { text-decoration: none; }
.ex-top__card:has(a:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.ex-top__name a:focus-visible { outline: none; }
.ex-top__title { font-size: var(--fs-xs); color: var(--c-text-subtle); }
.ex-top__stat { margin-top: 4px; font-size: var(--fs-sm); color: var(--gray-700); }
.ex-top__stat strong { color: var(--brand-800); font-size: var(--fs-lg); }
.ex-top__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand-700); box-shadow: var(--sh-sm); transition: transform var(--t); }
.ex-top__card:hover .ex-top__go { transform: translateX(3px); }
@media (max-width: 1023px) {
  /* telefonon/tableten vízszintesen lapozható sor */
  .ex-top__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(320px, 86%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; }
  .ex-top__list::-webkit-scrollbar { display: none; }
  .ex-top__card { scroll-snap-align: start; }
}

/* ---------- Kereső + rendezés ---------- */
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-6); }
.ex-search { position: relative; flex: 1 1 280px; max-width: 440px; }
.ex-search > .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.ex-search .input { padding-left: 46px; padding-right: 46px; border-radius: var(--r-full); min-height: 48px; }
.ex-search .input::-webkit-search-cancel-button { display: none; }
.ex-search__clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.ex-count { margin-left: auto; font-size: var(--fs-sm); color: var(--c-text-muted); }
.ex-count strong { color: var(--gray-900); }

/* ---------- Álló portré-kártyák ---------- */
.ex-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ex-card { position: relative; display: grid; border-radius: var(--r-2xl); background: #fff; border: 1px solid var(--c-border); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t); }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); border-color: var(--gray-300); }
.ex-card:active { transform: translateY(-2px) scale(.99); }
.ex-card:has(.ex-card__link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.ex-card__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
/* váz-töltés, amíg a kép megérkezik */
.ex-card__photo, .ex-top__photo { background: linear-gradient(110deg, var(--gray-100) 30%, var(--gray-50) 50%, var(--gray-100) 70%) 0 0 / 300% 100%; animation: ex-shimmer 1.4s linear infinite; }
@keyframes ex-shimmer { to { background-position: -150% 0; } }
.ex-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .7s var(--ease), opacity .35s; }
.ex-card:hover .ex-card__img { transform: scale(1.05); }
.ex-initials { display: grid !important; place-items: center; width: 100%; height: 100%; background: linear-gradient(150deg, var(--brand-500), var(--brand-900)); color: #fff; font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: .02em; }
.ex-top__photo .ex-initials { font-size: var(--fs-3xl); }
.ex-card__overlay { position: absolute; inset: auto 0 0; padding: var(--s-10) var(--s-4) var(--s-4); background: linear-gradient(to top, rgb(3 44 40 / .92), rgb(3 44 40 / .55) 55%, transparent); color: #fff; }
.ex-card__name { font-size: var(--fs-lg); line-height: 1.25; text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.ex-card__link { color: #fff; }
.ex-card__link:hover { text-decoration: none; }
.ex-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ex-card__link:focus-visible { outline: none; }
.ex-card__title { font-size: var(--fs-xs); color: rgb(255 255 255 / .82); margin-top: 2px; }
.ex-card__badge { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-full); background: rgb(255 255 255 / .92); color: var(--brand-900); font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--sh-sm); }
.ex-card__badge .ic { width: 14px; height: 14px; color: var(--brand-700); }
.ex-card__actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-3); }
.ex-card__actions > :only-child { grid-column: 1 / -1; }
.ex-card__actions .btn { width: 100%; padding: 0 var(--s-3); }
.ex-card__actions .phone-reveal { width: 100%; }
.ex-card__actions .phone-reveal--compact.is-revealed { grid-column: 1 / -1; order: -1; }
@media (max-width: 640px) {
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .ex-card { border-radius: var(--r-xl); }
  .ex-card__overlay { padding: var(--s-8) var(--s-3) var(--s-3); }
  .ex-card__name { font-size: var(--fs-sm); }
  .ex-card__actions { grid-template-columns: 1fr; padding: var(--s-2); }
  .ex-card__profile { display: none; }
  .ex-toolbar .segmented { width: 100%; }
  .ex-count { margin-left: 0; }
}
.ex-card__photo:has(img.is-loaded), .ex-card__photo:has(.ex-initials), .ex-top__photo:has(img.is-loaded), .ex-top__photo:has(.ex-initials) { animation: none; background: var(--gray-100); }

/* ---------- Szakértő adatlapja: borító + portré ---------- */
.xph { position: relative; overflow: hidden; color: #fff; background: var(--brand-950); }
.xph__cover { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgb(3 44 40 / .96) 0%, rgb(3 44 40 / .85) 45%, rgb(3 44 40 / .55) 100%),
  var(--xph-photo, none) center 30% / cover no-repeat, linear-gradient(135deg, var(--brand-900), var(--brand-950));
  filter: saturate(1.1); }
.xph__cover::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.xph__inner { position: relative; z-index: 1; padding-top: var(--s-6); padding-bottom: var(--s-10); }
.xph__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-10); align-items: end; margin-top: var(--s-4); }
.xph__portrait { aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--brand-800); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6), 0 0 0 6px rgb(255 255 255 / .12); }
.xph__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.xph__name { margin-top: var(--s-4); font-size: var(--fs-5xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; overflow-wrap: anywhere; }
.xph__stats { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.xph__stats li { display: grid; min-width: 104px; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .14); }
.xph__stats strong { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.xph__stats span { font-size: var(--fs-xs); color: rgb(255 255 255 / .72); }
.xph__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.phone-reveal--hero .btn { min-height: 52px; padding: 0 var(--s-6); font-size: var(--fs-base); border-radius: var(--r-full); background: rgb(255 255 255 / .14); color: #fff; }
.phone-reveal--hero .btn:hover { background: rgb(255 255 255 / .24); }
.phone-reveal--hero:not(.is-revealed) .phone-reveal__num { display: none; }
.phone-reveal--hero.is-revealed { min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-full); background: #fff; font-size: var(--fs-lg); }
@media (max-width: 760px) {
  .xph__grid { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
  .xph__portrait { border-radius: 22px; }
  .xph__name { font-size: var(--fs-3xl); margin-top: var(--s-2); }
  .xph__stats, .xph__cta { grid-column: 1 / -1; }
  .xph__text { display: contents; }
  .xph__text > .exh__eyebrow, .xph__name { grid-column: 2; }
  .xph__cta .btn, .xph__cta .phone-reveal { flex: 1 1 100%; }
  .xph__cta .phone-reveal .btn { width: 100%; justify-content: center; }
  .xph__stats li { min-width: 0; flex: 1 1 0; padding: var(--s-2) var(--s-3); }
}

/* ---------- Szakértő hirdetéseinek szűrése ---------- */
.xf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); align-items: end; padding: var(--s-4); border-radius: var(--r-xl); background: var(--gray-50); border: 1px solid var(--c-border); }
.xf__status { grid-column: 1 / -1; justify-self: start; }
.xf__price { grid-column: span 2; }
.xf__field { display: grid; gap: 4px; min-width: 0; }
.xf__field > span { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-subtle); letter-spacing: .02em; }
.xf .input { min-height: 42px; padding-inline: var(--s-3); font-size: var(--fs-sm); }
.xf select.input { padding-right: 34px; background-position: right 10px center; }
.xf__price .range-row { gap: 4px; }
.xf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-4) 0; }
.xf-bar__count { font-size: var(--fs-sm); color: var(--c-text-muted); }
.xf-bar__count strong { color: var(--gray-900); font-size: var(--fs-base); }
.xf-bar__map { margin-left: auto; }
@media (max-width: 560px) { .xf { grid-template-columns: 1fr 1fr; } .xf__price { grid-column: 1 / -1; } .xf__status { width: 100%; } }

/* Német nézet: a magyar „rólam" szöveg jelölése */
.xp-about__orig { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2); padding: 2px 10px; border-radius: var(--r-full); background: var(--gray-100); color: var(--c-text-subtle); font-size: var(--fs-xs); font-weight: 600; }
.xp-about__orig .ic { width: 14px; height: 14px; }
