/* ==========================================================================
   SeeBucharest 2026 — componente (front-end + editor)
   Tokenii (culori, fonturi, mărimi) vin din theme.json: var(--wp--preset--*).
   ========================================================================== */

:root {
	--sb-c-base: var(--wp--preset--color--base);
	--sb-c-surface: var(--wp--preset--color--surface);
	--sb-c-contrast: var(--wp--preset--color--contrast);
	--sb-c-contrast-2: var(--wp--preset--color--contrast-2);
	--sb-c-muted: var(--wp--preset--color--muted);
	--sb-c-muted-dark: var(--wp--preset--color--muted-on-dark);
	--sb-c-border: var(--wp--preset--color--border);
	--sb-c-border-strong: var(--wp--preset--color--border-strong);
	--sb-c-primary: var(--wp--preset--color--primary);
	--sb-c-primary-dark: var(--wp--preset--color--primary-dark);
	--sb-c-primary-tint: var(--wp--preset--color--primary-tint);
	--sb-c-accent: var(--wp--preset--color--accent);
	--sb-c-accent-tint: var(--wp--preset--color--accent-tint);
	--sb-c-accent-ink: var(--wp--preset--color--accent-ink);
	--sb-c-danger: var(--wp--preset--color--danger);
	--sb-font-heading: var(--wp--preset--font-family--heading);
	--sb-shadow-lift: var(--wp--custom--shadow--lift);
	--sb-gutter: clamp(16px, 4vw, 40px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

input:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--sb-c-accent);
	outline-offset: 2px;
}

/* --- Badge 112 --------------------------------------------------------- */
.sb-badge-112 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sb-c-danger);
	color: #fff;
	font-weight: 700;
	border-radius: 4px;
	padding: 2px 6px;
	line-height: 1.3;
}

/* --- Topbar ------------------------------------------------------------- */
.sb-topbar {
	font-size: var(--wp--preset--font-size--x-small);
	padding-block: 8px;
}
.sb-topbar__row { gap: 8px; }
.sb-topbar__row > * { margin: 0; }
.sb-topbar__sos { display: flex; align-items: center; gap: 8px; }
.sb-topbar a { color: #fff; font-weight: 600; }
.sb-topbar__tagline { color: var(--sb-c-muted-dark); }

/* --- Header ------------------------------------------------------------- */
.sb-header {
	background: var(--sb-c-base);
	border-bottom: 1px solid var(--sb-c-border);
	padding-block: 14px;
}
.sb-header__row { gap: 24px; position: relative; }
.sb-header__row > * { margin: 0; }

.sb-logo { margin: 0; }
.sb-logo a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--sb-c-contrast);
	text-decoration: none;
}
.sb-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--sb-c-accent);
	font-family: var(--sb-font-heading);
	font-weight: 800;
	font-size: 18px;
	color: var(--sb-c-contrast);
}
.sb-logo__word {
	font-family: var(--sb-font-heading);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 1;
}
.sb-logo__accent { color: var(--sb-c-primary); }
.sb-logo--footer a { color: #fff; }
.sb-logo--footer .sb-logo__accent { color: var(--sb-c-accent); }

/* Navigation */
.sb-nav { margin-left: auto; }
.sb-nav .wp-block-navigation__container { gap: 4px; }
.sb-nav .wp-block-navigation-item__content {
	color: var(--sb-c-contrast);
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}
.sb-nav .wp-block-navigation-item__content:hover,
.sb-nav .wp-block-navigation-item__content:focus-visible { background: var(--sb-c-surface); }
.sb-nav .has-child > .wp-block-navigation-item__content { padding-right: 4px; }
.sb-nav .wp-block-navigation__submenu-icon { margin-right: 8px; }
.sb-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--sb-c-border) !important;
	border-radius: 14px;
	padding: 8px !important;
	box-shadow: var(--sb-shadow-lift);
	min-width: 240px !important;
	background: var(--sb-c-base) !important;
}
.sb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 12px;
	width: 100%;
}
.sb-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	border: 1px solid var(--sb-c-border-strong);
	border-radius: 10px;
	background: var(--sb-c-base);
	color: var(--sb-c-contrast);
	align-items: center;
	justify-content: center;
}

