/* The Kickin' Crab — locations.html (loads after site.css). */

/* ---------- Header band ---------- */
.lc-band { background: var(--kc-teal-2); padding: 34px 24px 40px; scroll-margin-top: 0; }   /* same header teal as every other page, at every width */
.lc-band__h1 { font-size: clamp(40px, 5.4vw, 64px); }
.lc-band__lede { max-width: 52ch; }
.lc-form { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.lc-form__label { font-size: 14px; font-weight: 700; color: var(--kc-cream); }
/* Same unified control as the home locator: icon + input + red button in one rounded shape. */
.lc-search {
  display: flex; align-items: stretch; height: 56px; width: 100%;
  border: 2px solid var(--kc-cream); border-radius: 999px; background: #FFFFFF; overflow: hidden;
}
.lc-search:focus-within { box-shadow: 0 0 0 3px #fff7e8, 0 0 0 6px #8f3210; }
.lc-search__ico { flex: none; align-self: center; margin-left: 20px; color: var(--kc-ink-3); }
.lc-search__input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 16px; font-family: var(--font-body); color: var(--kc-ink); }
.lc-search__input::placeholder { color: var(--kc-ink-3); }
.lc-search__input:focus, .lc-search__input:focus-visible { outline: none; box-shadow: none; }   /* the container's ring is the focus indicator */
.lc-search__btn {
  flex: none; border: 0; padding: 0 28px; background: var(--kc-red); color: #FFFFFF; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.lc-search__btn:hover { background: var(--kc-red-dark); }
.lc-search__btn:focus-visible { outline: 3px solid #fff7e8; outline-offset: -5px; box-shadow: none; }
/* Understated text action, like the state selector on the home page. */
.lc-locate {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0;
  border: 0; border-bottom: 2px solid var(--kc-cream); border-radius: 0; background: transparent; color: var(--kc-cream); cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
}
.lc-locate:hover { color: var(--kc-amber); border-bottom-color: var(--kc-amber); }
.lc-locate:focus-visible { outline: 3px solid #fff7e8; outline-offset: 2px; box-shadow: 0 0 0 7px #8f3210; }
.lc-form__status { margin: 0; font-size: 15px; font-weight: 700; color: var(--kc-amber); }
.band-photo--lc { --tilt: 1.4deg; --tape-tilt: 2.2deg; }

/* ---------- Nearest results ---------- */
.lc-results { background: var(--kc-sand); border-bottom: 2px solid var(--kc-line); padding: 34px 24px 38px; }
.lc-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lc-results__h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--kc-teal); }
.lc-clear {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--kc-teal); border-radius: 999px; background: transparent;
  color: var(--kc-teal); font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.lc-clear:hover { background: var(--kc-sand-2); }
.lc-more { margin: 16px auto 0; }
.lc-more[hidden] { display: none; }
.lc-results__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.lc-results__list { gap: 10px; }
/* Every card in a row is the same height (the row's tallest), with the names lined up along the top. */
.lc-results__list > li { display: flex; }
.lc-results__list .lc-result { flex: 1 1 auto; min-width: 0; }
.lc-results__list .lc-result__txt { align-self: flex-start; }
.lc-results__note { margin: 10px 0 0; font-size: 16px; font-weight: 600; color: var(--kc-ink-2); }
.lc-result {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 16px;
  background: var(--kc-cream-2); border: 2px solid var(--kc-line); border-radius: 14px; color: var(--kc-ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.lc-result:hover, .lc-result:focus-visible { border-color: var(--kc-brick); transform: translateY(-1px); }
.lc-result:focus-visible { outline: 3px solid #fff7e8; outline-offset: 2px; box-shadow: 0 0 0 7px #8f3210; }
.lc-result__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.lc-result__h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.15; color: var(--kc-teal); }
.lc-result__addr { font-size: 13.5px; line-height: 1.35; color: var(--kc-ink-2); }
.lc-result__mi { font-size: 13.5px; font-weight: 800; color: var(--kc-teal); }
.lc-result__go {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--kc-brick); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.lc-result:hover .lc-result__go { background: var(--kc-brick-dark); }
.lc-pill {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}

/* ---------- All locations ---------- */
.lc-all { background: var(--kc-cream); padding: 44px 24px 24px; scroll-margin-top: 16px; }
.lc-all__count { margin: 10px 0 0; font-size: 17px; color: var(--kc-ink-2); }
.lc-group { margin-top: 40px; }
.lc-group__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--kc-teal); }
.lc-group__h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--kc-teal); }
.lc-group__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .lc-group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lc-group__list { grid-template-columns: minmax(0, 1fr); } }
.lc-loc { position: relative; background: var(--kc-cream-2); border: 2px solid var(--kc-line); border-radius: 16px; padding: 22px 24px 22px; display: flex; flex-direction: column; min-height: 322px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.lc-loc:hover, .lc-loc:focus-within { transform: translateY(-3px); border-color: var(--kc-brick); box-shadow: 0 12px 28px rgba(15, 68, 80, .16); }
/* The city-name link covers the whole card; phone links sit above it so they still dial. */
.lc-loc__h4 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.lc-loc__tel { position: relative; z-index: 1; }
.lc-loc__cta { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kc-brick); }
.lc-loc__cta svg { transition: transform .15s ease; }
.lc-loc:hover .lc-loc__cta svg { transform: translateX(4px); }
/* Reduced motion: no hover lifts or sliding arrows (the border colour still changes). */
@media (prefers-reduced-motion: reduce) {
  .lc-result, .lc-loc, .lc-loc__cta svg { transition: none; }
  .lc-result:hover, .lc-result:focus-visible, .lc-loc:hover, .lc-loc:focus-within, .lc-loc:hover .lc-loc__cta svg { transform: none; }
}
.lc-loc__h4 a:focus-visible { outline: none; }
.lc-loc:focus-within { outline: 3px solid #8f3210; outline-offset: 2px; }
.lc-loc__h4 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.15; }
.lc-loc__h4 a { color: var(--kc-teal); text-decoration: none; }
.lc-loc__h4 a:hover { color: var(--kc-brick); text-decoration: underline; }
.lc-loc__region { margin: 4px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kc-rust); }
.lc-loc__addr { margin: 20px 0 0; font-style: normal; font-size: 16px; line-height: 1.5; color: var(--kc-ink-2); }
.lc-loc__addr1 { display: block; font-weight: 700; color: var(--kc-ink); }
.lc-loc__addr2 { display: block; }
.lc-loc__tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--kc-teal); text-decoration: underline; text-underline-offset: 3px; }
.lc-loc__tel + .lc-loc__tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--kc-teal); text-decoration: underline; text-underline-offset: 3px; }
/* A second number (Torrance) goes on its own line: the generated markup has no space between the two links, so where
   the card was wide enough they ran together as one long number. */
