/* Ház-konfigurátor: teljes képernyős kép, jobb oldali fülek, kiúszó panel */
:root {
    --top: 72px; --panel: 340px; --rail: 76px;
    --line: rgba(0,0,0,.09); --ease: cubic-bezier(.32,.72,0,1); --press: scale(.97);
}
html, body { height: 100%; overflow: hidden; background: #dfe3e4; }
::selection { background: rgba(198,40,40,.18); }
.hk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
nav.sub-nav { padding: 12px 28px; }
.hk { position: fixed; inset: var(--top) 0 0 0; overflow: hidden; }

/* KATTINTHATÓ ABLAK ÉS AJTÓ A KÉPEN */
.hit { position: absolute; display: block; pointer-events: auto; outline: 0 solid transparent; border-radius: 2px; }
.hit::after { content: ''; position: absolute; inset: calc(-4px * var(--inv, 1)); border: calc(2px * var(--inv, 1)) solid #fff; border-radius: 3px; box-shadow: 0 0 calc(10px * var(--inv, 1)) rgba(0,0,0,.45); opacity: 0; transition: opacity 120ms ease-out; pointer-events: none; }
.hit span { position: absolute; left: 50%; bottom: calc(100% + 8px * var(--inv, 1)); transform: translateX(-50%) scale(var(--inv, 1)); transform-origin: 50% 100%; background: var(--red); color: #fff; font: 600 13px Inter, sans-serif; padding: 6px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity 120ms ease-out; pointer-events: none; }
.hit:hover::after, .hit:focus-visible::after, .hit:hover span, .hit:focus-visible span { opacity: 1; }
.hit:focus-visible { outline: none; }

/* KÉP */
.stage { position: absolute; inset: 0; overflow: hidden; background: #cfd8dc; }
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hk.ready .scene { transition: transform 340ms var(--ease); }
.still, .gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.gl { opacity: 0; transition: opacity 180ms ease-out; }
.gl.on { opacity: 1; }
.spots { position: absolute; inset: 0; pointer-events: none; }
.spot {
    position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; background: none; border: 0;
    cursor: pointer; pointer-events: auto; transition: transform 160ms ease-out, opacity 180ms ease-out;
}
.spot::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.28); transition: inset 160ms ease-out; }
.spot::after { content: ''; position: absolute; inset: 15px; background: var(--red); transition: inset 160ms ease-out; }
.spot:hover::before { inset: 5px; }
.spot:hover::after { inset: 13px; }
.spot:active { transform: var(--press); }
.spot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spot span {
    position: absolute; right: 44px; top: 50%; transform: translateY(-50%); padding: 5px 9px; background: rgba(17,17,17,.86); color: #fff;
    font-size: 12px; white-space: nowrap; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity 120ms ease-out;
}
.spot:hover span, .spot:focus-visible span { opacity: 1; }
.spots.quiet .spot { opacity: 0; pointer-events: none; }
.bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(.08); transition: transform 500ms ease-out; z-index: 3; }

/* FÜLEK + PANEL */
.dock { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: flex-start; transform: translateX(var(--panel)); transition: transform 300ms var(--ease); z-index: 5; pointer-events: none; }
.dock.open { transform: none; }
.rail { display: flex; flex-direction: column; gap: 2px; pointer-events: auto; padding-top: 14px; }
.tab {
    width: var(--rail); height: 70px; border: 0; background: rgba(255,255,255,.93); color: #3a3a3a; cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; font: 500 11px/1.1 Inter, sans-serif; transition: background-color 140ms ease, color 140ms ease, transform 120ms ease-out;
}
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { background: #fff; color: var(--red); }
.tab:active { transform: var(--press); }
.tab[aria-selected=true] { background: var(--red); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.tab:first-child { border-radius: 6px 0 0 0; } .tab:last-child { border-radius: 0 0 0 6px; }
.panel { width: var(--panel); height: 100%; background: #fff; border-left: 4px solid var(--red); display: flex; flex-direction: column; pointer-events: auto; box-shadow: -10px 0 30px rgba(0,0,0,.12); outline: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 22px; }
.panel-head h2 { font-size: 25px; line-height: 1.1; }
.x { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background-color 140ms ease, transform 120ms ease-out; }
.x svg, .q-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.x:hover { background: var(--light-gray); } .x:active { transform: var(--press); }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 22px 28px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9c9c5 transparent; }
.go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; background: var(--red); color: #fff; border-radius: 6px; font: 600 14px Inter, sans-serif; text-decoration: none; transition: background-color 140ms ease, transform 120ms ease-out; }
.go:hover { background: var(--red-dark); } .go:active { transform: var(--press); }
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.group { margin-top: 20px; } .group:first-child { margin-top: 6px; }
.group-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.group-t em { font-style: normal; font-weight: 400; color: var(--text-muted); font-size: 12px; text-align: right; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: var(--light-gray); padding: 3px; border-radius: 7px; }
.seg button { border: 0; background: none; padding: 9px 6px; font: 500 12.5px Inter, sans-serif; color: var(--text-muted); cursor: pointer; border-radius: 5px; transition: background-color 140ms ease, color 140ms ease, transform 120ms ease-out; }
.seg button[aria-pressed=true] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.13); }
.seg button:active { transform: var(--press); }
.houses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.h-card { display: flex; flex-direction: column; justify-content: flex-start; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: 400 12px/1.3 Inter, sans-serif; color: var(--text); transition: transform 120ms ease-out; }
.h-card img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 140ms ease; margin-bottom: 7px; background: var(--light-gray); }
.h-card[aria-pressed=true] img { outline-color: var(--red); }
.h-card[aria-pressed=true] { font-weight: 600; }
.h-card:active { transform: var(--press); }
.h-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.sw { display: flex; flex-direction: column; justify-content: flex-start; border: 0; background: none; padding: 0; cursor: pointer; font: 400 10.5px/1.25 Inter, sans-serif; color: var(--text); text-align: center; transition: transform 120ms ease-out; }
.sw i { display: block; position: relative; aspect-ratio: 1; border-radius: 4px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); outline: 2px solid transparent; outline-offset: 2px; margin-bottom: 6px; transition: outline-color 140ms ease; overflow: hidden; }
.sw--frame i::after { content: ''; position: absolute; left: 34%; top: 34%; right: 0; bottom: 0; background: linear-gradient(135deg, #5d7482, #27343b 62%); box-shadow: -2px -2px 0 rgba(0,0,0,.28), -3px -3px 0 rgba(255,255,255,.2); }
.sw[aria-pressed=true] i { outline-color: var(--red); }
.sw[aria-pressed=true] { font-weight: 600; }
.sw small { display: block; color: var(--gray); font-size: 9.5px; font-weight: 400; margin-top: 1px; }
.sw:active { transform: var(--press); }
.sw:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sws--wide { grid-template-columns: repeat(3, 1fr); }
.sw-img i { aspect-ratio: 8/5; }
.hint { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-top: 12px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13px; margin-top: 10px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--red); }

.tab--phone { display: none; }

/* ÖSSZEGZÉS */
.tray { position: absolute; left: 0; bottom: 0; width: 290px; background: rgba(255,255,255,.95); border-radius: 0 6px 0 0; z-index: 4; }
.tray-head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 13px 16px; font: 500 13px Inter, sans-serif; cursor: pointer; color: var(--text); }
.tray-head svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.tray-head[aria-expanded=true] svg { transform: rotate(180deg); }
.tray-body { padding: 0 16px 16px; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; }
.sum dt { color: var(--text-muted); } .sum dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.tray-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.btn { border: 1px solid rgba(0,0,0,.18); background: #fff; padding: 9px 12px; font: 500 12.5px Inter, sans-serif; cursor: pointer; border-radius: 5px; color: var(--text); transition: border-color 140ms ease, transform 120ms ease-out; }
.btn:hover { border-color: var(--red); } .btn:active { transform: var(--press); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; padding: 13px 20px; font-size: 14px; font-weight: 600; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.cta {
    position: absolute; left: 306px; bottom: 12px; border: 0; background: var(--red); color: #fff; text-decoration: none; text-align: center; padding: 13px 20px; border-radius: 5px; font: 600 13.5px Inter, sans-serif; cursor: pointer; z-index: 4;
    box-shadow: 0 6px 18px rgba(142,0,0,.32); transition: background-color 140ms ease, transform 120ms ease-out;
}
.cta:hover { background: var(--red-dark); } .cta:active { transform: var(--press); }

/* a chat gombja a panel mellé kerül */
body #rodo-chat { right: calc(var(--panel) + 96px); bottom: 16px; }

.print-sheet { display: none; }

/* KIS KÉPERNYŐ: kép felül, fülek és lehetőségek alatta */
@media (max-width: 860px) {
    :root { --rail: 66px; }
    nav.sub-nav { padding: 10px 16px; }
    html, body { overflow: hidden; }
    .hk { display: flex; flex-direction: column; }
    .stage { position: relative; inset: auto; flex: 0 0 auto; height: 41dvh; min-height: 210px; }
    .dock { position: relative; transform: none !important; flex: 1 1 auto; min-height: 0; flex-direction: column; width: 100%; align-items: stretch; pointer-events: auto; }
    .rail { flex-direction: row; overflow-x: auto; gap: 1px; padding: 0; background: var(--light-gray); flex: 0 0 auto; scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .tab--phone { display: flex; }
    .tab { flex: 0 0 auto; width: 72px; height: 58px; border-radius: 0 !important; background: #fff; font-size: 10.5px; gap: 3px; }
    .tab svg { width: 22px; height: 22px; }
    .panel { width: 100%; flex: 1 1 auto; min-height: 0; border-left: 0; border-top: 3px solid var(--red); box-shadow: none; }
    .panel-head { display: none; }
    .panel-body { padding: 12px 16px 76px; }
    .sws { grid-template-columns: repeat(5, 1fr); }
    .sws--wide { grid-template-columns: repeat(3, 1fr); }
    .houses { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
    .spot { display: none; }
    body #rodo-chat { bottom: auto !important; top: calc(var(--top) + 10px); right: 10px; height: 52px; }
    .tray { display: none; }
    .cta { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; }
}

@media (prefers-reduced-motion: reduce) {
    .hk.ready .scene, .dock, .gl, .bar { transition: none; }
}

@media print {
    html, body { overflow: visible; height: auto; background: #fff; }
    nav.sub-nav, .hk, dialog.quote { display: none !important; }
    .print-sheet { display: block; }
    .print-sheet img { width: 100%; margin: 12px 0 16px; }
    .ps-logo { font: 900 22px Nunito, sans-serif; letter-spacing: 4px; color: var(--red); }
    .ps-note { font-size: 11px; color: #555; margin-top: 16px; }
}
.ral-field input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1.5px solid rgba(0,0,0,.2); border-radius: 6px; font: 500 16px/1.2 Inter, sans-serif; text-transform: uppercase; }
.ral-field input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.ral-field .hint { margin-top: 8px; }
