/* =========================================================
   OGGI locations: Shops page grid/accordion + store pages
   Shared by philosophy/contact-us.html and locations/*.html
   ========================================================= */

:root {
  --loc-cream: #fbf1e2;
  --loc-card: #fdf7ee;
  --loc-line: #e3d4bf;
  --loc-brown: #6e3510;
  --loc-brown-dark: #55280a;
  --loc-ink: #0b0909;
  --loc-muted: #3d3833;
  --loc-orange: #F79314;
}

.loc-section {
  background: var(--loc-cream);
  color: var(--loc-ink);
}

.loc-caps {
  font-family: "League Spartan", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
}

/* ---------- Shops page: desktop state groups ---------- */
.loc-states { display: grid; gap: 4rem; }

.loc-state_heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  font-size: 1.25rem;
  line-height: 1;
}
.loc-state_heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--loc-ink);
  opacity: .7;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.loc-card {
  display: flex;
  flex-direction: column;
  background: var(--loc-card);
  border: 1px solid var(--loc-line);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.loc-card:hover,
.loc-card:focus-visible {
  border-color: var(--loc-brown);
  box-shadow: 0 14px 30px rgba(85, 40, 10, .14);
  transform: translateY(-2px);
}

.loc-card_media {
  aspect-ratio: 4 / 3;
  background: var(--loc-line);
  overflow: hidden;
}
.loc-card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-card_body { padding: 1.5rem 1.4rem 1.6rem; }

.loc-card_title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.loc-card_row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.loc-card_address {
  flex: 1;
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--loc-muted);
}
.loc-card_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding-left: 1.25rem;
  border-left: 1px solid var(--loc-line);
  min-width: 3.25rem;
}
.loc-card_arrow svg { width: 22px; height: 22px; transition: transform .2s ease; }
.loc-card:hover .loc-card_arrow svg { transform: translateX(4px); }

.loc-card_link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: .78rem;
  color: var(--loc-brown);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: .18em;
}

/* Photos-coming-soon placeholder */
.loc-placeholder {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: linear-gradient(135deg, #f3e4cc, #ead7ba);
  color: var(--loc-brown);
  font-size: .8rem;
  text-align: center;
}
.loc-placeholder img { width: 96px; height: auto; opacity: .55; object-fit: contain; }

/* ---------- Shops page: mobile accordion ---------- */
.loc-accordion { display: none; }

@media screen and (max-width: 991px) {
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 767px) {
  .loc-states { display: none; }
  .loc-accordion { display: grid; gap: 1rem; }

  .loc-acc {
    border: 1px solid var(--loc-brown);
    border-radius: 24px;
    overflow: hidden;
    background: var(--loc-card);
  }
  .loc-acc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
  }
  .loc-acc summary::-webkit-details-marker { display: none; }
  .loc-acc summary svg { width: 22px; height: 22px; flex: none; transition: transform .2s ease; }
  .loc-acc[open] summary {
    background: var(--loc-brown);
    color: #fff;
  }
  .loc-acc[open] summary svg { transform: rotate(180deg); }

  .loc-acc_list { list-style: none; margin: 0; padding: .25rem 1.25rem .5rem; }
  .loc-acc_list li + li { border-top: 1px solid var(--loc-line); }
  .loc-acc_list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem .25rem;
    color: inherit;
    text-decoration: none;
    font-size: .95rem;
  }
  .loc-acc_list a:hover,
  .loc-acc_list a:focus-visible { color: var(--loc-brown); }
  .loc-acc_pin { width: 20px; height: 20px; flex: none; color: var(--loc-brown); }
  .loc-acc_city { flex: 1; }
  .loc-acc_arrow { width: 20px; height: 20px; flex: none; }
}

/* ---------- Individual store page ---------- */
.store-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .8rem;
  color: var(--loc-brown);
  text-decoration: none;
}
.store-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.store-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.store-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.store-gallery_item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--loc-line);
}
.store-gallery_item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
/* an odd one out at the end spans the full row */
.store-gallery_item:last-child:nth-child(even) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.store-gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-gallery .loc-placeholder { border-radius: 12px; aspect-ratio: 16 / 10; grid-column: 1 / -1; }

.store-eyebrow { margin: 0 0 1rem; font-size: .85rem; color: var(--loc-brown); }

.store-title {
  margin: 0 0 2rem;
  font-family: "League Spartan", sans-serif;
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.store-details { display: grid; gap: 1.5rem; margin: 0 0 2rem; }
.store-detail { display: flex; gap: 1rem; align-items: flex-start; }
.store-detail_icon { width: 22px; height: 22px; flex: none; margin-top: .15rem; color: var(--loc-brown); }
.store-detail h2 { margin: 0 0 .3rem; font-size: .75rem; letter-spacing: .2em; }
.store-detail p,
.store-detail address { margin: 0; font-style: normal; line-height: 1.55; color: var(--loc-muted); }
.store-detail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.store-hours { border-collapse: collapse; color: var(--loc-muted); }
.store-hours th { text-align: left; font-weight: 400; padding: 0 1.5rem 0 0; }
.store-hours td { padding: 0; }

.store-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--loc-brown);
  font-family: "League Spartan", sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.store-btn--primary { background: var(--loc-brown); color: #fff; }
.store-btn--primary:hover,
.store-btn--primary:focus-visible { background: var(--loc-brown-dark); color: #fff; }
.store-btn--ghost { background: transparent; color: var(--loc-brown); }
.store-btn--ghost:hover,
.store-btn--ghost:focus-visible { background: var(--loc-brown); color: #fff; }

.store-note { margin: -1rem 0 2rem; font-size: .9rem; color: var(--loc-muted); }

.store-map {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--loc-line);
  aspect-ratio: 16 / 9;
  background: var(--loc-line);
}
.store-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.store-map span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.store-map:hover span,
.store-map:focus-visible span { background: var(--loc-orange); }

@media screen and (max-width: 991px) {
  .store-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media screen and (max-width: 479px) {
  .store-title { font-size: 2.1rem; }
  .store-btn { flex: 1 1 100%; }
}
