.vtmal-alert{
  padding:12px 14px;
  border-radius:0;
  border:1px solid rgba(0,0,0,.08);
  background:#fff7e6;
  color:#5a3b00;
  font-weight:600;
  max-width:1100px;
}

.vtmal-locator{
  --vtmal-gap:14px;
  --vtmal-radius:0;
  --vtmal-border:transparent;
  --vtmal-bg:#fff;
  --vtmal-muted:rgba(0,0,0,.65);
  --vtmal-toolbar-h:86px;
  --vtmal-sidebar-w:340px;
  width:100%;
  max-width:none;
  margin:0 auto;
  position:relative;
}

/* Buscador flotante superior */
.vtmal-toolbar{
  position:absolute;
  top:16px;
  left:16px;
  width:calc(var(--vtmal-sidebar-w) - 32px);
  max-width:calc(var(--vtmal-sidebar-w) - 32px);
  z-index:30;
  pointer-events:none;
}

.vtmal-search{
  pointer-events:auto;
  display:grid;
  grid-template-columns:1fr 56px;
  align-items:center;
  width:100%;
  background:#fff;
  border:0;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  overflow:hidden;
}

.vtmal-search__field{
  position:relative;
  background:#fff;
  min-width:0;
}

.vtmal-search__field::before{
  content:"";
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  opacity:.45;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='0' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.vtmal-search__input{
  display:block;
  width:100%;
  height:56px;
  border:0;
  border-radius:0;
  background:#fff;
  color:#222;
  font-size:15px;
  line-height:1.2;
  padding:0 16px 0 46px;
  outline:none;
  box-shadow:none;
}

.vtmal-search__input::placeholder{
  color:rgba(0,0,0,.45);
}

.vtmal-search__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border:0;
  background:#fff;
  color:#111;
  cursor:pointer;
  transition:background-color .2s ease, opacity .2s ease, transform .2s ease;
  box-shadow:none;
  border-left:1px solid rgba(0,0,0,.08);
}

.vtmal-search__button:hover{
  background:#f6f6f6;
  opacity:1;
}

.vtmal-search__button:disabled{
  cursor:wait;
  opacity:.75;
}

.vtmal-search__buttonIcon{
  display:block;
  font-size:26px;
  line-height:1;
  transform:translateY(-1px);
  color:#111;
}

.vtmal-search.is-loading .vtmal-search__buttonIcon{
  animation:vtmalPulse .85s linear infinite;
}

.vtmal-search__status{
  pointer-events:none;
  margin-top:8px;
  padding:0 6px;
  font-size:13px;
  line-height:1.35;
  color:rgba(0,0,0,.72);
  min-height:18px;
}

.vtmal-search__status.is-error{
  color:#8a1f1f;
}

.vtmal-search__status.is-success{
  color:#21633a;
}

.vtmal-search__status.is-loading{
  color:#555;
}

@keyframes vtmalPulse{
  0%{ transform:translateY(-1px) scale(1); opacity:1; }
  50%{ transform:translateY(-1px) scale(0.92); opacity:.7; }
  100%{ transform:translateY(-1px) scale(1); opacity:1; }
}

/* Layout principal */
.vtmal-layout{
  display:grid;
  grid-template-columns:var(--vtmal-sidebar-w) 1fr;
  width:100%;
  height:75vh;
  min-height:600px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
}

.vtmal-sidebar{
  background:#fff;
  border-right:1px solid rgba(0,0,0,.08);
  min-height:600px;
  height:100%;
  overflow:hidden;
  padding-top:calc(var(--vtmal-toolbar-h) + 8px);
}

.vtmal-store-list{
  height:100%;
  overflow-y:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.28) rgba(0,0,0,.06);
}

.vtmal-store-list::-webkit-scrollbar{
  width:10px;
}

.vtmal-store-list::-webkit-scrollbar-track{
  background:rgba(0,0,0,.05);
}

.vtmal-store-list::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.22);
  border-radius:999px;
  border:2px solid rgba(255,255,255,.95);
}

.vtmal-store-list__empty{
  padding:18px 14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  color:rgba(0,0,0,.72);
  font-size:14px;
  line-height:1.45;
}

.vtmal-store-list__empty--error{
  color:#8a1f1f;
  background:#fff5f5;
  border-color:rgba(138,31,31,.16);
}

.vtmal-mapWrap{
  border-radius:0;
  border:0;
  background:var(--vtmal-bg);
  overflow:hidden;
  position:relative;
  min-height:600px;
  height:100%;
}

.vtmal-mapWrap--solo{
  width:100%;
}

.vtmal-map{
  width:100%;
  height:100%;
  min-height:600px;
}

