/**
 * single-catalog (Phase 0) — стилі для CPT `catalog`.
 *
 * Базуємось на tokens.css (paper/ink/yellow/red, --line, --shadow-*).
 * Усе у namespace `.cat-*` щоб не конфліктувати з article/category стилями.
 */

/* ---------------------------- LAYOUT ---------------------------- */

.cat-page {
	padding: 8px 0 40px;
	min-height: 60vh;
}

.cat-card {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 28px;
}
@media (max-width: 720px) {
	.cat-card { padding: 0 14px; }
}

.cat-crumbs {
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 28px 0;
	font-size: 12px;
	color: var(--muted);
}
.cat-crumbs .sep { margin: 0 6px; opacity: .6; }
.cat-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.cat-section__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 14px;
	letter-spacing: -.01em;
	line-height: 1.2;
}
@media (max-width: 720px) {
	.cat-section__title { font-size: 18px; }
}

/* ---------------------------- HERO ---------------------------- */

.cat-hero {
	display: grid;
	grid-template-columns: 104px 1fr auto;
	gap: 22px;
	align-items: center;
	padding: 24px 0 20px;
}
.cat-hero__logo {
	width: 104px; height: 104px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--paper-2);
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-1);
}
.cat-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.cat-hero__logo-fallback {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 800;
	font-size: 38px;
	color: var(--ink-2);
	background: linear-gradient(135deg, var(--yellow-soft), var(--paper-2));
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
}

.cat-hero__main { min-width: 0; }
.cat-hero__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 40px;
	letter-spacing: -.015em;
	line-height: 1.04;
	margin: 0 0 6px;
	color: var(--ink);
}
.cat-hero__subtitle {
	font-size: 15px;
	color: var(--ink-3);
	margin-bottom: 10px;
}
.cat-hero__badges {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin-bottom: 10px;
}
.cat-hero__chips {
	display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-hero__meta {
	text-align: right;
	min-width: 180px;
}
.cat-hero__views {
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
}

@media (max-width: 720px) {
	.cat-hero {
		grid-template-columns: 64px 1fr;
		gap: 14px;
		padding: 16px 0 12px;
	}
	.cat-hero__logo { width: 64px; height: 64px; border-radius: 12px; }
	.cat-hero__logo-fallback { font-size: 22px; }
	.cat-hero__title { font-size: 24px; }
	.cat-hero__subtitle { font-size: 13px; margin-bottom: 8px; }
	.cat-hero__meta {
		grid-column: 1 / -1;
		text-align: left;
		min-width: 0;
		margin-top: 4px;
	}
}

/* Tier badges */
.cat-tier {
	display: inline-flex; align-items: center;
	height: 22px; padding: 0 8px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 800; font-size: 10px;
	letter-spacing: .08em; text-transform: uppercase;
	border-radius: 999px;
	background: var(--paper-2); color: var(--ink-2);
	border: 1px solid var(--line);
}
.cat-tier--free     { background: transparent; color: var(--muted); }
.cat-tier--pro      { background: var(--yellow-deep); color: var(--ink); border-color: transparent; }
.cat-tier--business { background: var(--ink); color: var(--paper); border-color: transparent; }
.cat-tier--vip      { background: linear-gradient(135deg, var(--yellow-deep), var(--red)); color: #fff; border-color: transparent; }
.cat-tier--verified { background: var(--paper-2); color: var(--green); border-color: rgba(42,123,58,.2); }
.cat-tier--choice   { background: var(--yellow-soft); color: var(--ink-2); border-color: transparent; }
.cat-tier--year     { background: var(--red-soft); color: var(--red-deep); border-color: transparent; }

/* Verified-badge tooltip — показується при hover/focus,
 * пояснює, що компанія сама керує сторінкою з кабінету. */
.cat-tier--verified { position: relative; cursor: help; }
.cat-tier__tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%) translateY(2px);
	white-space: nowrap;
	padding: 6px 10px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	background: var(--ink);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	z-index: 10;
}
.cat-tier__tip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--ink);
}
.cat-tier--verified:hover .cat-tier__tip,
.cat-tier--verified:focus-visible .cat-tier__tip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Chips (рубрики у hero) */
.cat-chip {
	display: inline-flex; align-items: center;
	height: 26px; padding: 0 10px;
	font-size: 12px; font-weight: 500;
	color: var(--ink-2);
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	transition: background .15s ease;
	white-space: nowrap;
}
.cat-chip:hover { background: var(--paper-3); }

