/*
 * Joy Tea locations pages (made by cms/build.py). Mobile first; wider screens
 * get two columns of cards and a centered detail page. Fonts and the cream,
 * ink and band colors come from site.css.
 */
:root {
  --loc-red: #a30b1f;
  --loc-line: #e6dfd2;
  --loc-muted: #6b655c;
  --loc-open: #2f6b3a;
  --loc-soon: #8a5a00;
  --loc-card: #fff;
}

.loc-body {
  margin: 0;
  background: var(--color-cream, #faf6ef);
  color: var(--color-ink, #333);
  font-family: var(--font-sans, Helveticaneue, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
:where(.loc-body) a { color: inherit; text-decoration: none; }
.loc-body h1, .loc-body h2, .loc-body h3 { margin: 0; font-weight: inherit; }
.loc-body :focus-visible { outline: 2px solid var(--loc-red); outline-offset: 3px; }
.loc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loc-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ---- announcement, footer (the top bar is nav.css) ---- */
.loc-announce { background: var(--color-ink, #333); color: #fff; text-align: center; font-size: 15px; line-height: 22px; padding: 10px 20px; }
.loc-announce a { text-decoration: underline; }
.loc-footer {
  margin-top: 56px; padding: 36px 20px 44px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-weight: 300; font-size: 13px;
}
.loc-footer img { width: 96px; height: auto; }
.loc-footer a { text-decoration: underline; }

/* ---- type ---- */
.loc-kicker { font-weight: 300; font-size: 15px; }
.loc-title { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 0; }
.loc-title__serif { font-family: var(--font-serif); font-style: italic; font-size: 36px; line-height: 38px; }
.loc-title__sans { font-weight: 700; font-size: 36px; line-height: 40px; }
.loc-lead { margin: 14px 0 0; font-weight: 300; font-size: 16px; line-height: 26px; max-width: 560px; }
.loc-h2 { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 28px; }
.loc-h2wrap { display: flex; flex-direction: column; gap: 6px; }
.loc-sub { margin: 6px 0 0; font-weight: 300; font-size: 15px; line-height: 22px; }
.loc-h2wrap .loc-sub { margin: 0; }
.loc-muted { color: var(--loc-muted); font-weight: 300; font-size: 15px; margin: 10px 0 0; }
.loc-note { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--loc-muted); margin: 10px 0 0; }

/* ---- buttons ---- */
.loc-btn {
  min-height: 44px; padding: 0 20px; box-sizing: border-box; border-radius: 50px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; background: none; color: inherit;
}
.loc-btn--outline { border-color: #000; background: #fff; color: var(--color-ink, #333); }
.loc-btn--ink { background: var(--color-ink, #333); color: #fff; }
.loc-btn--red { background: var(--loc-red); color: #fff; }
.loc-btn--quiet { border-color: #c9c1b3; }
.loc-btn--wide { width: 100%; min-height: 52px; font-size: 16px; }
.loc-btn--small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.loc-btn:hover { filter: brightness(0.95); }
.loc-intro .loc-btn { margin-top: 20px; }
.loc-locate-msg { margin: 10px 0 0; font-size: 14px; color: var(--loc-muted); }

/* ---- list page ---- */
.loc-intro { padding-top: 36px; padding-bottom: 8px; }
.loc-section { padding-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.loc-cards { display: grid; gap: 16px; }
.loc-card {
  display: flex; flex-direction: column; background: var(--loc-card); border: 1px solid var(--loc-line);
  border-radius: 20px; overflow: hidden; transition: box-shadow .2s ease;
}
.loc-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.loc-card__media { width: 100%; height: 196px; object-fit: cover; display: block; }
.loc-mark { background: var(--loc-red); }
.loc-mark img { width: 52px; height: auto; }
.loc-card__body { padding: 18px 18px 20px; display: flex; align-items: center; gap: 12px; }
.loc-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.loc-card__name { font-family: var(--font-serif); font-size: 26px; line-height: 30px; }
.loc-card__addr { font-weight: 300; font-size: 16px; }
.loc-card__hours { display: flex; align-items: center; gap: 8px; font-weight: 300; font-size: 14px; }
.loc-tag { align-self: flex-start; padding: 4px 10px; border-radius: 50px; background: var(--color-ink, #333); color: #fff; font-weight: 700; font-size: 12px; }
.loc-chev {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--color-ink, #333);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.loc-chev--plain { border: 0; width: 24px; }
.loc-distance { font-size: 13px; font-weight: 700; }

/* status: plain hours until locations.js knows the time, then Open now / Closing soon / Closed */
.loc-status { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: 14px; margin-top: 4px; --st: var(--color-ink, #333); }
.loc-status[data-state="open"] { --st: var(--loc-open); }
.loc-status[data-state="soon"] { --st: var(--loc-soon); }
.loc-status[data-state="closed"] { --st: var(--loc-red); }
.loc-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--st); flex: none; }
.loc-status:not([data-state]) .loc-dot { display: none; }
.loc-status:not([data-state]) .loc-status__label { font-weight: 300; }
.loc-status__label { font-weight: 700; color: var(--st); }
.loc-status__detail { font-weight: 300; }
.loc-status--big { font-size: 15px; margin-top: 14px; }
.loc-status--small { font-size: 13px; margin-top: 2px; }

/* coming soon rows */
.loc-soonlist { list-style: none; margin: 0 -20px; padding: 0; border-top: 1px solid var(--loc-line); }
.loc-soon { min-height: 80px; padding: 12px 20px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--loc-line); }
.loc-soon__mark { width: 48px; height: 48px; border-radius: 14px; background: #efe7da; display: flex; align-items: center; justify-content: center; flex: none; }
.loc-soon__mark--next { background: var(--loc-red); }
.loc-soon__mark img { width: 26px; height: auto; }
.loc-soon__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.loc-soon__name { font-family: var(--font-serif); font-size: 22px; line-height: 26px; }
.loc-soon__where { font-weight: 300; font-size: 14px; color: var(--loc-muted); }
.loc-chip { padding: 6px 12px; border: 1px solid #c9c1b3; border-radius: 50px; font-size: 13px; white-space: nowrap; }
.loc-chip--next { border-color: var(--color-ink, #333); font-weight: 700; }

/* notify band */
.loc-band { margin-top: 48px; background: var(--color-band, #f3f3f3); }
.loc-band__inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.loc-band__inner img { width: 44px; height: auto; }
.loc-band .loc-h2 { font-size: 26px; line-height: 30px; }
.loc-band .loc-btn { margin-top: 8px; }

/* ---- detail page ---- */
.loc-hero { position: relative; height: 320px; background: var(--loc-red); }
.loc-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-hero__img.loc-mark img { width: 64px; }
.loc-hero__bar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.loc-round {
  width: 44px; height: 44px; border: 0; border-radius: 22px; background: #fff; color: var(--color-ink, #333);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer;
}
.loc-hero--brand { display: flex; align-items: center; justify-content: center; height: 280px; }
.loc-hero__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-family: var(--font-serif); font-style: italic; font-size: 22px; }
.loc-hero__brand img { width: 76px; height: auto; }
.loc-sheet { position: relative; margin-top: -28px; background: var(--color-cream, #faf6ef); border-radius: 28px 28px 0 0; }
.loc-sheet__inner { max-width: 720px; margin: 0 auto; padding: 28px 20px 0; box-sizing: border-box; }
.loc-eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--loc-red); }
.loc-name { margin-top: 6px !important; font-weight: 700 !important; font-size: 38px; line-height: 42px; }
.loc-address { margin: 8px 0 0; font-weight: 300; font-size: 17px; line-height: 24px; }
.loc-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.loc-actions__row { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-actions__row .loc-btn { min-height: 48px; flex: 1 1 140px; }
.loc-block { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }

.loc-hours { list-style: none; margin: 6px 0 0; padding: 0; font-size: 16px; }
.loc-hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--loc-line); font-weight: 300; }
.loc-hours__row:last-child { border-bottom: 0; }
.loc-hours__day { display: flex; align-items: center; gap: 8px; }
.loc-today { display: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 50px; background: var(--color-ink, #333); color: #fff; }
.loc-hours__row.is-today { margin: 0 -14px; padding: 12px 14px; background: #fff; border: 1px solid var(--loc-line); border-radius: 12px; font-weight: 700; }
.loc-hours__row.is-today .loc-today { display: inline-block; }

.loc-map { margin-top: 6px; border-radius: 20px; overflow: hidden; border: 1px solid var(--loc-line); background: #ece4d6; }
.loc-map__frame { display: block; width: 100%; height: 220px; border: 0; }
.loc-addrrow { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; font-weight: 300; font-size: 15px; line-height: 22px; }
.loc-addrrow__actions { display: flex; gap: 8px; flex: none; }

.loc-drinks { list-style: none; margin: 12px -20px 0; padding: 0 20px 4px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; }
.loc-drinks li { flex: none; scroll-snap-align: start; }
.loc-drink { width: 150px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.loc-drink__img { width: 150px; height: 180px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 6px; background: #efe7da; }
.cup-frame { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loc-inline { text-decoration: underline !important; }
.loc-drink__tea { font-family: var(--font-serif); font-style: italic; font-size: 15px; }
.loc-drink__name { font-weight: 700; font-size: 15px; }

/* coming soon detail */
.loc-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.loc-step { display: flex; gap: 14px; min-height: 64px; position: relative; }
.loc-step:last-child { min-height: 0; }
.loc-step::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: #d8d0c2; }
.loc-step.is-done::before { background: var(--color-ink, #333); }
.loc-step:last-child::before { display: none; }
.loc-step__dot {
  width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px; border: 2px solid #d8d0c2; background: var(--color-cream, #faf6ef);
  display: flex; align-items: center; justify-content: center; flex: none; color: #fff; position: relative;
}
.loc-step.is-done .loc-step__dot { background: var(--color-ink, #333); border-color: var(--color-ink, #333); }
.loc-step.is-next .loc-step__dot { border-color: var(--loc-red); }
.loc-step__text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.loc-step__title { font-weight: 700; font-size: 16px; }
.loc-step__sub { font-weight: 300; font-size: 14px; color: var(--loc-muted); }
.loc-panel { margin-top: 36px; background: #fff; border: 1px solid var(--loc-line); border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.loc-panel .loc-btn { margin-top: 8px; }
.loc-minis { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.loc-mini { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--loc-line); border-radius: 20px; }
.loc-mini__img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; flex: none; }
.loc-mini__img.loc-mark img { width: 30px; }
.loc-mini__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.loc-mini__name { font-weight: 700; font-size: 17px; }
.loc-mini__addr { font-weight: 300; font-size: 14px; }

/* ---- wider screens ---- */
@media (min-width: 760px) {
  .loc-open:not(.loc-open--pair) .loc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-open--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .loc-open--pair .loc-cards { flex: 1; }
  .loc-open--pair .loc-card { height: 100%; box-sizing: border-box; }
  .loc-open--pair .loc-h2wrap { min-height: 56px; }
  .loc-card__media { height: 240px; }
  .loc-soonlist { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .loc-soon { border-top: 1px solid var(--loc-line); border-bottom: 0; padding-left: 0; padding-right: 0; }
  .loc-title__serif, .loc-title__sans { font-size: 48px; line-height: 52px; }
  .loc-hero { height: 420px; }
  .loc-hero--brand { height: 320px; }
  .loc-hero__bar { left: 24px; right: 24px; top: 20px; }
  .loc-sheet__inner { padding-top: 36px; }
  .loc-drinks { margin: 12px 0 0; padding: 0 0 4px; scroll-padding: 0; }
}
/* a red panel with the horse, where a location has no photo yet */
.loc-card__media.loc-mark, .loc-hero__img.loc-mark, .loc-mini__img.loc-mark { display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .loc-card { transition: none; }
}
