/* Whaly — página de distribuidores */
.whd { --whd-orange: #F15A29; --whd-navy: #183B66; --whd-blue: #009ED9; --whd-text: #303133; --whd-muted: #5B5B5B; --whd-line: #E3E8EF; --whd-soft: #F7F7F7;
	font-family: 'DM Sans', system-ui, sans-serif; color: var(--whd-text); display: flex; flex-direction: column; gap: 20px; }

/* Buscador y zonas */
.whd-tools { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; }
.whd-search { flex: 1 1 420px; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.whd-search__label { width: 100%; font-weight: 700; font-size: 14px; color: var(--whd-navy); }
.whd-search__row { flex: 1 1 300px; min-width: 0; display: flex; gap: 8px; }
.whd-search__input { flex: 1 1 auto; min-width: 0; height: 52px; border: 1.5px solid #C9D6E8; border-radius: 8px; padding: 0 16px; font: inherit; font-size: 16px; background: #fff; color: var(--whd-text); }
.whd-search__input:focus { border-color: var(--whd-navy); outline: 3px solid rgba(0,158,217,.35); outline-offset: 0; }
.whd-search__go { min-height: 52px; padding: 0 20px; font-size: 15px; }
.whd-geoloc { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--whd-navy); border-radius: 8px; background: #fff; color: var(--whd-navy); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.whd-geoloc:hover { background: var(--whd-navy); color: #fff; }
.whd-geoloc:focus-visible, .whd-card__btn:focus-visible, .whd-pop__list:focus-visible { outline: 3px solid var(--whd-blue); outline-offset: 2px; }
.whd-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.whd-result { margin: 0; padding: 14px 18px; border-radius: 10px; background: #E8F5FB; color: var(--whd-navy); font-size: 15px; line-height: 1.5; }
.whd-result[hidden] { display: none; }
.whd-result a { color: var(--whd-navy); font-weight: 700; }

/* Mapa */
.whd-map-wrap { display: flex; flex-direction: column; gap: 10px; }
.whd-map { height: 560px; border-radius: 16px; overflow: hidden; border: 1px solid #C9D6E8; background: #DCEFF8; z-index: 0; }
.whd-noscript { padding: 24px; margin: 0; }
.whd-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--whd-navy); }
.whd-legend span { display: inline-flex; align-items: center; gap: 8px; }
.whd-legend__hint { color: var(--whd-muted); margin-left: auto; }
.whd-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--whd-navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--whd-navy); }
.whd-dot--imp { width: 18px; height: 18px; background: var(--whd-orange); box-shadow: 0 0 0 1px var(--whd-orange); }
.whd-pin { background: var(--whd-navy); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.whd-pin--imp { background: var(--whd-orange); }
.whd-cluster { background: rgba(0,158,217,.25); border-radius: 50%; display: flex !important; align-items: center; justify-content: center; }
.whd-cluster span { width: 30px; height: 30px; border-radius: 50%; background: var(--whd-navy); color: #fff; font: 700 14px/30px 'DM Sans', system-ui, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.whd .leaflet-popup-content-wrapper { border-radius: 12px; }
.whd .leaflet-popup-content { margin: 14px 16px; font: 14px/1.45 'DM Sans', system-ui, sans-serif; }
.whd-pop { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.whd-pop__name { font-size: 16px; color: var(--whd-navy); }
.whd-pop__agence { font-size: 13px; color: var(--whd-muted); }
.whd-pop__addr { margin: 4px 0; color: var(--whd-text); }
.whd-pop a { color: var(--whd-navy); font-weight: 500; word-break: break-word; }
.whd-pop__list { margin-top: 6px; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--whd-orange); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Lista */
.whd-list-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-top: 28px; }
.whd-list-count { color: var(--whd-muted); font-size: 15px; }
.whd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.whd-card { border: 1px solid var(--whd-line); border-radius: 14px; padding: 18px 20px; background: #fff; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s ease, border-color .2s ease; }
.whd-card[hidden] { display: none; }
.whd-card.is-current { border-color: var(--whd-orange); box-shadow: 0 0 0 2px var(--whd-orange); }
.whd-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.whd-card__dep { font-size: 12px; font-weight: 700; color: var(--whd-muted); text-transform: uppercase; letter-spacing: .08em; }
.whd-card__dist { font-size: 12px; font-weight: 700; color: #fff; background: var(--whd-navy); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.whd-card__dist[hidden] { display: none; }
.whd-card__name { margin: 0 !important; font-family: inherit !important; font-size: 18px !important; line-height: 1.3 !important; color: var(--whd-navy); }
.whd-card__agence { margin: 0; font-size: 14px; color: var(--whd-muted); }
.whd-card__addr { font-style: normal; font-size: 15px; line-height: 1.5; margin: 2px 0 4px; }
.whd-card__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.whd-card__contact a { color: var(--whd-navy); text-decoration: none; word-break: break-word; display: inline-block; min-height: 28px; line-height: 28px; }
.whd-card__contact a:hover { color: var(--whd-blue); text-decoration: underline; }
.whd-card__actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.whd-card__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--whd-navy); background: var(--whd-navy); color: #fff !important; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.whd-card__btn--ghost { background: #fff; color: var(--whd-navy) !important; }
.whd-card__btn:hover { background: #0F2A4D; }
.whd-card__btn--ghost:hover { background: var(--whd-navy); color: #fff !important; }
.whd-empty { margin: 0; padding: 24px; border: 1.5px dashed #C9D6E8; border-radius: 14px; text-align: center; }
.whd-empty[hidden] { display: none; }

@media (max-width: 700px) {
	.whd-map { height: 420px; }
	.whd-legend__hint { display: none; }
	.whd-search { flex-basis: 100%; }
	.whd-search__row { flex-basis: 100%; }
	.whd-search__go { padding: 0 14px; font-size: 14px; letter-spacing: 0; }
	.whd-geoloc { width: 100%; justify-content: center; }
	.whd-zones { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 6px; -webkit-overflow-scrolling: touch; }
	.whd-zones .whp-chip { flex: 0 0 auto; }
}

/* Sombras y efectos */
.whd-map { box-shadow: 0 2px 4px rgba(24,59,102,.06), 0 16px 36px rgba(24,59,102,.12); }
.whd-card { box-shadow: 0 1px 2px rgba(24,59,102,.06), 0 4px 12px rgba(24,59,102,.06); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .2s ease; }
.whd-card:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(24,59,102,.08), 0 22px 44px rgba(24,59,102,.16); }
.whd-card.is-current { box-shadow: 0 0 0 2px var(--whd-orange), 0 18px 40px rgba(241,90,41,.18); }
.whd-card__btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.whd-card__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24,59,102,.22); }
.whd-pin { transition: transform .2s ease; }
.whd-pin:hover { transform: scale(1.25); }
.whd-pin--imp { animation: whd-pulse 2.4s ease-out infinite; }
@keyframes whd-pulse { 0% { box-shadow: 0 0 0 0 rgba(241,90,41,.55), 0 2px 6px rgba(0,0,0,.35); } 70% { box-shadow: 0 0 0 14px rgba(241,90,41,0), 0 2px 6px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 0 rgba(241,90,41,0), 0 2px 6px rgba(0,0,0,.35); } }
.whd .leaflet-popup-content-wrapper { box-shadow: 0 16px 40px rgba(24,59,102,.25); }
.whd-result { box-shadow: 0 6px 16px rgba(0,158,217,.15); animation: whd-in .35s ease both; }
@keyframes whd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.whd-search__input { transition: border-color .2s ease, box-shadow .2s ease; }
.whd-search__input:focus { box-shadow: 0 0 0 4px rgba(0,158,217,.15); }
@media (prefers-reduced-motion: reduce) {
	.whd-card, .whd-card__btn, .whd-pin { transition: none !important; }
	.whd-card:hover, .whd-card__btn:hover, .whd-pin:hover { transform: none !important; }
	.whd-pin--imp, .whd-result { animation: none !important; }
}
