/* =========================================================
   Anahi - Puntos de venta (widget WordPress)
   Replica 100% fiel de ORIGINALES/anahi-web
   ========================================================= */

:root {
  --cream:       #f3ecdd;
  --cream-2:     #ede6d6;
  --cream-3:     #f8f2e7;
  --panel:       #e7dcc4;
  --green-900:   #012717;
  --green-800:   #033322;
  --green:       #005620;
  --green-mid:   #2f7d3e;
  --green-soft:  #9cc487;
  --green-ink:   #0e5230;
  --gold:        #c39a2e;
  --gold-bright: #d2a700;
  --red:         #e65535;
  --orange:      #e8912e;
  --ink:         #241d15;
  --ink-soft:    #6a6153;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Mulish', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1600px;
  --gutter: clamp(20px, 5vw, 72px);
  --wide: min(90%, var(--maxw));
  --radius: 22px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px -22px rgba(1,39,23,.45);
  --shadow-sm: 0 10px 24px -16px rgba(1,39,23,.4);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Evitar que contenedores del tema de WordPress rompan el sticky */
html,
body,
#page,
#site-container,
.site,
.site-content,
.site-main,
.content-area,
.ast-container,
.elementor,
.elementor-inner,
.elementor-section-wrap,
.entry-content,
.post-content,
.page-content,
.wp-site-blocks,
.is-layout-constrained,
#content {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Eyebrow original */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  line-height: 1.2;
}

