/* ==========================================================================
   Fit dezerty a snacky pre prevádzky (/fit-dezerty-a-snacky/)
   Načítava sa len na tejto stránke, po catering.css (formulár, karty, kroky, box s fotkou).
   ========================================================================== */

.pill--white { background: #fff; }

/* Hero a sortiment používajú triedy z Cateringu (about-hero, about-cover, cat-show). */
.b2b-show__info { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Prečo od nás – ako „Koľko stojí catering na osobu“: ikonka namiesto čísla, vpravo fotka z kuchyne */
/* kartičky sú hravo našikmo a každá posunutá inam, nie v jednej rovine */
.b2b-why .cat-price__factors { gap: 28px; }
.b2b-why .cat-price__factors li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: center; column-gap: 16px; padding-left: 20px; transform: rotate(var(--tilt, 0deg)); }
.b2b-why .cat-price__factors li:nth-child(1) { --tilt: -1.5deg; margin-right: 48px; }
.b2b-why .cat-price__factors li:nth-child(2) { --tilt: 1.2deg; margin-left: 48px; }
.b2b-why .cat-price__factors li:nth-child(3) { --tilt: -.8deg; margin-right: 28px; margin-left: 20px; }
.b2b-why .cat-price__factors li::before { content: none; }
.b2b-why .cat-price__factors li > :not(.b2b-why__icon) { grid-column: 2; }
/* ikonka v „blobe“ ako pri výhodách na Cateringu (.cat-blob-icon), začína na úrovni nadpisu */
.b2b-why .b2b-why__icon { grid-row: 1 / span 2; align-self: start; }
.b2b-why__media { position: relative; min-height: 420px; margin: 0; }
.b2b-why__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover; object-position: 45% 50%; }

/* Etiketa – schéma toho, čo je na etikete (bez vymyslených hodnôt) */
.b2b-label-sec { padding: 0 var(--gutter) 88px; }
.b2b-label-sec__box { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 64px; max-width: var(--container); margin: 0 auto; padding: 64px; border-radius: var(--radius); background: var(--primary-500) url("../img/brush-bg-primary-400.svg") no-repeat 0 100%; color: var(--surface); }
.b2b-label-sec__text { display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 27px; }
.b2b-label-sec__title { color: var(--surface); font-size: 56px; line-height: 61.6px; }
.b2b-label { margin: 0; transform: rotate(-3deg); }
.b2b-label__sheet { padding: 28px; border-radius: var(--radius-sm); background: #fff; color: var(--primary-800); box-shadow: 0 18px 40px -18px rgba(0, 20, 16, .55); }
.b2b-label__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--primary-800); }
.b2b-label__logo { width: 92px; height: auto; }
.b2b-label__caption { color: var(--primary-800); font-family: var(--font-display); font-size: 22px; line-height: 24.2px; }
.b2b-label__rows li { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px dashed var(--gray-600); }
.b2b-label__rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.b2b-label__name { font-size: 15px; font-weight: 600; line-height: 20px; }
.b2b-label__bars { display: flex; flex-direction: column; gap: 6px; }
.b2b-label__bars i { display: block; width: 90%; height: 8px; border-radius: 4px; background: var(--gray-500); }
.b2b-label__bars i + i { width: 60%; }
.b2b-label__macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.b2b-label__macros span { position: relative; padding: 8px 0 22px; border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 600; line-height: 14px; text-align: center; }
.b2b-label__macros span::after { content: ""; position: absolute; right: 25%; bottom: 8px; left: 25%; height: 6px; border-radius: 3px; background: var(--gray-500); }

/* Ochutnávka – box s fotkou ako „Každý hosť dostane vlastnú krabičku“ na Cateringu */
.b2b-taste { padding-top: 0; }
.b2b-taste .cat-own__box { justify-content: center; align-items: flex-start; }

/* Podmienky – tabuľka pojmov */
.b2b-terms { padding: 88px var(--gutter); }
.b2b-terms__inner { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; max-width: 1040px; margin: 0 auto; }
.b2b-terms__title { font-size: 48px; line-height: 52.8px; }
.b2b-terms__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--gray-600); }
.b2b-terms__row:last-child { border-bottom: 1px solid var(--gray-600); }
.b2b-terms__row dt { color: var(--primary-800); font-family: var(--font-display); font-size: 20px; line-height: 22px; }
.b2b-terms__row dd { margin: 0; font-size: 16px; line-height: 22.4px; }

