/* =====================================================================
   Izračun cene strehe – en zaslon (domača stran #izracun in izracun.html)
   ===================================================================== */
.page-calc { background: var(--bg); }
.cx-top { position: fixed; }
.cx-top-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 100%; padding: 0 var(--g); }
.cx-top-t { justify-self: center; font-weight: 600; color: var(--muted); }
.cx-top .top-phone .i { color: var(--red); }
@media (max-width: 900px) { .cx-top .top-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--red); color: #fff; } .cx-top .top-phone .i { color: #fff; } .cx-top .top-phone span { display: none; } .cx-top-in { gap: 10px; } }
@media (max-width: 560px) { .cx-top-t { display: none; } }

/* postavitev: koraki levo, zemljevid desno, cena na zemljevidu */
/* isolation: Leafletovi sloji (z-index 200–1000) ostanejo znotraj izračuna in ne prekrijejo glave strani */
.cx { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100dvh; padding-top: var(--head); isolation: isolate; }
.cx-map-wrap { position: relative; grid-column: 2; grid-row: 1; min-height: 0; background: #0d141f; }
.cx-map { position: absolute; inset: 0; }
.cx-map.leaflet-container { background: #0d141f; font-family: var(--font); cursor: pointer; }
/* brez tankih črt med ploščicami pri vseh povečavah zaslona (100–300 %): ploščice se prekrivajo za 1 px
   in se rišejo normalno (Leafletov »plus-lighter« pri 200 % pusti svetle črte) */
.cx-map.leaflet-container img.leaflet-tile { mix-blend-mode: normal; width: 257px !important; height: 257px !important; }
.is-drawing .cx-map.leaflet-container { cursor: crosshair; }
.vlecem .cx-map.leaflet-container { cursor: grabbing; }
.cx-panel { position: relative; grid-column: 1; grid-row: 1; min-height: 0; overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); scrollbar-width: thin; }

/* bloki v plošči */
.cx-blk { padding: 22px clamp(20px, 2.4vw, 32px); animation: cx-in .45s var(--ease-out); }
.cx-blk + .cx-blk { border-top: 1px solid var(--line); }
.cx-find { padding-top: clamp(24px, 3vw, 36px); }
body[data-korak="3"] .cx-find, body[data-korak="2"] .cx-find { padding-bottom: 6px; }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } }
.cx-h { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; outline: none; }
.cx-p { margin-top: 10px; color: var(--muted); }
.cx-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.cx-h2 > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: 0; }

