/* Find Us: a map beside a searchable outlet list, on the model of paperbakes.co /locations.
   Desktop: map left, list right (its own scroll). Phones (<=860px): a swipe carousel of cards with dots,
   above the map. Shared rules first, then one block per layout. */
.lk-find {
  padding: 40px 15px 56px;
  background: url(../../img/find-us_bg.webp) center top / contain no-repeat;
}
.lk-find__head { margin-bottom: 24px; text-align: center; }
.lk-find__title img { width: 200px; margin: 0 auto 6px; }
/* Chinese pages: the heading as brush text in place of the hand-lettered image, at about the image's height. */
.lk-find__title--brush { margin-bottom: 6px; font-family: var(--lk-script); font-size: 62px; font-weight: 400; line-height: 1.25; color: var(--lk-ink); }

.lk-find__layout { max-width: 1110px; margin: 0 auto; display: grid; gap: 22px; }

/* ---------- Outlet list ---------- */
.lk-find__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1.5px solid var(--lk-rule);
  border-radius: 16px;
  background: #fffaf3;
}
.lk-find__search { position: relative; margin-bottom: 14px; }
.lk-find__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--lk-terracotta);
  pointer-events: none;
}
.lk-find__search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--lk-rule);
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: 16px/1.25 var(--lk-font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lk-find__search input::placeholder { color: #b39a86; }
.lk-find__search input:focus {
  outline: none;
  border-color: var(--lk-red);
  box-shadow: 0 0 0 3px rgba(139, 24, 27, .12);
}

.lk-find__list {
  display: flex;
  gap: 12px;
  scrollbar-width: none;
}
.lk-find__list::-webkit-scrollbar { display: none; }

.lk-find-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 14px;
  border: 1.5px solid #efe2d4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease;
}
.lk-find-card[hidden] { display: none; }
.lk-find-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  transition: background .18s ease;
}
.lk-find-card:hover { border-color: #e3c9b4; box-shadow: 0 6px 18px rgba(117, 69, 36, .12); transform: translateY(-1px); }
.lk-find-card.is-active { border-color: var(--lk-red); box-shadow: 0 8px 22px rgba(139, 24, 27, .14); }
.lk-find-card.is-active::before { background: var(--lk-red); }

.lk-find-card__name {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 700 17px/1.25 var(--lk-font);
  text-align: left;
  cursor: pointer;
}
.lk-find-card__addr { margin: 6px 0 14px; color: #8c6a52; font-size: 14px; line-height: 1.45; }

.lk-find-card__dir {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--lk-brown);
  color: var(--lk-cream);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .14s ease;
}
.lk-find-card__dir:hover { background: var(--lk-red); }
.lk-find-card__dir svg { width: 15px; height: 15px; }

.lk-find-card__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f3e8dc;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.lk-find-card__tel:hover { color: var(--lk-red); }
.lk-find-card__tel svg { width: 13px; height: 13px; color: var(--lk-red); }

.lk-find__empty { padding: 26px 10px; color: #8c6a52; font-size: 14px; text-align: center; }

.lk-find__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #e3c9b4;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.lk-find__dot.is-active { width: 22px; background: var(--lk-red); }

/* ---------- Map ---------- */
.lk-find__mapwrap { position: relative; }
.lk-find__map {
  overflow: hidden;
  border: 1.5px solid #efe2d4;
  border-radius: 16px;
  background: #f3e6d6;
  box-shadow: 0 10px 30px rgba(117, 69, 36, .10);
}
/* Shown when the map cannot load (no JavaScript, a blocked key, no network). */
.lk-find__mapnote {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  border-radius: 16px;
  background: #f6eadc;
  text-align: center;
}

/* Inside the map's info window (our own markup; Google's frame keeps its own styles). */
.lk-find-pop { max-width: 230px; font: 13px/1.45 var(--lk-font); color: var(--lk-brown); }
.lk-find-pop__name { font: 700 15px/1.25 var(--lk-font); color: var(--lk-brown); }
.lk-find-pop p { margin-bottom: 8px; color: #8c6a52; }
.lk-find-pop a { display: block; margin-top: 4px; color: var(--lk-red); font-weight: 700; text-decoration: none; }
.lk-find-pop a:hover { text-decoration: underline; }

/* ---------- Desktop: map left, list right ---------- */
@media (min-width: 860.02px) {
  .lk-find__layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; }
  .lk-find__panel { order: 2; height: 72vh; min-height: 440px; }
  .lk-find__list { flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 2px 10px 2px 2px; overflow-y: auto; }
  .lk-find__map { height: 72vh; min-height: 440px; }
  .lk-find__hint, .lk-find__dots { display: none; }
  /* The list scrolls inside the panel: a count above it, an always-visible scrollbar of our own (native ones are
     hidden until used on Mac/iOS; find-us.js sizes and drags it, .can-scroll on the panel), and while more cards are
     below, a fade over the last visible card with a "More outlets" button (.has-more). */
  .lk-find__panel { position: relative; }
  .lk-find__count {
    margin: 0 4px 10px;
    color: var(--lk-terracotta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .lk-find__more {
    position: absolute;
    left: 15px;
    right: 26px;
    bottom: 14px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(rgba(255, 250, 243, 0), #fffaf3 72%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
  }
  .lk-find__panel.has-more .lk-find__more { opacity: 1; visibility: visible; }
  .lk-find__track {
    position: absolute;
    right: 5px;
    width: 8px;
    border-radius: 4px;
    background: #f1e1d1;
    visibility: hidden;
  }
  .lk-find__panel.can-scroll .lk-find__track { visibility: visible; }
  .lk-find__thumb {
    border-radius: 4px;
    background: var(--lk-terracotta);
    cursor: grab;
    touch-action: none;
  }
  .lk-find__thumb:hover, .lk-find__thumb.is-dragging { background: var(--lk-brown); }
  .lk-find__more button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px 9px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--lk-brown);
    color: var(--lk-cream);
    font: 700 13px/1 var(--lk-font);
    letter-spacing: .04em;
    box-shadow: 0 6px 16px rgba(117, 69, 36, .28);
    cursor: pointer;
    pointer-events: auto;
  }
  .lk-find__more svg { width: 15px; height: 15px; animation: lk-find-bob 1.4s ease-in-out infinite; }
  /* Chinese has no capitals to space out. */
  :lang(zh) .lk-find__count, :lang(zh) .lk-find__more button { letter-spacing: 0; }
}
@keyframes lk-find-bob { 50% { transform: translateY(3px); } }

/* ---------- Phones and small tablets: swipe carousel above the map ---------- */
@media (max-width: 860px) {
  .lk-find__layout { gap: 16px; }
  .lk-find__count, .lk-find__more, .lk-find__track { display: none; }
  .lk-find__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--lk-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  :lang(zh) .lk-find__hint { letter-spacing: 0; }
  .lk-find__hint span { display: inline-block; font-size: 17px; line-height: 1; animation: lk-find-nudge 1.1s ease-in-out infinite; }
  .lk-find__hint span:first-child { animation-direction: reverse; }
  .lk-find__list {
    padding: 2px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
  }
  .lk-find-card { flex: 0 0 84%; scroll-snap-align: start; }
  .lk-find__empty { flex: 1 0 100%; }
  .lk-find__dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
  .lk-find__map { height: 56vh; min-height: 340px; }
}
@keyframes lk-find-nudge { 50% { transform: translateX(3px); } }
