/* Lakás-oldal és lista a Longevity „A · Tiszta kártyák" nyelvén (2026-10-24, Máté: „rendes 3D modelles
   applikáció formátum, mint a Longevity-nél"). A lap a teljes appot takarja, a lista alatta marad. */

/* ---- szűrő gombsor a legördülők helyett ---- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 30px 14px; }
.pills button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 500; line-height: 1; white-space: nowrap; }
.pills button:hover { border-color: #001f16; }
.pills button.on { background: #EAF1EA; border-color: #1F3A2B; color: #1F3A2B; font-weight: 600; }
.pills button.clear { color: var(--muted); }

/* ---- kártya: nagy kép, félkövér név, egy szürke adatsor, állapotpötty ---- */
:root[data-theme="f"] .card .tx { padding: 10px 12px 2px; }
.card .tx h4 { margin: 0; font: 600 16px/1.2 "Barlow", system-ui, sans-serif; color: var(--ink); }
.card .tx p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.card .ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px;
  font-size: 13.5px; color: var(--ink); }
.card .ft .st { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.card .ft .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--avail); display: inline-block; }
.card .ft .st i.reserved { background: var(--res); } .card .ft .st i.sold { background: var(--sold); }

/* ---- a lakás saját oldala ---- */
#detail.detail { position: fixed !important; inset: 0 !important; z-index: 60; background: #fff; overflow-y: auto; display: none; padding: 0 !important; }
#detail.detail.on { display: block; }
body.vpage .tabbar { display: none !important; }
#detail .vbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 40px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
#detail .vbar .back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  font: 500 14px "Barlow", system-ui, sans-serif; color: var(--ink); padding: 6px 0; }
#detail .vbar .back svg { width: 18px; height: 18px; }
#detail .vbrand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
#detail .vbrand img { width: 34px; height: 32px; }
#detail .vbrand b { font: 600 16px "Barlow", system-ui, sans-serif; letter-spacing: .01em; }
#detail .vacts { display: flex; gap: 8px; }
#detail .vbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; padding: 9px 15px; font: 500 13.5px "Barlow", system-ui, sans-serif; color: var(--ink); text-decoration: none; }
#detail .vbtn svg { width: 15px; height: 15px; }
#detail .vhero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 36px;
  padding: 28px 40px 36px; max-width: 1500px; margin: 0 auto; }
#detail .vshot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: #EEE; }
#detail .vshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
#detail .vlbl { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: rgba(255,255,255,.96); border-radius: 999px; padding: 10px 16px;
  font: 500 13.5px "Barlow", system-ui, sans-serif; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
#detail .vlbl svg { width: 16px; height: 16px; }
#detail .vst { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
#detail .vst i { width: 9px; height: 9px; border-radius: 50%; background: var(--avail); display: inline-block; }
#detail .vst i.reserved { background: var(--res); } #detail .vst i.sold { background: var(--sold); }
#detail h1 { margin: 8px 0 2px; font: 600 40px/1.1 "Barlow", system-ui, sans-serif; color: var(--ink); letter-spacing: 0; }
#detail .vsub { margin: 0; color: var(--muted); font-size: 15px; }
#detail .vspecs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 16px 0; margin: 20px 0; }
#detail .vspecs div { font-size: 13px; color: var(--muted); }
#detail .vspecs b { display: block; font-size: 22px; color: var(--ink); font-weight: 600; font-family: "Barlow", system-ui, sans-serif; }
#detail .vprice { font-size: 26px; font-weight: 600; margin: 4px 0 18px; color: var(--ink); }
#detail .vcta { display: block; width: 100%; border: 0; border-radius: 12px; background: #1F3A2B; color: #fff;
  padding: 16px; font: 600 16px "Barlow", system-ui, sans-serif; text-align: center; }
#detail .vcta[disabled] { background: #C9C6C0; cursor: default; }
#detail .vcta2 { display: flex; gap: 10px; margin-top: 10px; }
#detail .vcta2 .vbtn { flex: 1; justify-content: center; border-radius: 12px; padding: 13px; }
#detail .form { margin-top: 14px; }
#detail .vsec { padding: 34px 40px; border-top: 1px solid var(--line); max-width: 1500px; margin: 0 auto; }
#detail .vsec h2 { margin: 0 0 4px; font: 600 24px "Barlow", system-ui, sans-serif; color: var(--ink); }
#detail .vsec > p { margin: 0 0 18px; color: var(--muted); }
#detail .vplan { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
#detail .vpi { background: #F7F6F4; border-radius: 14px; padding: 22px; display: grid; place-items: center; }
#detail .vpi img { width: auto; max-width: 100%; max-height: 66vh; display: block; }
#detail .vrooms div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
#detail .vrooms span { color: var(--muted); }
#detail .vrooms div.out span { font-style: normal; }
#detail .plan-switch { display: inline-flex; gap: 6px; margin-bottom: 14px; }
#detail .plan-switch button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 13.5px; color: var(--ink); }
#detail .plan-switch button.on { background: #1F3A2B; border-color: #1F3A2B; color: #fff; }
#detail .src { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
#detail .vsticky { display: none; }

@media (max-width: 899px) {
  .pills { padding: 6px 16px 12px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  #detail .vbar { padding: 10px 14px; } #detail .vbrand { display: none; }
  #detail .vhero { grid-template-columns: 1fr; padding: 0 0 18px; gap: 16px; }
  #detail .vshot { border-radius: 0; } #detail .vinfo { padding: 0 18px; }
  #detail h1 { font-size: 30px; } #detail .vspecs b { font-size: 18px; } #detail .vprice { font-size: 22px; }
  #detail .vsec { padding: 24px 18px; } #detail .vplan { grid-template-columns: 1fr; gap: 14px; }
  #detail .vsticky { display: flex; position: sticky; bottom: 0; z-index: 3; background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; }
  #detail .vsticky small { display: block; font-size: 12px; color: var(--muted); }
  #detail .vsticky b { font-size: 16px; color: var(--ink); }
  #detail .vsticky .vcta { flex: 1; padding: 14px; }
}

/* Elo ellenorzes utani javitasok (2026-10-24): a Longevity temajabol orokolt arany vonal a cim alatt,
   es telefonon a ket oszlopos kartyan az "On request" ketto sorba tort. */
#detail h1::after, #detail h1::before { content: none !important; display: none !important; }
@media (max-width: 899px) {
  .card .ft { flex-direction: column; align-items: flex-start; gap: 3px; }
  .card .ft b { white-space: nowrap; }
}
