/* =============================
   Store Locator Page Styles
   ============================= */
@font-face {
  font-family: 'HelveticaNeueExtended';
  src: url('HelveticaNeueLTPro-93BlackExtended.otf') format('opentype');
  font-weight: 900;   
  font-style: normal;
}

.store-locator {
  background:
    linear-gradient(180deg, rgba(0,0,0,.85), rgba(0, 0, 0, 0.85)),
    url('../assets/source/2FAbackground.jpg') center/cover no-repeat;
  color: var(--mw-text, #f5f5f5);
  font-family: 'NeueHaasGrotText', Arial, sans-serif;
}


/* -----------------------------
   Hero / Find Bar
------------------------------ */
.store-locator .store-hero,
.store-locator .locator-wrap {
  background: transparent;
}


.store-locator .store-hero {
  padding: 40px 0 24px;
  border-bottom: none; 
}

.store-locator .locator-wrap {
  padding: 18px 0 30px;
}

.store-locator .find-title {
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: center;
}

/* --- layout for input + geo button --- */
.store-locator .find-bar{
  max-width: 720px;
  margin: 14px auto 6px;
}

.store-locator .find-group{
  position: relative;              
  display: flex;
  align-items: center;
  gap: 8px;                       
}

/* Input: dark glass background, white outline, pill corners */
.store-locator .find-input{
  flex: 1 1 auto;
  height: 56px;             
  padding-right: 16px;
  color: #fff;
  background: rgba(0,0,0,0.85);
  border: 3px solid #ffffff;
  border-radius: 16px;
  outline: none;
  padding-left: 52px;   
}
.store-locator .find-input::placeholder{ color:#fff; }
.store-locator .find-input:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

/* Search icon */
.store-locator .find-icon{
  position: absolute;              
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #fff;
  pointer-events: none;
}


/* “Use my location” button: square, outlined, rounded */
.store-locator .geo-btn{
  height: 56px;
  width: 56px;                     
  min-width: 56px;                 /* prevent shrink */
  padding: 0;                      /* center the icon */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  border: 3px solid #fff;
  border-radius: 16px;
  color: #fff;
}
.store-locator .geo-btn:hover{ filter: brightness(1.05); }
.store-locator .geo-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18); 
}

/* legacy submit button  */
.store-locator .find-btn{ display:none; } 

/* complete store list  */
.store-locator .find-sub {
  text-align: center;
  color: #fff;
  margin-top: 14px;
  font-size: 1.05rem;
}
.store-locator .find-sub .find-all{
  position:relative; padding-right:22px; text-transform:none;
}
.store-locator .find-sub .find-all::after{
  content:"›"; position:absolute; right:0; top:50%; transform:translateY(-50%);
}

/* -----------------------------
   Map + Store List Panel
------------------------------ */
.store-locator .locator-wrap {
  padding: 18px 0 30px;
}

.store-locator .panel {
  background: #161616;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}

.store-locator .list-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding: 12px;
}

/* Custom scrollbar */
.store-locator .list-scroll::-webkit-scrollbar { width: 8px; }
.store-locator .list-scroll::-webkit-scrollbar-thumb {
  background: #333; border-radius: 8px;
}

