/**
 * Sedes styles.
 *
 * One commented block per section, in the same order as $sections in
 * template.php. Only design tokens from assets/css/tokens.css — no hardcoded
 * colours, font sizes, radii or shadows. See DESIGN.md.
 */

/* Escape Astra's content wrapper. Same fix as pages/home/style.css — see
   that file's comment for why; duplicated here because each page's
   stylesheet only loads on its own page (qivox_enqueue_page_assets). */
.qx-fullwidth #content > .ast-container {
	display: block;
	max-width: 100%;
	padding-inline: 0;
}

.qx-sedes-page {
	width: 100%;
	min-width: 0;
	font-family: var(--qx-font-body);
	color: var(--qx-text);
}

/* Shared vertical rhythm, same convention as .qx-home. */
.qx-sedes-page > :where(section) {
	padding-block: var(--qx-section-y);
}

/* ==========================================================================
   Banner — plain placeholder banner under the header. Not a link (unlike
   the home hero): this page has no single click destination for it.
   ========================================================================== */

.qx-branches-banner {
	padding-block: var(--qx-space-6) 0;
}

.qx-branches-banner__frame {
	overflow: hidden;
	border-radius: var(--qx-radius);
}

/* The link only exists once qivox_inscripcion_url() returns a destination
   (inc/cta.php); until then the same <picture> renders unwrapped. */
.qx-branches-banner__link {
	display: block;
	text-decoration: none;
}

.qx-branches-banner__link:focus-visible {
	outline: 3px solid var(--qx-yellow);
	outline-offset: 3px;
}

/* Ratios are the sources' own (2375 × 221 and 1600 × 442), so the art is never
   cropped — cover and contain resolve to the same box. */
.qx-branches-banner img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2375 / 221;
	object-fit: cover;
}

.qx-branches-banner__placeholder {
	display: grid;
	place-items: center;
	background: var(--qx-gray-100);
	color: var(--qx-text-muted);
}

.qx-branches-banner__placeholder--desktop {
	aspect-ratio: 2375 / 221;
}

.qx-branches-banner__placeholder--mobile {
	display: none;
	aspect-ratio: 1600 / 442;
}

/* Portrait art takes over here. 1024px (`lg`) — later than the home hero's
   768px, because this piece is a far flatter 10.75:1: at a 768px viewport the
   strip renders only 66px tall and its small copy is unreadable, while the
   3.62:1 portrait piece gets 261px there and reads fine. The switch follows the
   artwork's ratio, not one site-wide number. Mirrored in the 'sedes-banner'
   switch in inc/art.php — change both together. */
@media (max-width: 1023.98px) {
	.qx-branches-banner img {
		aspect-ratio: 1600 / 442;
	}

	.qx-branches-banner__placeholder--desktop {
		display: none;
	}

	.qx-branches-banner__placeholder--mobile {
		display: grid;
	}
}

/* ==========================================================================
   Título + buscador — page H1, a short lead line, and a search box. The
   search only needs to work by provincia; that matching logic is follow-up
   dev work (see the comment in sections/buscador.php), this is markup only.
   ========================================================================== */

/* Half the shared section rhythm above, none below: the gap down to the card
   grid is owned by .qx-branches-list so the two paddings can't stack into the
   oversized void they used to add up to. */
.qx-branches-search {
	padding-block: calc(var(--qx-section-y) / 2) 0;
}

.qx-branches-search__header {
	margin-bottom: var(--qx-space-6);
	text-align: center;
}

.qx-branches-search__title {
	margin: 0 0 var(--qx-space-3);
	font-size: var(--qx-fs-h1);
	line-height: var(--qx-lh-heading);
	letter-spacing: var(--qx-ls-heading);
	color: var(--qx-text);
}

.qx-branches-search__lead {
	margin: 0;
	font-size: var(--qx-fs-lead);
	line-height: var(--qx-lh-snug);
	color: var(--qx-text-muted);
}

/* One pill, one border. The form is the only thing that draws a box: the input
   and the submit button are fully de-chromed below, so nothing nests a second
   outline inside it. Focus moves to the form via :focus-within instead of
   drawing a ring around the input. */