/* Rating */
.cat-rating {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px;
}
.cat-rating__stars {
	color: var(--yellow-deep);
	letter-spacing: 1px;
	font-size: 14px;
}
.cat-rating__stars span      { opacity: .25; }
.cat-rating__stars span.on   { opacity: 1; }
.cat-rating__value { font-weight: 700; color: var(--ink); }
.cat-rating__count { color: var(--muted); }
.cat-rating--empty { color: var(--muted); font-size: 12px; }

/* ---------------------------- CTA BAR ---------------------------- */

.cat-cta {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding: 4px 0 20px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 22px;
}

.cat-btn {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px;
	padding: 0 16px;
	font-family: 'Manrope', system-ui, sans-serif;
	font-weight: 700; font-size: 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	transition: transform .12s ease, background .15s ease, border-color .15s ease;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.cat-btn:hover  { background: var(--paper-2); }
.cat-btn:active { transform: scale(.98); }

.cat-btn--y {
	background: var(--yellow);
	color: var(--ink);
	border-color: transparent;
	box-shadow: 0 2px 0 var(--yellow-deep);
}
.cat-btn--y:hover { background: var(--yellow-deep); }

.cat-btn--ink {
	background: var(--ink);
	color: var(--paper);
	border-color: transparent;
}
.cat-btn--ink:hover { background: var(--ink-2); color: var(--paper); }

.cat-btn--out {
	background: transparent;
	border-color: var(--line-strong);
}

.cat-btn__icon { flex-shrink: 0; }

.cat-btn__badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	background: rgba(14,14,15,.15);
	border-radius: 999px;
	font-size: 10px; font-weight: 800;
	margin-left: 4px;
}

/* ---------------------------- GALLERY ---------------------------- */

.cat-gallery { margin-bottom: 24px; }
.cat-gallery__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 200px 200px;
	gap: 10px;
}
.cat-gallery__item {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
	box-shadow: var(--shadow-1);
}
.cat-gallery__item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.cat-gallery__item:hover img { transform: scale(1.03); }
.cat-gallery__item--main {
	grid-row: 1 / span 2;
}
.cat-gallery__more {
	position: absolute; inset: 0;
	background: rgba(14,14,15,.62);
	color: #fff;
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700; font-size: 15px;
	display: flex; align-items: center; justify-content: center;
	pointer-events: none;
}

@media (max-width: 720px) {
	.cat-gallery__grid {
		display: flex;
		grid-template: none;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	.cat-gallery__item {
		flex: 0 0 78%;
		height: 220px;
		scroll-snap-align: start;
	}
	.cat-gallery__item--main { flex: 0 0 88%; height: 240px; }
}

/* ---------------------------- 2-COL LAYOUT ---------------------------- */

.cat-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: start;
}
.cat-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 14px; }

@media (max-width: 980px) {
	.cat-layout { grid-template-columns: 1fr; }
	.cat-side { position: static; }
}

/* ---------------------------- DESCRIPTION ---------------------------- */

.cat-desc { margin: 0 0 26px; max-width: 760px; }
.cat-desc__body {
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-2);
}
.cat-desc__body p { margin: 0 0 14px; }
.cat-desc__body h2,
.cat-desc__body h3 {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	margin: 24px 0 10px;
	letter-spacing: -.01em;
}
.cat-desc__body h2 { font-size: 22px; }
.cat-desc__body h3 { font-size: 18px; }
.cat-desc__body a  { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-underline-offset: 3px; }
.cat-desc__body a:hover { color: var(--red); }
.cat-desc__body img { border-radius: var(--radius); margin: 12px 0; }
.cat-desc__body ul,
.cat-desc__body ol { padding-left: 22px; margin: 0 0 14px; }

/* ---------------------------- INFO (sidebar-у-main coliumn fallback) ---------------------------- */

