/* =====================================================================================================================================
   v170 PROJEKTEK, ÚJ VÁLTOZAT — a felépítés a src/projektek/torzs.html fejlécében. Először az ország (az Ingatlanok fekvő csempéi, több sorban, bármennyi országgal), utána csak az ő projektjei. Fehér szakaszok; a kép fölött szöveg nincs;
   a kártya a kezdőlap projekt-kártyájának nyelve (.fc-loc, .op-spec, .go); betűk: betuk.css, közök: terkozok.css; rámutatás csak egérrel, széles képernyőn, hoverek.css; minden átmenet lágy (≥ .6 s, szinusz).
   ===================================================================================================================================== */
#pj-fent { height: 1px; margin-bottom: -1px; }
.flag { flex: none; width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

/* ---------------------------------------------------------------- KÖZÖS: rétegezett kép, szövegcsere */
.pj-reteg { position: relative; display: block; overflow: hidden; background: #e9e4dc; }
.pj-reteg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--p, 50% 50%); opacity: 0; transform: scale(var(--z, 1)); transition: opacity 1.8s var(--g-ease), transform 1.6s var(--g-ease); }
.pj-reteg img.on { opacity: 1; }
.pj-lep-i img.on { transform: scale(1.07); transition: opacity 1.8s var(--g-ease), transform 12s var(--g-ease); }
.pj-cs { display: block; transition: opacity .9s var(--g-ease), transform .9s var(--g-ease); }
.pj-cs.ki { opacity: 0; transform: translateY(-6px); transition-duration: .5s; }
.pj-cs.be { opacity: 0; transform: translateY(8px); transition: none; }