.lc-loc__addr .lc-loc__tel { display: flex; width: fit-content; }
.lc-loc__hours { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--kc-line-2); padding-bottom: 4px; }
.lc-loc__label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kc-rust); }
.lc-loc__hours ul { list-style: none; margin: 6px 0 0; padding: 0; }
.lc-loc__hours li { font-size: 16px; line-height: 1.5; color: var(--kc-ink-2); }

/* Coming soon */
.lc-soon {
  margin-top: 44px; background: var(--kc-sand); border: 2px dashed var(--kc-brick); border-radius: 22px; padding: 26px 28px;
  display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between;
}
.lc-soon__kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kc-rust); }
.lc-soon__h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--kc-teal); }
.lc-soon__p { margin: 8px 0 0; font-size: 16px; color: var(--kc-ink-2); }
.lc-soon .kc-btn { flex: none; }

/* =====================================================================
   PHONE LAYOUT (≤760px). Only applies at phone widths; desktop untouched.
   One understated "Browse by state" dropdown (injected by locations.js) shows a single state's restaurants.
   ===================================================================== */
@media (max-width: 760px) {
  .lc-pick { margin: 6px 0 22px; }
  .lc-pick__label { display: block; font-size: 14px; font-weight: 700; color: var(--kc-ink); margin-bottom: 4px; }
  .lc-pick__select {
    -webkit-appearance: none; appearance: none; display: block; width: 85%; max-width: 320px; height: 46px;
    border: 0; border-bottom: 2px solid var(--kc-teal); border-radius: 0; padding: 0 30px 0 0; background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f4450' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
    font-size: 16px; font-family: var(--font-body); font-weight: 600; color: var(--kc-teal); cursor: pointer;
  }
  .lc-pick__select:focus-visible { outline: 3px solid #fff7e8; outline-offset: 2px; box-shadow: 0 0 0 7px #8f3210; }
  .lc-group { margin-top: 0; }
  .lc-group[hidden] { display: none; }
  .lc-group__head { padding: 6px 0 10px; }
  .lc-group__list { margin: 12px 0 18px; gap: 10px; }
  .lc-loc { min-height: 0; padding: 16px 16px 14px; }
  .lc-loc:hover, .lc-loc:focus-within { transform: none; }
  .lc-results { padding: 24px 16px 26px; }
}

@media (max-width: 760px) {
  .lc-search { height: 52px; }
  .lc-search__btn { padding: 0 20px; }
}

.lc-pick__hint { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--kc-ink-2); }
.lc-results__h2:focus { outline: none; }   /* focused by script after a search; it's a heading, not a control */
.lc-results__h2:focus-visible { outline: 3px solid #8f3210; outline-offset: 4px; border-radius: 4px; }
/* Windows High Contrast / forced colours drops box-shadows, so the search box's focus ring needs a real outline there. */
.lc-search:focus-within { outline: 3px solid transparent; }

/* Tablet (761–1100px): each state's restaurants in one swipeable row, with a hint when there are more to see.
   The row's 6px padding and scroll-padding leave room for a focused card's outline (3px + 2px offset), and the -4px
   side margins keep the cards lined up with the heading as before. locations.js scrolls a tabbed-to card fully in. */
@media (min-width: 761px) and (max-width: 1100px) {
  .lc-group__list {
    position: relative; display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 16px -4px 0; padding: 6px 6px 14px; scroll-padding-inline: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; max-width: none;
  }
  .lc-group__list::-webkit-scrollbar { display: none; }
  .lc-group__list > li { box-sizing: border-box; flex: 0 0 calc((100% - 32px) / 3); min-width: 0; scroll-snap-align: start; }   /* exactly three across */
  .lc-loc { min-height: 0; }
  .lc-loc:hover, .lc-loc:focus-within { transform: none; }
  /* The hint is decoration (empty alt text after the slash), so screen readers skip it. */
  .lc-group:has(.lc-group__list > li:nth-child(4))::after {
    content: 'Swipe for more \2192'; content: 'Swipe for more \2192' / ''; display: block; margin-top: -4px; text-align: center;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kc-ink-3);
  }
}