.cat-info {
	background: var(--paper-2);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 0 0 24px;
	max-width: 760px;
}
.cat-info__list {
	display: grid;
	grid-template-columns: 100px 1fr;
	row-gap: 10px;
	column-gap: 14px;
	margin: 0;
	font-size: 14px;
}
.cat-info__list dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.cat-info__list dd { margin: 0; color: var(--ink-2); }
.cat-info__list a  { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.cat-info__list a:hover { color: var(--red); text-decoration-color: var(--red); }

.cat-info__phones,
.cat-info__hours,
.cat-info__branches {
	list-style: none; padding: 0; margin: 0;
}
.cat-info__phones li,
.cat-info__hours  li,
.cat-info__branches li { padding: 1px 0; }

@media (max-width: 720px) {
	.cat-info__list { grid-template-columns: 84px 1fr; column-gap: 10px; }
}

/* ---------------------------- MAP ---------------------------- */

.cat-map {
	background: var(--paper-2);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-1);
}
.cat-map__el {
	width: 100%;
	height: 240px;
	background: var(--paper-2);
	background-image:
		repeating-linear-gradient(135deg, rgba(14,14,15,.04) 0 8px, transparent 8px 16px);
}
.cat-map__nojs {
	margin: 0; padding: 16px;
	font-size: 12px; color: var(--muted); text-align: center;
}

/* Leaflet override — щоб фон туу прозорий поки тайли вантажаться */
.leaflet-container {
	background: var(--paper-2);
	font-family: inherit;
	border-radius: var(--radius);
}
.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: var(--shadow-2);
}
.leaflet-popup-content {
	font-size: 13px;
	margin: 10px 14px;
}
.leaflet-popup-content b { font-family: 'Unbounded', system-ui, sans-serif; }

/* ---------------------------- PROMO BLOCK (sidebar) ---------------------------- */

.cat-promos { display: grid; gap: 10px; }
.cat-promo {
	padding: 16px 18px;
	border: 2px dashed var(--yellow-deep);
	border-radius: 14px;
	background: var(--yellow-soft);
	text-align: center;
}
.cat-promo__eyebrow {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--ink-2);
	margin-bottom: 4px;
}
.cat-promo__code { margin: 4px 0 8px; }
.cat-promo__copy {
	font-family: 'JetBrains Mono', 'Menlo', monospace;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .04em;
	color: var(--ink);
	background: var(--paper);
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid var(--line-strong);
	transition: background .15s ease, border-color .15s ease;
}
.cat-promo__copy:hover {
	background: var(--yellow);
	border-color: var(--yellow-deep);
}
.cat-promo__copy.is-copied {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}
.cat-promo__title {
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 600;
	margin-bottom: 4px;
}
.cat-promo__until {
	font-size: 11.5px;
	color: var(--muted);
}

/* ---------------------------- LEAD FORM ---------------------------- */

.cat-lead {
	background: var(--paper-2);
	border-radius: var(--radius);
	padding: 18px 20px;
	box-shadow: var(--shadow-1);
}
.cat-lead--hidden { display: none; }

.cat-lead__head {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 4px;
}
.cat-lead__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 18px;
	margin: 0;
}
.cat-lead__sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.cat-field { display: grid; gap: 4px; margin-bottom: 10px; }
.cat-field label { font-size: 12px; color: var(--muted); }
.cat-field input,
.cat-field textarea {
	width: 100%;
	padding: 11px 12px;
	font: 14px/1.4 'Manrope', system-ui, sans-serif;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	outline: 0;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cat-field input:focus,
.cat-field textarea:focus {
	border-color: var(--ink);
	box-shadow: 0 0 0 3px var(--yellow-soft);
}
.cat-field textarea { resize: vertical; min-height: 70px; }

.cat-field__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; opacity: 0;
}

.cat-lead__agree,
.cat-modal__agree {
	display: flex; align-items: flex-start; gap: 8px;
	margin: 8px 0 12px;
	font-size: 11.5px;
	color: var(--muted);
}
.cat-lead__agree input,
.cat-modal__agree input { margin-top: 2px; }
.cat-lead__agree a,
.cat-modal__agree a { text-decoration: underline; }

