/* ============================================================
   SEOUL DAK — LOCATIONS PAGE (locations.html)
   Page-specific styles layered on top of main.css + home.css.
   Every class here uses the `sd-lcs-` prefix — this page must
   NEVER emit `.sd-loc*` (home.css owns those for the homepage
   section) — `.sd-locpop/.sd-lpdetail/.sd-foot/.sd-rev/.sd-neon/
   .sd-h-btn/.sd-eyebrow` reuse from home.css is deliberate.
   Mobile rules live in ONE block at the END (wins by order).
   ============================================================ */

/* ─── Page shell ─── */
body.sd-lcs-page { background: var(--sd-cream); }
/* the homepage popup's "View All Locations" link is a self-link here,
   and "See Full Page" is dropped from the popup on this page */
body.sd-lcs-page .sd-lpdetail__view-all,
body.sd-lcs-page .sd-lpdetail__btn--text { display: none; }
/* header "Locations" item marked active on this page */
body.sd-lcs-page .sd-home-header__nav a[aria-current="page"] {
  color: var(--sd-red);
  font-weight: 800;
}

/* ============================================================
   HERO — "6 Outlets. 3 Cities. One Seoul."
   ============================================================ */
.sd-lcs-hero {
  position: relative;
  padding: 150px 48px 56px;
  background: var(--sd-cream);
  overflow: hidden;
}
.sd-lcs-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle, rgba(214,41,41,0.07), transparent 65%);
  pointer-events: none;
}
.sd-lcs-hero__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sd-lcs-hero__title {
  font-family: var(--f-disp);
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
  color: var(--sd-text);
  margin: 14px 0 10px;
}
.sd-lcs-hero__title span { white-space: nowrap; }  /* break only between phrases */
.sd-lcs-hero__title .red { color: var(--sd-red); }
.sd-lcs-hero__script {
  font-family: var(--f-script);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--sd-red);
  transform: rotate(-2deg);
  display: inline-block;
  margin: 0 0 14px;
}
.sd-lcs-hero__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sd-text-mute);
  max-width: 52ch;
  margin: 0 0 26px;
}
.sd-lcs-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.sd-lcs-hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 32px -14px rgba(74, 14, 14, 0.25);
  font-size: 0.78rem;
  color: var(--sd-text);
  white-space: nowrap;
}
.sd-lcs-hero__proof svg { width: 16px; height: 16px; flex: 0 0 auto; }
.sd-lcs-hero__proof strong { font-weight: 800; }

/* ─── Stats strip ─── */
.sd-lcs-stats {
  position: relative;
  max-width: var(--container-max);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sd-lcs-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--sd-line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 32px -20px rgba(35, 24, 20, 0.25);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sd-lcs-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -20px rgba(35, 24, 20, 0.32);
}
.sd-lcs-stat::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sd-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.sd-lcs-stat:hover::after { transform: scaleY(1); }
.sd-lcs-stat__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--sd-red-soft);
  color: var(--sd-red);
  display: grid;
  place-items: center;
}
.sd-lcs-stat__icon svg { width: 21px; height: 21px; }
.sd-lcs-stat__num {
  display: block;
  font-family: var(--f-disp);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sd-red);
}
.sd-lcs-stat__num svg { width: 19px; height: 19px; vertical-align: -2px; margin-right: 2px; }
.sd-lcs-stat__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-text);
  margin-top: 4px;
}
.sd-lcs-stat__sub {
  display: block;
  font-size: 0.68rem;
  color: var(--sd-text-mute);
  margin-top: 2px;
}

/* ============================================================
   SHOWCASE — "Step inside" photo marquee
   ============================================================ */