/* Header search (buton care deschide câmpul) */
.sb-header-search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 16px;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--sb-c-primary);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1;
	box-sizing: border-box;
}
.sb-header-search .wp-block-search__button:hover { background: var(--sb-c-primary-dark); }
.sb-header-search .wp-block-search__button::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	mask: var(--sb-icon-search) center / contain no-repeat;
	-webkit-mask: var(--sb-icon-search) center / contain no-repeat;
}
.sb-header-search .wp-block-search__button svg { display: none; }
.sb-header-search .wp-block-search__inside-wrapper { gap: 8px; border: 0; padding: 0; }
.sb-header-search .wp-block-search__input {
	height: 44px;
	border: 1px solid var(--sb-c-border-strong);
	border-radius: 10px;
	padding: 0 14px;
	font: inherit;
	font-size: 16px;
	background: var(--sb-c-base);
}
.sb-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: min(320px, 70vw); }

/* --- Utilitare text ----------------------------------------------------- */
.sb-eyebrow {
	display: inline-block;
	width: fit-content;
	background: var(--sb-c-accent-tint);
	color: var(--sb-c-accent-ink);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 6px;
	line-height: 1.3;
}
.sb-eyebrow a { color: inherit; text-decoration: none; }
.sb-eyebrow a:hover { text-decoration: underline; }
.sb-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
	color: var(--sb-c-muted);
	max-width: 560px;
}
.sb-kicker {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sb-c-primary);
}
.sb-kicker--muted { color: var(--sb-c-muted); }
.sb-more-link a { font-weight: 600; text-decoration: none; }
.sb-more-link a:hover { text-decoration: underline; }

.sb-ico-inline::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	mask: var(--sb-icon) center / contain no-repeat;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
}

/* --- Chips (popular, filtre, subcategorii) ------------------------------ */
.sb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}
.sb-chips__label { color: var(--sb-c-muted); padding: 8px 0; }
.sb-chips a,
.sb-subcats a {
	display: inline-flex;
	align-items: center;
	color: var(--sb-c-contrast);
	text-decoration: none;
	border: 1px solid var(--sb-c-border-strong);
	border-radius: 999px;
	padding: 8px 14px;
	line-height: 1.2;
	background: var(--sb-c-base);
}
.sb-chips a:hover,
.sb-subcats a:hover { border-color: var(--sb-c-contrast); }
.sb-filter { font-size: var(--wp--preset--font-size--small); }
.sb-filter a { min-height: 44px; padding: 0 18px; box-sizing: border-box; }
.sb-filter a.is-active,
.sb-filter a[aria-current="true"] {
	background: var(--sb-c-contrast);
	border-color: var(--sb-c-contrast);
	color: #fff;
	font-weight: 600;
}