/* Phones: the chosen state's restaurants in one swipeable row, one card at a time, with a hint when there are more.
   Padding, scroll-padding and side margins as on tablets. */
@media (max-width: 760px) {
  .lc-group__list {
    position: relative; display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 8px -4px 18px; padding: 6px 6px 12px; scroll-padding-inline: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; max-width: none;
  }
  .lc-group__list::-webkit-scrollbar { display: none; }
  .lc-group__list > li { box-sizing: border-box; flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
  .lc-group__list > li:only-child { flex-basis: 100%; }
  .lc-group:has(.lc-group__list > li:nth-child(2))::after {
    content: 'Swipe for more \2192'; content: 'Swipe for more \2192' / ''; display: block; margin: -2px 0 8px; text-align: center;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kc-ink-3);
  }
}

/* With a mouse (phone and tablet widths): a thin scrollbar under each row, so the rest of the cards can be reached
   without a swipe, and the hint says scroll. Touch screens keep the swipe. */
@media (max-width: 1100px) and (pointer: fine) {
  .lc-group__list { scrollbar-width: thin; scrollbar-color: var(--kc-ink-3) transparent; }
  .lc-group__list::-webkit-scrollbar { display: block; height: 8px; }
  .lc-group__list::-webkit-scrollbar-thumb { background: var(--kc-ink-3); border-radius: 4px; }
}
@media (max-width: 760px) and (pointer: fine) {
  .lc-group:has(.lc-group__list > li:nth-child(2))::after { content: 'Scroll for more \2192'; content: 'Scroll for more \2192' / ''; }
}
@media (min-width: 761px) and (max-width: 1100px) and (pointer: fine) {
  .lc-group:has(.lc-group__list > li:nth-child(4))::after { content: 'Scroll for more \2192'; content: 'Scroll for more \2192' / ''; }
}