.qx-branches-search__form {
	display: flex;
	align-items: center;
	width: 100%;
	padding-inline: var(--qx-space-5) var(--qx-space-2);
	background: var(--qx-bg);
	border: 1px solid var(--qx-border);
	border-radius: var(--qx-radius-pill);
	transition: border-color var(--qx-dur-fast) var(--qx-ease);
}

.qx-branches-search__form:hover {
	border-color: var(--qx-gray-300);
}

.qx-branches-search__form:focus-within {
	border-color: var(--qx-ink);
}

/* Astra styles `input[type="search"]` and `button` directly. Those selectors
   carry an element or attribute component, so a lone class (0,1,0) loses to
   them and the parent theme paints the inner box and the chip behind the icon
   back in — that is why every reset below is scoped through the form AND the
   element name (0,2,1). The explicit background-color / box-shadow /
   appearance trio is the same defensive set as .qx-header__toggle in
   assets/css/header.css. */
.qx-branches-search__form input.qx-branches-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--qx-font-body);
	font-size: var(--qx-fs-body);
	line-height: var(--qx-lh-body);
	color: var(--qx-text);
}

.qx-branches-search__form input.qx-branches-search__input:hover,
.qx-branches-search__form input.qx-branches-search__input:focus,
.qx-branches-search__form input.qx-branches-search__input:active {
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	outline: none;
}

.qx-branches-search__input::placeholder {
	color: var(--qx-text-muted);
	opacity: 1;
}

/* WebKit's own search chrome (magnifier + clear cross) would duplicate our icon. */
.qx-branches-search__input::-webkit-search-decoration,
.qx-branches-search__input::-webkit-search-cancel-button,
.qx-branches-search__input::-webkit-search-results-button {
	-webkit-appearance: none;
	appearance: none;
}

.qx-branches-search__form button.qx-branches-search__clear {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
	height: 36px;
	margin-right: var(--qx-space-1);
	padding: 0 0.75rem;
	background: var(--qx-gray-100);
	background-color: var(--qx-gray-100);
	border: 0;
	border-radius: var(--qx-radius-pill);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--qx-font-body);
	font-size: var(--qx-fs-small);
	font-weight: var(--qx-fw-semibold);
	line-height: 1;
	color: var(--qx-text);
	cursor: pointer;
	transition:
		background-color var(--qx-dur-fast) var(--qx-ease),
		color var(--qx-dur-fast) var(--qx-ease);
}

.qx-branches-search__form button.qx-branches-search__clear[hidden] {
	display: none !important;
}

.qx-branches-search__form button.qx-branches-search__clear:hover,
.qx-branches-search__form button.qx-branches-search__clear:focus {
	background: var(--qx-gray-200);
	background-color: var(--qx-gray-200);
	color: var(--qx-ink);
}

.qx-branches-search__clear:focus-visible {
	outline: 2px solid var(--qx-ink);
	outline-offset: 2px;
}

.qx-branches-search__clear svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
}

.qx-branches-search__clear-label {
	white-space: nowrap;
}

@media (max-width: 479.98px) {
	.qx-branches-search__clear-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.qx-branches-search__form button.qx-branches-search__clear {
		width: 36px;
		padding: 0;
		justify-content: center;
	}
}

.qx-branches-search__form button.qx-branches-search__submit {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: var(--qx-radius-pill);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	color: var(--qx-text-muted);
	cursor: pointer;
	transition: color var(--qx-dur-fast) var(--qx-ease);
}

/* Icon-only affordance: the colour shift is the whole hover state, no chip. */
.qx-branches-search__form button.qx-branches-search__submit:hover,
.qx-branches-search__form button.qx-branches-search__submit:focus,
.qx-branches-search__form button.qx-branches-search__submit:active {
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	color: var(--qx-text);
}

.qx-branches-search__submit:focus-visible {
	outline: 2px solid var(--qx-ink);
	outline-offset: 2px;
}

.qx-branches-search__submit svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