/* naslov */
.cx-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 16px; border-radius: 18px; border: 2px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; }
body[data-korak="2"] .cx-search, body[data-korak="3"] .cx-search { margin-top: 0; }
.cx-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 5px rgba(196, 38, 46, .12); }
.cx-search > .i { width: 22px; height: 22px; color: var(--red); }
.cx-search input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; font-size: 1.08rem; text-overflow: ellipsis; }
.cx-sug { position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 30; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); max-height: 340px; overflow-y: auto; }
.cx-sug li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; line-height: 1.3; }
.cx-sug li .i { margin-top: 2px; color: var(--red); }
.cx-sug li small { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); }
.cx-sug li:hover, .cx-sug li[aria-selected="true"] { background: var(--bg); }
.cx-sug li.is-info { align-items: center; color: var(--muted); cursor: default; }
.cx-sug li.is-info:hover { background: none; }
.cx-locate { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--line-2); text-align: left; transition: border-color .2s, background-color .2s; }
.cx-locate:hover { border-color: var(--ink); background: var(--bg); }
.cx-locate > .i { width: 26px; height: 26px; padding: 3px; color: var(--red); }
.cx-locate b { display: block; font-weight: 600; }
.cx-locate small { display: block; font-size: .88rem; color: var(--muted); }
.cx-how { display: grid; gap: 8px; margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--bg); }
.cx-how p { display: flex; align-items: center; gap: 10px; font-size: .96rem; }
.cx-how .i { color: #1f9d55; }
.cx-esc { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.cx-esc a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* 1 streha */
.cx-found { margin-top: 14px; }
.cx-card { border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.cx-card-h { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; padding: 14px 16px; background: linear-gradient(180deg, #fff, #fbf7f1); }
.cx-card-h > span { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1f7a45; }
.cx-card-h > span .i { width: 16px; height: 16px; }
.cx-card-h b { font-size: 2.1rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-card-h small { align-self: center; justify-self: end; text-align: right; max-width: 15ch; font-size: .84rem; color: var(--muted); line-height: 1.3; }
.cx-card-f, .cx-card .cx-warn { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.cx-card-f .i, .cx-card .cx-warn .i { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.cx-warn { color: #9a3412 !important; } .cx-warn .i { color: #ea580c !important; }
.cx-none { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg); color: var(--ink-2); }
.cx-none .i { color: var(--red); }
.cx-tip { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff7ef; border: 1px solid #f3dcc8; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.cx-tip > .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
.cx-alt-btns { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.cx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.cx-link .i { width: 18px; height: 18px; color: var(--red); }
.cx-manual { margin-top: 4px; padding: 16px; border-radius: 18px; background: var(--bg); }
.cx-manual label { display: block; margin-bottom: 8px; font-weight: 600; }
.cx-manual small { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }
.cx-num { position: relative; }
.cx-num input { width: 100%; height: 56px; padding: 0 56px 0 16px; border-radius: 14px; border: 2px solid var(--line-2); background: #fff; font-size: 1.2rem; font-weight: 600; outline: 0; }
.cx-num input:focus { border-color: var(--red); }
.cx-num span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cx-opts { display: grid; gap: 14px; margin-top: 14px; }
.cx-q { border: 0; min-width: 0; }
.cx-q legend { margin-bottom: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cx-q legend small { font-size: .82rem; font-weight: 500; color: var(--red); letter-spacing: 0; text-transform: none; }
.cx-shapes, .cx-pitch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cx-shapes label, .cx-pitch label, .cx-seg label { position: relative; cursor: pointer; }
.cx-shapes input, .cx-pitch input, .cx-seg input, .cx-mat input { position: absolute; opacity: 0; pointer-events: none; }
.cx-shapes span, .cx-pitch span { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; padding: 8px 4px 9px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; transition: border-color .2s, background-color .2s; }
.cx-shapes b, .cx-pitch b { font-size: .9rem; font-weight: 600; }
.cx-pitch small { font-size: .76rem; color: var(--muted); }
.cx-shapes input:checked + span, .cx-pitch input:checked + span, .cx-seg input:checked + span { border-color: var(--red); background: #fcf1ed; }
.cx-shapes input:focus-visible + span, .cx-pitch input:focus-visible + span, .cx-seg input:focus-visible + span, .cx-mat input:focus-visible + .cx-mat-in { outline: 3px solid var(--red); outline-offset: 2px; }
.shape-ico { width: 100%; height: 42px; }
.shape-ico path { transition: fill .25s; }
.shape-ico .r1 { fill: #b6a79d; } .shape-ico .r2 { fill: #9b8b80; } .shape-ico .r3 { fill: #857569; }
.shape-ico .w1 { fill: #e9e2d6; } .shape-ico .w2 { fill: #d6cdbf; } .shape-ico .win { fill: #6d7682; }
input:checked + span .shape-ico .r1 { fill: var(--red); } input:checked + span .shape-ico .r2 { fill: #a51d25; } input:checked + span .shape-ico .r3 { fill: #8a2519; }
.cx-pitch svg { width: 56px; height: 26px; }
.cx-pitch .pr { fill: none; stroke: #9b8b80; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.cx-pitch .pb { fill: none; stroke: var(--line-2); stroke-width: 2; }
.cx-pitch input:checked + span .pr { stroke: var(--red); }

/* 2 kritina */
.cx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cx-seg span { display: grid; height: 100%; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; transition: border-color .2s, background-color .2s; }
.cx-seg b { font-size: .95rem; font-weight: 600; }
.cx-seg small { font-size: .8rem; color: var(--muted); }
.cx-mats { display: grid; gap: 8px; margin-top: 10px; }
.cx-mat { cursor: pointer; }
.cx-mat-in { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'img t p'; align-items: center; gap: 0 12px; padding: 6px 14px 6px 6px; border-radius: 16px; border: 2px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .25s; }
.cx-mat img { grid-area: img; } .cx-mat-t { grid-area: t; } .cx-mat-p { grid-area: p; }
.cx-mat:hover .cx-mat-in { border-color: var(--ink); }
.cx-mat input:checked + .cx-mat-in { border-color: var(--red); background: #fcf1ed; }
.cx-mat img { width: 64px; height: 52px; border-radius: 11px; object-fit: cover; }
.cx-mat-t b { display: block; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.cx-mat-t b em { margin-left: 2px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font); font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .04em; vertical-align: 2px; white-space: nowrap; }
.cx-mat-t small { display: block; margin-top: 1px; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.cx-mat-p { font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-align: right; white-space: nowrap; }
.cx-mat.is-off { cursor: not-allowed; opacity: .5; }

/* 3 cena */
.cx-price { margin-top: 12px; font-size: clamp(2rem, 2.8vw, 2.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-vat { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.cx-eko { display: flex; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #ecf7ef; color: #14532d; }
.cx-eko > .i { flex: none; width: 22px; height: 22px; color: #16a34a; }
.cx-eko b { display: block; font-size: .95rem; }
.cx-eko span { display: block; margin-top: 2px; font-size: .88rem; line-height: 1.45; }
.cx-det { margin-top: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.cx-det summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 600; cursor: pointer; list-style: none; }
.cx-det summary::-webkit-details-marker { display: none; }
.cx-det summary small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 500; color: var(--muted); }
.cx-det summary .i { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.cx-det[open] summary .i { transform: rotate(180deg); }
.cx-det > ul, .cx-det > div { padding: 0 16px 14px; }
.cx-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cx-inc li { display: flex; gap: 8px; font-size: .9rem; line-height: 1.35; }
.cx-inc .i { flex: none; width: 18px; height: 18px; color: #16a34a; stroke-width: 2.6; }
.cx-extras { display: grid; gap: 2px; }
.cx-ex { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cx-ex:last-child { border-bottom: 0; }
.cx-ex input { position: absolute; opacity: 0; pointer-events: none; }
.cx-sw { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--bg-2); transition: background-color .25s; }
.cx-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out); }
.cx-ex input:checked + .cx-sw { background: var(--red); }
.cx-ex input:checked + .cx-sw::after { transform: translateX(18px); }
.cx-ex input:focus-visible + .cx-sw { outline: 3px solid var(--red); outline-offset: 2px; }
.cx-ex-t b { display: block; font-size: .94rem; font-weight: 600; }
.cx-ex-t small { display: block; font-size: .82rem; color: var(--muted); }
.cx-ex-p { font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-step-n { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 3px; border-radius: 999px; background: var(--bg); }
.cx-step-n button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.cx-step-n button:hover { background: #fff; }
.cx-step-n output { min-width: 22px; text-align: center; font-weight: 700; }
.cx-lead { margin-top: 16px; padding: 20px; border-radius: 20px; background: var(--navy); color: #fff; scroll-margin: 20px; }
.cx-lead h3, .cx-lead h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; }
.cx-lead > p { margin-top: 6px; color: var(--on-dark); font-size: .93rem; }
.cx-lead form { margin-top: 14px; }
.cx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cx-lead .in { border-color: transparent; }
.cx-lead .err { color: #ff9fa3; }
.cx-fine { margin-top: 10px; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.cx-ok { display: flex; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.cx-ok .i { width: 28px; height: 28px; color: #4ade80; }
.cx-ok b { display: block; }
.cx-ok span { font-size: .9rem; color: var(--on-dark); }
.cx-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cx-more .btn { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.cx-note { margin-top: 14px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 480px) { .cx-inc { grid-template-columns: 1fr; } .cx-pair { grid-template-columns: 1fr; } }

/* živa cena – na računalniku kartica na dnu zemljevida (kot v konceptu) */
.cx-bar { grid-column: 2; grid-row: 1; align-self: end; position: relative; z-index: 900; display: flex; align-items: center; gap: 16px; margin: 0 16px 16px; padding: 12px 12px 12px 22px; border-radius: 20px; background: rgba(13, 20, 31, .9); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55); animation: cx-in .45s var(--ease-out); }
.cx-live { flex: 1; min-width: 0; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.cx-live p { min-width: 0; }
.cx-live small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cx-live b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-live p + p b { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 700; }
.cx-next { flex: none; min-height: 52px; }
.cx.ima-streho .cx-map .leaflet-bottom { bottom: 96px; }
@media (min-width: 901px) { .cx-next .cx-next-s { display: none; } }

/* zemljevid: napisi in orodja */
.cx-hint { position: absolute; top: 16px; left: 50%; z-index: 800; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; background: rgba(13, 20, 31, .82); color: #fff; font-size: .95rem; font-weight: 500; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateX(-50%); white-space: nowrap; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.cx-hint .i { width: 18px; height: 18px; color: #ff9fa3; }
.cx-hint span { overflow: hidden; text-overflow: ellipsis; }
.cx-edit { position: absolute; left: 16px; top: 68px; z-index: 850; }
.cx-draw { position: absolute; left: 50%; bottom: 22px; z-index: 850; display: flex; gap: 8px; transform: translateX(-50%); }
.cx-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(13, 20, 31, .88); color: #fff; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); white-space: nowrap; }
.cx-tool-ok { background: #1f9d55; }
.cx-tool[disabled] { opacity: .45; }
.cx-coop { position: absolute; inset: 0; z-index: 870; display: grid; place-items: center; margin: 0; padding: 24px; background: rgba(13, 20, 31, .58); color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cx-coop.is-on { opacity: 1; }
.cx-load { position: absolute; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; background: rgba(13, 20, 31, .7); color: #fff; text-align: center; }
.cx-load > div { display: grid; justify-items: center; gap: 12px; max-width: 300px; }
.cx-load .i { width: 30px; height: 30px; color: #ff9fa3; }
.spin { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .9s linear infinite; }
.spin-dark { width: 18px; height: 18px; border-width: 2.5px; border-color: rgba(18, 26, 36, .15); border-top-color: var(--red); margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.cx-tag { display: block; width: max-content; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font: 700 14px/1.2 var(--font); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); pointer-events: none; font-variant-numeric: tabular-nums; }
.cx-len { display: block; width: max-content; padding: 3px 8px; border-radius: 8px; background: rgba(13, 20, 31, .86); color: #fff; font: 600 12px/1.2 var(--font); transform: translate(-50%, -50%); pointer-events: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vlecem .cx-tag { opacity: .35; }
/* brez transition na transform: Leaflet točke premika s transform, prehod bi povzročil zaostajanje */
.cx-vx { border-radius: 50%; background: #fff; border: 4px solid #ff6a55; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: grab; touch-action: none; }
.cx-vx:hover { background: #ffe9e5; box-shadow: 0 0 0 6px rgba(255, 106, 85, .35), 0 2px 8px rgba(0, 0, 0, .45); }
.cx-map .leaflet-control-zoom { border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); border-radius: 14px; overflow: hidden; margin: 0 16px 16px 0; }
.cx-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; background: rgba(13, 20, 31, .88); color: #fff; border-color: rgba(255, 255, 255, .12); }
.cx-map .leaflet-control-attribution { background: rgba(13, 20, 31, .7); color: rgba(255, 255, 255, .7); font-size: 10px; border-radius: 0 8px 0 0; }
.cx-map .leaflet-control-attribution a { color: #fff; }

/* telefon in tablica: zemljevid zgoraj (lepljiv), plošča pod njim, cena v spodnji vrstici */
@media (max-width: 900px) {
  .cx { display: block; height: auto; padding-top: var(--head); }
  .cx-map-wrap { position: sticky; top: var(--head); z-index: 2; height: 44vh; min-height: 280px; max-height: 460px; }
  .is-drawing.cx-map-wrap { height: calc(100dvh - var(--head)); max-height: none; }
  .cx-panel { overflow: visible; border-right: 0; position: relative; z-index: 3; margin-top: -18px; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .35); padding-bottom: 96px; }
  body[data-korak="1"] .cx-panel, body[data-korak="2"] .cx-panel { padding-bottom: 10px; }
  .cx-blk { padding: 20px var(--g); }
  .cx-find { padding-top: 22px; }
  .cx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; margin: 0; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); border-radius: 0; background: rgba(255, 253, 249, .96); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .3); }
  .cx-live { display: grid; gap: 0; }
  .cx-live small { display: none; }
  .cx-live b { font-size: .92rem; font-weight: 500; color: var(--muted); }
  .cx-live p + p b { font-size: 1.12rem; font-weight: 700; color: var(--red); }
  .cx-live p:first-child b::after { content: ' strehe'; }
  .cx.ima-streho .cx-map .leaflet-bottom { bottom: 0; }
  .cx-hint { top: 12px; font-size: .88rem; padding: 9px 14px; }
  .cx-edit { top: 60px; left: 12px; }
  body.is-drawing .cx-bar { display: none; }
  .is-drawing .leaflet-bottom.leaflet-right { bottom: 76px; }
  .cx-draw { left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; justify-content: center; }
  .cx-tool { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 10px; font-size: .92rem; }
  .cx-edit .cx-tool { flex: none; padding: 0 16px; }
}
@media (max-width: 900px) and (min-width: 561px) { .cx-next .cx-next-s { display: none; } }
@media (max-width: 560px) { .cx-next .cx-next-l { display: none; } }

/* ---------- vgrajen izračun (domača stran) ---------- */
.cx.cx-embed { height: min(860px, calc(100svh - var(--head) - 32px)); min-height: 640px; padding-top: 0; border-radius: var(--r-l); overflow: hidden; color: var(--ink); background: var(--card); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .65); scroll-margin-top: calc(var(--head) + 12px); }
.cx-embed .cx-h { font-size: clamp(1.5rem, 2.1vw, 1.9rem); }
@media (max-width: 900px) {
  .cx.cx-embed { height: auto; min-height: 0; padding-top: 0; overflow: visible; border-radius: var(--r-l); background: transparent; box-shadow: none; }
  .cx-embed .cx-map-wrap { top: var(--head); border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; }
  .cx-embed .cx-panel { padding-bottom: 0; border-radius: 22px 22px 0 0; }
  body[data-korak="1"] .cx-embed .cx-panel, body[data-korak="2"] .cx-embed .cx-panel { border-radius: 22px; }
  .cx-embed .cx-bar { position: sticky; bottom: 0; border-radius: 0 0 22px 22px; }
  .cx-embed .is-drawing.cx-map-wrap, .cx-embed .cx-map-wrap.is-drawing { border-radius: 0; }
}
/* ozek zaslon: cena kritine pod imenom */
@media (max-width: 560px) {
  .cx-mat-in { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: 'img t' 'img p'; padding: 8px 12px 8px 8px; }
  .cx-mat img { align-self: center; width: 60px; height: 56px; }
  .cx-mat-p { text-align: left; margin-top: 3px; font-size: .98rem; }
}
@media (max-width: 400px) {
  .cx-card-h b { font-size: 1.8rem; }
  .cx-price { font-size: 1.85rem; }
  .cx-seg span { padding: 9px 10px; }
}