.sd-lcs-showcase {
  position: relative;
  padding: 64px 0 24px;
  background: var(--sd-cream);
  overflow: hidden;
}
.sd-lcs-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 30px;
}
.sd-lcs-head__title {
  font-family: var(--f-disp);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sd-text);
  line-height: 1.02;
  margin: 12px 0 6px;
}
.sd-lcs-head__title .red { color: var(--sd-red); }
.sd-lcs-head__script {
  font-family: var(--f-script);
  font-size: 1.35rem;
  color: var(--sd-red);
  margin: 0;
}
.sd-lcs-showcase__viewport {
  position: relative;
  overflow-x: auto;             /* JS auto-scrolls via scrollLeft */
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.sd-lcs-showcase__viewport::-webkit-scrollbar { display: none; }
.sd-lcs-showcase__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 10px 0 22px;
}
.sd-lcs-showcase__slide {
  position: relative;
  width: 300px;
  height: 200px;
  flex: 0 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 36px -18px rgba(35, 24, 20, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sd-lcs-showcase__slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -20px rgba(35, 24, 20, 0.45);
}
body.sd-home .sd-lcs-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.sd-lcs-showcase__slide:hover img { transform: scale(1.06); }
.sd-lcs-showcase__slide::after {
  content: '';
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(20, 6, 6, 0.55));
  pointer-events: none;
}
.sd-lcs-showcase__chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-text);
}
.sd-lcs-showcase__chip svg { width: 12px; height: 12px; color: var(--sd-red); }
.sd-lcs-showcase__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--sd-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(35, 24, 20, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sd-lcs-showcase__nav:hover { background: var(--sd-red); color: #fff; }
.sd-lcs-showcase__nav--prev { left: 26px; }
.sd-lcs-showcase__nav--next { right: 26px; }
.sd-lcs-showcase__nav svg { width: 18px; height: 18px; }

/* ============================================================
   BRANCH DIRECTORY
   ============================================================ */
.sd-lcs-branches {
  position: relative;
  padding: 64px 48px 72px;
  background: var(--sd-cream);
}
.sd-lcs-branches::before {
  content: '';
  position: absolute;
  left: -6%;
  top: 10%;
  width: 36%;
  height: 50%;
  background: radial-gradient(circle, rgba(214, 41, 41, 0.05), transparent 65%);
  pointer-events: none;
}
/* filter pills */
.sd-lcs-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px auto 36px;
}
.sd-lcs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--sd-line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--sd-text);
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.sd-lcs-pill:hover { transform: translateY(-2px); border-color: var(--sd-line); }
.sd-lcs-pill.is-active {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(214, 41, 41, 0.5);
}
.sd-lcs-pill__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(214, 41, 41, 0.1);
  color: var(--sd-red);
  font-size: 0.66rem;
  font-weight: 800;
}
.sd-lcs-pill.is-active .sd-lcs-pill__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* card grid */
.sd-lcs-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sd-lcs-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--sd-line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(35, 24, 20, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sd-lcs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgba(74, 14, 14, 0.35);
  border-color: var(--sd-line);
}
.sd-lcs-card.is-hidden { display: none; }
.sd-lcs-card--nearest {
  border-color: #2c8a4a;
  box-shadow: 0 0 0 2px rgba(44, 138, 74, 0.55), 0 24px 50px -22px rgba(44, 138, 74, 0.4);
  animation: sd-lcs-nearest 2.2s ease-out infinite;
}
@keyframes sd-lcs-nearest {
  0%   { box-shadow: 0 0 0 2px rgba(44, 138, 74, 0.55), 0 0 0 0 rgba(44, 138, 74, 0.35), 0 24px 50px -22px rgba(44, 138, 74, 0.4); }
  70%, 100% { box-shadow: 0 0 0 2px rgba(44, 138, 74, 0.55), 0 0 0 14px rgba(44, 138, 74, 0), 0 24px 50px -22px rgba(44, 138, 74, 0.4); }
}

/* photo-free card: watermark + hover accent bar */
.sd-lcs-card__mark {
  position: absolute;
  top: -26px;
  right: 2px;
  z-index: 0;
  font-family: var(--f-disp);
  font-size: 7.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(214, 41, 41, 0.055);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease, transform 0.5s var(--ease);
}
.sd-lcs-card:hover .sd-lcs-card__mark {
  color: rgba(214, 41, 41, 0.1);
  transform: rotate(-8deg);
}
.sd-lcs-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sd-red), #ff7a4d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
.sd-lcs-card:hover::after { transform: scaleX(1); }
.sd-lcs-card--nearest::after { background: #2c8a4a; transform: scaleX(1); }

/* chip row: status / distance / photos */
.sd-lcs-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sd-lcs-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(44, 138, 74, 0.09);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e6e3c;
}
.sd-lcs-card__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c8a4a;
  animation: sd-lcs-dot 1.8s ease-in-out infinite;
}
@keyframes sd-lcs-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44, 138, 74, 0.4); }
  60% { box-shadow: 0 0 0 5px rgba(44, 138, 74, 0); }
}
.sd-lcs-card__status--popular {
  color: #fff;
  background: var(--sd-red);
}
.sd-lcs-card__status--popular::before {
  background: #ffd23d;
  animation: none;
}
.sd-lcs-card__status--nearest {
  color: #fff;
  background: #2c8a4a;
}
.sd-lcs-card__status--nearest::before { background: #fff; }
/* the nearest chip replaces the regular status chip */
.sd-lcs-card--nearest .sd-lcs-card__status:not(.sd-lcs-card__status--nearest) { display: none; }
.sd-lcs-card__photos {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--sd-line-soft);
  border-radius: 999px;
  color: var(--sd-text-mute);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sd-lcs-card__photos:hover {
  background: var(--sd-red);
  border-color: var(--sd-red);
  color: #fff;
}
.sd-lcs-card__photos svg { width: 13px; height: 13px; }
.sd-lcs-card__distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(44, 138, 74, 0.09);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #1e6e3c;
}
.sd-lcs-card__distance svg { width: 12px; height: 12px; }