/* --- Secțiuni ----------------------------------------------------------- */
.sb-section { padding-block: var(--wp--preset--spacing--50); }
.sb-section > * { margin-block: 0; }
.sb-section > * + * { margin-block-start: 32px; }
.sb-section__title { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.sb-section__intro > * { margin: 0; }
.sb-section__intro > * + * { margin-top: 8px; }
.sb-section__sub { color: var(--sb-c-muted); font-size: 1.0625rem; }
.sb-section__head { gap: 16px; }
.sb-section__head > * { margin: 0; }

/* --- Hero --------------------------------------------------------------- */
.sb-hero { padding-block: var(--wp--preset--spacing--60); }
.sb-hero__grid { gap: clamp(28px, 4vw, 56px); margin: 0; }
.sb-hero__text > * { margin-block: 0; }
.sb-hero__text > * + * { margin-block-start: 24px; }
.sb-hero__title { font-size: var(--wp--preset--font-size--display); }

.sb-search-hero .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	background: var(--sb-c-surface);
	padding: 8px;
	border: 0;
	border-radius: 14px;
	max-width: 580px;
	box-sizing: border-box;
}
.sb-search-hero .wp-block-search__input {
	flex: 1 1 240px;
	min-width: 0;
	height: 52px;
	border: 0;
	border-radius: 10px;
	background: var(--sb-c-base);
	padding: 0 16px;
	font: inherit;
	font-size: 16px;
	color: var(--sb-c-contrast);
}
.sb-search-hero .wp-block-search__button {
	flex: 0 0 auto;
	height: 52px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--sb-c-contrast);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
}
.sb-search-hero .wp-block-search__button:hover { background: var(--sb-c-primary); }

.sb-mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.sb-mosaic > * { margin: 0 !important; }
.sb-mosaic figure {
	position: relative;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: var(--sb-c-primary-tint);
}
.sb-mosaic figure a { display: block; height: 100%; }
.sb-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	transition: transform .4s ease;
}
.sb-mosaic figure:hover img { transform: scale(1.03); }
.sb-mosaic__main { grid-row: span 2; }
.sb-mosaic__main img { min-height: 460px; }
.sb-mosaic figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	margin: 0;
	background: rgba(18, 20, 23, .72);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 8px;
	pointer-events: none;
}

/* --- Categorii (Ce vrei să faci azi?) ---------------------------------- */
.sb-catcards { gap: 16px; }
.sb-catcard {
	position: relative;
	background: var(--sb-c-base);
	border-radius: 20px;
	padding: 28px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sb-catcard > * { margin: 0; }
.sb-catcard > * + * { margin-top: 18px; }
.sb-tone--blue { --sb-tone-bg: var(--sb-c-primary-tint); --sb-tone-ink: var(--sb-c-primary); }
.sb-tone--yellow { --sb-tone-bg: var(--sb-c-accent-tint); --sb-tone-ink: #7A5F00; }
.sb-tone--warm { --sb-tone-bg: var(--wp--preset--color--warm-tint); --sb-tone-ink: var(--wp--preset--color--warm-ink); }
.sb-catcard__title {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 48px;
	padding-left: 60px;
	font-size: 1.5rem;
}
.sb-catcard__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 12px;
	background: var(--sb-tone-bg, var(--sb-c-surface));
}
.sb-catcard__title::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	background: var(--sb-tone-ink, var(--sb-c-contrast));
	mask: var(--sb-icon) center / contain no-repeat;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
}
.sb-catcard__title a { color: var(--sb-c-contrast); text-decoration: none; }
.sb-catcard__desc { color: var(--sb-c-muted); line-height: 1.5; }

.sb-tags {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}
.sb-tags a {
	color: var(--sb-c-contrast);
	text-decoration: none;
	background: var(--sb-c-surface);
	border-radius: 8px;
	padding: 10px 12px;
	line-height: 1.2;
}
.sb-tags a:hover { background: var(--sb-c-border); }
.sb-tags .wp-block-post-terms__separator { display: none; }
.sb-tags--post { margin-top: 32px; }

/* --- Carduri (Query Loop) ---------------------------------------------- */
.sb-cards { gap: 20px; margin: 0; padding: 0; }
.sb-cards > li { margin: 0; }
.sb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sb-c-base);
	border: 1px solid var(--sb-c-border);
	border-radius: 18px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sb-card > * { margin: 0 !important; }