.store-locator .store-item {
  border-radius: 12px;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.store-locator .store-item.active { outline: 2px solid #4c8bf7; }

.store-locator .store-name { font-weight: 700; font-size: 1.05rem; }
.store-locator .store-addr { color: #9dc3ff; font-size: .92rem; }

.store-locator .store-actions .btn{
  --bs-btn-padding-y:.25rem; --bs-btn-padding-x:.6rem; --bs-btn-font-size:.85rem;
}

.store-locator #map{
  width:100%; height:520px;
  border-left:1px solid rgba(255,255,255,.08);
}



/* =============================
   Store Results
   ============================= */
.store-locator {
  --rc-yellow: #ffd54f;   
  --rc-blue:   #0f52ba;   
  --rc-muted:  #cfd3d8;
}

/* the card */
.store-locator .result-card{
  position: relative;
  height: 110px;                       
  border-radius: 14px;
  background: rgba(0,0,0,.55);          
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.95),  
    inset 0 0 0 1px rgba(255,255,255,.07),
    0 8px 18px rgba(0,0,0,.55);
  color: #fff;
  padding: 0;                           
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-locator .result-card:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1.5px #fff,
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 12px 26px rgba(0,0,0,.65);
}

/* inner layout */
.store-locator .rc-body{
  position: absolute;
  inset: 10px 12px 8px 12px;           
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
}

/* title + address */
.store-locator .rc-title{
  margin: 2px 44px 2px 0;               
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.store-locator .rc-addr{
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--rc-muted);
}

/* inline links */
.store-locator .rc-links{
  display: flex;
  gap: 16px;
  align-items: center;
}
.store-locator .rc-link{
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.store-locator .rc-link.rc-map{ color: var(--rc-yellow); }
.store-locator .rc-link.rc-dir{ color: var(--rc-blue); }

/* bottom-right details action */
.store-locator .rc-details{
  position: absolute;
  right: 12px; bottom: 8px;
  background: none;
  border: 0;
  color: var(--rc-muted);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

/* top-right blue shop badge */
.store-locator .rc-badge{
  position:absolute;
  top:8px; right:10px;
  /* no tile background */
  background: transparent;
  box-shadow: none;
  border: none;

  /* sizing purely for click target; adjust if you want tighter */
  width: 28px; height: 28px;
  display:grid; place-items:center;

  /* make the icon blue */
  color: var(--rc-blue);
}
.store-locator .rc-badge .fa-store{ font-size: 16px; } 
/* active state */
.store-locator .store-item.active,
.store-locator .result-card.active{
  outline: 2px solid #4c8bf7;
  outline-offset: 0;
}

/* -----------------------------
   Our Stores Grid
------------------------------ */
.store-locator .section-light {
  background: #fff; color:#111; padding: 28px 0 50px;
}
.store-locator .section-light h2 {
  text-align:center; font-weight:800; margin-bottom:18px;
}

/* Card holds tile + details */
.store-locator .grid-card{
  background: transparent;
  border: none;
  padding: 0;
}

/* Image tile with overlay and centered title */
.store-locator .store-tile{
  display:block;
  position: relative;
  height: 150px;                         
  border-radius: 16px;
  overflow: hidden;
  background: #222 center/cover no-repeat;
  background-image: var(--bg);          
  outline: 1px solid rgba(0,0,0,.08);
  isolation: isolate;                    
}
.store-locator .store-tile::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);          
  transition: background .2s ease;
  z-index: 1;                            
}
.store-locator .store-tile:hover::after{
  background: rgba(0,0,0,.40);           
}
.store-locator .store-tile[aria-expanded="true"]::after{
  background: rgba(0,0,0,.30);           
}
.store-locator .store-tile:focus-visible{
  outline: 3px solid #0b5ed7;
  outline-offset: 2px;
}

.store-locator .tile-name{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%, -50%);
  font-family: 'HelveticaNeueExtended', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .3px;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  white-space: nowrap;
  text-transform: none;
  z-index: 2;                           
}

/* ===== Expanded details card  ===== */
.store-locator .grid-details{
  background:#1c1c1c;
  color:#fff;
  border-radius:24px;
  padding:16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  margin-top:8px;
}

/* top row: Address and Hours */
.store-locator .gd-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}

.store-locator .gd-title{
  font-weight:800;
  margin-bottom:10px;
  position:relative;
  display:inline-block;
}
.store-locator .gd-title::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:4px;
  background:linear-gradient(135deg, #0f52ba, #1a237e);                  
  border-radius:3px;
}

.store-locator .gd-text{
  margin: 10px 0 0;
  line-height:1.4;
  color:#e8e8e8;
  white-space:pre-line;
}

/* contact strip (phone + email) */
.store-locator .gd-contact{
  display:flex; gap:28px; align-items:center;
  margin-top:14px;
  flex-wrap:wrap;
}
.store-locator .gd-line{
  display:flex; align-items:center; gap:10px;
  color:#fff;
}
.store-locator .gd-line i{ opacity:.95; }
.store-locator .gd-line a{
  color:#fff; text-decoration:none;
}
.store-locator .gd-line a:hover{ text-decoration:underline; }

/* Old image element hidden (tile uses background image) */
.store-locator .grid-thumb{ display:none; }

.store-locator .grid-name{
  font-family: 'HelveticaNeueExtended', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-locator .grid-toggle{ text-decoration:none; color:#0b2f99; }
.store-locator .grid-toggle:hover{ text-decoration:underline; }
.store-locator .badge-dot{
  display:inline-block; width:8px; height:8px; border-radius:50%; background:#2ecc71; margin-right:6px;
}

/* responsive */
@media (max-width: 767.98px){
  .store-locator .gd-row{
    grid-template-columns: 1fr;  /* stack on small screens */
    gap:14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .store-locator .store-tile::after{ transition: none; }
}

/* -----------------------------
   Responsive tweaks
------------------------------ */
@media (max-width: 991.98px){
  .store-locator #map{ height:360px; border-left:none; }
}
@media (max-width: 575.98px){
  .store-locator .find-input,
  .store-locator .geo-btn{
    border-width:2px; height:52px;
  }
  .store-locator .geo-btn{
    width:52px; min-width:52px;    /* keep square on mobile */
  }
}

/* =============================
   Google Maps InfoWindow Styling
   ============================= */
.gm-style .gm-style-iw-c {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 10px !important;
  max-width: 260px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.gm-style .gm-style-iw-t::after {
  background: #fff !important; /* arrow color */
}

.info-window {
  font-family: 'NeueHaasGrotText', Arial, sans-serif;
  color: #222;
}

.info-window .iw-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  
}

.info-window .iw-addr {
  font-size: 14px;
  margin-bottom: 6px;
  color: #555;
}

.info-window .iw-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0f52ba;
  text-decoration: none;
}

.info-window .iw-link:hover {
  text-decoration: underline;
}