/* ==========================================================================
   Listado — card grid. Every card: photo with a km chip (and a red
   "Próximamente" chip when the sede is not open yet), name, address,
   "Ver mapa" link and a yellow CTA pill pinned to the card bottom. Cards for
   sedes that have their own page are clickable as a whole (see the
   stretched-link block below).
   ========================================================================== */

/* Search box above, map below: both are part of the same "find your sede"
   flow, so this block uses one fixed gap on each side instead of the full
   --qx-section-y meant to separate unrelated sections. The bottom is 0 because
   .qx-branches-map owns the gap down to the map. */
.qx-branches-list {
	padding-block: var(--qx-space-7) 0;
}

.qx-branches-list__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--qx-space-5);
}

@media (min-width: 768px) {
	.qx-branches-list__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1280px) {
	.qx-branches-list__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* `position: relative` is the containing block for the stretched-link overlay
   below — it is what makes the whole card one click target. */
.qx-branches-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--qx-bg);
	border: 1px solid var(--qx-border);
	border-radius: var(--qx-radius-lg);
	box-shadow: var(--qx-shadow-sm);
	transition:
		border-color var(--qx-dur-fast) var(--qx-ease),
		box-shadow var(--qx-dur-fast) var(--qx-ease),
		transform var(--qx-dur-fast) var(--qx-ease);
}

/* Only cards that actually have a sede page get the hover affordance — the
   `--linked` class is added in sections/listado.php for those. */
.qx-branches-card--linked:hover {
	border-color: var(--qx-gray-300);
	box-shadow: var(--qx-shadow);
	transform: translateY(-2px);
}

/* The whole card is clickable, but the card is not itself an <a>: it already
   contains links ("Ver mapa" goes off to Google Maps, the CTA pill), and
   nesting anchors is invalid HTML. So the sede name's anchor is stretched over
   the card with a pseudo-element instead, and the two real links inside are
   lifted above it. One anchor, one accessible name, no duplicate tab stops. */
.qx-branches-card--linked .qx-branches-card__name-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.qx-branches-card__map-link,
.qx-branches-card__cta {
	position: relative;
	z-index: 2;
}

/* The card-wide overlay swallows hover, so the name can't rely on :hover alone
   to underline. Hovering anywhere on the card underlines it. */
.qx-branches-card--linked:hover .qx-branches-card__name-link svg {
	transform: translateX(2px);
}

/* Keyboard focus lands on the stretched anchor, which has no visible box of its
   own — draw the ring around the card instead. */
.qx-branches-card--linked:focus-within {
	border-color: var(--qx-ink);
}

.qx-branches-card__photo {
	position: relative;
	aspect-ratio: 4 / 3;
	min-height: 0;
	overflow: hidden;
}

.qx-branches-card__photo img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder — self-removes per card once assets/img/sedes/{slug}.{avif|webp|jpg|png} exists. */
.qx-branches-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--qx-gray-100);
	color: var(--qx-text-muted);
	font-size: var(--qx-fs-small);
}

/* Solid pill with a circular icon badge flush to its left edge — the badge is
   why the left padding is only --qx-space-1 while the right is --qx-space-3.
   Sentence case, not the uppercase eyebrow treatment: at this size the wide
   letter-spacing made the pill too long to sit over a card photo. */
.qx-branches-card__tag {
	position: absolute;
	top: var(--qx-space-3);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: var(--qx-space-2);
	padding: var(--qx-space-1) var(--qx-space-3) var(--qx-space-1) var(--qx-space-1);
	font-size: var(--qx-fs-small);
	font-weight: var(--qx-fw-semibold);
	line-height: var(--qx-lh-tight);
	border-radius: var(--qx-radius-pill);
	box-shadow: var(--qx-shadow-sm);
	white-space: nowrap;
}

.qx-branches-card__tag-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: var(--qx-radius-pill);
}

.qx-branches-card__tag-icon svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
}

/* Reference distance, not the provincia. See sections/listado.php: the value
   is a hardcoded string per sede until geolocation is wired up. */
.qx-branches-card__tag--km {
	left: var(--qx-space-3);
	background: var(--qx-white);
	color: var(--qx-ink);
}