/* clickable head opens the branch popup (data-loc-key lives here) */
.sd-lcs-card__head {
  position: relative;
  z-index: 1;
  padding-right: 52px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sd-lcs-card__head:focus-visible {
  outline: 2px solid var(--sd-red);
  outline-offset: 4px;
  border-radius: 10px;
}
.sd-lcs-card__head:hover .sd-lcs-card__name { color: var(--sd-red); }
.sd-lcs-card__arr {
  position: absolute;
  right: 0;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sd-cream-warm);
  color: var(--sd-text);
  transform: translateY(-50%);
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.sd-lcs-card__arr svg { width: 16px; height: 16px; }
.sd-lcs-card__head:hover .sd-lcs-card__arr,
.sd-lcs-card__head:focus-visible .sd-lcs-card__arr {
  background: var(--sd-red);
  color: #fff;
  transform: translateY(-50%) translateX(4px);
}

/* body */
.sd-lcs-card__body {
  position: relative;
  z-index: 1;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.sd-lcs-card__city {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-red);
}
.sd-lcs-card__name {
  font-family: var(--f-disp);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--sd-text);
  margin: 0;
  transition: color 0.25s ease;
}
.sd-lcs-card__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--sd-text-mute);
}
.sd-lcs-card__row svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--sd-red);
}
.sd-lcs-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--sd-text-mute);
}
.sd-lcs-card__rating strong { color: var(--sd-text); font-weight: 800; }
.sd-lcs-stars { display: inline-flex; gap: 1px; }
.sd-lcs-stars svg { width: 14px; height: 14px; }
.sd-lcs-stars--animate svg {
  opacity: 0;
  transform: scale(0.6);
  animation: sd-lcs-star-in 0.4s var(--ease) forwards;
}
.sd-lcs-stars--animate svg:nth-child(2) { animation-delay: 0.06s; }
.sd-lcs-stars--animate svg:nth-child(3) { animation-delay: 0.12s; }
.sd-lcs-stars--animate svg:nth-child(4) { animation-delay: 0.18s; }
.sd-lcs-stars--animate svg:nth-child(5) { animation-delay: 0.24s; }
@keyframes sd-lcs-star-in {
  to { opacity: 1; transform: scale(1); }
}

/* actions */
.sd-lcs-card__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-lcs-card__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  background: var(--sd-red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 26px -10px rgba(214, 41, 41, 0.55);
  transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.sd-lcs-card__order:hover {
  background: var(--sd-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(214, 41, 41, 0.6);
}
.sd-lcs-card__order svg { width: 15px; height: 15px; }
.sd-lcs-card__ghost-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sd-lcs-card__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--sd-line-soft);
  border-radius: 999px;
  color: var(--sd-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.sd-lcs-card__ghost:hover {
  border-color: var(--sd-red);
  color: var(--sd-red);
  background: var(--sd-red-soft);
}
.sd-lcs-card__ghost svg { width: 14px; height: 14px; }

/* ============================================================
   CTA BAND — dark wall with neon
   ============================================================ */
.sd-lcs-cta {
  position: relative;
  margin: 24px 48px 72px;
}
.sd-lcs-cta__band {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 60px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #3a0f0f 0%, var(--sd-burgundy) 70%);
  overflow: hidden;
}
.sd-lcs-cta__band::before {
  content: '';
  position: absolute;
  left: -10%;
  top: -40%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(214, 41, 41, 0.22), transparent 65%);
  pointer-events: none;
}
.sd-lcs-cta__script {
  font-family: var(--f-script);
  font-size: 1.6rem;
  color: var(--sd-cream-deep);
  margin: 0 0 8px;
  display: inline-block;
  transform: rotate(-2deg);
}
.sd-lcs-cta__title {
  font-family: var(--f-disp);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 12px;
  max-width: 60%;
}
.sd-lcs-cta__sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 26px;
  max-width: 48ch;
}
.sd-lcs-cta__row { display: flex; gap: 14px; flex-wrap: wrap; }
.sd-lcs-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.sd-lcs-cta__btn--red {
  background: var(--sd-red);
  color: #fff;
  box-shadow: 0 14px 32px -10px rgba(214, 41, 41, 0.6);
}
.sd-lcs-cta__btn--red:hover { background: #e23535; transform: translateY(-3px); }
.sd-lcs-cta__btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.sd-lcs-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}
.sd-neon--lcs-cta {
  top: 50%;
  right: 56px;
  width: 230px;
  margin-top: -115px;
  --neon-rot: -3deg;
  animation-delay: 1.4s, 6s;
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.sd-lcs-gallery {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.sd-lcs-gallery.is-open { display: flex; }
.sd-lcs-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sd-lcs-gallery__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sd-lcs-gallery__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.sd-lcs-gallery__branch {
  font-family: var(--f-disp);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sd-lcs-gallery__branch small {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}
.sd-lcs-gallery__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sd-lcs-gallery__close:hover { background: var(--sd-red); transform: rotate(90deg); }
.sd-lcs-gallery__close svg { width: 18px; height: 18px; }
.sd-lcs-gallery__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #160505;
}
body.sd-home .sd-lcs-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}
body.sd-home .sd-lcs-gallery__stage img.is-fading { opacity: 0; }
.sd-lcs-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sd-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sd-lcs-gallery__nav:hover { background: var(--sd-red); color: #fff; }
.sd-lcs-gallery__nav--prev { left: 14px; }
.sd-lcs-gallery__nav--next { right: 14px; }
.sd-lcs-gallery__nav svg { width: 19px; height: 19px; }
.sd-lcs-gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 6, 6, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sd-lcs-gallery__label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sd-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sd-lcs-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sd-lcs-gallery__thumbs::-webkit-scrollbar { display: none; }
.sd-lcs-gallery__thumb {
  position: relative;
  width: 92px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  padding: 0;
  background: none;
}
body.sd-home .sd-lcs-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-lcs-gallery__thumb.is-active,
.sd-lcs-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--sd-red);
}

