/* Store locator de Storemore — port de los estilos del locator de Attic (atticstorage-child/style.css:
 * mapa L79-L113, buscador L1382-L1700, chip y card destacada L1670-L1780, pines y popup L1790-L1930,
 * próxima apertura L5391-L5430), con las clases `smloc-*` y la identidad de Storemore: los colores salen
 * de los globales del Kit de Elementor (primary #91D891, secondary #26643A, text #202020, 42597f9 mint),
 * con su hex de respaldo. Es CSS de un componente que no es un widget de Elementor (formulario, mapa y
 * marcas pintadas por JS): no tiene ajustes nativos a los que mover estos valores. */

.smloc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Mapa ---------- */
.smloc-map-wrap { width: 100%; }
.smloc-map { isolation: isolate; width: 100%; height: 100%; min-height: 500px; border-radius: 12px; overflow: hidden; background: var(--e-global-color-ddfd85d, #F4F4F4); }
.smloc-map__notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 500px; padding: 24px; text-align: center; color: var(--e-global-color-text, #202020); font-size: 15px; line-height: 1.5; }
.smloc-map__notice p { margin: 0; max-width: 32rem; }
.smloc-map__consent { border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; background: var(--e-global-color-primary, #91D891); color: var(--e-global-color-text, #202020); }
.smloc-map__consent:hover, .smloc-map__consent:focus-visible { background: var(--e-global-color-secondary, #26643A); color: #fff; }
.smloc-attribution { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: #6b6b6b; }

@media (min-width: 1025px) {
	/* Sticky por CSS, nunca el Sticky de Elementor (clona el DOM y el mapa se pintaría dos veces). */
	.elementor-widget.smloc-map-sticky { position: sticky; top: 200px; }
	.smloc-map-sticky .smloc-map { aspect-ratio: 3 / 4; height: auto; }
}

/* ---------- Pines y popup (OverlayView) ---------- */
@keyframes smloc-pin-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.smloc-pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; will-change: transform; background: none !important; border: 0 !important; padding: 0 !important; margin: 0; line-height: 0; }
.smloc-pin:focus-visible { outline: 3px solid var(--e-global-color-secondary, #26643A); outline-offset: 2px; border-radius: 4px; }
.smloc-pin__svg svg { width: 24px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.smloc-pin__svg--nearest { display: inline-block; animation: smloc-pin-pulse 1.8s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(38, 100, 58, 0.45)); transform-origin: 50% 100%; }
.smloc-pin.smloc-pin--active { z-index: 3; }
.smloc-pin.smloc-pin--active .smloc-pin__svg svg { transform: scale(1.18); filter: drop-shadow(0 4px 10px rgba(38, 100, 58, 0.45)); transition: transform 0.15s ease; }
.smloc-pin__soon { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; pointer-events: none; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; color: var(--e-global-color-secondary, #26643A); background: #fff; border: 1px solid #9AA9A1; border-radius: 999px; padding: 1px 6px; box-shadow: 0 2px 6px rgba(32, 32, 32, 0.12); }
@media (prefers-reduced-motion: reduce) { .smloc-pin__svg--nearest { animation: none; } }

.smloc-popup { position: absolute; transform: translate(-50%, calc(-100% - 40px)); z-index: 5; cursor: default; }
.smloc-popup__card { position: relative; background: #fff; border-radius: 14px; box-shadow: 0 6px 22px rgba(32, 32, 32, 0.18); padding: 14px 16px; min-width: 180px; max-width: 260px; font-family: inherit; text-align: left; }
.smloc-popup__close { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: #8a8a8a; font-size: 18px; line-height: 1; border-radius: 50%; cursor: pointer; }
.smloc-popup__close:hover, .smloc-popup__close:focus { color: var(--e-global-color-secondary, #26643A); background: rgba(38, 100, 58, 0.08); }
.smloc-popup__title { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--e-global-color-secondary, #26643A); padding-right: 18px; }
.smloc-popup__soon { margin-top: 4px; font-size: 0.8125rem; font-weight: 700; color: var(--e-global-color-text, #202020); }
.smloc-popup__meta { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--e-global-color-text, #202020); }
.smloc-popup__quote { display: block; margin-top: 10px; padding: 0.6rem 1rem; border-radius: 0.5rem; background: var(--e-global-color-primary, #91D891); border: 2px solid var(--e-global-color-primary, #91D891); font-size: 0.875rem; font-weight: 700; text-align: center; color: var(--e-global-color-text, #202020) !important; text-decoration: none; }
.smloc-popup__quote:hover { background: var(--e-global-color-secondary, #26643A); border-color: var(--e-global-color-secondary, #26643A); color: #fff !important; }
.smloc-popup__link { display: inline-block; margin-top: 8px; font-size: 0.875rem; font-weight: 700; color: var(--e-global-color-secondary, #26643A) !important; text-decoration: none; }
.smloc-popup__quote + .smloc-popup__link { margin-top: 10px; }
.smloc-popup__link:hover { text-decoration: underline; }
.smloc-popup__arrow { width: 0; height: 0; margin: -1px auto 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 11px solid #fff; filter: drop-shadow(0 4px 3px rgba(32, 32, 32, 0.1)); }

/* ---------- Buscador ---------- */
.smloc-search { --search-h: 54px; --search-btn-inset: 5px; position: relative; width: 100%; max-width: 480px; margin: 0; display: flex; align-items: stretch; gap: 0; height: var(--search-h); background: #fff; border: 2px solid var(--e-global-color-42597f9, #B4DEAD); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.smloc-search:focus-within { border-color: var(--e-global-color-secondary, #26643A); box-shadow: 0 0 0 3px rgba(145, 216, 145, 0.35); }
.smloc-search__wrapper { position: relative; flex: 1; min-width: 0; }
/* 16px: umbral de iOS Safari contra el zoom al enfocar (lección de Attic, con !important a propósito
 * porque el reset de inputs del tema y de Elementor lo pisa). */
.smloc-search__input { width: 100% !important; height: 100% !important; padding: 0 44px 0 20px !important; box-sizing: border-box !important; border: 0 !important; border-radius: 12px 0 0 12px !important; font-family: inherit !important; background: transparent !important; color: var(--e-global-color-text, #202020) !important; outline: none !important; box-shadow: none !important; text-overflow: ellipsis; font-size: 16px !important; }
.smloc-search__input::placeholder { color: #767676; opacity: 1; }
.smloc-search__geo, .smloc-search__clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #767676; transition: color 0.2s; }
.smloc-search__geo:hover, .smloc-search__geo:focus, .smloc-search__clear:hover, .smloc-search__clear:focus { background-color: transparent !important; color: var(--e-global-color-secondary, #26643A) !important; }
@keyframes smloc-search-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.smloc-search__geo.is-loading { animation: smloc-search-pulse 1s infinite; }
.smloc-search__clear { display: none; font-size: 20px; line-height: 1; }
.smloc-search__btn { align-self: stretch; margin: var(--search-btn-inset); margin-left: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 8px; padding: 0; cursor: pointer; line-height: 1; transition: background 0.2s ease; }
.smloc-search__submit { background: var(--e-global-color-primary, #91D891); color: var(--e-global-color-text, #202020); width: calc(var(--search-h) - 4px - 2 * var(--search-btn-inset)); }
.smloc-search__submit:hover, .smloc-search__submit:focus, .smloc-search__submit:focus-visible { background-color: var(--e-global-color-secondary, #26643A) !important; color: #fff !important; }
.smloc-search__submit svg { display: block; }
.smloc-search:has(.smloc-search__cta) { max-width: 640px; }
.smloc-search__cta { background: var(--e-global-color-primary, #91D891); color: var(--e-global-color-text, #202020); padding: 0 22px; font-family: inherit; font-weight: 700; font-size: 15px; white-space: nowrap; }
.smloc-search__cta:hover, .smloc-search__cta:focus, .smloc-search__cta:focus-visible { background-color: var(--e-global-color-secondary, #26643A) !important; color: #fff !important; }
.smloc-search__suggestions { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); z-index: 1000; max-height: 280px; overflow-y: auto; }
.smloc-search__suggestions.is-open { display: block; }
.smloc-search__suggestion { padding: 12px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: background 0.15s; }
.smloc-search__suggestion:first-child { border-radius: 12px 12px 0 0; }
.smloc-search__suggestion:last-child { border-radius: 0 0 12px 12px; }
.smloc-search__suggestion:hover, .smloc-search__suggestion.is-active { background: var(--e-global-color-ddfd85d, #F4F4F4); }
.smloc-search__suggestion-label { font-weight: 600; color: var(--e-global-color-text, #202020); font-size: 14px; }
.smloc-search__suggestion-distance { font-size: 12px; color: var(--e-global-color-secondary, #26643A); }
.smloc-search__suggestion-empty { padding: 12px 16px; color: #595959; font-size: 14px; text-align: center; }
@media (max-width: 767px) { .smloc-search { max-width: 100%; --search-h: 50px; } .smloc-search__cta { padding: 0 12px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .smloc-search, .smloc-search__btn { transition: none; } .smloc-search__geo.is-loading { animation: none; } }

/* ---------- Filtro por estado (T5) ---------- */
/* Botones con aria-pressed (locator.js). 44 px de alto: objetivo táctil de WCAG 2.5.5. Componente pintado por el
 * shortcode, sin widget de Elementor detrás: sin ajustes nativos a los que mover estos valores. */
.smloc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.smloc-filter[hidden] { display: none; }
/* Con el contenedor delante (0,2,0 y más): el reset de botones del tema y los del Kit (`.elementor-kit-N button`, 0,1,1)
 * pintan fondo y borde propios en hover y focus. */
.smloc-filter .smloc-filter__btn, .smloc-filter .smloc-filter__btn:hover, .smloc-filter .smloc-filter__btn:focus { min-height: 44px; margin: 0; padding: 0 18px; border: 2px solid var(--e-global-color-42597f9, #B4DEAD); border-radius: 999px; background: #fff; color: var(--e-global-color-text, #202020); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-transform: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.smloc-filter .smloc-filter__btn:hover { border-color: var(--e-global-color-secondary, #26643A); }
.smloc-filter .smloc-filter__btn[aria-pressed="true"] { background: var(--e-global-color-primary, #91D891); border-color: var(--e-global-color-primary, #91D891); font-weight: 700; }
.smloc-filter .smloc-filter__btn:focus-visible { outline: 3px solid var(--e-global-color-secondary, #26643A); outline-offset: 2px; }
.e-loop-item.smloc-off { display: none !important; }
@media (prefers-reduced-motion: reduce) { .smloc-filter .smloc-filter__btn { transition: none; } }

/* ---------- Chip de distancia y card más cercana ---------- */
.smloc-chip { position: absolute; top: 12px; right: 12px; z-index: 10; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 24px); white-space: normal; overflow-wrap: anywhere; text-align: right; background: #fff; color: var(--e-global-color-secondary, #26643A); padding: 4px 10px; border-radius: 999px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; box-shadow: 0 2px 8px rgba(32, 32, 32, 0.18); pointer-events: none; }
.smloc-chip svg { width: 12px; height: 12px; flex-shrink: 0; fill: currentColor; }
.smloc-chip--nearest { background: var(--e-global-color-accent, #26643A); color: #fff; box-shadow: 0 2px 8px rgba(38, 100, 58, 0.4); }
.smloc-chip__short { display: none; }
@media (max-width: 767px) {
	.smloc-chip { font-size: 10px; padding: 3px 8px; gap: 3px; }
	.smloc-chip__full { display: none; }
	.smloc-chip__short { display: inline; }
}
.swiper-slide.e-loop-item.smloc-nearest, .e-loop-item.smloc-nearest { box-shadow: inset 0 0 0 3px var(--e-global-color-primary, #91D891), 0 8px 24px rgba(38, 100, 58, 0.18); border-radius: 1rem; z-index: 2; transition: box-shadow 0.3s ease; }
.e-loop-item.smloc-nearest > a, .e-loop-item.smloc-nearest > .e-con, .e-loop-item > .e-con:has(> .smloc-chip), .e-loop-item > a:has(> .smloc-chip) { position: relative; }