.qx-branches-card__tag--km .qx-branches-card__tag-icon {
	background: var(--qx-ink);
	color: var(--qx-white);
}

.qx-branches-card__km-text {
	text-transform: uppercase;
}

/* Only rendered for `estado === 'proximamente'`. Active sedes carry no state
   chip, so red here always means "not open yet". Same anatomy as the km chip
   with the two colours swapped. */
.qx-branches-card__tag--soon {
	right: var(--qx-space-3);
	background: var(--qx-soon);
	color: var(--qx-white);
}

.qx-branches-card__tag--soon .qx-branches-card__tag-icon {
	background: var(--qx-white);
	color: var(--qx-soon);
}

.qx-branches-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--qx-space-2);
	padding: var(--qx-space-5);
}

.qx-branches-card__name {
	margin: 0;
	font-size: var(--qx-fs-h4);
	line-height: var(--qx-lh-heading);
	color: var(--qx-text);
}

/* Only rendered for sedes that have their own page (the optional `page` key in
   listado.php). Keeps the heading's colour and size so cards with and without
   a page still line up; the chevron is what signals it is clickable. */
.qx-branches-card__name-link {
	display: inline-flex;
	align-items: center;
	gap: var(--qx-space-1);
	color: inherit;
	text-decoration: none;
}

.qx-branches-card__name-link,
.qx-branches-card__name-link:visited,
.qx-branches-card__name-link:hover,
.qx-branches-card__name-link:focus,
.qx-branches-card__name-link:active {
	color: inherit;
}

.qx-branches-card__name-link svg {
	width: 0.75em;
	height: 0.75em;
	stroke: var(--qx-yellow);
	fill: none;
	transition: transform var(--qx-dur-fast) var(--qx-ease);
}

.qx-branches-card__name-link svg {
	transition: transform var(--qx-dur-fast) var(--qx-ease);
}

.qx-branches-card__address {
	margin: 0;
	font-size: var(--qx-fs-small);
	line-height: var(--qx-lh-snug);
	color: var(--qx-text-muted);
}

/* #FFBD00 fails AA as a text colour on white (see DESIGN.md), so this link
   stays ink with an underline instead of the reference's yellow text. */
.qx-branches-card__map-link {
	display: inline-flex;
	align-items: center;
	gap: var(--qx-space-1);
	margin-top: var(--qx-space-1);
	/* Minimum breathing room before the bottom-pinned CTA; on the tallest card
	   of a row the CTA's `margin-top: auto` collapses to nothing. */
	margin-bottom: var(--qx-space-2);
	font-size: var(--qx-fs-small);
	font-weight: var(--qx-fw-medium);
	color: var(--qx-text);
	text-decoration: underline;
}

.qx-branches-card__map-link:hover,
.qx-branches-card__map-link:focus-visible {
	color: var(--qx-yellow-600);
}

.qx-branches-card__map-link svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	stroke: currentColor;
}

/* `margin-top: auto` pins the CTA to the bottom of the card body. Cards are
   stretched to equal height by the grid, so every button in a row lands on the
   same baseline no matter how many lines the address above it takes. */
.qx-branches-card__cta {
	width: 100%;
	margin-top: auto;
	font-size: var(--qx-fs-small);
}

.qx-branches-search__form--autocomplete {
	position: relative;
	z-index: 5;
}

