/* GYMDD Products: real store-locator + transparent catalog; brand preserved */
:root {--map-border:#dce6f4;--map-blue:#0754ca;--map-dark:#0b2854;}
html{scroll-padding-top:100px}
#productos,#tiendas,#mapa,#ofertas{scroll-margin-top:100px}
.topbar{z-index:1000}
.mainnav a{font-size:13px;padding-inline:13px}
.category-btn.active{box-shadow:0 0 0 2px rgba(16,90,211,.22),0 6px 16px #0a3f9b1a}
.product-card{transition:transform .16s,box-shadow .16s}
.product-card:hover{transform:translateY(-3px);box-shadow:0 14px 29px rgba(15,46,94,.15)}
.product-photo{background:linear-gradient(142deg,#fff,#f1f6fd)}
.product-photo img{object-fit:contain!important;max-width:92%;object-position:center}
.product-body{display:flex;flex-direction:column;flex:1;min-width:0}
.product-body .seller-list{margin-top:auto;padding-top:14px}
.product-body .source-note{margin-top:auto;padding:15px 0;color:#44608b;font-size:12px;line-height:1.5;min-height:77px}
.product-body .card-actions{margin-top:12px}
.product-body .card-actions .action-link{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;border-radius:8px;padding:9px 6px;background:#0756d4;border:1px solid #0756d4;color:white;font-weight:800;line-height:1.2}
.filter-favs{border:1px solid #cddcf1;background:#fff;color:#244c81;padding:9px 12px;border-radius:10px;font-size:12px;font-weight:800}
.filter-favs.active{background:#e5f0ff;border-color:#0058d7;color:#0451c8}
.loadmore-product{display:block;margin:24px auto 8px;border:1px solid #bed1ee;border-radius:24px;padding:11px 22px;background:#fff;color:#0b50b5;font-weight:800}
.loadmore-product[hidden],.api-results[hidden]{display:none!important}
.engine-status{margin:0 0 16px;padding:10px 14px;border:1px solid #d9e4f4;border-radius:11px;background:#f2f7ff;color:#456083;font-size:13px;line-height:1.4}
.engine-status.active{background:#eefaf3;border-color:#bee5ca;color:#216645}
.api-results{margin-bottom:28px;border:1px solid #b4d8bd;background:#f4fbf6;border-radius:18px;padding:18px}
.live-results-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.live-results-title small{color:#527461}
.verified-mark{color:#086b3c;font-weight:900;font-size:17px}
.live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.live-card{background:#fff;border:1px solid #c8e6d1;border-radius:13px;padding:17px;min-width:0}
.live-card-head small{color:#1354af;font-weight:800}.live-card h3{font-size:18px;margin:4px 0 8px}
.live-badge{background:#e7f8ed;color:#17733b;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:800}
.live-price{font-size:29px;color:#0a3e81;font-weight:900;margin:12px 0}.live-price small{display:block;color:#536981;font-size:12px;font-weight:500}
.live-offers{display:grid;gap:8px}.live-offers>div{background:#f4f8fd;border:1px solid #e0eaf5;border-radius:8px;padding:9px;display:grid;gap:5px;font-size:12px}.live-offers b{font-size:13px}
.live-offers a{color:#034db8;font-weight:800}.live-timestamp{color:#516986;font-size:12px;margin-bottom:0}
.directory-intro{background:#f1f6fc;border:1px solid #dbe6f2;border-radius:11px;padding:12px 16px;margin-bottom:14px;display:flex;gap:15px;align-items:center;color:#486180;font-size:12px}
.directory-intro strong{color:#164980;letter-spacing:.07em;font-size:11px}
.directory-disclaimer{font-size:12px;color:#62758f;margin-top:14px}
.map-section{background:linear-gradient(180deg,#eef5ff,#f7faff);padding:55px 0 62px;border-top:1px solid #deebf9}
.map-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}
.map-kicker{color:#f06c12;font-weight:900;letter-spacing:.14em;font-size:11px}
.map-heading h2{font-size:clamp(27px,2.5vw,38px);line-height:1.15;letter-spacing:-.7px;margin:6px 0 9px;color:#0a2e64}
.map-heading p{color:#526987;font-size:14px;line-height:1.5;margin:0;max-width:710px}
.map-caption{display:inline-flex;align-items:center;border:1px solid #d1e0f0;padding:9px 15px;color:#2b5a8d;border-radius:24px;white-space:nowrap;font-size:11px;font-weight:800;background:#fff}
.map-layout{display:grid;grid-template-columns:minmax(290px,370px) minmax(0,1fr);gap:19px;align-items:stretch}
.map-panel,.map-canvas-wrap{background:white;border:1px solid var(--map-border);border-radius:19px;box-shadow:0 9px 30px rgba(19,52,94,.08);min-width:0;overflow:hidden}
.map-panel{padding:21px;display:flex;flex-direction:column;max-height:570px}
.map-form{display:grid;grid-template-columns:1fr 130px;gap:9px}
.map-form label{font-size:12px;font-weight:800;color:#324d74;margin-bottom:-4px}
.map-form select{width:100%;border:1px solid #d1dfef;border-radius:10px;background:#fff;padding:12px 11px;color:#102e53;min-width:0;font-size:14px}
.map-form button{border-radius:11px;font-weight:800;padding:13px 10px}
.map-search{grid-column:1/-1;border:0;background:#0656d3;color:#fff;box-shadow:0 3px 10px rgba(4,76,197,.12)}
.map-geolocate{grid-column:1/-1;color:#1656a8;background:#f0f6ff;border:1px solid #cfe1fa}
.map-counter{background:#f4f8ff;padding:11px;border-radius:10px;border:1px solid #e0e9f5;color:#476181;font-size:12px;line-height:1.4;margin:15px 0 9px}
.map-results{overflow-y:auto;flex:1;min-height:55px;scrollbar-width:thin}
.map-place{padding:13px 2px;border-bottom:1px solid #e7edf6;cursor:pointer}
.map-place:hover{background:#f7faff}
.map-place .place-top{display:flex;align-items:start;justify-content:space-between;gap:8px}
.map-place strong{font-size:14px;color:#102c54}
.map-place .place-top span{font-size:10px;white-space:nowrap;color:#567191}
.map-place p{font-size:12px;color:#63758d;margin:4px 0 8px}
.map-place-links{display:flex;gap:14px;flex-wrap:wrap}.map-place-links a{color:#0653b6;font-size:12px;font-weight:800}
.map-brand{display:inline-block;color:#2d7153;font-size:10px;background:#eff9f2;border-radius:5px;padding:2px 6px;margin:1px 0 7px}
.map-external{margin-top:14px;padding:9px 10px;border:1px solid #d0deef;color:#1657aa;border-radius:10px;font-size:12px;font-weight:800;text-align:center}
.map-canvas-wrap{position:relative;display:flex;flex-direction:column}
.map-canvas{height:527px;min-height:480px;width:100%;background:#deebf9}
.map-credits{padding:12px 15px;background:#fff;color:#637c98;font-size:11px;line-height:1.4}
.map-offline{height:100%;display:grid;align-content:center;justify-items:center;text-align:center;padding:35px;color:#2b527f}.map-offline p{font-size:13px}
.map-loading,.map-unavailable{padding:16px 6px;color:#516b88;font-size:12px}
.leaflet-popup-content b{font-size:14px}.leaflet-popup-content p{color:#53657d}.leaflet-popup-content a{font-weight:800;color:#0653b6}
.footer-inner{align-items:center}
@media(max-width:1180px){.mainnav{gap:3px}.mainnav a{padding:8px 9px;font-size:12px}.live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-layout{grid-template-columns:330px 1fr}}
@media(max-width:850px){.topbar{z-index:1000}.map-layout{grid-template-columns:1fr}.map-panel{max-height:450px}.map-canvas{height:430px;min-height:350px}.map-heading{align-items:flex-start;flex-direction:column}.live-grid{grid-template-columns:1fr}}
@media(max-width:520px){.filters{justify-content:space-between;gap:8px}.filter-favs{margin-right:auto}.map-section{padding:36px 0 43px}.map-panel{padding:16px}.map-canvas{height:330px;min-height:330px}.map-form{grid-template-columns:1fr 112px}.map-heading h2{font-size:26px}.directory-intro{align-items:flex-start;flex-direction:column;gap:6px}.product-card{min-height:0}.live-results-title{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.product-card,.category-btn{transition:none!important}}

.map-filter-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff5e9;border:1px solid #f6d0a9;border-radius:9px;color:#88521a;padding:8px 11px;font-weight:800;font-size:11px;margin:0 0 10px}.map-filter-chip[hidden]{display:none}.map-filter-chip button{border:0;background:transparent;color:#83511e;font-size:16px;font-weight:900}.map-from-product{width:100%;background:#f0f6ff;border:1px solid #b8d2f0;border-radius:9px;padding:13px;color:#0b50a6;font-weight:800;cursor:pointer;margin-top:12px}

.brand-filter-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}.brand-filter-label select{max-width:165px}.geo-privacy{grid-column:1/-1;line-height:1.4;color:#677d99;font-size:10px;margin-top:1px}.footer-inner{flex-wrap:wrap}.footer-inner a{color:#27629b;text-decoration:underline;text-underline-offset:2px}.product-card .source-note{border-top:1px solid #e8eef6}.product-status,.status-chip{font-size:11px!important}@media(max-width:720px){.brand-filter-label{width:100%;justify-content:flex-start}.brand-filter-label select{max-width:100%;flex:1}.filters{flex-wrap:wrap}}

/* Responsive QA across 320-1920 CSS px | 2026-11-20 */
/* 1. Make controls shrink instead of widening the entire viewport. */
.filters,.brand-filter-label,.filters select,.filters button,.map-form,.map-panel,.map-canvas-wrap{min-width:0}
.brand-filter-label select{min-width:0}
#compareDialog{max-width:calc(100vw - 22px);overflow-x:auto}
#compareDialog .comparison-product{min-width:0;overflow-wrap:anywhere}
.merchant-dialog-list a{min-width:0;overflow-wrap:anywhere;gap:8px}
.compare-strip{bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 14px)}
/* 2. Intermediate devices: categories should remain easy to tap, not shrink to 66px. */
@media (min-width:851px) and (max-width:1360px){
  .category-rail{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:9px;gap:9px;overscroll-behavior-inline:contain}
  .category-btn{flex:0 0 100px;scroll-snap-align:start}
  .category-rail::-webkit-scrollbar{height:5px}
  .category-rail::-webkit-scrollbar-thumb{background:#b8cde8;border-radius:20px}
}
/* 3. Tablet in portrait or landscape. */
@media (max-width:850px){
  .map-layout{align-items:start}
  .map-panel{max-height:none}
  .map-results{max-height:260px;overflow-y:auto;flex:initial;min-height:0}
  .map-canvas-wrap{min-height:0}
  .top-inner{align-items:center}
  .product-grid{gap:14px}
  .directory-grid{gap:10px}
  .map-heading h2{max-width:24ch}
}
/* 4. Handheld portrait, including 320px narrow devices and iPhone safe-area. */
@media (max-width:600px){
  .topbar{box-shadow:0 2px 10px rgba(2,32,72,.05)}
  .top-inner{padding:10px 0 8px;gap:7px 10px}
  .mainnav{width:100%;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;overflow:visible;white-space:normal;order:3}
  .mainnav a,.mainnav a.selected{min-width:0;font-size:10.5px;line-height:1.16;text-align:center;padding:10px 2px;white-space:normal;overflow-wrap:break-word;border-radius:9px}
  .hero{min-height:0;height:auto}
  .hero-grid{min-height:420px;padding-block:35px 28px;justify-content:center}
  .hero h1{font-size:clamp(30px,7.5vw,36px);line-height:1.08;letter-spacing:-.9px}
  .hero p{font-size:13px;line-height:1.5}
  .hero-benefits{margin-top:6px;gap:9px}
  .benefit strong,.benefit small{font-size:11px;line-height:1.25}
  .searchbar{width:100%;max-width:100%;min-width:0}
  .searchbar input{font-size:13px;min-width:0}
  .searchbar button{padding-inline:13px;min-width:70px}
  .categories{padding-block:14px 9px}
  .category-btn{min-height:80px}
  .section-heading{gap:11px}
  .filters{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px 7px;justify-content:stretch;align-items:center;width:100%;white-space:normal}
  .filter-favs{grid-column:1;grid-row:1;justify-self:start;margin:0}
  .brand-filter-label{grid-column:2/4;grid-row:1;display:flex;gap:5px;align-items:center;min-width:0;width:100%;max-width:100%;font-size:11px}
  .brand-filter-label select{flex:1 1 0;width:0;max-width:100%;min-width:0;padding-inline:7px;font-size:12px}
  .filters>label[for="sort"]{grid-column:1;grid-row:2;justify-self:start;margin:0;font-size:12px}
  .filters>#sort{grid-column:2;grid-row:2;width:100%;max-width:100%;min-width:0;font-size:12px;padding-inline:7px}
  .viewtoggle{grid-column:3;grid-row:2;justify-self:end}
  .viewtoggle button{min-width:38px;min-height:40px}
  .product-photo{height:215px}
  .product-photo img{height:185px}
  .product-body{padding:16px}
  .card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .card-actions button{min-width:0;min-height:43px}
  .directory .section-heading{gap:9px}
  .count{max-width:100%;white-space:normal}
  .directory-controls>*{width:100%;min-width:0}
  .map-layout{display:flex;flex-direction:column;gap:12px}
  .map-panel,.map-canvas-wrap{width:100%;max-width:100%}
  .map-form button{min-height:44px}
  .map-panel{height:auto;max-height:none}
  .map-results{max-height:250px;flex:initial}
  .map-canvas{height:300px;min-height:300px}
  .map-credits{padding:10px 12px}
  .trust-grid{gap:15px}
  .trust-grid>div{padding-inline:0}
  .footer-inner{gap:10px;overflow-wrap:anywhere}
}
@media (max-width:359px){
  .mainnav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .mainnav a,.mainnav a.selected{padding-block:8px;font-size:11px}
  .hero-grid{min-height:440px}
  .hero h1{font-size:29px}
  .hero-benefits{gap:5px}
  .category-btn{flex-basis:90px}
  .product-photo{height:190px}
  .product-photo img{height:170px}
}
/* 5. Landscape phones: reduce vertical whitespace without crushing content. */
@media (max-height:480px) and (orientation:landscape) and (max-width:950px){
  .topbar{position:relative}
  .hero-grid{min-height:300px;padding-block:22px}
  .hero{min-height:0}
  .hero-benefits{gap:10px}
  .category-btn{min-height:70px}
}
@media (max-width:600px){
  .mainnav a,.mainnav a.selected{min-height:44px;display:flex;align-items:center;justify-content:center}
  .all-sports,.filter-favs,.loadmore,.loadmore-product{min-height:44px}
  .viewtoggle button,.product-photo .heart{min-height:44px;min-width:44px}
}
