/* Aerostar — puntos de venta. */

.aero-pdv { padding-bottom: 0; }
.aero-pdv__head { margin: 18px 0 26px; }
.aero-pdv__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600; letter-spacing: .02em; line-height: 1.08;
  color: var(--aero-ink);
}
.aero-pdv__lead { margin-top: 12px; max-width: 62ch; font-size: 17px; color: #444; }

.aero-pdv__tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--aero-hair);
}
.aero-pdv__search {
  flex: 1 1 320px;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border: 1px solid #cfcfd3; border-radius: 999px;
}
.aero-pdv__search:focus-within { border-color: #000; }
.aero-pdv__search svg { width: 20px; height: 20px; color: #666; }
.aero-pdv__search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; background: transparent; }
.aero-pdv__chains { display: flex; gap: 8px; flex-wrap: wrap; }
.aero-pdv__near {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border: 1px solid #000; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.aero-pdv__near svg { width: 18px; height: 18px; }
.aero-pdv__near.is-on { background: #000; color: #fff; }
.aero-pdv__view { display: none; }

.aero-pdv__layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--aero-hair);
  height: min(760px, calc(100vh - var(--header-h) - 40px));
  min-height: 560px;
}
.aero-pdv__list { overflow-y: auto; border-right: 1px solid var(--aero-hair); overscroll-behavior: contain; }
.aero-pdv__count { position: sticky; top: 0; z-index: 2; padding: 12px 18px; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--aero-hair); font-size: 13px; color: var(--aero-mute); }
.aero-pdv__items { list-style: none; margin: 0; padding: 0; }

.aero-shop { border-bottom: 1px solid var(--aero-hair); transition: background .15s; scroll-margin-top: 50px; }
.aero-shop:hover, .aero-shop.is-active { background: #f7f7f8; }
.aero-shop.is-active { box-shadow: inset 3px 0 0 #000; }
.aero-shop__main { display: grid; grid-template-columns: 96px 1fr; gap: 14px; width: 100%; padding: 16px 18px 8px; text-align: left; }
.aero-shop__img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--aero-soft); }
.aero-shop__text { display: grid; gap: 2px; align-content: start; }
.aero-shop__chain { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--aero-mute); }
.aero-shop__place { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.aero-shop__addr { font-size: 13.5px; color: #444; line-height: 1.4; margin-top: 2px; }
.aero-shop__dist { justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #000; color: #fff; font-size: 12px; font-weight: 600; }
.aero-shop__actions { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 18px 16px 128px; }
.aero-shop__hours { font-size: 12.5px; color: var(--aero-mute); }
.aero-shop__actions button { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aero-shop__actions button svg { width: 13px; height: 13px; }
.aero-shop__actions a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aero-shop__actions svg { width: 13px; height: 13px; }
.aero-pdv__empty { padding: 40px 24px; text-align: center; }
.aero-pdv__empty-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.aero-pdv__empty p { color: #555; margin-bottom: 16px; }

.aero-pdv__map-wrap { position: relative; }
.aero-pdv__map { position: absolute; inset: 0; background: #eef0f2; isolation: isolate; z-index: 0; }

/* Mapa en grises para que los marcadores negros sean lo único con contraste */
.aero-tiles { filter: grayscale(1) contrast(.92) brightness(1.04); }

/* Marcadores */
.aero-pin { background: none; border: 0; }
.aero-pin span {
  display: block; width: 100%; height: 100%;
  background: #000;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) scale(.86);
  transform-origin: 50% 50%;
  box-shadow: 0 3px 8px rgb(0 0 0 / .35);
  position: relative;
}
.aero-pin span::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.aero-pin.is-active span { background: #000; box-shadow: 0 0 0 4px rgb(255 255 255 / .9), 0 6px 14px rgb(0 0 0 / .4); }
.leaflet-popup-content-wrapper { border-radius: 6px; font-family: var(--font-body); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.leaflet-popup-content a { font-weight: 700; color: #000; }
.aero-pin__addr { color: #555; }

.aero-pdv__online { margin-top: 64px; background: var(--aero-soft); }
.aero-pdv__online-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; }
.aero-pdv__online h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.aero-pdv__online p { margin-top: 6px; color: #444; max-width: 52ch; }
.aero-pdv__online-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.aero-pdv__online-actions svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 1024px) {
  .aero-pdv__view { display: inline-flex; margin-bottom: 14px; }
  .aero-pdv__layout { grid-template-columns: 1fr; height: auto; min-height: 0; border: 0; }
  .aero-pdv__list { border: 1px solid var(--aero-hair); overflow: visible; }
  .aero-pdv__layout[data-view="list"] .aero-pdv__map-wrap { display: none; }
  .aero-pdv__layout[data-view="map"] .aero-pdv__list { display: none; }
  .aero-pdv__layout[data-view="map"] .aero-pdv__map-wrap { height: 70vh; border: 1px solid var(--aero-hair); }
}
@media (max-width: 767px) {
  .aero-pdv__tools { gap: 10px; }
  .aero-pdv__search { flex-basis: 100%; }
  .aero-pdv__tools .aero-seg { flex: 1; }
  .aero-pdv__tools .aero-seg button { flex: 1; justify-content: center; padding: 8px 6px; }
  .aero-shop__main { grid-template-columns: 84px 1fr; padding: 14px 14px 6px; }
  .aero-shop__img { width: 84px; height: 64px; }
  .aero-shop__actions { padding: 0 14px 14px 112px; }
  .aero-pdv__online-inner { padding: 36px 0; }
}

/* Visor de fotos de la sede */
.aero-photos { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.aero-photos__veil { position: absolute; inset: 0; background: rgb(0 0 0 / .82); }
.aero-photos__box { position: relative; margin: 0; max-width: min(1000px, 100%); }
.aero-photos__box img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.aero-photos__box figcaption { margin-top: 10px; color: #fff; text-align: center; font-size: 14px; }
.aero-photos__nav, .aero-photos__x { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #000; }
.aero-photos__nav svg, .aero-photos__x svg { width: 20px; height: 20px; }
.aero-photos__nav { top: 50%; translate: 0 -50%; }
.aero-photos__nav--prev { left: -12px; }
.aero-photos__nav--next { right: -12px; }
.aero-photos__x { top: -14px; right: -14px; }