.qx-branches-search__combo {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.qx-branches-search__suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	max-height: 280px;
	overflow: auto;
	background: var(--qx-bg, #111);
	border: 1px solid var(--qx-border, #333);
	border-radius: var(--qx-radius-md, 12px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.qx-branches-search__suggest-item {
	padding: 0.7rem 1rem;
	font-size: var(--qx-fs-small, 0.95rem);
	line-height: 1.35;
	color: var(--qx-text, #f5f5f5);
	cursor: pointer;
}

.qx-branches-search__suggest-item:hover,
.qx-branches-search__suggest-item.is-active {
	background: rgba(245, 197, 24, 0.12);
	color: var(--qx-yellow, #f5c518);
}

.qx-branches-search__geo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--qx-space-3);
	margin-top: var(--qx-space-4);
}

.qx-branches-search__geo-btn,
.qx-branches-search__geo-reset {
	appearance: none;
	border: 1px solid var(--qx-border);
	background: var(--qx-bg);
	color: var(--qx-text);
	border-radius: var(--qx-radius-pill);
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: var(--qx-fs-small);
	cursor: pointer;
}

.qx-branches-search__geo-btn {
	background: var(--qx-ink, #111);
	color: var(--qx-yellow, #f5c518);
	border-color: transparent;
}

.qx-branches-search__status {
	flex: 1 1 100%;
	margin: 0;
	text-align: center;
	font-size: var(--qx-fs-small);
	color: var(--qx-text-muted);
	min-height: 1.25em;
}

/* ==========================================================================
   Mapa Leaflet — markers desde data-attrs del listado
   ========================================================================== */

.qx-branches-map {
	padding-block: var(--qx-space-7) var(--qx-section-y);
}

.qx-branches-map__frame {
	overflow: hidden;
	border-radius: var(--qx-radius-lg);
	border: 1px solid var(--qx-border, #ededed);
	background: var(--qx-bg-alt, #f6f6f4);
	box-shadow: 0 8px 28px rgba(10, 10, 10, 0.06);
}

.qx-branches-map__leaflet {
	width: 100%;
	height: min(52vh, 480px);
	min-height: 280px;
	background: var(--qx-off-white, #f6f6f4);
	z-index: 0;
	font-family: var(--qx-font-body, inherit);
}

/* Leaflet chrome → Qivox light UI */
.qx-branches-map__leaflet .leaflet-control-zoom {
	border: 1px solid var(--qx-border, #ededed) !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(10, 10, 10, 0.08) !important;
}

.qx-branches-map__leaflet .leaflet-control-zoom a {
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	color: var(--qx-ink, #111) !important;
	background: var(--qx-white, #fff) !important;
	border-bottom-color: var(--qx-border, #ededed) !important;
	font-size: 18px !important;
}

.qx-branches-map__leaflet .leaflet-control-zoom a:hover {
	background: var(--qx-yellow-100, #fff4d1) !important;
	color: var(--qx-ink, #111) !important;
}

.qx-branches-map__leaflet .qx-map-reset {
	margin-top: 8px !important;
	border: 1px solid var(--qx-border, #ededed) !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(10, 10, 10, 0.08) !important;
}

.qx-branches-map__leaflet .qx-map-reset__btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	color: var(--qx-ink, #111) !important;
	background: var(--qx-white, #fff) !important;
}

.qx-branches-map__leaflet .qx-map-reset__btn:hover {
	background: var(--qx-yellow-100, #fff4d1) !important;
}

.qx-branches-map__leaflet .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.88) !important;
	color: var(--qx-gray-500, #6f6f6f) !important;
	border-radius: 8px 0 0 0;
	font-size: 10px !important;
	padding: 2px 8px !important;
	margin: 0 !important;
}

.qx-branches-map__leaflet .leaflet-control-attribution a {
	color: var(--qx-ink, #111) !important;
}

.qx-branches-map__leaflet .leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(10, 10, 10, 0.18);
	border: 1px solid var(--qx-border, #ededed);
	padding: 0;
	background: #fff;
}

.qx-branches-map__leaflet .leaflet-popup-content {
	margin: 0.75rem 0.95rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--qx-ink, #111);
	min-width: 200px;
	max-width: 300px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.qx-branches-map__leaflet .leaflet-popup-tip {
	box-shadow: none;
	background: #fff;
}

.qx-branches-map__leaflet .qx-map-popup-title {
	display: block;
	font-family: var(--qx-font, inherit);
	font-weight: 700;
	font-size: 0.98rem;
	margin-bottom: 0.2rem;
}

.qx-branches-map__leaflet .qx-map-popup-zona {
	color: var(--qx-gray-500, #6f6f6f);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 0.45rem;
}

.qx-branches-map__leaflet .qx-map-popup-estado {
	display: inline-block;
	margin-bottom: 0.4rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: #ececec;
	color: #555;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.qx-branches-map__leaflet .qx-map-popup-row {
	margin: 0.2rem 0;
	color: var(--qx-ink, #111);
}

.qx-branches-map__leaflet .qx-map-popup-ico {
	display: inline-block;
	width: 1.1em;
	opacity: 0.75;
}

.qx-branches-map__leaflet .qx-map-popup-links {
	margin-top: 0.55rem;
	padding-top: 0.45rem;
	border-top: 1px solid var(--qx-border, #ededed);
	font-weight: 600;
}

.qx-branches-map__leaflet .qx-map-popup-link {
	color: var(--qx-yellow-ink, #b8860b);
	text-decoration: none;
}

.qx-branches-map__leaflet .qx-map-popup-link:hover {
	text-decoration: underline;
	color: var(--qx-ink, #111);
}

.qx-branches-map__leaflet .qx-map-pin {
	filter: drop-shadow(0 2px 4px rgba(10, 10, 10, 0.25));
}

.qx-branches-map__leaflet .qx-map-pin--proximamente {
	filter: grayscale(1) opacity(0.65) drop-shadow(0 2px 3px rgba(10, 10, 10, 0.2));
}

.qx-branches-map__leaflet .qx-map-pin--cercana {
	filter: drop-shadow(0 0 8px rgba(255, 189, 0, 0.95)) drop-shadow(0 3px 4px rgba(10, 10, 10, 0.25));
	z-index: 900 !important;
}

.qx-branches-map__leaflet .leaflet-marker-icon.qx-map-pin--cercana {
	animation: qx-map-pin-pulse 1.6s ease-in-out infinite;
}

@keyframes qx-map-pin-pulse {
	0%,
	100% {
		filter: drop-shadow(0 0 5px rgba(255, 189, 0, 0.55)) drop-shadow(0 3px 4px rgba(10, 10, 10, 0.25));
	}
	50% {
		filter: drop-shadow(0 0 12px rgba(255, 189, 0, 1)) drop-shadow(0 3px 4px rgba(10, 10, 10, 0.25));
	}
}

.qx-branches-map__leaflet path.qx-map-user {
	filter: drop-shadow(0 0 4px rgba(46, 139, 255, 0.55));
}

.qx-map-legend {
	background: rgba(20, 20, 20, 0.88);
	color: #eee;
	padding: 9px 11px;
	border-radius: 8px;
	font-size: 12px;
	line-height: 1.35;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	font-family: var(--qx-font-body, inherit);
}

.qx-map-legend-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.qx-map-legend-row + .qx-map-legend-row {
	margin-top: 5px;
}

.qx-map-legend-pin {
	width: 15px;
	height: 19px;
	object-fit: contain;
	flex: 0 0 auto;
}

.qx-map-legend .qx-map-pin--proximamente {
	filter: grayscale(1) opacity(0.7);
}

.qx-map-legend .qx-map-pin--cercana {
	filter: drop-shadow(0 0 3px rgba(255, 189, 0, 0.9));
}

.qx-map-legend-user {
	display: block;
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #2e8bff;
	border: 2px solid #fff;
	box-sizing: border-box;
	box-shadow: 0 0 0 3px rgba(46, 139, 255, 0.28);
}

.qx-branches-map__leaflet .qx-map-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--qx-yellow, #ffbd00);
	color: var(--qx-ink, #111);
	border: 3px solid var(--qx-ink, #111);
	font-family: var(--qx-font, inherit);
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(10, 10, 10, 0.18);
}

.qx-branches-map__leaflet .qx-map-cluster span {
	line-height: 1;
}

.qx-branches-map__leaflet .qx-map-cluster--sm {
	font-size: 13px;
}

.qx-branches-map__leaflet .qx-map-cluster--md {
	font-size: 14px;
}

.qx-branches-map__leaflet .qx-map-cluster--lg {
	font-size: 16px;
	background: var(--qx-ink, #111);
	color: var(--qx-yellow, #ffbd00);
	border-color: var(--qx-yellow, #ffbd00);
}

.qx-branches-map__leaflet .marker-cluster {
	background: transparent;
}