.sb-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--sb-c-primary-tint);
}
.sb-card__media { overflow: hidden; }
.sb-card__media .wp-block-post-featured-image { margin: 0; height: 100%; aspect-ratio: auto !important; }
.sb-card__media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover;
}
.sb-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	margin: 0 !important;
	max-width: calc(100% - 28px);
}
.sb-card__badge a {
	display: inline-block;
	background: var(--sb-c-base);
	color: var(--sb-c-contrast);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1.3;
}
.sb-card__badge a:nth-of-type(n+2),
.sb-card__badge .wp-block-post-terms__separator { display: none; }
.sb-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 18px 18px 20px;
}
.sb-card__body > * { margin: 0 !important; }
.sb-card__title {
	font-size: 1.3125rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.sb-card__excerpt { flex: 1; }
.sb-card__excerpt p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--sb-c-muted); }
.sb-card__area {
	margin-top: auto !important;
	padding-top: 4px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--sb-c-muted);
}
.sb-card__date {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--sb-c-primary);
}

/* --- Pregătește-ți vizita (bandă închisă) ------------------------------ */
.sb-plan .sb-section__sub { color: var(--sb-c-muted-dark); }
.sb-plan .sb-section__title { color: #fff; }
.sb-tiles { gap: 16px; }
.sb-tile {
	position: relative;
	background: var(--sb-c-contrast-2);
	border-radius: 18px;
	padding: 24px;
	min-height: 180px;
	box-sizing: border-box;
	transition: background-color .2s ease;
}
.sb-tile:hover { background: #2A2F36; }
.sb-tile > * { margin: 0; }
.sb-tile__title {
	position: relative;
	padding-top: 40px;
	font-size: 1.25rem;
}
.sb-tile__title::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: var(--sb-c-accent);
	mask: var(--sb-icon) center / contain no-repeat;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
}
.sb-tile__title a { color: #fff; text-decoration: none; }
.sb-tile__desc { margin-top: 12px; color: var(--sb-c-muted-dark); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }

/* --- Ultimele articole (rânduri) --------------------------------------- */
.sb-latest__grid { gap: 32px; margin: 0; }
.sb-latest__main > * { margin-block: 0; }
.sb-latest__main > * + * { margin-block-start: 20px; }
.sb-rows { list-style: none; margin: 0; padding: 0; }
.sb-rows > li { margin: 0; }
.sb-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 16px 0;
	border-top: 1px solid var(--sb-c-border);
}
.sb-rows > li:last-child .sb-row { border-bottom: 1px solid var(--sb-c-border); }
.sb-row > * { margin: 0 !important; }
.sb-row__img { flex: 0 0 168px; width: 168px; }
.sb-row__img img { display: block; width: 168px; height: 112px; object-fit: cover; border-radius: 12px; }
.sb-row__body { flex: 1 1 280px; min-width: 0; }
.sb-row__body > * { margin: 0; }
.sb-row__body > * + * { margin-top: 6px; }
.sb-row__title { font-size: var(--wp--preset--font-size--large); line-height: 1.25; }
.sb-row__excerpt p { margin: 0; color: var(--sb-c-muted); font-size: var(--wp--preset--font-size--medium); }

.sb-meta {
	gap: 6px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--sb-c-muted);
}
.sb-meta > * { margin: 0; }
.sb-meta a { color: var(--sb-c-muted); text-decoration: none; }
.sb-meta a:hover { color: var(--sb-c-primary); }
.sb-meta__cat:not(:empty)::after { content: "·"; margin-left: 6px; }
.sb-meta--single { font-size: 14px; gap: 14px; }
.sb-meta--single .sb-meta__date::after { content: none; }