/* Tablet: the "Browse by state" row of jump links (built by locations.js). */
@media (min-width: 761px) and (max-width: 1100px) {
  .lc-pick--jump { margin: 18px 0 8px; }
  .lc-pick--jump .lc-pick__label { display: block; font-size: 14px; font-weight: 700; color: var(--kc-ink); margin: 0 0 2px; }
  .lc-jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
  .lc-jump__link {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 16px; font-weight: 700; color: var(--kc-teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  }
  .lc-jump__link:hover { color: var(--kc-brick); }
  .lc-jump__link:focus-visible { outline: 3px solid #fff7e8; outline-offset: 2px; box-shadow: 0 0 0 7px #8f3210; border-radius: 4px; }
  .lc-group { scroll-margin-top: 20px; }
  .lc-group__h3:focus { outline: none; }   /* focused by script after a jump; it's a heading, not a control */
  .lc-group__h3:focus-visible { outline: 3px solid #8f3210; outline-offset: 4px; border-radius: 4px; }
}

/* Desktop (≥1101px): state accordions (button built by locations.js inside each state heading). */
@media (min-width: 1101px) {
  .lc-group { margin-top: 0; }
  .lc-group__head { padding: 0; border-bottom: 2px solid var(--kc-line); }
  .lc-group__head .lc-group__h3 { flex: 1 1 auto; }
  .lc-group:first-of-type .lc-group__head { border-top: 2px solid var(--kc-line); }
  .lc-acc {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 10px 4px;
    background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
  }
  .lc-acc svg { flex: none; width: 22px; height: 22px; color: var(--kc-teal); transition: transform .18s ease; }
  .lc-acc[aria-expanded="false"] svg { transform: rotate(-90deg); }
  @media (hover: hover) { .lc-acc:hover .lc-acc__name { color: var(--kc-brick); } }   /* on a touch screen :hover sticks after a tap */
  .lc-acc:focus-visible { outline: 3px solid #fff7e8; outline-offset: 2px; box-shadow: 0 0 0 7px #8f3210; border-radius: 6px; }
  .lc-band__h1 { min-height: 2em; }   /* two lines once Caprasimo loads; reserved so the band doesn't grow after first paint */
  /* A closed list carries the hidden attribute (locations.js). hidden="until-found" is kept in the layout, but with no
     size (the browser's content-visibility: hidden), so find-in-page can reach it; site.css's [hidden] rule would
     otherwise remove it. */
  .lc-group__list[hidden="until-found"] { display: grid !important; }
  /* Safari keeps a hidden grid's row gaps (21 California cards = 5 gaps = 80px of empty space), so a closed list drops them. */
  .lc-group.is-collapsed .lc-group__list { margin: 0; gap: 0; height: 0; overflow: hidden; }
  /* Before locations.js has built the accordions (js-on.js sets .js), the lists already start closed and the heading
     already has the button's height, so the page doesn't paint every state open and then jump shut. If the script
     never runs, the lists show after a few seconds rather than staying shut. */
  .js .lc-group:not(.is-built) .lc-group__list { visibility: hidden; height: 0; margin: 0; overflow: hidden; animation: lc-lists-show 0s 5s forwards; }
  .js .lc-group:not(.is-built) .lc-group__head { min-height: 64px; align-items: center; padding: 0 4px; }
  .lc-group:not(.is-collapsed) .lc-group__list { margin: 18px 0 30px; }
}
@keyframes lc-lists-show { to { visibility: visible; height: auto; margin: 18px 0 30px; overflow: visible; } }
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) { .lc-acc svg { transition: none; } }
/* Forced colours (Windows High Contrast): the icons were set in teal, which can vanish on the system background.
   The accordion chevron is the only sign of open/closed, and the dropdown arrow shows the select is a dropdown. */
@media (forced-colors: active) {
  .lc-acc svg, .lc-search__ico { color: CanvasText; }
  .lc-pick__select { -webkit-appearance: menulist; appearance: auto; background-image: none; }
}

/* Tablet (761–1100px): same band colour and spacing as Menu, About and Contact, so switching pages
   doesn't make the header band change shade and the polaroid jump. */
@media (min-width: 761px) and (max-width: 1100px) {
  .lc-band { background: var(--kc-teal-2); padding: 40px 24px 44px; }
  .band-photo--lc { --tape-tilt: -2deg; }
  .lc-band__h1 { min-height: 2.1em; }   /* wraps to two lines once Caprasimo loads; reserve them so nothing drops */
}
