/* Konfigurator bazena (/konfigurator-bazena/). Uporablja spremenljivke iz style.css. */
.kf-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.kf-noscript { padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--blue-light); color: var(--navy); font-weight: 700; }

/* Prostor za konfigurator, dokler ga skripta ne izriše (manj premikanja strani) */
.kf:not(.is-ready) { min-height: 900px; }
@media (max-width: 980px) { .kf:not(.is-ready) { min-height: 1300px; } }

/* Koraki */
.kf-steps {
    list-style: none; margin: 0 0 1.25rem; padding: 0;
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.4rem;
}
.kf-steps button {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    padding: 0.55rem 0.2rem; border: 0; background: none; cursor: pointer;
    font: inherit; color: var(--muted); font-size: 0.8rem; font-weight: 500; line-height: 1.2;
    border-radius: var(--radius-sm);
}
.kf-steps button:hover { background: var(--navy-tint-05); color: var(--navy); }
.kf-num {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); font-size: 0.85rem;
}
.kf-steps button.is-done .kf-num { border-color: var(--teal); background: var(--teal); color: #fff; }
.kf-steps button[aria-current="step"] { color: var(--navy); font-weight: 700; }
.kf-steps button[aria-current="step"] .kf-num { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Postavitev */
.kf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.kf-main { min-width: 0; }
.kf-preview { position: sticky; top: 96px; min-width: 0; }
.kf-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(0.9rem, 2vw, 1.4rem); }
.kf-top svg, .kf-sec svg, .kf-sec-inline svg, .kf-jama svg { width: 100%; height: auto; display: block; font-family: "Brand Sans", Arial, sans-serif; }
.kf-top { background: #fff; border-radius: var(--radius-md); }
.kf-sec { margin-top: 0.8rem; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.kf-media { margin: 0.8rem 0 0; }
.kf-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); display: block; background: var(--line); }
.kf-media figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.kf-none { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; margin-bottom: 0.3rem; border: 2px dashed #b9c3ca; background: repeating-linear-gradient(45deg, #f5f7f9 0 8px, #eceff2 8px 16px); }
.kf-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.kf-facts > div { background: #fff; border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; display: grid; gap: 0.1rem; }
.kf-facts span { font-size: 0.75rem; color: var(--muted); }
.kf-facts b { font-size: 1rem; color: var(--navy); }
.kf-fact-permit.is-ok b { color: #146c3c; }
.kf-fact-permit.is-mid b { color: #a3402a; }
.kf-fact-permit.is-hi b { color: #a02f24; }
.kf-legend { grid-column: 1 / -1; margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.kf-legend span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,0.12); }

.kf-panel h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 0.4rem; outline: none; }
.kf-lead { margin: 0 0 1.1rem; }
.kf-h3 { font-size: 1.05rem; margin: 1.3rem 0 0.3rem; color: var(--navy); }
.kf-small { font-size: 0.86rem; color: var(--muted); margin: 0.6rem 0 0; }
.kf-note { margin: 0.9rem 0 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--blue-light); color: var(--navy); font-size: 0.92rem; font-weight: 500; }
.kf-badge-blue { color: #005597 !important; background: rgba(0,145,211,0.12) !important; }
.kf-sub-txt { margin-left: calc(24px + 0.8rem); max-width: 60ch; }
@media (max-width: 760px) { .kf-sub-txt { margin-left: 0; } }
.kf-badge-ok { color: #146c3c !important; background: rgba(31,157,85,0.12) !important; }
.kf-badge { display: inline-block; font-style: normal; font-size: 0.72rem; font-weight: 700; color: #a3402a; background: rgba(240,130,98,0.15); border-radius: 999px; padding: 0.15em 0.6em; vertical-align: middle; }

/* Velikost */
.kf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kf-chip, .kf-chip-r span {
    display: inline-flex; align-items: center; gap: 0.45em;
    min-height: 44px; padding: 0.5em 1em; border-radius: 999px;
    border: 2px solid var(--line); background: #fff; color: var(--navy);
    font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer;
}
.kf-chip:hover, .kf-chip-r:hover span { border-color: var(--sky); }
.kf-chip.is-on { border-color: var(--navy); background: var(--blue-light); }
.kf-chip-r { position: relative; }
.kf-chip-r input { position: absolute; opacity: 0; inset: 0; }
.kf-chip-r input:checked + span { border-color: var(--navy); background: var(--blue-light); }
.kf-chip-r input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.kf-chip-r em { font-style: normal; font-size: 0.75rem; color: #146c3c; background: rgba(31,157,85,0.12); padding: 0.1em 0.5em; border-radius: 999px; }
.kf-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.kf-stepper { display: grid; grid-template-columns: 48px 1fr 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.kf-stepper button { border: 0; background: var(--bg-soft); color: var(--navy); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.kf-stepper button:hover { background: var(--blue-light); }
.kf-stepper input { border: 0 !important; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--ink); padding: 0.7rem 0.2rem; width: 100%; min-width: 0; -moz-appearance: textfield; appearance: textfield; }
.kf-stepper input::-webkit-outer-spin-button, .kf-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-stepper:focus-within { border-color: var(--blue); }
.kf-ref { margin: 1.2rem 0 0; }
.kf-ref img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); display: block; }
.kf-ref figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* Kartice izbire */
.kf-grid-opts { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kf-folije { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.kf-kamni { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.kf-opt { position: relative; display: block; cursor: pointer; }
.kf-opt input { position: absolute; opacity: 0; inset: 0; }
.kf-opt-card {
    height: 100%; display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.6rem; border: 2px solid var(--line); border-radius: var(--radius-md); background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.kf-opt-card img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 0.3rem; background: var(--bg-soft); }
.kf-folije .kf-opt-card img { aspect-ratio: 205 / 300; object-fit: cover; object-position: center 85%; }
.kf-kamni .kf-opt-card img { aspect-ratio: 1; object-fit: cover; }
.kf-cols-3 .kf-opt-card img { aspect-ratio: 1; object-fit: cover; }
.kf-filt .kf-opt-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.kf-opt-card svg { width: 100%; height: auto; }
.kf-opt-card svg.kf-stcard { background: #fff; border-radius: 10px; margin-bottom: 0.3rem; font-family: "Brand Sans", Arial, sans-serif; }
.kf-opt-card path { fill: var(--blue-light); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.kf-opt-card b { color: var(--navy); font-size: 0.92rem; line-height: 1.25; }
.kf-opt-card small { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.kf-opt-card ul { margin: 0.4rem 0 0; padding-left: 1.1em; font-size: 0.84rem; color: var(--body); display: grid; gap: 0.2rem; }
.kf-opt-card .kf-badge { align-self: flex-start; margin-top: 0.2rem; }
.kf-opt:hover .kf-opt-card { border-color: var(--sky); }
.kf-opt input:checked + .kf-opt-card { border-color: var(--navy); background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--navy); }
.kf-opt input:focus-visible + .kf-opt-card { outline: 3px solid var(--blue); outline-offset: 2px; }
.kf-opt input:disabled + .kf-opt-card { opacity: 0.55; cursor: not-allowed; }
.kf-dis { font-style: normal; font-size: 0.8rem; color: var(--error); font-weight: 700; }
.kf-pump { margin-top: 1.1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 0.92rem; }
.kf-pump b { color: var(--navy); }

/* Oprema */
.kf-equip { display: grid; gap: 0.8rem; }
.kf-eq { border: 2px solid var(--line); border-radius: var(--radius-md); padding: 0.8rem; background: #fff; }
.kf-eq.is-on { border-color: var(--navy); background: var(--blue-light); }
.kf-eq-head { display: grid; grid-template-columns: 24px 88px 1fr; gap: 0.8rem; align-items: center; cursor: pointer; }
.kf-eq-head input { width: 22px; height: 22px; accent-color: var(--navy); }
.kf-eq-head img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.kf-eq-head b { display: block; color: var(--navy); line-height: 1.25; }
.kf-eq-head small { display: block; color: var(--body); font-size: 0.85rem; margin-top: 0.15rem; font-weight: 700; }
.kf-eq ul { margin: 0.6rem 0 0 calc(24px + 0.8rem); padding-left: 1.1em; font-size: 0.86rem; display: grid; gap: 0.15rem; }
.kf-eq .kf-small { margin-left: calc(24px + 0.8rem); }
.kf-sub { margin: 0.6rem 0 0 calc(24px + 0.8rem); }
.kf-sub .kf-chip-r span { min-height: 38px; font-size: 0.85rem; }
.kf-more { display: inline-block; margin: 0.5rem 0 0 calc(24px + 0.8rem); font-size: 0.85rem; font-weight: 700; }

/* Povzetek */
.kf-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kf-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.kf-table th, .kf-table td { text-align: left; padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.kf-table th { color: var(--navy); width: 34%; font-weight: 700; }
.kf-table td:last-child { width: 1%; white-space: nowrap; }
.kf-edit { border: 0; background: none; color: var(--blue); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 0.2rem 0.3rem; text-decoration: underline; }
.kf-eqlist { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.5rem; }
.kf-eqlist li { display: grid; grid-template-columns: 64px 1fr; gap: 0.7rem; align-items: center; }
.kf-eqlist img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.kf-eqlist b { display: block; font-size: 0.9rem; color: var(--ink); line-height: 1.25; }
.kf-eqlist small { color: var(--muted); font-size: 0.82rem; }
.kf-num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
.kf-num-grid > div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; display: grid; }
.kf-num-grid span { font-size: 0.8rem; color: var(--muted); }
.kf-num-grid b { font-size: 1.35rem; color: var(--navy); }
.kf-num-grid small { font-size: 0.78rem; color: var(--muted); }
.kf-sum-grid .calc-permit { border: 1px solid var(--line); border-left-width: 5px; }
.kf-jama { margin-top: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.kf-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.kf-lead-box { margin-top: 1.4rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); display: grid; gap: 0.8rem; }
.kf-lead-box h3 { margin: 0; color: var(--navy); }
.kf-form { display: grid; gap: 1rem; margin-top: 0.4rem; }

/* Navigacija */
.kf-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.kf-nav .btn svg { width: 18px; height: 18px; }
.kf-counter { font-size: 0.85rem; color: var(--muted); }
.kf-nav .kf-spacer { flex: 1; }

/* Besedilo pod konfiguratorjem */
.kf-info .grid { margin-top: 1.5rem; }

@media (max-width: 980px) {
    .kf-grid { grid-template-columns: 1fr; }
    .kf-preview { position: static; order: -1; }
    .kf-sum-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .kf-steps { grid-template-columns: repeat(8, minmax(34px, 1fr)); gap: 0.15rem; }
    .kf-lbl { display: none; }
    .kf-steps button[aria-current="step"] .kf-lbl { display: none; }
    .kf-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kf-facts b { font-size: 0.9rem; }
    .kf-dims { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .kf-eq-head { grid-template-columns: 22px 64px 1fr; gap: 0.6rem; }
    .kf-eq-head img { width: 64px; height: 48px; }
    .kf-eq ul, .kf-eq .kf-small, .kf-sub, .kf-more { margin-left: 0; }
    .kf-nav { position: sticky; bottom: 0; background: #fff; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0.7rem var(--gutter); box-shadow: 0 -6px 18px rgba(28,43,54,0.08); z-index: 5; }
    .kf-nav .btn { padding: 0.8em 1.2em; }
}
@media (max-width: 560px) {
    .kf-filt { grid-template-columns: 1fr; }
    .kf-form .form-row { grid-template-columns: 1fr; }
    .kf-num-grid b { font-size: 1.15rem; }
}
/* Povzetek čez vso širino, predogled je v povzetku */
.kf[data-step="8"] .kf-grid { grid-template-columns: 1fr; }
.kf[data-step="8"] .kf-preview { display: none; }

@media (max-width: 400px) { .kf-counter { font-size: 0; } }
.kf-counter { white-space: nowrap; }

.kf-eq-head input:disabled { opacity: 1; cursor: default; }

/* Po oddaji (v98): povezave naprej kot na strani /hvala/ */
.kf-done-more { margin: 0.4rem 0 0; font-weight: 700; color: var(--navy); }
.kf-done-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 560px) { .kf-done-links .btn { width: 100%; } }
