/* Additional mobile web refinements. Existing desktop cards, filters and map keep their layout. */
.vl-mobile-active-filters { display: none; }

@layer vl-layout {
 @media (max-width: 767px) {
  html.vl-mobile-browse body #establecimientos { padding-top: 22px !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid { grid-template-columns: 1fr !important; gap: 16px !important; align-items: start; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) { max-width: 100% !important; height: auto !important; min-height: 0 !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) > .vl17-media { height: auto !important; min-height: 0 !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) > .vl17-media > img {
   width: 100% !important; height: clamp(160px, 48vw, 230px) !important; max-height: 230px !important; object-fit: contain !important;
  }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .vl-card-content { padding: 14px !important; gap: 9px !important; min-height: 0 !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .local-title { font-size: 19px !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .local-desc { -webkit-line-clamp: 2 !important; font-size: 13px !important; line-height: 1.5 !important; max-height: 3em !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .vl-card-hours { padding: 7px 10px !important; font-size: 11px !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) :is(.vl-card-kicker, .vl-card-explore, .vl18-quicklinks > a) { display: none !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .vl18-tools { padding: 0 !important; margin: 0 !important; min-height: 44px; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .discovery-card-links { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: 0 !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item:not(.hidden-item) .discovery-card-links a { display: flex !important; align-items: center; justify-content: center; min-height: 44px !important; padding: 10px 8px !important; border-radius: 10px !important; font-size: 12px !important; text-align: center; }
  html.vl-mobile-browse #clearFiltersButton { display: none !important; }

  html.vl-mobile-browse #mapa { padding: 20px 12px !important; }
  html.vl-mobile-browse #mapa > .text-center { margin-bottom: 12px !important; }
  html.vl-mobile-browse #mapa #lojaMap { min-height: 360px !important; height: 64vh !important; height: 64dvh !important; }
  html.vl-mobile-browse body #mapa #mapPreviewCard { display: none !important; }

 }
}
@layer vl-colors {
 @media (max-width: 767px) {
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item .discovery-card-links > a:first-child { --vl-text: #fff; --vl-muted: #fff; --vl-accent: #fff; background: #075eb5 !important; color: #fff !important; }
  html.vl-mobile-browse body #establecimientos #localesGrid > .local-item .discovery-card-links > a:last-child { --vl-text: #164d80; --vl-muted: #164d80; --vl-accent: #164d80; background: #edf5ff !important; color: #164d80 !important; }
  html.vl-mobile-browse body #mapa #mapPreviewCard { --vl-text: #173b60; --vl-muted: #52697e; --vl-accent: #075eb5; background: #fff !important; }
 }
}
@media (max-width: 767px) {
 html.vl-mobile-browse .vl-mobile-active-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
 .vl-mobile-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; max-width: 100%; }
 .vl-mobile-filter-chips button { max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c7ddf5; border-radius: 999px; background: #edf5ff; color: #164c80; font-size: 12px; overflow-wrap: anywhere; }
 .vl-mobile-active-filters > button { min-height: 44px; color: #075eb5; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
 html.vl-mobile-browse body:has(#vl-chabaquito-install.vl-install-visible) #accountFloatingInvite,
 html.vl-mobile-browse body:has([role="dialog"][aria-modal="true"][aria-hidden="false"]) :is(#accountFloatingInvite, #vl-chabaquito-install) { display: none !important; }
}


@layer vl-layout {
 @media(max-width:767px){
  html.vl-mobile-browse #establecimientos .place-quick-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;overflow:visible!important}
  html.vl-mobile-browse #establecimientos .place-quick-actions>button{min-height:44px!important;white-space:normal;padding:10px!important;font-size:12px!important;text-align:center;border-radius:12px!important}
  html.vl-mobile-browse #establecimientos .place-quick-actions>button:nth-child(3){grid-column:2;grid-row:1}
  html.vl-mobile-browse #establecimientos .place-quick-actions>button:nth-child(2){grid-column:1;grid-row:2}
  html.vl-mobile-browse #establecimientos .discovery-open{display:none!important}
 }
}
@layer vl-colors {
 #accountModal .account-device-favorites{display:block;width:100%;min-height:44px;margin-top:14px;border:1px solid #bad5ed;border-radius:12px;background:#edf5ff!important;color:#154d80!important;font-weight:750;font-size:14px;padding:12px}
 @media(max-width:767px){
  html.vl-mobile-browse #establecimientos .place-quick-actions>button{background:#edf5ff!important;color:#164c80!important;border:1px solid #c5d9ee!important}
  html.vl-mobile-browse #establecimientos .place-quick-actions>button[aria-pressed=true]{background:#075eb5!important;color:#fff!important;border-color:#075eb5!important;--vl-text:#fff;--vl-muted:#fff;--vl-accent:#fff}
  #placesNearMeButton[aria-busy=true]{opacity:.65;cursor:progress}
 }
}
