*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:#f8fafc;
  color:#0f172a;
}

.directory-header{
  position:sticky;
  top:0;
  z-index:40;
  background:#fff;
  border-bottom:1px solid #e2e8f0;
}

.directory-header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.directory-back{
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
}

.directory-market{
  color:#15803d;
  font-size:13px;
  font-weight:700;
}

.directory-main{
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px 50px;
}

.directory-hero{
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
}

.directory-logo{
  flex:0 0 82px;
  width:82px;
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
  border-radius:16px;
}

.directory-logo img{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:13px;
}

.directory-eyebrow{
  margin-bottom:4px;
  color:#16a34a;
  font-size:12px;
  font-weight:800;
}

.directory-hero h1{
  margin:0 0 5px;
  font-size:27px;
  line-height:1.2;
}

.directory-hero p{
  margin:0;
  color:#64748b;
  line-height:1.45;
}

.directory-search-section{
  margin-top:18px;
}

.directory-search{
  display:flex;
  gap:10px;
}

.directory-search input{
  flex:1;
  min-width:0;
  padding:13px 15px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  font-size:15px;
  outline:none;
}

.directory-search input:focus{
  border-color:#16a34a;
}

.directory-search button{
  border:0;
  border-radius:12px;
  padding:0 22px;
  background:#16a34a;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.directory-list-section{
  margin-top:25px;
}

.directory-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.directory-section-head h2{
  margin:0 0 3px;
  font-size:24px;
}

.directory-section-head p{
  margin:0;
  color:#64748b;
}

#storeResultCount{
  white-space:nowrap;
}

.directory-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}

.directory-card{
  overflow:hidden;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
}

.directory-card-logo{
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}

.directory-card-logo img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:14px;
}

.directory-card-body{
  padding:13px;
}

.directory-card-market{
  margin-bottom:4px;
  color:#16a34a;
  font-size:11px;
  font-weight:800;
}

.directory-card h3{
  margin:0 0 9px;
  font-size:17px;
  line-height:1.25;
}

.directory-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:11px;
}

.directory-card-meta span{
  padding:4px 7px;
  background:#f1f5f9;
  border-radius:999px;
  color:#64748b;
  font-size:10px;
}

.directory-open-button{
  width:100%;
  border:0;
  border-radius:9px;
  padding:9px;
  background:#16a34a;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.directory-empty{
  grid-column:1 / -1;
  padding:30px 16px;
  text-align:center;
  color:#64748b;
}

@media(max-width:640px){

  .directory-header-inner{
    padding:12px 16px;
  }

  .directory-main{
    padding:16px 15px 40px;
  }

  .directory-hero{
    gap:12px;
    padding:14px;
    border-radius:15px;
  }

  .directory-logo{
    flex-basis:64px;
    width:64px;
    height:64px;
  }

  .directory-logo img{
    width:54px;
    height:54px;
    border-radius:11px;
  }

  .directory-hero h1{
    font-size:20px;
  }

  .directory-hero p{
    font-size:12px;
  }

  .directory-search input{
    padding:11px 12px;
    font-size:14px;
  }

  .directory-search button{
    padding:0 16px;
  }

  .directory-section-head h2{
    font-size:20px;
  }

  .directory-section-head p{
    font-size:12px;
  }

  #storeResultCount{
    font-size:12px;
  }

  .directory-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .directory-card{
    min-width:0;
    border-radius:13px;
  }

  .directory-card-logo{
    height:82px;
  }

  .directory-card-logo img{
    width:56px;
    height:56px;
    border-radius:11px;
  }

  .directory-card-body{
    padding:9px;
  }

  .directory-card-market{
    font-size:9px;
  }

  .directory-card h3{
    min-height:34px;
    margin-bottom:6px;
    font-size:13px;
    line-height:1.3;
  }

  .directory-card-meta{
    gap:3px;
    margin-bottom:7px;
  }

  .directory-card-meta span{
    padding:3px 5px;
    font-size:8px;
  }

  .directory-open-button{
    padding:7px 4px;
    border-radius:7px;
    font-size:10px;
  }
}
