/* [warivo_dealer_locator]: dealer listing (approved Option A).
   Everything is scoped under #wdl-locator so the theme's styles don't leak in or out. */

#wdl-locator{
  --wdl-black:#0a0a0a; --wdl-ink:#1a1a1a; --wdl-muted:#5f6b76; --wdl-line:#e3e8ee; --wdl-soft:#f4f7fa;
  --wdl-teal:#2b5d7d; --wdl-teal-dark:#1f4a65; --wdl-accent:#ff3a4c; --wdl-accent-dark:#e0283b;
  --wdl-wa:#25d366; --wdl-wa-dark:#1da851; --wdl-radius:14px;
  --wdl-shadow:0 6px 24px rgba(16,32,48,.08); --wdl-shadow-hover:0 14px 36px rgba(16,32,48,.16);
  font-family:Roboto,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--wdl-ink);line-height:1.55;-webkit-font-smoothing:antialiased;
  font-size:16px;text-align:left;
  /* break out of the theme's content column so the layout is the same whatever the page width */
  width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
}
html:has(#wdl-locator),body:has(#wdl-locator){overflow-x:clip}
#wdl-locator *,#wdl-locator *::before,#wdl-locator *::after{box-sizing:border-box}
#wdl-locator h1,#wdl-locator h2,#wdl-locator h3{font-family:Poppins,Roboto,sans-serif;line-height:1.2;margin:0;padding:0;letter-spacing:normal;text-transform:none;color:inherit}
#wdl-locator p{margin:0;padding:0}
#wdl-locator a{color:inherit;text-decoration:none;box-shadow:none}
#wdl-locator img{display:block;max-width:100%;height:auto}
#wdl-locator button,#wdl-locator input,#wdl-locator select{font:inherit;color:inherit;margin:0}
#wdl-locator .wdl-container{width:100%;max-width:1200px;margin:0 auto;padding:0 20px}
#wdl-locator .wdl-bleed{width:100vw;margin-left:calc(50% - 50vw)}
#wdl-locator .wdl-i{width:18px;height:18px;flex:0 0 auto}
#wdl-locator :focus-visible{outline:3px solid #6fb3e0;outline-offset:2px;border-radius:6px}

/* Hero */
#wdl-locator .wdl-hero{position:relative;color:#fff;text-align:center;padding:96px 0 144px;overflow:hidden;isolation:isolate;
  background:radial-gradient(ellipse at 50% 120%,rgba(255,58,76,.38),transparent 60%),
             linear-gradient(180deg,rgba(0,0,0,.82) 0%,rgba(8,14,20,.72) 50%,rgba(8,14,20,.92) 100%),
             var(--wdl-hero-img) center 45%/cover no-repeat #000}
#wdl-locator .wdl-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 45%,transparent 0%,rgba(0,0,0,.55) 75%);pointer-events:none}
#wdl-locator .wdl-eyebrow{display:inline-block;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#ff8994;margin-bottom:12px}
#wdl-locator .wdl-h1{font-size:clamp(28px,5vw,46px);font-weight:700;color:#fff;text-shadow:0 4px 30px rgba(0,0,0,.5)}
#wdl-locator .wdl-lead{max-width:620px;margin:14px auto 0;color:#c9d2da;font-size:16px}

/* Search panel */
#wdl-locator .wdl-search-wrap{position:relative;z-index:5;margin-top:-76px}
#wdl-locator .wdl-search-panel{background:#fff;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.18);padding:22px;margin:0}
#wdl-locator .wdl-search-grid{display:grid;grid-template-columns:2fr 1fr auto;gap:12px}
#wdl-locator .wdl-field{position:relative}
#wdl-locator .wdl-field label{display:block;font-size:12px;font-weight:500;color:var(--wdl-muted);margin:0 0 6px 2px;padding:0}
#wdl-locator .wdl-field > .wdl-i{position:absolute;left:14px;bottom:15px;z-index:2;color:var(--wdl-muted);pointer-events:none} /* z-index: themes (Salient) give inputs position:relative, which would paint over the icon */
#wdl-locator .wdl-input,#wdl-locator .wdl-select{width:100%;height:48px;border:1.5px solid var(--wdl-line);border-radius:10px;background-color:#fff;padding:0 14px!important;font-size:15px;line-height:normal;box-shadow:none;transition:border-color .2s,box-shadow .2s}
#wdl-locator .wdl-input{padding-left:42px!important}
#wdl-locator .wdl-select{-webkit-appearance:none;appearance:none;padding-right:38px!important;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b76' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:18px}
#wdl-locator .wdl-input:focus,#wdl-locator .wdl-select:focus{outline:none;border-color:var(--wdl-teal);box-shadow:0 0 0 4px rgba(43,93,125,.12)}
#wdl-locator .wdl-search-grid .wdl-btn{align-self:end}
#wdl-locator .wdl-search-foot{display:flex;justify-content:flex-end;margin-top:12px}
#wdl-locator .wdl-reset{background:none;border:0;padding:0;color:var(--wdl-accent);font-weight:600;font-size:14px;cursor:pointer}
#wdl-locator .wdl-reset:hover{text-decoration:underline}

/* Buttons */
#wdl-locator .wdl-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:10px;border:0;cursor:pointer;font-weight:600;font-size:15px;line-height:1;text-transform:none;letter-spacing:normal;transition:background .2s,transform .1s,box-shadow .2s;white-space:nowrap;background:var(--wdl-black);color:#fff}
#wdl-locator .wdl-btn:active{transform:translateY(1px)}
#wdl-locator .wdl-btn-primary{background:var(--wdl-accent);color:#fff}
#wdl-locator .wdl-btn-primary:hover{background:var(--wdl-accent-dark)}
#wdl-locator .wdl-btn-sm{height:42px;font-size:14px;padding:0 12px}
#wdl-locator .wdl-btn-dark{background:var(--wdl-black);color:#fff}
#wdl-locator .wdl-btn-dark:hover{background:#2a2a2a}
#wdl-locator .wdl-btn-wa{background:var(--wdl-wa);color:#fff}
#wdl-locator .wdl-btn-wa:hover{background:var(--wdl-wa-dark)}
#wdl-locator .wdl-btn-outline{background:#fff;color:var(--wdl-ink);border:1.5px solid var(--wdl-line)}
#wdl-locator .wdl-btn-outline:hover{border-color:var(--wdl-ink)}
#wdl-locator .wdl-btn-light{background:#fff;color:var(--wdl-teal-dark)}
#wdl-locator .wdl-btn-light:hover{background:#eaf2f7}

/* Results */
#wdl-locator .wdl-results{padding:40px 0 64px;scroll-margin-top:90px}
#wdl-locator .wdl-count{font-size:15px;color:var(--wdl-muted);margin-bottom:20px}
#wdl-locator .wdl-count strong{color:var(--wdl-ink)}
#wdl-locator .wdl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#wdl-locator .wdl-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--wdl-line);border-radius:var(--wdl-radius);overflow:hidden;box-shadow:var(--wdl-shadow);transition:transform .25s,box-shadow .25s}
#wdl-locator .wdl-card:hover{transform:translateY(-4px);box-shadow:var(--wdl-shadow-hover)}
#wdl-locator .wdl-card-media{position:relative;display:block;aspect-ratio:16/10;background:#e9eef2;overflow:hidden}
#wdl-locator .wdl-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
#wdl-locator .wdl-card:hover .wdl-card-media img{transform:scale(1.04)}
#wdl-locator .wdl-card-body{flex:1;display:flex;flex-direction:column;padding:18px 18px 20px}
#wdl-locator .wdl-card-title{font-size:17px;font-weight:600}
#wdl-locator .wdl-card-title a:hover{color:var(--wdl-teal)}
#wdl-locator .wdl-meta{display:flex;flex-direction:column;gap:10px;margin:14px 0 18px;font-size:14px;color:#3a4651}
#wdl-locator .wdl-meta-row{display:flex;gap:10px;align-items:flex-start}
#wdl-locator .wdl-meta-row .wdl-i{color:var(--wdl-teal);margin-top:1px}
#wdl-locator .wdl-tags{display:flex;gap:6px;flex-wrap:wrap}
#wdl-locator .wdl-tag{font-size:12px;font-weight:500;padding:3px 10px;border-radius:6px;background:#eaf2f7;color:var(--wdl-teal-dark)}
#wdl-locator .wdl-card-actions{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
#wdl-locator .wdl-load-more{display:flex;justify-content:center;margin-top:36px}
#wdl-locator .wdl-load-more .wdl-btn{border-radius:999px;padding:0 30px}
#wdl-locator [hidden]{display:none!important}

#wdl-locator .wdl-empty{text-align:center;padding:56px 20px;border:2px dashed var(--wdl-line);border-radius:var(--wdl-radius);background:var(--wdl-soft)}
#wdl-locator .wdl-empty > .wdl-i{width:56px;height:56px;color:var(--wdl-muted);margin:0 auto 14px;display:block}
#wdl-locator .wdl-empty h3{font-size:19px}
#wdl-locator .wdl-empty p{color:var(--wdl-muted);margin:8px auto 18px;max-width:440px;font-size:14px}
#wdl-locator .wdl-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* Become a dealer band */
#wdl-locator .wdl-band{background:var(--wdl-teal);color:#fff;padding:48px 0}
#wdl-locator .wdl-band .wdl-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
#wdl-locator .wdl-band h2{font-size:26px;color:#fff}
#wdl-locator .wdl-band p{color:#d4e3ed;margin-top:6px}

/* Help box */
#wdl-locator .wdl-help{padding:56px 0}
#wdl-locator .wdl-help-box{border-radius:18px;padding:44px 24px;text-align:center;color:#fff;background:linear-gradient(100deg,#2448e0 0%,#4b2fd6 50%,#8a1fd1 100%)}
#wdl-locator .wdl-help-box h2{font-size:clamp(22px,3.4vw,30px);color:#fff}
#wdl-locator .wdl-help-box p{margin:8px auto 22px;color:#e2e4ff;font-size:15px}
#wdl-locator .wdl-help-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
#wdl-locator .wdl-btn-ghost{height:40px;font-size:13px;border:1.5px solid #fff;background:transparent;color:#fff}
#wdl-locator .wdl-btn-ghost:hover{background:rgba(255,255,255,.12)}
#wdl-locator .wdl-btn-white{height:40px;font-size:13px;background:#fff;color:#2b2b9f}

/* Responsive */
@media (max-width:1024px){
  #wdl-locator .wdl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #wdl-locator .wdl-search-grid{grid-template-columns:1fr 1fr}
  #wdl-locator .wdl-search-grid .wdl-field:first-child{grid-column:1/-1}
}
@media (max-width:640px){
  #wdl-locator .wdl-container{padding:0 16px}
  #wdl-locator .wdl-hero{padding:52px 0 104px}
  #wdl-locator .wdl-grid{grid-template-columns:1fr}
  #wdl-locator .wdl-search-panel{padding:16px}
  #wdl-locator .wdl-search-grid{grid-template-columns:1fr}
  #wdl-locator .wdl-band .wdl-container{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){#wdl-locator *{animation:none!important;transition:none!important}}