/* ─── Find-nearest toast ─── */
.sd-lcs-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 10001;
  padding: 13px 22px;
  background: #241c1c;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.sd-lcs-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* find-nearest button busy state */
.sd-h-btn.is-locating { opacity: 0.7; pointer-events: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sd-lcs-card--nearest,
  .sd-lcs-card__status::before,
  .sd-lcs-stars--animate svg { animation: none !important; }
  .sd-lcs-stars--animate svg { opacity: 1; transform: none; }
  .sd-lcs-card,
  .sd-lcs-card::after,
  .sd-lcs-card__mark,
  .sd-lcs-card__arr,
  .sd-lcs-stat,
  .sd-lcs-showcase__slide,
  body.sd-home .sd-lcs-showcase__slide img { transition: none !important; }
}

/* ============================================================
   MOBILE / TABLET — single authoritative block (wins by order)
   ============================================================ */
@media (max-width: 1080px) {
  .sd-lcs-hero { padding-left: 24px; padding-right: 24px; }
  .sd-lcs-branches { padding-left: 24px; padding-right: 24px; }
  .sd-lcs-cta { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 1024px) {
  .sd-lcs-hero { padding-top: 130px; }
  .sd-lcs-stats { grid-template-columns: 1fr 1fr; }
  .sd-lcs-grid { grid-template-columns: 1fr 1fr; }
  .sd-lcs-cta__title { max-width: 100%; }
  .sd-neon--lcs-cta { display: none; }   /* home.css hides all .sd-neon ≤1024 anyway */
}
@media (max-width: 900px) {
  .sd-lcs-hero { padding: 112px 20px 40px; }
  .sd-lcs-showcase { padding-top: 48px; }
  .sd-lcs-branches { padding: 48px 20px 56px; }
  .sd-lcs-cta { margin: 8px 20px 56px; }
  .sd-lcs-cta__band { padding: 44px 28px; }
  .sd-lcs-showcase__nav { display: none; }
  .sd-lcs-showcase__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .sd-lcs-showcase__viewport::-webkit-scrollbar { display: none; }
  .sd-lcs-showcase__slide { scroll-snap-align: center; width: 250px; height: 170px; }
  .sd-lcs-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-left: -4px;
    padding-left: 4px;
  }
  .sd-lcs-filters::-webkit-scrollbar { display: none; }
  .sd-lcs-pill { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .sd-lcs-hero__cta { width: 100%; }
  .sd-lcs-hero__cta .sd-h-btn { width: 100%; justify-content: space-between; }
  .sd-lcs-hero__proof { font-size: 0.72rem; padding: 8px 13px; }
  .sd-lcs-stats { gap: 10px; margin-top: 36px; }
  .sd-lcs-stat { padding: 14px 14px; gap: 10px; }
  .sd-lcs-stat__num { font-size: 1.5rem; }
  .sd-lcs-stat__sub { display: none; }
  .sd-lcs-grid { grid-template-columns: 1fr; max-width: 460px; }
  .sd-lcs-gallery__panel { width: 94vw; }
  .sd-lcs-gallery__nav { width: 40px; height: 40px; }
  .sd-lcs-gallery__branch { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .sd-lcs-hero__title { font-size: 2.4rem; }
  .sd-lcs-stat__label { font-size: 0.62rem; }
}

/* ---------- Right-edge fade hint on horizontal scrollers ---------- */
.sd-lcs-gallery__thumbs {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
@media (max-width: 900px) {
  .sd-lcs-filters {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
}