/* a felirat: a kezdőlap projekt-kártyája */
.pj-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pj-tb { display: block; min-width: 0; }
.pj-tb .fc-loc span { min-width: 0; }
.pj-n { display: block; margin-top: 8px; font: 400 var(--fs-c5)/1.3 var(--font-display); letter-spacing: -.005em; color: var(--g-ink); text-wrap: pretty; }
.pj-t .go i { width: 44px; height: 44px; }
.vg .op-spec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--g-ln); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  a:hover > .pj-t .go i, a:hover > .pj-or-t .go i, .pj-band-a:hover .go i { filter: brightness(1.08) saturate(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
  a:hover > .pj-t .go i::after, a:hover > .pj-or-t .go i::after, .pj-band-a:hover .go i::after { animation: go-shine .9s cubic-bezier(.37, 0, .63, 1) both; }
}

/* ---------------------------------------------------------------- 1) ELŐSZÖR AZ ORSZÁG: az Ingatlanok fekvő csempéi, több sorban (Richárd 2026-11-04: „egy sorba lehetetlen hogy kiférjen... és ha lesz még több ország”) */
.pj-a { padding: calc(var(--ad-hdr) + var(--ad-hdr-top, 0px) + clamp(12px, 1.8vw, 28px)) 0 var(--sec-half); background: #fff; }
.pj-a .ltp-crumb, .pj-b .ltp-crumb { margin-bottom: clamp(8px, 1.4svh, 14px); color: #333333; }
.pj-a .ltp-crumb > * + *::before, .pj-b .ltp-crumb > * + *::before { background: rgba(0,0,0,.34); }
.pj-fej { margin-bottom: clamp(20px, 3svh, 36px); }
.pj-fej .ab-eye { margin-bottom: 10px; }
.pj-h1 { margin: 0; font: 300 var(--fs-c2)/1.12 var(--font-display); letter-spacing: -.02em; color: var(--g-ink); }
.pj-h1 b { font-weight: 500; }
.pj-lead { margin: 10px 0 0; font-size: var(--fs-kis); line-height: 1.6; color: var(--g-tx); }
.pj-or { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 40px) clamp(18px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.pj-or li { min-width: 0; }
.pj-or a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.pj-or a:focus-visible { outline: none; }
.pj-or a:focus-visible .pj-or-k { outline: 2px solid var(--bronze); outline-offset: 4px; }
.pj-or-k { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #ececec; }
.pj-or-k img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--g-ease); }
.pj-or-l { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(20,18,16,.72); font: 600 var(--fs-cimke) var(--font-display); letter-spacing: var(--ls-cimke); text-transform: uppercase; color: #fff; white-space: nowrap; }
.pj-or-l .ico { width: 13px; height: 13px; }
.pj-or-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: clamp(12px, 1.4vw, 18px) 2px 0; }
.pj-or-n { display: flex; align-items: center; gap: 10px; min-width: 0; font: 400 var(--fs-c5)/1.25 var(--font-display); color: var(--g-ink); }
.pj-or-n b { min-width: 0; font-weight: 400; }
.pj-or-n .flag { width: 22px; height: 16px; }
.pj-or-t small { grid-column: 1; font-size: var(--fs-apro); line-height: 1.5; color: var(--g-mu); }
.pj-or-t .go { grid-column: 2; grid-row: 1 / span 2; }
.pj-or-t .go i { width: 44px; height: 44px; }
/* a sor vége: a világ pontokból, a kezdőlap térképe; ha pont megtelik a sor, helyette egy sor szöveg a rács alatt */
.pj-or-mas { grid-column: span var(--s, 1); }
.pj-or-mas .pj-or-k { aspect-ratio: calc(var(--s, 1) * 4 / 3); background: #f5f5f5; }
.pj-or-mas .pj-or-k img { inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.pj-or-om { margin: clamp(28px, 3vw, 44px) 0 0; font-size: var(--fs-kis); line-height: 1.6; color: var(--g-tx); }
.pj-or-om[hidden] { display: none; }
.pj-or-om a { color: var(--g-ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .6s var(--g-ease); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .pj-or a:hover .pj-or-k img { transform: scale(1.045); } .pj-or-om a:hover { color: var(--bronze-deep); } }

/* ---------------------------------------------------------------- 2) A VÁLASZTOTT ORSZÁG */
.pj-b { padding: calc(var(--ad-hdr) + var(--ad-hdr-top, 0px) + clamp(12px, 1.8vw, 28px)) 0 var(--sec-half); background: #fff; }
.pj-b-h { font-size: var(--fs-c2); text-wrap: balance; }
.pj-szur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: clamp(14px, 2.2svh, 24px) 0 clamp(16px, 2.6svh, 30px); }
.pj-szur a { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 16px; border: 1px solid rgba(0,0,0,.18); border-radius: 999px; background: #fff; font: 500 var(--fs-apro) var(--font-display); color: #333333; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .6s var(--g-ease), border-color .6s var(--g-ease), color .6s var(--g-ease); }
.pj-szur a[aria-current="true"] { border-color: #000000; background: #000000; color: #fff; }
.pj-szur a:focus-visible { outline: 2px solid #006EC7; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .pj-szur a[aria-current="false"]:hover { border-color: rgba(0,0,0,.46); background: #f3f0ea; color: #000000; } }
.pj-racs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 3.6vw, 56px) clamp(18px, 2.2vw, 36px); margin: 0; padding: 0; list-style: none; }
.pj-c { position: relative; min-width: 0; }
.pj-c > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pj-c > a:focus-visible { outline: 2px solid #006EC7; outline-offset: 4px; border-radius: 22px; }
.pj-k { flex: none; width: 100%; height: clamp(280px, calc(100svh - 470px), 27vw); margin-bottom: 14px; border-radius: 20px; }   /* a kártya címe még az első képernyőn látszik */
.pj-c .op-spec { margin-top: auto; }
.pj-c .pj-t { margin-bottom: 14px; }
.pj-c.fut .pj-k img.on { transform: scale(calc(var(--z, 1) * 1.07)); transition: opacity 1.8s var(--g-ease), transform 9s var(--g-ease); }
/* ha az országban egy projekt van: a kép mellett a felirat */
.pj-racs.egy { grid-template-columns: minmax(0, 1fr); }
.pj-racs.egy .pj-c > a { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 48px); align-items: center; }
.pj-racs.egy .pj-k { grid-row: 1 / span 2; height: clamp(300px, calc(100svh - 380px), 34vw); margin: 0; }
.pj-racs.egy .pj-t { align-self: end; }
.pj-racs.egy .op-spec { align-self: start; margin-top: 0; }

/* ---------------------------------------------------------------- 3) AZ ORSZÁG RÉSZLETESEN */
.pj-band-a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 3.6vw, 64px); color: inherit; text-decoration: none; }
.pj-band-a:focus-visible { outline: 2px solid #006EC7; outline-offset: 4px; border-radius: 22px; }
.pj-band-k { position: relative; display: block; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 20px; background: #EAF4FB; }
.pj-band-k img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--g-ease); }
.pj-band-t { display: flex; flex-direction: column; align-items: flex-start; }
.pj-band-t small { font: 600 var(--fs-cimke) var(--font-display); letter-spacing: var(--ls-szem); text-transform: uppercase; color: var(--g-ac); }
.pj-band-c { margin-top: 8px; font: 300 var(--fs-c3)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--g-ink); }
.pj-band-c b { font-weight: 500; }
.pj-band-p { margin: 8px 0 14px; font-size: var(--fs-kis); line-height: 1.55; color: var(--g-tx); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .pj-band-a:hover .pj-band-k img { transform: scale(1.04); } }

/* ---------------------------------------------------------------- 4) A VÁSÁRLÁS LÉPÉSEI */
.pj-lep-g { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(26px, 4vw, 72px); }
.pj-lep .vg-lep .n .ico { width: 18px; height: 18px; }
.pj-lep .zr-who { margin-top: clamp(4px, 1svh, 12px); }
.pj-lep-k { position: relative; height: min(calc(var(--g-lat) - 2 * var(--sec-half)), 640px); min-height: 400px; overflow: hidden; border-radius: 22px; background: #EAF4FB; }
.pj-lep-i { position: absolute; inset: 0; }
.pj-lep-n { position: absolute; z-index: 2; left: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px); width: min(360px, calc(100% - 44px)); padding: 16px 20px 14px; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 24px 50px -32px rgba(0,0,0,.45); }
.pj-lep-n small { display: block; font: 600 var(--fs-cimke) var(--font-display); letter-spacing: var(--ls-szem); text-transform: uppercase; color: var(--g-ac); }
.pj-lep-n ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; min-height: 7.4em; }
.pj-lep-n li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: var(--fs-kis); line-height: 1.35; color: var(--g-ink); }
.pj-lep-n .ico { width: 16px; height: 16px; margin-top: 3px; color: #006EC7; }
@media (min-width: 1025px) and (max-height: 760px) { .pj-lep .zr-who { display: none; } }

/* ---------------------------------------------------------------- KÖZTES MÉRETEK: három oszlopban 1240 alatt a hosszú országnév nem fér egy sorba; 1024 alatt két oszlop, mint az Ingatlanokon */
@media (max-width: 1240px) { .pj-or-hosszu { display: none; } }
@media (max-width: 1024px) {
  .pj-or { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-or-mas { grid-column: auto; }
  .pj-or-mas .pj-or-k { aspect-ratio: 4 / 3; }
  .pj-lep-g { grid-template-columns: minmax(0, 1fr); }
  .pj-lep-k { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------------------------------------------------------------- TELEFONRA TERVEZVE */
@media (max-width: 760px) {
  .pj-a { padding: calc(var(--ad-hdr) + 16px) 0 var(--sec-half); }
  .pj-fej { margin-bottom: 18px; }
  .pj-or { gap: 20px 12px; }
  .pj-or-k { border-radius: 14px; }
  .pj-or-l { top: 8px; left: 8px; gap: 0; height: auto; min-height: 26px; max-width: calc(100% - 16px); padding: 5px 9px; border-radius: 13px; line-height: 1.15; letter-spacing: .04em; white-space: normal; }
  .pj-or-l .ico { display: none; }
  .pj-or-t { display: block; padding: 9px 1px 0; }
  .pj-or-t .go { display: none; }
  .pj-or-n { gap: 7px; font-size: var(--fs-kis); font-weight: 500; }
  .pj-or-n b { font-weight: 500; }
  .pj-or-n .flag { width: 18px; height: 13px; }
  .pj-or-t small { display: block; margin-top: 2px; line-height: 1.4; }
  .pj-b { padding-top: calc(var(--ad-hdr) + 12px); }
  .pj-szur { flex-wrap: nowrap; margin: 12px calc(-1 * var(--gutter)) 16px; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .pj-szur::-webkit-scrollbar { display: none; }
  .pj-szur a { flex: none; }
  .pj-racs { grid-template-columns: minmax(0, 1fr); }
  .pj-racs.egy .pj-c > a { display: flex; }
  .pj-racs.egy .pj-k { height: auto; margin-bottom: 12px; }
  .pj-racs.egy .op-spec { margin-top: 14px; }
  .pj-k { height: auto; aspect-ratio: 16 / 10; margin-bottom: 12px; }
  .pj-band-a { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pj-band-k { aspect-ratio: 16 / 9; }
  .pj-lep-k { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .pj-lep-i { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .pj-lep-n { position: static; width: auto; padding: 14px var(--gutter) 0; border-radius: 0; background: none; box-shadow: none; }
  .pj-lep-n ul { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .pj-reteg img, .pj-cs, .pj-or-k img, .pj-band-k img, .pj-szur a { transition: none !important; } .pj-lep-i img.on, .pj-c.fut .pj-k img.on { transform: scale(var(--z, 1)) !important; } }

/* Egyetlen projekt: a széles rács align-self szabálya telefonon a teljes kártyaszélességre álljon. */
@media (max-width: 760px) { .pj-racs.egy .pj-t, .pj-racs.egy .op-spec { align-self: stretch; } }