/* Overlay flotante inicial */
.vtmal-intro{
  position:absolute;
  inset:0;
  z-index:25;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
}

.vtmal-intro.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.vtmal-intro.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.vtmal-intro__dialog{
  position:relative;
  width:100%;
  max-width:520px;
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  padding:34px 28px 22px;
}

.vtmal-intro__close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  color:#111;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  opacity:.75;
}

.vtmal-intro__close:hover{
  opacity:1;
}

.vtmal-intro__title{
  display:block;
  margin:0 0 18px 0;
  font-size:28px;
  line-height:1.1;
  font-weight:700;
  color:#111;
  letter-spacing:-.02em;
  text-align:center;
}

.vtmal-intro__form{
  display:grid;
  grid-template-columns:1fr 160px;
  gap:0;
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
  background:#fff;
}

.vtmal-intro__input{
  display:block;
  width:100%;
  min-width:0;
  height:58px;
  border:0;
  background:#fff;
  color:#222;
  font-size:15px;
  line-height:1.2;
  padding:0 16px;
  outline:none;
  box-shadow:none;
}

.vtmal-intro__input::placeholder{
  color:rgba(0,0,0,.42);
}

.vtmal-intro__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:160px;
  height:58px;
  border:0;
  border-left:1px solid rgba(0,0,0,.08);
  background:#111;
  color:#fff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:opacity .2s ease, background-color .2s ease;
}

.vtmal-intro__button:hover{
  opacity:.92;
}

.vtmal-intro__button:disabled{
  opacity:.7;
  cursor:wait;
}

.vtmal-intro__status{
  margin-top:12px;
  min-height:18px;
  font-size:13px;
  line-height:1.35;
  text-align:center;
  color:rgba(0,0,0,.72);
}

.vtmal-intro__status.is-error{
  color:#8a1f1f;
}

.vtmal-intro__status.is-success{
  color:#21633a;
}

.vtmal-intro__status.is-loading{
  color:#555;
}

/* marcador del punto buscado */
.vtmal-user-pin{
  width:18px;
  height:18px;
  border-radius:999px;
  background:#111;
  border:3px solid #fff;
  box-shadow:0 0 0 5px rgba(231,52,99,.28);
}

/* Cards del listado lateral */
.vtmal-list-card{
  display:block;
  width:100%;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  text-decoration:none;
  color:#000;
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  text-align:left;
  appearance:none;
  -webkit-appearance:none;
  border-radius:0;
}