/* Kde kúpite – prevádzky podľa miesta */
.b2b-where { padding: 0 var(--gutter) 88px; }
.b2b-where__box { display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr auto; grid-template-areas: ". map" "text map" "tabs map" ". map" "share share"; /* nadpis a taby zvislo v strede vedľa mapy */ gap: 24px 56px; max-width: var(--container); margin: 0 auto; padding: 56px; border-radius: var(--radius); background: var(--surface); }
.b2b-where__text { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; font-size: 16px; line-height: 22.4px; }
.b2b-where__title { font-size: 48px; line-height: 52.8px; }
/* Taby Brezno / Okolie – priblížia mapu */
.b2b-where__tabs { grid-area: tabs; justify-self: start; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.b2b-where__tab { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--primary-500); font-family: var(--font-display); font-size: 18px; line-height: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.b2b-where__tab[aria-selected="true"] { background: var(--primary-500); color: var(--surface); }
.b2b-where__tab:focus-visible, .b2b-map__pin:focus-visible, .b2b-map__cluster:focus-visible { outline: 3px solid var(--secondary-500); outline-offset: 2px; }

/* Kreslená mapa – plán Brezna a okolie (SVG), prepínanie ako priblíženie */
.b2b-map { grid-area: map; align-self: start; min-width: 0; }
.b2b-map__frame { overflow: hidden; } /* bez vlastného pozadia – mapa je nakreslená priamo na karte ako na Cateringu */
.b2b-map__stage { position: relative; overflow: hidden; aspect-ratio: 1000 / 760; container-type: inline-size; --map-label: clamp(11px, 1.9cqw, 15px); } /* orez – zväčšený skrytý pohľad nesmie rozšíriť posúvanie */
.b2b-map__view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: transform .7s var(--ease), opacity .45s ease, visibility 0s linear .7s; }
.b2b-map__view--brezno { transform: scale(.25); transform-origin: 50% 50%; }
.b2b-map__view--okolie { transform: scale(4); transform-origin: 50% 56.05%; } /* Brezno na mape okolia */
.b2b-map[data-view="brezno"] .b2b-map__view--brezno, .b2b-map[data-view="okolie"] .b2b-map__view--okolie { opacity: 1; visibility: visible; transform: none; transition: transform .7s var(--ease), opacity .45s ease .1s, visibility 0s; }
/* okraje kresby sa strácajú do karty (ako mapa rozvozu na Cateringu) */
.b2b-map__svg { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.b2b-town__river { fill: none; stroke: #8FC6D6; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.b2b-town__rail { fill: none; stroke: var(--primary-300); stroke-width: 2.5; stroke-dasharray: 10 8; stroke-linecap: round; }
.b2b-town__roads path { fill: none; stroke: var(--primary-200); stroke-linecap: round; stroke-linejoin: round; }
.b2b-town__major { stroke-width: 5; }
.b2b-town__minor { stroke-width: 2; opacity: .55; }
.b2b-town__square { fill: var(--secondary-200); stroke: var(--primary-300); stroke-width: 2; stroke-dasharray: 8 7; }
/* ilustrácie – veža a kostol na námestí */
.b2b-town__landmark path, .b2b-town__landmark circle { stroke: var(--primary-400); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.b2b-town__wall, .b2b-town__clock { fill: #FFFDF7; }
.b2b-town__roof { fill: var(--primary-300); }
.b2b-town__roof--brown { fill: #8E6650; } /* hnedá strecha Mestskej veže */
.b2b-town__hole, .b2b-town__ball { fill: var(--primary-400); stroke: none; }
.b2b-town__line { fill: none; }
/* na mape okolia sú obce len orientačné – menšie a tlmenejšie ako názvy prevádzok */
.b2b-map__view--okolie .cat-map__town text { fill: var(--primary-400); font-size: 16px; }
.b2b-map__view--okolie .cat-map__town circle { fill: var(--primary-300); }
.b2b-town__river-label { fill: #4E9BB2; font: italic 500 22px var(--font-body); }
.b2b-town__label { fill: var(--primary-400); font: 400 22px var(--font-display); letter-spacing: .02em; }
.b2b-town__title { fill: var(--primary-800); font: 400 56px var(--font-display); }
/* špendlík = číslo na mieste + názov prevádzky napísaný priamo v mape (strana podľa $map_labels) */
.b2b-map__pin { position: absolute; z-index: 1; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--primary-800); cursor: pointer; transform: translateX(var(--dx, 0px)); }
.b2b-map__num { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; background: var(--secondary-500); color: #fff; font: 400 15px/1 var(--font-display); box-shadow: 0 2px 6px rgba(0, 36, 30, .35); transition: transform .15s, background-color .15s; }
.b2b-map__label { position: absolute; top: 50%; left: calc(100% + 5px); width: max-content; font: 600 var(--map-label, 14px)/1.15 var(--font-body); text-align: left; text-shadow: 0 0 2px var(--surface), 0 0 3px var(--surface), 1px 1px 0 var(--surface), -1px -1px 0 var(--surface), 1px -1px 0 var(--surface), -1px 1px 0 var(--surface); transform: translateY(calc(-50% + var(--ly, 0px))); transition: color .15s; }
.b2b-map__pin--l .b2b-map__label { right: calc(100% + 5px); left: auto; text-align: right; }
.b2b-map__pin--t .b2b-map__label, .b2b-map__pin--b .b2b-map__label { left: 50%; text-align: center; transform: translate(-50%, var(--ly, 0px)); }
.b2b-map__pin--t .b2b-map__label { top: auto; bottom: calc(100% + 3px); }
.b2b-map__pin--b .b2b-map__label { top: calc(100% + 3px); }
.b2b-map__pin.is-active { z-index: 3; }
.b2b-map__pin.is-active .b2b-map__num { background: var(--primary-500); transform: scale(1.2); }
.b2b-map__pin.is-active .b2b-map__label { color: var(--primary-500); }
@media (hover: hover) { .b2b-map__pin:hover { z-index: 3; } .b2b-map__pin:hover .b2b-map__num { background: var(--primary-500); transform: scale(1.2); } }
/* počet sedí na bode, názov mesta ide doprava */
.b2b-map__cluster { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 2px solid #fff; border-radius: 999px; background: var(--primary-500); color: var(--surface); font: 400 18px/20px var(--font-display); white-space: nowrap; box-shadow: 0 3px 8px rgba(0, 36, 30, .3); cursor: pointer; transform: translate(-20px, -50%); }
.b2b-map__cluster b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--secondary-500); color: #fff; font-weight: 400; }
.b2b-map__popup { position: absolute; z-index: 5; width: 250px; padding: 14px 40px 14px 16px; border-radius: var(--radius-sm); background: #fff; color: var(--primary-800); font-size: 14px; line-height: 19px; box-shadow: 0 10px 28px rgba(0, 36, 30, .28); }
.b2b-map__popup[hidden] { display: none; }
.b2b-map__popup strong { display: block; margin-bottom: 2px; font: 400 21px/23px var(--font-display); }
.b2b-map__popup span { display: block; }
.b2b-map__popup a { display: inline-block; margin-top: 8px; color: var(--secondary-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.b2b-map__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--primary-500); cursor: pointer; }
.b2b-map__close .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .b2b-map__view { transition: opacity .2s, visibility 0s linear .2s; } }


/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.b2b-why .cat-price__factors { gap: 40px; }
	.b2b-why__media { min-height: 360px; }

	.b2b-label-sec__box { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
	.b2b-label { max-width: 400px; }

	.b2b-terms__inner { grid-template-columns: 1fr; gap: 24px; }
	.b2b-where__box { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "text" "tabs" "map" "share"; }
}

/* Mobil ------------------------------------------------------------------- */
@media (max-width: 767px) {
	.b2b-why .cat-price__factors { grid-auto-rows: auto; gap: 20px; }
	.b2b-why .cat-price__factors li { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding-left: 12px; }
	.b2b-why .cat-price__factors li:nth-child(1) { margin-right: 16px; }
	.b2b-why .cat-price__factors li:nth-child(2) { margin-left: 16px; }
	.b2b-why .cat-price__factors li:nth-child(3) { margin-right: 10px; margin-left: 6px; }
	.b2b-why__media { min-height: 260px; }

	.b2b-label-sec { padding-bottom: 56px; }
	.b2b-label-sec__box { padding: 32px 24px; }
	.b2b-label-sec__title { font-size: 32px; line-height: 35.2px; }
	.b2b-label-sec__text { font-size: 16px; line-height: 24px; }
	.b2b-label { transform: rotate(-2deg); }
	.b2b-label__sheet { padding: 20px; }

	.b2b-terms { padding: 56px var(--gutter); }
	.b2b-terms__title { font-size: 32px; line-height: 35.2px; }
	.b2b-terms__row { grid-template-columns: 1fr; gap: 4px; }
	.b2b-terms__row dt { font-size: 18px; line-height: 20px; }
	.b2b-terms__row dd { font-size: 14px; line-height: 21px; }

	.b2b-where { padding-bottom: 56px; }
	.b2b-where__box { gap: 24px; padding: 32px 24px; }
	.b2b-where__title { font-size: 32px; line-height: 35.2px; }
	.b2b-where__tabs { justify-self: stretch; }
	.b2b-where__tab { flex: 1; padding: 10px 12px; font-size: 17px; }
	/* na mobile je mapa širšia ako displej a dá sa posúvať do strán (ako mapa rozvozu na Cateringu) */
	.b2b-map__frame { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
	.b2b-map__frame::-webkit-scrollbar { display: none; }
	.b2b-map__stage { width: 580px; } /* názvy prevádzok potrebujú miesto – písmo ostane aspoň 11 px */
	.b2b-map__pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
	.b2b-map__num { border-width: 1.5px; font-size: 13px; }
	.b2b-map__cluster { padding: 3px 10px 3px 3px; font-size: 15px; transform: translate(-15px, -50%); }
	.b2b-map__cluster b { min-width: 22px; height: 22px; }
	.b2b-map__popup { width: 220px; }

}
