/* =====================================================================
   VPP-vizualizáció a típuslapon (views/elonyszam_vizual.php, assets/js/rs_vpp_vizual.js).
   Csak az rs-theme.css változóira épül, mint az rs_elonyszam.css.
   ===================================================================== */
.vz { margin-top: 1.6rem; padding: 1.2rem 1.3rem; }
.vz [hidden] { display: none !important; }
.vz-intro { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between; }
.vz-intro > div { flex: 1 1 420px; min-width: 0; }
.vz-title { font-size: 1.15rem; font-weight: 700; color: var(--rs-heading); margin: 0.35rem 0 0.3rem; }
.vz-title em { font-family: var(--rs-font-serif); font-weight: 500; color: var(--rs-accent-text); }
.vz-lead { color: var(--rs-muted); font-size: 0.92rem; margin: 0; max-width: 720px; line-height: 1.5; }
.vz-open { white-space: nowrap; }
.vz-intro > .vz-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 0 1 auto; }

.vz-body { margin-top: 1.2rem; }
.vz-controls { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 0.9rem 1.2rem; }
.vz-ctl { border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 0.55rem 0.8rem 0.75rem; margin: 0; min-width: 0; }
.vz-ctl legend { float: none; width: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-muted); padding: 0 0.35rem; margin: 0 0 0.35rem -0.35rem; }
.vz-bands { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.vz-band { display: flex; flex-direction: column; gap: 0.25rem; }
.vz-band-label { font-size: 0.78rem; color: var(--rs-text-2); }
.vz-band-label small { color: var(--rs-faint); }
.vz-seg { display: inline-flex; border: 1px solid var(--rs-border-strong); border-radius: 999px; overflow: hidden; }
.vz-seg button { border: 0; background: transparent; color: var(--rs-text-2); font-weight: 600; font-size: 0.9rem; min-width: 40px; height: 34px; padding: 0 0.55rem; }
.vz-seg button + button { border-left: 1px solid var(--rs-border-strong); }
.vz-seg button:hover { color: var(--rs-heading); background: var(--rs-surface-2); }
.vz-seg button[aria-pressed="true"] { background: var(--rs-accent); color: var(--rs-accent-ink); }
.vz-twa-row { display: flex; align-items: center; gap: 0.7rem; }
.vz-twa-row input[type=range] { flex: 1 1 auto; accent-color: var(--rs-accent); min-width: 0; }
.vz-twa-row output { font-family: var(--rs-font-mono); font-size: 1rem; color: var(--rs-heading); min-width: 3.2em; text-align: right; }
.vz-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.vz-chips button { border: 1px solid var(--rs-border-strong); background: transparent; color: var(--rs-text-2); border-radius: 999px; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.7rem; min-height: 32px; }
.vz-chips button:hover { color: var(--rs-heading); border-color: rgba(var(--rs-fg-rgb), 0.24); }
.vz-chips button.is-active { background: var(--rs-accent-soft); border-color: var(--rs-accent); color: var(--rs-accent-text); }
.vz-ctl .form-select { background-color: var(--rs-input); color: var(--rs-text); border-color: var(--rs-border-strong); }
.vz-check { display: flex; gap: 0.45rem; align-items: center; margin-top: 0.55rem; font-size: 0.86rem; color: var(--rs-text-2); }
.vz-check input { accent-color: var(--rs-accent); width: 1rem; height: 1rem; }
.vz-check small { color: var(--rs-faint); }

.vz-status { min-height: 1.6rem; margin: 0.7rem 0 0.2rem; font-size: 0.88rem; color: var(--rs-muted); }
.vz.is-loading .vz-grid, .vz.is-loading .vz-boats { opacity: 0.55; transition: opacity 0.15s; }

.vz-grid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.vz-fig { margin: 0; min-width: 0; }
.vz-fig figcaption { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-muted); margin-bottom: 0.35rem; }
.vz-svg { display: block; width: 100%; height: auto; font-family: var(--rs-font-body); }
.vz-polar { cursor: crosshair; touch-action: pan-y; max-height: 560px; }
.vz-svg text { paint-order: stroke; stroke: var(--rs-bg); stroke-width: 2.4px; stroke-linejoin: round; }

.vz-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.8rem; color: var(--rs-text-2); margin-top: 0.45rem; }
.vz-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.vz-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.vz-legend i.is-dash { background-image: linear-gradient(90deg, transparent 50%, var(--rs-surface) 50%); background-size: 6px 3px; }
.vz-legend-sm { font-size: 0.76rem; gap: 0.2rem 0.75rem; }
.vz-dia { color: var(--rs-heading); font-weight: 400; }
.vz-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }

.vz-numbers { min-width: 0; overflow-x: auto; }
.vz-table { font-size: 0.86rem; }
.vz-table td, .vz-table th { padding: 0.3rem 0.55rem; vertical-align: top; }
.vz-table th small, .vz-table td small { display: block; color: var(--rs-muted); font-size: 0.74rem; font-weight: 400; }
.vz-table td:first-child small { display: inline; }
.vz-table .vz-sec td { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-accent-text); padding-top: 0.7rem; border-bottom-color: var(--rs-accent-line); }
.vz-table .vz-hl td { font-size: 0.95rem; }
.vz-table td.num, .vz-table th.num { text-align: right; white-space: nowrap; }
.vz-note { color: var(--rs-muted); font-size: 0.85rem; margin: 0.5rem 0 0; }

.vz-boats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.vz-boat { border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 0.8rem 0.9rem; min-width: 0; }
.vz-boat h4 { font-size: 0.98rem; font-weight: 700; color: var(--rs-heading); margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; }
.vz-boat h4 small { color: var(--rs-muted); font-weight: 500; }
.vz-boat-v { margin-left: auto; font-family: var(--rs-font-mono); font-size: 0.85rem; color: var(--rs-accent-text); font-weight: 500; }
.vz-views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; }

.vz-help { margin-top: 1.1rem; font-size: 0.88rem; color: var(--rs-text-2); }
.vz-help summary { cursor: pointer; color: var(--rs-accent-text); font-weight: 600; }
.vz-help ul { margin: 0.6rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.vz-help li + li { margin-top: 0.35rem; }

@media (max-width: 1199.98px) {
    .vz-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .vz-controls .vz-ctl:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .vz { padding: 1rem 0.9rem; }
    .vz-controls { grid-template-columns: minmax(0, 1fr); }
    .vz-grid { grid-template-columns: minmax(0, 1fr); }
    .vz-fig-polar { max-width: 380px; margin: 0 auto; width: 100%; }
    .vz-views { grid-template-columns: minmax(0, 1fr); }
    .vz-seg button { min-width: 44px; height: 40px; }
    .vz-table { font-size: 0.8rem; }
    .vz-table td.num { white-space: normal; }
    .vz-table td, .vz-table th { padding: 0.28rem 0.35rem; }
}

/* két hajó: a kártyák egymás mellett, bennük a két nézet egymás alatt (a felülnézetek egy sorban vethetők össze) */
.vz-boats.is-cmp .vz-views { grid-template-columns: minmax(0, 1fr); }
.vz-views .vz-svg { max-height: 420px; }

/* a hajólapon (vpp_hajo.php): a hajó és a típus viszonya (azonos adat, csak módosító) */
.vz-own { margin: 0 0 0.6rem; padding: 0.5rem 0.8rem; border-radius: var(--rs-radius-sm); background: var(--rs-steel-soft); color: var(--rs-text-2); font-size: 0.86rem; }
.vz-ctl .form-select option:disabled { color: var(--rs-faint); }