.vtmal-list-card:hover{
  border-color:rgba(0,0,0,.18);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

.vtmal-list-card.is-active{
  border-color:#111;
  box-shadow:0 8px 22px rgba(0,0,0,.10);
}

.vtmal-list-card__title{
  display:block;
  font-weight:800;
  font-size:15px;
  line-height:1.2;
  margin:0 0 6px 0;
  color:#000;
}

.vtmal-list-card__address{
  display:block;
  font-size:13px;
  line-height:1.35;
  color:rgba(0,0,0,.75);
  margin:0 0 10px 0;
}

.vtmal-list-card__icons{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:4px;
}

/* PIN personalizado por URL/SVG desde ajustes */
.vtmal-pin{
  width:34px;
  height:34px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center bottom;
  cursor:pointer;
}

/* si es SVG inline */
.vtmal-pin--svg{
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.vtmal-pin--svg svg{
  display:block;
  width:34px;
  height:34px;
}

/* Popup */
.mapboxgl-popup{
  max-width:340px;
  font-family:inherit;
}

.mapboxgl-popup-content{
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  padding:14px;
  box-sizing:border-box;
  overflow:visible;
  height:auto !important;
  color:#000;
}

/* Card popup */
.vtmal-card{
  display:block;
  width:100%;
  min-width:0;
  height:auto !important;
  overflow:visible;
  color:#000;
}

.vtmal-card__logo{
  display:none !important;
}

.vtmal-card__body{
  display:block;
  width:100%;
  min-width:0;
  height:auto !important;
  overflow:visible;
}

.vtmal-card__title{
  display:block;
  font-weight:800;
  font-size:15px;
  line-height:1.2;
  margin:0 0 6px 0;
  color:#000;
}

.vtmal-card__info{
  display:block;
  font-size:13px;
  opacity:.9;
  line-height:1.35;
  margin:0 0 8px 0;
  color:#000;
}

.vtmal-card__address{
  display:block;
  font-size:13px;
  opacity:.8;
  line-height:1.35;
  margin:0 0 10px 0;
  color:#000;
}

/* Icons generales */
.vtmal-card__icons,
.vtmal-list-card__icons{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:4px;
}

.vtmal-ico-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  text-decoration:none;
  color:rgba(0,0,0,.9);
  overflow:hidden;
  flex:0 0 32px;
  background:#fff;
}

.vtmal-ico-link img{
  display:block !important;
  width:16px !important;
  height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  object-fit:contain !important;
  filter:grayscale(1);
  margin:0 !important;
}

.vtmal-ico-link:hover{
  border-color:rgba(0,0,0,.25);
}

/* controles mapbox */
.vtmal-mapWrap .mapboxgl-ctrl-top-right{
  top:18px;
  right:18px;
}

.vtmal-mapWrap .mapboxgl-ctrl-top-left{
  top:18px;
  left:18px;
}

/* Responsive */
@media(max-width:900px){
  .vtmal-locator{
    --vtmal-toolbar-h:74px;
    --vtmal-sidebar-w:100%;
  }

  .vtmal-toolbar{
    top:12px;
    left:12px;
    width:calc(100% - 24px);
    max-width:none;
  }

  .vtmal-search{
    grid-template-columns:1fr 54px;
  }

  .vtmal-search__input{
    height:54px;
    font-size:14px;
  }

  .vtmal-search__button{
    width:54px;
    height:54px;
  }

  .vtmal-layout{
    grid-template-columns:1fr;
    grid-template-rows:60vh auto;
    min-height:auto;
    height:auto;
    overflow:visible;
  }

  .vtmal-sidebar{
    border-right:0;
    border-top:1px solid rgba(0,0,0,.08);
    min-height:auto;
    height:auto;
    order:2;
    padding-top:12px;
    overflow:visible;
  }

  .vtmal-store-list{
    max-height:420px;
    height:auto;
  }

  .vtmal-mapWrap{
    min-height:420px;
    height:60vh;
    order:1;
  }

  .vtmal-map{
    min-height:420px;
    height:60vh;
  }

  .vtmal-intro{
    padding:14px;
  }

  .vtmal-intro__dialog{
    max-width:none;
    padding:28px 16px 18px;
  }

  .vtmal-intro__title{
    font-size:22px;
    margin-bottom:14px;
  }

  .vtmal-intro__form{
    grid-template-columns:1fr;
  }

  .vtmal-intro__button{
    width:100%;
    min-width:0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.12);
  }

  .mapboxgl-popup{
    max-width:300px;
  }

  .vtmal-pin{
    width:30px;
    height:30px;
  }

  .vtmal-pin--svg svg{
    width:30px;
    height:30px;
  }

  .vtmal-mapWrap .mapboxgl-ctrl-top-right{
    top:76px;
    right:12px;
  }

  .vtmal-mapWrap .mapboxgl-ctrl-top-left{
    top:76px;
    left:12px;
  }
}


/* =========================
   NORMALIZACIÓN DE INPUTS
   Locator: texto negro sobre blanco
========================= */

.vtmal-locator input[type="text"],
.vtmal-locator input[type="search"],
.vtmal-locator input[type="email"],
.vtmal-locator input[type="tel"],
.vtmal-locator textarea,
.vtmal-search__input,
.vtmal-intro__input{
  background:#fff !important;
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  border:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
}

.vtmal-locator input[type="text"]::placeholder,
.vtmal-locator input[type="search"]::placeholder,
.vtmal-locator input[type="email"]::placeholder,
.vtmal-locator input[type="tel"]::placeholder,
.vtmal-locator textarea::placeholder,
.vtmal-search__input::placeholder,
.vtmal-intro__input::placeholder{
  color:rgba(0,0,0,.45) !important;
  opacity:1 !important;
}

.vtmal-locator input[type="text"]:-ms-input-placeholder,
.vtmal-locator input[type="search"]:-ms-input-placeholder,
.vtmal-locator input[type="email"]:-ms-input-placeholder,
.vtmal-locator input[type="tel"]:-ms-input-placeholder,
.vtmal-search__input:-ms-input-placeholder,
.vtmal-intro__input:-ms-input-placeholder{
  color:rgba(0,0,0,.45) !important;
}

.vtmal-locator input[type="text"]::-ms-input-placeholder,
.vtmal-locator input[type="search"]::-ms-input-placeholder,
.vtmal-locator input[type="email"]::-ms-input-placeholder,
.vtmal-locator input[type="tel"]::-ms-input-placeholder,
.vtmal-search__input::-ms-input-placeholder,
.vtmal-intro__input::-ms-input-placeholder{
  color:rgba(0,0,0,.45) !important;
}

.vtmal-search__field,
.vtmal-intro__form,
.vtmal-search,
.vtmal-intro__input{
  background:#fff !important;
}

.vtmal-search__input:focus,
.vtmal-intro__input:focus{
  outline:none !important;
  box-shadow:none !important;
  color:#111 !important;
  background:#fff !important;
}