/* ==========================================================================
   STORES.CSS  —  this page only
   Tokens, fonts, --gutter, header and footer live in common.css.
   ========================================================================== */

/* ============ TOKENS ============ */
:root{
  --head-color:#1D364D;
  --text-color:#3C4B64;
  --muted:#7A8699;
  --page:#F5F8FC;
  --stone:#DEDDD5;      /* list wrapper */
  --row:#FAFCFE;        /* city rows */
  --green:#12A57A;      /* arrows */
  --sand:#D8B78A;       /* hero text */
  --line:#C9D0D8;
  --r-sm:6px; --r-md:8px; --r-lg:12px;
  --shell:1440px;
}

body{
  margin:0;background:var(--page);color:var(--text-color);
  font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;
  font-family: var(--font-secondary);
}
a{
    text-decoration: none;
}
* {
    box-sizing: border-box;
}
input,select{font:inherit;color:#425671}
:focus-visible{outline:2px solid var(--head-color);outline-offset:2px;border-radius:4px}

.wrap{margin:0 auto;padding:44px var(--gutter) 80px}
h1{margin:0 0 30px;font-size:40px;line-height:1.2;font-weight:500;color:var(--head-color)}

/* ============ HERO ============ */
/*.hero{*/
/*  position:relative;border-radius:var(--r-lg);overflow:hidden;min-height:300px;*/
/*  display:grid;align-items:center;*/
  /* swap this for your photo: background-image:linear-gradient(...),url(/img1/store-hero.webp) */
/*  background:*/
/*    linear-gradient(90deg,#000 0%,rgba(0,0,0,.92) 26%,rgba(20,12,6,.55) 52%,rgba(40,24,10,.25) 100%),*/
/*    radial-gradient(120% 120% at 78% 60%,#8A5A25 0%,#3A2411 45%,#140C06 100%);*/
/*  margin-bottom:34px;*/
/*}*/
.hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 300px;
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.7) 20%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 55%),
    url("../../img1/Frame188.png");
  background-size: cover, cover;
  background-position: center, center;
  margin-bottom: 34px;
}
.hero p{
  margin:0;padding:0 40px 0 48px;color:var(--sand);
  font-size:38px;line-height:1.28;font-weight:400;max-width:640px;
}

/* ============ TOOLBAR ============ */
.toolbar{display:flex;align-items:center;gap:34px;flex-wrap:wrap;margin-bottom:26px}
.pin,.search{display:flex;align-items:center;gap:10px}
.pin svg,.search svg{flex:none;color:var(--head-color)}
.pin input,.search input{border:0;background:none;outline:none;height:36px;width:170px}
.search input{width:190px}
.pin input::placeholder,.search input::placeholder{color:var(--text-color)}

.filters{display:flex;align-items:center;gap:22px;margin-left:auto}
.filters>span{font-size:15px;color:var(--head-color)}
.filters select{
  appearance:none;border:0;background:none;padding:0 26px 0 0;height:36px;cursor:pointer;
  color:var(--muted);font-size:15px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231D364D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right center;
}
.filters select:valid{color:var(--head-color)}
.filter-toggle{display:none}

/* ============ LIST ============ */
.board{background:var(--stone);border-radius:var(--r-lg);padding:40px}
.cities{column-count:3;column-gap:22px}
.city{break-inside:avoid;margin:0 0 3px}


.city-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#F6FAFF;border:1px solid #F3F3F3;border-radius:var(--r-sm);
  padding:17px 16px;text-align:left;
  font-size:17px;color:var(--head-color);
}
.city-head span {
    font-weight: 500;
}
.city-head svg{flex:none;color:var(--green);transition:transform .18s ease}
.city.is-open .city-head{border-radius:var(--r-sm) var(--r-sm) 0 0;padding-bottom:12px;border-bottom:none}

.city-body{
  display:none;background:#F6FAFF;border:1px solid #F3F3F3;border-top:none;
  border-radius:0 0 var(--r-sm) var(--r-sm);
  padding:0 16px 16px;
}
.city.is-open .city-body{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:14px;align-items:start}
.city-body h3{margin:0 0 8px;font-size:15px;font-weight:400;color:var(--text-color)}
.city-body address{font-style:normal;font-size:13px;line-height:1.5;color:var(--text-color)}
.city-body .tel{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:15px;font-weight:600;color:var(--head-color)}
.city-body .map{border-radius:4px;overflow:hidden}
.city-body .map img{width:100%;height:auto}

.city.is-hidden{display:none}
.no-hits{display:none;padding:10px 4px;font-size:16px;color:var(--head-color)}
.no-hits.on{display:block}

/* ============ MOBILE ============ */
@media (max-width:900px){
  body{background:var(--stone)}
  .wrap{max-width:none;margin:16px;padding:26px var(--gutter) 30px;background:var(--page);border-radius:var(--r-lg)}
  h1{font-size:26px;margin-bottom:22px}

  .hero{display:none}          /* the mobile frame goes straight to search */

  .toolbar{display:block;margin-bottom:18px}
  .pin,.search{
    background:var(--stone);border-radius:var(--r-sm);height:52px;padding:0 16px;margin-bottom:14px;
  }
  .pin input,.search input{width:100%;height:100%;font-size:15px}
  .search{flex-direction:row-reverse}
  .search svg{width:22px;height:22px}

  .filters{
    display:none;flex-direction:column;align-items:stretch;gap:12px;margin:0 0 4px;
  }
  .filters.on{display:flex}
  .filters>span{display:none}
  .filters select{
    height:48px;padding:0 40px 0 16px;border-radius:var(--r-sm);
    background-color:#fff;background-position:right 16px center;font-size:15px;
  }
  /*.filter-toggle{*/
  /*  display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:14px;*/
  /*  font-size:16px;color:var(--head-color);*/
  /*}*/
  /*.filter-toggle b{font-weight:600}*/
  /*.filter-toggle span{color:var(--muted);font-weight:400}*/
  .filter-toggle{
    display:flex;
    justify-content:space-between;
    align-items:center;

    width:100%;
    padding:0;
    margin-bottom:16px;

    background:transparent;
    border:none;
    outline:none;
    box-shadow:none;

    color:var(--head-color);
    cursor:pointer;
    }
    
    .filter-toggle b{
        font-size:18px;
        font-weight:600;
    }
    
    .filter-toggle span{
        font-size:18px;
        font-weight:400;
        color:#777;
    }

  .board{padding:10px 10px;border-radius:5px}
  .cities{column-count:1}
  .city{margin-bottom:10px}
  .city-head{padding:15px 16px;font-size:16px}
  .city.is-open .city-head{font-weight:500}
  .city-body{padding:0 16px 16px}
  .city.is-open .city-body{grid-template-columns:minmax(0,1fr) 120px}
}
@media (max-width:420px){
  .city.is-open .city-body{grid-template-columns:1fr;gap:12px}
  .city-body .map{max-width:180px}
}