/* Boton original */
.btn {
  --bg: var(--green);
  --fg: var(--cream);
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .92em 1.7em;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.btn--primary:hover { background: var(--green-900); color: #fff; }

/* ---------- Dónde comprar · directorio (lista + mapa) ---------- */
.dir {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 0;
  align-items: start;
  background: var(--cream-3);
  font-family: var(--sans);
  color: var(--ink);
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.dir *, .dir *::before, .dir *::after { box-sizing: inherit; }

.dir__list {
  padding: clamp(32px, 4vw, 56px) clamp(20px, 3.4vw, 52px) clamp(40px, 5vw, 72px) clamp(20px, 5vw, 72px);
  min-width: 0;
}
.dir__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-ink);
  letter-spacing: -.01em;
  margin: 0 0 .9rem;
}
.dir__lead {
  margin: 0 0 1.5rem;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.dir__lead strong { color: var(--green-ink); }

.dir__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.2rem;
}
.dir-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  background: #fff;
  border: 1px solid rgba(1, 39, 23, .14);
  border-radius: var(--radius-pill);
  padding: .55rem 1.1rem .5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.dir-f:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 86, 32, .12);
}
.dir-f > span {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.dir-f select, .dir-f input {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  color: var(--green-ink);
  padding: 0 1.4rem 0 0;
  width: 100%;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.dir-f select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005620' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
  cursor: pointer;
}
.dir-f--q {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: .35rem .4rem .35rem 1.1rem;
  background: var(--green);
  border-color: var(--green);
}
.dir-f--q > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dir-f--q input {
  color: var(--cream);
  font-weight: 500;
  padding: .5rem 0;
}
.dir-f--q input::placeholder {
  color: rgba(243, 236, 221, .7);
}
.dir-f--q button {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--gold-bright);
  color: var(--green-900);
  display: grid;
  place-items: center;
  transition: transform .2s, background .2s;
  cursor: pointer;
}
.dir-f--q button svg { width: 19px; height: 19px; }
.dir-f--q button:hover { background: #e5b90a; transform: scale(1.06); }

.dir__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(1, 39, 23, .12);
}
.dir__count {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.dir__count strong {
  color: var(--green-ink);
  font-size: 1.05rem;
}
.dir__count span { color: var(--ink-soft); }
.dir__reset {
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 700;
  font-size: .9rem;
  padding: .3rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  cursor: pointer;
}
.dir__reset:hover { border-bottom-color: var(--red); }

.dir__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.dir-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.dir-card:hover, .dir-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 86, 32, .25);
  outline: none;
}
.dir-card[hidden] { display: none; }
.dir-card h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--green-ink);
  margin: 0;
}
.dir-card__addr {
  margin: .1rem 0 0;
  font-size: .9rem;
  color: var(--ink);
  display: flex;
  gap: .4rem;
  align-items: flex-start;
  line-height: 1.4;
}
.dir-card__addr svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
  margin-top: .2rem;
}
.dir-card__city {
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.dir-card__go {
  margin-top: auto;
  padding-top: .55rem;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1.5px solid rgba(0, 86, 32, .3);
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.dir-card__go:hover {
  border-bottom-color: var(--green);
  color: var(--green-800);
}

.dir-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(1, 39, 23, .22);
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: .42rem .85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.dir-btn svg { width: 14px; height: 14px; }
.dir-btn:hover { background: var(--cream-2); border-color: var(--green); }
.dir-btn--solid { background: var(--green); color: var(--cream); border-color: var(--green); }
.dir-btn--solid:hover { background: var(--green-800); color: #fff; }
.dir-btn--sm { font-size: .76rem; padding: .38rem .8rem; margin-top: .6rem; }
.dir__empty { text-align: center; color: var(--ink-soft); padding: 2.4rem 1rem; background: #fff; border-radius: 18px; }
.dir__more-wrap { display: flex; justify-content: center; margin-top: 1.6rem; }
.dir__note { margin: 1.8rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.dir__note a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Mapa Sticky (Full Viewport Height) */
.dir__map {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  align-self: start;
}
body.admin-bar .dir__map {
  top: 32px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
  body.admin-bar .dir__map {
    top: 46px;
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

.dir .pos-map, .pos-map {
  height: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #cfe6dc;
  position: relative;
}
.pos-map .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: var(--sans);
}
.pos-map img {
  max-width: none !important;
  max-height: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.dir .leaflet-control-attribution { font-size: .62rem; background: rgba(243, 236, 221, .85); color: var(--ink-soft); }
.dir .leaflet-control-zoom { border: 0; box-shadow: var(--shadow-sm); border-radius: 12px; overflow: hidden; margin: 0 18px 26px 0; }
.dir .leaflet-control-zoom a { background: #fff; color: var(--green); border-bottom: 1px solid rgba(1, 39, 23, .1); width: 38px; height: 38px; line-height: 38px; font-size: 1.2rem; }
.dir .leaflet-control-zoom a:hover { background: var(--cream-2); }
.dir .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow); }
.dir .leaflet-popup-content { margin: 14px 16px; font-family: var(--sans); }
.dir .pos-pop h4 { margin: 0 0 .45rem; color: var(--green); font-size: .98rem; font-family: var(--serif); }
.dir .pos-pop h4 span { color: var(--ink-soft); font-weight: 500; font-size: .82rem; font-family: var(--sans); }
.dir .pos-pop ul { list-style: none; margin: 0; padding: 0; max-height: 210px; overflow: auto; }
.dir .pos-pop li { padding: .4rem 0; border-bottom: 1px solid rgba(1, 39, 23, .08); font-size: .82rem; color: var(--green-ink); line-height: 1.35; display: flex; flex-direction: column; gap: .1rem; }
.dir .pos-pop li:last-child { border-bottom: 0; }
.dir .pos-pop li span { color: var(--ink-soft); }
.dir .pos-pop li.more { color: var(--gold); font-weight: 700; border: 0; padding-top: .5rem; }
.dir .pos-pop .dir-btn { width: 100%; justify-content: center; }

/* Pines */
.dir-pin { background: none; border: 0; }
.dir-pin__b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), background .2s;
}
.dir-pin__b i { font-style: normal; font-weight: 800; font-size: .78rem; }
.dir-pin:hover .dir-pin__b, .dir-pin.is-hot .dir-pin__b {
  transform: scale(1.18);
  background: var(--gold-bright);
  color: var(--green-900);
}

/* Etiqueta Islas Malvinas (cubre 'Falkland Islands' de las teselas estándar de OSM) */
.apv-malvinas-tag {
  background: #aad3df !important;
  box-shadow: 0 0 14px 10px #aad3df;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: none;
  border-radius: 4px;
}
.apv-malvinas-tag span {
  font-family: var(--sans, system-ui, -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #3b505c;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Responsivo */
@media(max-width: 1000px) {
  .dir { grid-template-columns: 1fr; }
  .dir__map { position: relative; height: min(62vh, 460px); min-height: 360px; order: -1; top: 0 !important; }
  .dir__list { padding-inline: var(--gutter); }
  .dir__filters { grid-template-columns: 1fr 1fr; }
  .dir .leaflet-control-zoom { margin: 0 12px 12px 0; }
}
@media(max-width: 560px) {
  .dir__filters { grid-template-columns: 1fr; }
  .dir__grid { grid-template-columns: 1fr; gap: 10px; }
  .dir-card { padding: .9rem 1rem; }
}