.cat-lead__submit,
.cat-modal__submit {
	width: 100%;
	height: 46px;
	font-size: 14px;
	justify-content: center;
}

.cat-lead__msg,
.cat-modal__msg {
	margin-top: 8px;
	min-height: 18px;
	font-size: 12px;
	text-align: center;
}
.cat-lead__msg.is-ok,
.cat-modal__msg.is-ok    { color: var(--green); }
.cat-lead__msg.is-error,
.cat-modal__msg.is-error { color: var(--red-deep); }

/* ---------------------------- CLAIM CTA ---------------------------- */

.cat-claim {
	position: relative;
	margin: 36px 0 32px;
	padding: 32px 36px;
	border-radius: 22px;
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 26px;
	align-items: center;
}
.cat-claim__bg {
	position: absolute; pointer-events: none; border-radius: 50%;
}
.cat-claim__bg--y {
	right: -50px; top: -50px;
	width: 240px; height: 240px;
	background: var(--yellow);
	opacity: .25;
}
.cat-claim__bg--r {
	left: 80px; bottom: -60px;
	width: 160px; height: 160px;
	background: var(--red);
	opacity: .18;
}
.cat-claim__icon { position: relative; z-index: 2; flex-shrink: 0; }
.cat-claim__body { position: relative; z-index: 2; min-width: 0; }
.cat-claim__action { position: relative; z-index: 2; text-align: center; min-width: 200px; }

.cat-claim__eyebrow {
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
	color: var(--yellow);
	margin-bottom: 6px;
}
.cat-claim__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -.01em;
	margin: 0 0 8px;
	color: var(--paper);
}
.cat-claim__text {
	margin: 0;
	color: rgba(246,241,228,.85);
	font-size: 14px;
	line-height: 1.55;
	max-width: 540px;
}
.cat-claim__text b { color: var(--yellow-soft); font-weight: 700; }

.cat-claim__perks {
	display: flex; flex-wrap: wrap; gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: rgba(246,241,228,.7);
}
.cat-claim__perks li {
	display: inline-flex; align-items: center; gap: 6px;
}

.cat-claim__btn { padding: 0 22px; height: 48px; font-size: 14px; }
.cat-claim__sub { margin-top: 10px; font-size: 11.5px; color: rgba(246,241,228,.55); }

@media (max-width: 980px) {
	.cat-claim {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 28px 22px;
	}
	.cat-claim__icon { margin: 0 auto; }
	.cat-claim__title { font-size: 24px; }
	.cat-claim__perks { justify-content: center; }
	.cat-claim__action { min-width: 0; width: 100%; }
	.cat-claim__btn { width: 100%; }
}

/* ---------------------------- RELATED ---------------------------- */

.cat-related-posts,
.cat-related-co {
	margin: 36px 0;
}