/* --- Bara laterală ------------------------------------------------------ */
.sb-aside > * { margin-block: 0; }
.sb-aside > * + * { margin-block-start: 16px; }
.sb-weather { border-radius: 18px; padding: 24px; }
.sb-weather > * { margin: 0; }
.sb-weather > * + * { margin-top: 10px; }
.sb-weather__big {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-left: 58px;
	font-family: var(--sb-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.sb-weather__big::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	background: var(--sb-c-primary);
	mask: var(--sb-icon) center / contain no-repeat;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
}
.sb-linkbox { border: 1px solid var(--sb-c-border); border-radius: 18px; padding: 24px; }
.sb-linkbox > * { margin: 0; }
.sb-linkbox > * + * { margin-top: 8px; }
.sb-linklist { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; }
.sb-linklist li { margin: 0; border-bottom: 1px solid var(--sb-c-surface); }
.sb-linklist li:last-child { border-bottom: 0; }
.sb-linklist a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: var(--sb-c-contrast);
	text-decoration: none;
	font-weight: 500;
}
.sb-linklist a:hover { color: var(--sb-c-primary); }
.sb-linklist a::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	mask: var(--sb-icon-arrow-up-right) center / contain no-repeat;
	-webkit-mask: var(--sb-icon-arrow-up-right) center / contain no-repeat;
}
.sb-linklist__sos a { font-weight: 600; }
.sb-linklist__sos a::after { content: none; }
.sb-linklist .sb-badge-112 { border-radius: 6px; padding: 2px 8px; font-size: 14px; }