.cat-related-posts__list {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}
.cat-related-posts__link {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 12px;
	padding: 10px;
	background: var(--paper-2);
	border-radius: 12px;
	transition: background .15s ease, transform .12s ease;
}
.cat-related-posts__link:hover { background: var(--paper-3); transform: translateY(-1px); }
.cat-related-posts__img {
	width: 100px; height: 80px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--paper-3);
	flex-shrink: 0;
}
.cat-related-posts__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-related-posts__img--fallback.k1 { background: linear-gradient(135deg, #ffe680, #ffd400); }
.cat-related-posts__img--fallback.k2 { background: linear-gradient(135deg, #ffc1bd, var(--red-soft)); }
.cat-related-posts__img--fallback.k3 { background: linear-gradient(135deg, #cfc9b9, #a9a294); }
.cat-related-posts__img--fallback.k4 { background: linear-gradient(135deg, #fff4a8, #f4c100); }
.cat-related-posts__img--fallback.k5 { background: linear-gradient(135deg, #d4cdba, #8a8378); }
.cat-related-posts__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cat-related-co__grid {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.cat-related-co__card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-related-co__card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-2);
	border-color: var(--line-strong);
}
.cat-related-co__card.is-vip {
	border-color: var(--yellow-deep);
	background: var(--yellow-soft);
}
.cat-related-co__link {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 14px;
	align-items: center;
}
.cat-related-co__logo {
	width: 64px; height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--paper-2);
	object-fit: contain;
	padding: 4px;
	box-sizing: border-box;
}
.cat-related-co__logo--fallback {
	display: flex; align-items: center; justify-content: center;
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 800;
	font-size: 24px;
	color: var(--ink-2);
	background: linear-gradient(135deg, var(--yellow-soft), var(--paper-2));
}
.cat-related-co__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink);
	margin-bottom: 4px;
}
.cat-related-co__meta {
	font-size: 11.5px;
	color: var(--muted);
	display: flex; flex-wrap: wrap; gap: 4px;
}
.cat-related-co__rating { color: var(--yellow-deep); font-weight: 700; }

/* ---------------------------- MODAL ---------------------------- */

.cat-modal {
	position: fixed; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	z-index: 1000;
	overflow-y: auto;
}
.cat-modal[hidden] { display: none; }
.cat-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(14,14,15,.55);
}
.cat-modal__panel {
	position: relative;
	background: var(--paper);
	border-radius: var(--radius-lg);
	padding: 28px;
	max-width: 440px; width: 100%;
	box-shadow: var(--shadow-3);
}
.cat-modal__close {
	position: absolute; top: 14px; right: 14px;
	width: 32px; height: 32px;
	font-size: 18px;
	color: var(--muted);
	background: transparent;
	border-radius: 50%;
	transition: background .15s ease, color .15s ease;
}
.cat-modal__close:hover { background: var(--paper-2); color: var(--ink); }
.cat-modal__head { margin-bottom: 14px; }
.cat-modal__eyebrow { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.cat-modal__title {
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 6px;
}
.cat-modal__lead { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ---------------------------- GALLERY LIGHTBOX (inline) ---------------------------- */

.cat-lightbox {
	position: fixed; inset: 0;
	background: rgba(14,14,15,.92);
	z-index: 1100;
	display: flex; align-items: center; justify-content: center;
	padding: 40px;
}
.cat-lightbox[hidden] { display: none; }
.cat-lightbox__img {
	max-width: 100%; max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
}
.cat-lightbox__nav {
	position: absolute; top: 50%;
	width: 48px; height: 48px;
	transform: translateY(-50%);
	background: rgba(255,255,255,.1);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	display: flex; align-items: center; justify-content: center;
}
.cat-lightbox__nav:hover { background: rgba(255,255,255,.2); }
.cat-lightbox__nav--prev { left: 24px; }
.cat-lightbox__nav--next { right: 24px; }
.cat-lightbox__close {
	position: absolute; top: 24px; right: 24px;
	width: 40px; height: 40px;
	background: rgba(255,255,255,.1);
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
}
.cat-lightbox__close:hover { background: rgba(255,255,255,.2); }
.cat-lightbox__counter {
	position: absolute; bottom: 24px; left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,.7);
	font-size: 12px;
	font-family: 'JetBrains Mono', monospace;
}

/* ---------------------------- DARK MODE ---------------------------- */

body[data-theme="dark"] .cat-tier--free      { color: var(--muted); }
body[data-theme="dark"] .cat-tier--verified  { background: rgba(42,123,58,.15); border-color: rgba(42,123,58,.35); }
body[data-theme="dark"] .cat-info,
body[data-theme="dark"] .cat-lead,
body[data-theme="dark"] .cat-related-posts__link { background: var(--paper-2); }
body[data-theme="dark"] .cat-field input,
body[data-theme="dark"] .cat-field textarea {
	background: var(--paper-3);
	color: var(--ink);
	border-color: var(--line-strong);
}
body[data-theme="dark"] .cat-modal__panel { background: var(--paper-2); }
body[data-theme="dark"] .leaflet-container { background: var(--paper-3); }

/* ========== PHONE REVEAL ==========
 * У info-list (.cat-info__phones .cat-phone__reveal) — link-style (без bg).
 * У CTA-bar (.cat-btn.cat-phone__reveal) — наслідує yellow .cat-btn (НЕ override).
 * `:not(.cat-btn)` гарантує що ми НЕ ламаємо .cat-btn--y (yellow pill).
 */
.cat-phone__reveal:not(.cat-btn) {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--ink);
	font: inherit;
	text-align: left;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}
.cat-info__phones .cat-phone__masked {
	font-weight: 600;
	letter-spacing: 0.3px;
}
.cat-info__phones .cat-phone__cta {
	color: var(--ink-3);
	font-size: 0.92em;
	border-bottom: 1px dashed currentColor;
}
.cat-info__phones .cat-phone__reveal:hover .cat-phone__cta {
	color: var(--ink);
}
/* CTA-button — masked + cta inside yellow .cat-btn--y (без overrides). */
.cat-btn.cat-phone__reveal { cursor: pointer; }
.cat-btn.cat-phone__reveal .cat-phone__masked {
	font-weight: 700;
	letter-spacing: 0.3px;
}
.cat-btn.cat-phone__reveal .cat-phone__cta {
	opacity: 0.7;
	font-size: 0.85em;
	font-weight: 500;
	margin-left: 4px;
}
.cat-phone__link {
	font-weight: 600;
	color: var(--ink);
}

/* ========== SPONSORED (free-tier ads) ==========
 * Single-slot ad: тех-хедер (label + owner-disclosure) + одна елегантна картка.
 * Без обгортки-боксу — disclosure-стрічка зверху, картка нижче як основний візуал.
 *   - .cat-sponsored--listing: thumb 56×56 + headline + body, тонкий жовтий accent зліва
 *   - .cat-sponsored--banner:  banner-image зверху (contain) + caption знизу
 */
.cat-sponsored-row {
	position: relative;
	margin: 22px 0;
}
.cat-sponsored-row__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	padding: 0 2px;
}
.cat-sponsored-row__label {
	display: inline-flex;
	align-items: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ink-3, #6b6458);
}
.cat-sponsored-row__label::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--yellow-deep, #f4c100);
	margin-right: 7px;
	box-shadow: 0 0 0 2px rgba(244,193,0,.18);
}
.cat-sponsored-row__owner {
	font-size: 11px;
	line-height: 1;
	color: var(--ink-3, #6b6458);
	text-decoration: none;
	letter-spacing: 0.15px;
	border-bottom: 1px dashed rgba(14,14,15,.18);
	padding-bottom: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .15s ease, border-color .15s ease;
}
.cat-sponsored-row__owner:hover {
	color: var(--ink, #0e0e0f);
	border-bottom-color: currentColor;
}
.cat-sponsored-row__items {
	display: block;
}

/* ---- Card ---- */
.cat-sponsored {
	position: relative;
	min-width: 0;
	margin: 0;
	border: 1px solid rgba(14,14,15,.1);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cat-sponsored::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 0 2px 2px 0;
	background: var(--yellow-deep, #f4c100);
	opacity: .85;
	transition: opacity .2s ease;
}
.cat-sponsored--banner::before {
	display: none;
}
.cat-sponsored:hover {
	border-color: rgba(14,14,15,.22);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px -14px rgba(14,14,15,.28);
}
.cat-sponsored:hover::before {
	opacity: 1;
}
.cat-sponsored__link {
	display: block;
	text-decoration: none;
	color: var(--ink, #0e0e0f);
}

/* ---- Compact listing layout ---- */
.cat-sponsored--listing .cat-sponsored__link {
	padding: 14px 18px 14px 20px;
}
.cat-sponsored__row {
	display: flex;
	align-items: center;
	gap: 14px;
}
.cat-sponsored__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(14,14,15,.08);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cat-sponsored__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.cat-sponsored__thumb--fb {
	background: var(--ink, #0e0e0f);
	color: #ffd400;
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	border-color: transparent;
}
.cat-sponsored__meta {
	flex: 1 1 auto;
	min-width: 0;
}
.cat-sponsored__head {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--ink, #0e0e0f);
	margin-bottom: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.cat-sponsored__body {
	color: var(--ink-3, #6b6458);
	font-size: 12.5px;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}
.cat-sponsored__cta {
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 500;
	color: var(--ink-3, #6b6458);
	padding-left: 6px;
	transition: transform .2s ease, color .15s ease;
}
.cat-sponsored__link:hover .cat-sponsored__cta {
	transform: translateX(3px);
	color: var(--ink, #0e0e0f);
}

/* ---- Banner image (без розтягування — contain + max-h) ---- */
.cat-sponsored--banner .cat-sponsored__banner-wrap {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	max-height: 180px;
	overflow: hidden;
}
.cat-sponsored__banner-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.cat-sponsored--banner .cat-sponsored__caption {
	padding: 10px 16px 12px;
	border-top: 1px solid rgba(14,14,15,.06);
}
.cat-sponsored--banner .cat-sponsored__head {
	font-size: 13.5px;
	margin-bottom: 2px;
	-webkit-line-clamp: 1;
}
.cat-sponsored--banner .cat-sponsored__body {
	font-size: 12px;
}

/* Mobile — компактніше + хедер у дві лінії при потребі */
@media (max-width: 480px) {
	.cat-sponsored-row__header {
		flex-wrap: wrap;
		row-gap: 4px;
	}
	.cat-sponsored--listing .cat-sponsored__link {
		padding: 12px 14px 12px 16px;
	}
	.cat-sponsored__row {
		gap: 12px;
	}
	.cat-sponsored__thumb {
		flex: 0 0 48px;
		width: 48px;
		height: 48px;
	}
	.cat-sponsored__head {
		font-size: 14px;
	}
}

body[data-theme="dark"] .cat-sponsored {
	background: var(--paper, #1a1a1a);
	border-color: rgba(255,255,255,.08);
}
body[data-theme="dark"] .cat-sponsored:hover {
	border-color: rgba(255,255,255,.18);
	box-shadow: 0 8px 24px -14px rgba(0,0,0,.6);
}
body[data-theme="dark"] .cat-sponsored__thumb {
	background: var(--paper-2);
	border-color: rgba(255,255,255,.08);
}
body[data-theme="dark"] .cat-sponsored-row__owner {
	border-bottom-color: rgba(255,255,255,.18);
}

/* ---------------------------- LEAFLET TEARDROP PIN ---------------------------- */
/* Спільний стиль маркера для всіх мап каталогу (single-catalog + taxonomy).
   Жовтий teardrop pin з темним центром (схоже на mykharkov marker-1). */
.cat-tax-pin {
	position: relative;
	width: 28px;
	height: 40px;
	pointer-events: auto;
	cursor: pointer;
	transition: transform .12s ease;
	filter: drop-shadow(0 3px 4px rgba(14,14,15,.28));
}
.cat-tax-pin__shape {
	display: block;
	width: 28px;
	height: 40px;
	fill: var(--yellow-deep, #f4c100);
	stroke: rgba(14,14,15,.85);
	stroke-width: 1.5;
	transition: fill .15s ease;
}
.cat-tax-pin.is-branch .cat-tax-pin__shape {
	fill: #ffd400;
	stroke: rgba(14,14,15,.7);
}
.cat-tax-pin__inner {
	position: absolute;
	left: 50%;
	top: 14px;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(14,14,15,.85);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	pointer-events: none;
}
.cat-tax-pin__logo { width: 100%; height: 100%; object-fit: cover; }
.cat-tax-pin__letter {
	color: var(--yellow-deep, #f4c100);
	font-family: 'Unbounded', system-ui, sans-serif;
	font-weight: 800;
	font-size: 9px;
	line-height: 1;
}
.cat-tax-pin__dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--yellow-deep, #f4c100);
}
.cat-tax-pin.is-vip .cat-tax-pin__shape {
	fill: #ffd400;
	stroke: var(--ink);
	stroke-width: 1.8;
}
.cat-tax-pin.is-active {
	transform: scale(1.12);
	z-index: 2;
}
.cat-tax-pin.is-active .cat-tax-pin__shape { fill: var(--red); stroke: #fff; }
.cat-tax-pin.is-active .cat-tax-pin__inner { background: #fff; }
.cat-tax-pin.is-active .cat-tax-pin__letter { color: var(--red); }
.cat-tax-pin.is-active .cat-tax-pin__dot { background: var(--red); }