/* --- Caseta „Informații contact” / „Detalii eveniment” ------------------ */
.sb-infobox {
	border: 1px solid var(--sb-c-border);
	border-radius: 18px;
	padding: 24px;
	background: var(--sb-c-base);
}
.sb-infobox > * { margin: 0; }
.sb-infobox__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sb-c-muted);
	margin-bottom: 4px !important;
}
.sb-info {
	position: relative;
	padding: 12px 0 12px 30px;
	border-top: 1px solid var(--sb-c-surface);
}
.sb-infobox__title + .sb-info { border-top: 0; }
.sb-info::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 18px;
	height: 18px;
	background: var(--sb-c-primary);
	mask: var(--sb-icon) center / contain no-repeat;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
}
.sb-info > * { margin: 0; }
.sb-info__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sb-c-muted);
}
.sb-info__value {
	margin-top: 2px !important;
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.sb-info__value a { color: var(--sb-c-contrast); text-decoration-color: var(--sb-c-border-strong); text-underline-offset: 3px; }
.sb-info__value a:hover { color: var(--sb-c-primary); }
.sb-info__value--inline { display: inline-block; margin-right: 14px !important; }

/* --- Antet pagini / articole / arhive ----------------------------------- */
.sb-main:not(.sb-main--front) { padding-bottom: var(--wp--preset--spacing--50); }
.sb-pagehead { padding-top: clamp(24px, 4vw, 48px); }
.sb-pagehead > * { margin-block: 0; }
.sb-pagehead > * + * { margin-block-start: 16px; }
.sb-pagehead__title {
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 22ch;
}
.sb-pagehead--archive .sb-pagehead__title,
.sb-pagehead--search .sb-pagehead__title { max-width: none; }
.sb-pagehead__desc { color: var(--sb-c-muted); font-size: var(--wp--preset--font-size--lead); max-width: 720px; }
.sb-pagehead__desc > * { margin: 0; }
.sb-pagehead--search .sb-search-hero { max-width: 640px; }

.sb-breadcrumbs { font-size: var(--wp--preset--font-size--x-small); color: var(--sb-c-muted); }
.sb-breadcrumbs a { color: var(--sb-c-muted); text-decoration: none; }
.sb-breadcrumbs a:hover { color: var(--sb-c-primary); text-decoration: underline; }

.sb-event-date {
	font-weight: 600;
	color: var(--sb-c-primary);
	font-size: 1.0625rem;
}
.sb-event-date.sb-ico-inline::before { width: 18px; height: 18px; vertical-align: -3px; }

.sb-subcats { margin-top: 24px; }
.sb-subcats ul,
.sb-subcats .wp-block-term-template {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
}
.sb-subcats li { margin: 0; }
.sb-subcats .wp-block-term-name { margin: 0; }

.sb-archive__query,
.sb-search__query { margin-top: 32px !important; }
.sb-empty { color: var(--sb-c-muted); font-size: 1.0625rem; }

.sb-pagination { margin-top: 40px; gap: 6px; font-weight: 600; }
.sb-pagination a,
.sb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid var(--sb-c-border-strong);
	border-radius: 10px;
	color: var(--sb-c-contrast);
	text-decoration: none;
}
.sb-pagination a:hover { border-color: var(--sb-c-contrast); }
.sb-pagination .page-numbers.current { background: var(--sb-c-contrast); border-color: var(--sb-c-contrast); color: #fff; }
.sb-pagination .page-numbers.dots { border: 0; min-width: 0; }
.sb-pagination .wp-block-query-pagination-numbers { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- Articol ------------------------------------------------------------ */
.sb-article > * { margin-block: 0; }
.sb-single__hero { margin-top: 32px !important; }
.sb-single__hero img { border-radius: 20px; }
.sb-single__layout { margin-top: 40px !important; gap: clamp(32px, 4vw, 56px); }

.sb-prose {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #23262B;
}
.sb-prose > * { margin-block: 0; }
.sb-prose > * + * { margin-block-start: 1.1em; }
.sb-prose h2 { font-size: 1.75rem; margin-block-start: 1.6em; }
.sb-prose h3 { font-size: 1.375rem; margin-block-start: 1.4em; }
.sb-prose h4 { margin-block-start: 1.3em; }
.sb-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sb-prose img { height: auto; border-radius: 14px; }
.sb-prose figure { margin-inline: 0; }
.sb-prose ul,
.sb-prose ol { padding-left: 1.25em; }
.sb-prose li + li { margin-top: .35em; }
.sb-prose span[style*="font-family"] { font-family: inherit !important; }
.sb-prose .aligncenter { margin-inline: auto; display: block; }
.sb-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.sb-prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.sb-prose iframe { max-width: 100%; }

.sb-related-wrap {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--sb-c-border);
}
.sb-related-wrap > * { margin-block: 0; }
.sb-related-wrap > * + * { margin-block-start: 24px; }

.sb-404 { padding-block: var(--wp--preset--spacing--50); }
.sb-404 .sb-search-hero { max-width: 580px; }

/* --- Subsol ------------------------------------------------------------- */
.sb-footer { padding-top: 56px; padding-bottom: 32px; }
.sb-footer > * { margin-block: 0; }
.sb-footer > * + * { margin-block-start: 40px; }
.sb-footer__grid { gap: 32px; }
.sb-footer__brand > *,
.sb-footer__col > * { margin: 0; }
.sb-footer__brand > * + *,
.sb-footer__col > * + * { margin-top: 14px; }
.sb-footer__about { color: var(--sb-c-muted-dark); font-size: var(--wp--preset--font-size--small); line-height: 1.55; }
.sb-footer__title { font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.sb-footer__links {
	list-style: none;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
}
.sb-footer__links li { margin: 0; }
.sb-footer__links a { color: var(--sb-c-muted-dark); text-decoration: none; }
.sb-footer__links a:hover { color: #fff; text-decoration: underline; }
.sb-footer__bottom {
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid #2A2F36;
	color: #9CA2AB;
	font-size: 14px;
}
.sb-footer__bottom > * { margin: 0; }
.sb-footer__bottom a { color: #9CA2AB; }
.sb-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Responsive — după macheta de mobil (390px)
   ========================================================================== */
@media (max-width: 781px) {
	.sb-topbar { display: none; }
	.sb-header { padding-block: 12px; }
	.sb-logo__mark { width: 36px; height: 36px; font-size: 16px; border-radius: 9px; }
	.sb-logo__word { font-size: 20px; }

	/* Hero: text, apoi o singură fotografie */
	.sb-hero { padding-block: 24px 28px; }
	.sb-hero__text > * + * { margin-block-start: 16px; }
	.sb-hero__title { font-size: 2.5rem; line-height: 1.02; }
	.sb-lead { font-size: 1rem; }
	.sb-chips--popular { display: none; }
	.sb-search-hero .wp-block-search__input,
	.sb-search-hero .wp-block-search__button { flex: 1 1 100%; }
	.sb-mosaic { grid-template-columns: 1fr; }
	.sb-mosaic__side { display: none; }
	.sb-mosaic__main { grid-row: auto; }
	.sb-mosaic__main img { min-height: 0; aspect-ratio: 16 / 11; }
	.sb-mosaic figure { border-radius: 16px; }

	.sb-section { padding-block: 32px; }
	.sb-section > * + * { margin-block-start: 20px; }

	/* Categorii: rânduri compacte cu săgeată */
	.sb-catcards { gap: 10px; }
	.sb-catcard { padding: 14px 44px 14px 14px; border-radius: 16px; }
	.sb-catcard::after {
		content: "";
		position: absolute;
		right: 14px;
		top: 50%;
		width: 20px;
		height: 20px;
		margin-top: -10px;
		background: var(--sb-c-muted);
		mask: var(--sb-icon-chevron) center / contain no-repeat;
		-webkit-mask: var(--sb-icon-chevron) center / contain no-repeat;
	}
	.sb-catcard > * + * { margin-top: 2px; }
	.sb-catcard__title { font-size: 1.0625rem; min-height: 44px; padding-left: 58px; }
	.sb-catcard__title::before { width: 44px; height: 44px; margin-top: -22px; }
	.sb-catcard__title::after { left: 11px; width: 22px; height: 22px; margin-top: -11px; }
	.sb-catcard__desc { padding-left: 58px; font-size: var(--wp--preset--font-size--x-small); margin-top: -14px !important; }
	.sb-catcard .sb-tags { display: none; }

	/* Filtre: un singur rând, cu derulare orizontală */
	.sb-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(var(--sb-gutter) * -1);
		padding-inline: var(--sb-gutter);
	}
	.sb-filter::-webkit-scrollbar { display: none; }
	.sb-filter a { flex: 0 0 auto; padding: 0 16px; }
	.sb-section__head .sb-section__sub { display: none; }
	.sb-cards { gap: 14px; }
	.sb-card { border-radius: 16px; }
	.sb-card__media { aspect-ratio: 2 / 1; }
	.sb-card__body { padding: 14px 14px 16px; gap: 6px; }
	.sb-card__title { font-size: 1.125rem; }

	/* Pregătește-ți vizita: grilă 2×2, doar titluri */
	.sb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	.sb-tile { min-height: 0; padding: 16px; border-radius: 14px; }
	.sb-tile__title { font-size: 1rem; padding-top: 34px; }
	.sb-tile__title::after { width: 24px; height: 24px; }
	.sb-tile__desc { display: none; }

	/* Articole: rânduri compacte */
	.sb-row { gap: 14px; padding: 14px 0; }
	.sb-row__img { flex-basis: 96px; width: 96px; }
	.sb-row__img img { width: 96px; height: 72px; border-radius: 10px; }
	.sb-row__title { font-size: 1rem; line-height: 1.3; }
	.sb-row__excerpt { display: none; }

	/* Subsol: coloanele de linkuri câte două */
	.sb-footer { padding-top: 40px; }
	.sb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px; }
	.sb-footer__brand { grid-column: 1 / -1; }

	.sb-single__hero img { border-radius: 14px; }
	.sb-prose { font-size: 1rem; }
}
/* Iconițe (generat) — folosite ca mask-image, culoarea vine din background-color. */
:root {
	--sb-icon-landmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9 21V10M15 21V10M2 10l10-6 10 6'/%3E%3C/svg%3E");
	--sb-icon-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E");
	--sb-icon-fork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v8a3 3 0 0 0 6 0V3M10 3v18M17 3c-1.5 2-2 4-2 7h4V3zM17 10v11'/%3E%3C/svg%3E");
	--sb-icon-tram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='14' rx='3'/%3E%3Cpath d='M5 11h14M8 21l2-4M16 21l-2-4'/%3E%3Ccircle cx='9' cy='14' r='.5'/%3E%3Ccircle cx='15' cy='14' r='.5'/%3E%3C/svg%3E");
	--sb-icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.2-8 9-4.6-.8-8-4.5-8-9V6z'/%3E%3Cpath d='M12 8v5M12 16v.5'/%3E%3C/svg%3E");
	--sb-icon-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E");
	--sb-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
	--sb-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--sb-icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='3.5'/%3E%3Cpath d='M9 2v1.5M3.5 9H2M4.4 4.4l1 1M13.6 4.4l-1 1'/%3E%3Cpath d='M8 20h9a4 4 0 0 0 0-8 5 5 0 0 0-9.6 1.5A3.3 3.3 0 0 0 8 20z'/%3E%3C/svg%3E");
	--sb-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	--sb-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--sb-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--sb-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
	--sb-icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E");
	--sb-icon-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E");
	--sb-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
	--sb-icon-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M13 6v12'/%3E%3C/svg%3E");
	--sb-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
	--sb-icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
}
.sb-ico--landmark, .sb-ico-inline--landmark { --sb-icon: var(--sb-icon-landmark); }
.sb-ico--compass, .sb-ico-inline--compass { --sb-icon: var(--sb-icon-compass); }
.sb-ico--fork, .sb-ico-inline--fork { --sb-icon: var(--sb-icon-fork); }
.sb-ico--tram, .sb-ico-inline--tram { --sb-icon: var(--sb-icon-tram); }
.sb-ico--shield, .sb-ico-inline--shield { --sb-icon: var(--sb-icon-shield); }
.sb-ico--flag, .sb-ico-inline--flag { --sb-icon: var(--sb-icon-flag); }
.sb-ico--plus, .sb-ico-inline--plus { --sb-icon: var(--sb-icon-plus); }
.sb-ico--pin, .sb-ico-inline--pin { --sb-icon: var(--sb-icon-pin); }
.sb-ico--sun, .sb-ico-inline--sun { --sb-icon: var(--sb-icon-sun); }
.sb-ico--search, .sb-ico-inline--search { --sb-icon: var(--sb-icon-search); }
.sb-ico--clock, .sb-ico-inline--clock { --sb-icon: var(--sb-icon-clock); }
.sb-ico--phone, .sb-ico-inline--phone { --sb-icon: var(--sb-icon-phone); }
.sb-ico--mail, .sb-ico-inline--mail { --sb-icon: var(--sb-icon-mail); }
.sb-ico--link, .sb-ico-inline--link { --sb-icon: var(--sb-icon-link); }
.sb-ico--share, .sb-ico-inline--share { --sb-icon: var(--sb-icon-share); }
.sb-ico--calendar, .sb-ico-inline--calendar { --sb-icon: var(--sb-icon-calendar); }
.sb-ico--ticket, .sb-ico-inline--ticket { --sb-icon: var(--sb-icon-ticket); }
.sb-ico--chevron, .sb-ico-inline--chevron { --sb-icon: var(--sb-icon-chevron); }
.sb-ico--arrow-up-right, .sb-ico-inline--arrow-up-right { --sb-icon: var(--sb-icon-arrow-up-right); }

/* Imaginile cu legendă din articolele clasice ([caption]) primesc din WP o lățime fixă
   în pixeli (style="width:1200px"); pe ecrane mici trebuie să se strângă. */
.wp-caption { max-width: 100% !important; height: auto; }
.wp-caption img { max-width: 100%; height: auto; }
.wp-caption .wp-caption-text { font-size: var(--wp--preset--font-size--x-small); color: var(--sb-c-muted); margin-top: 6px; }
