﻿.discovery { background: var(--b-soft); color: var(--ink); font-size: 17px; line-height: 1.45; }
.discovery [hidden] { display: none !important; }
.discovery h1, .discovery h2, .discovery h3, .discovery p { margin: 0; }
.discovery button, .discovery input, .discovery select { font: inherit; }
.discovery button { color: inherit; }
.discovery button:focus-visible, .discovery a:focus-visible, .discovery input:focus-visible,
.discovery select:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }
.skip-link { position: absolute; top: 0; left: 16px; z-index: 2; background: white; padding: 10px; }
.skip-link:not(:focus) { transform: translateY(-100%); }
.skip-link:focus { top: 8px; }
.page-width { width: min(100% - 72px, 1320px); margin-inline: auto; }
.site-head { background: white; border-bottom: 1px solid var(--line); }
.head-row, .banner-row, .list-heading, .card-top, .service, .hours-row, .sheet-bar, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-row { min-height: 64px; }
@media (max-width: 340px) { .head-row { gap: 6px; } }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font-size: 27px; font-weight: 800; letter-spacing: -1.4px; }
.wordmark svg { color: var(--b); }
.chip, .primary, .text-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 600 !important; background: white; text-decoration: none; }
.chip { font-size: 15px !important; }
.icon-slot, [data-icon] { display: inline-flex; flex: none; }
.icon-slot svg, [data-icon] svg { width: 20px; height: 20px; }
.chip:hover, .text-button:hover { background: var(--b-100); }
.chip[aria-pressed=true], .location-chip { background: var(--b-100); border-color: var(--b-200); color: var(--b-ink) !important; }
.primary { background: var(--b); color: white !important; min-height: 56px; border: 0; border-radius: 14px; width: 100%; font-size: 18px; }
.primary:hover { background: var(--b-hi); }
.text-button { border: 0; background: transparent; font-size: 15px !important; }
.district-banner { background: var(--b-100); overflow: hidden; }
.banner-row { position: relative; min-height: 128px; }
/* A long district without a space (the API takes 80 characters) is cut in the header chip and wraps in the banner. */
.head-row .wordmark { flex: none; }
.location-chip { min-width: 0; }
#place-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-copy { z-index: 1; min-width: 0; }
.banner-copy p { color: var(--b-ink); font-weight: 650; margin-bottom: 6px; overflow-wrap: anywhere; }
.banner-copy h1 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.045em; line-height: 1.12; }
.neighborhood { position: absolute; right: -36px; height: 100%; width: auto; }
.filter-bar { display: flex; gap: 9px; padding: 16px 2px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-x: auto; }
.filter-bar .chip { flex: none; }
.directory-name-field { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-content: center; min-height: 50px; padding: 2px 3px 2px 12px; border: 1px solid var(--line); border-radius: var(--r-chip); background: white; }
.directory-name-field:focus-within { border-color: var(--b); outline: 2px solid var(--b); outline-offset: 1px; }
.home .directory-name-field input:focus-visible, .discovery .directory-name-field input:focus-visible { outline: none; }
.directory-name-field > [data-icon] { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.directory-name-field label { grid-area: 1 / 2; align-self: end; color: var(--t2); font: 600 13px/1.2 var(--font); }
.directory-name-field input { grid-area: 2 / 2; width: 100%; min-width: 0; align-self: start; padding: 0; border: 0; background: transparent; color: var(--ink); font: 600 16px/1.25 var(--font); }
.directory-name-field button { grid-area: 1 / 3 / 3 / 4; display: grid; place-items: center; width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 8px; background: white; color: var(--ink); }
.directory-name-field button:hover { background: var(--b-soft); }
#name-search { max-width: 480px; margin-top: 12px; }
.audience-label { font-size: 15px; font-weight: 650; }
.audience-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.audience-options .chip { flex: 0 1 76px; justify-content: center; border-radius: var(--r-chip); padding: 6px 9px; }
.audience-options .chip[aria-pressed=true] { border-color: var(--b); }
.discovery .audience-label { margin-top: 10px; }
@media (min-width: 761px) and (max-height: 800px) {
  .audience-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
  .audience-row .audience-label, .audience-row .audience-options { margin-top: 0; }
  .audience-row .audience-options { flex: 1; }
}
.results-layout { display: grid; grid-template-columns: minmax(305px, .9fr) minmax(0, 1.9fr); gap: 24px; margin-top: 16px; align-items: start; }
.list-heading { min-height: 48px; }
.list-heading h2 { font-size: 18px; }
.shop-card, .panel, .notice { background: white; border: 1px solid var(--line); border-radius: 20px; }
.shop-card { display: grid; gap: 10px; width: 100%; text-align: left; padding: 17px; margin-bottom: 12px; overflow-wrap: anywhere; }
.shop-card:hover, .shop-card[aria-current=true] { border-color: var(--b); box-shadow: 0 0 0 1px var(--b); }
.card-top { justify-content: flex-start; }
.card-top .card-shop { flex: 1; min-width: 0; }
.card-shop strong { display: block; font-size: 21px; letter-spacing: -.025em; }
.avatar { background: var(--b-100); color: var(--b-ink); border-radius: 14px; display: grid; place-items: center; width: 48px; height: 48px; flex: none; font-size: 26px; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.fine, .small, .address { color: var(--t2); }
.fine { font-size: 14px; }
.small { font-size: 15px; }
.badge { display: inline-block; width: fit-content; padding: 4px 9px; border-radius: 99px; background: var(--fill); color: var(--t2); font-size: 13px; font-weight: 650; }
.audience-badge { background: var(--b-100); color: var(--b-ink); }
.open { background: var(--ok-soft); color: var(--ok-ink); }
.closed { background: var(--warn-soft); color: var(--warn-ink); }
.card-bottom { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); }
.card-price { color: var(--b-ink); font-size: 19px; }
.card-next-slot { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: 9px; background: var(--ok-soft); color: var(--ok-ink); font-size: 15px; font-weight: 600; }
.card-next-slot.full { background: var(--fill); color: var(--t2); }
.card-next-slot .icon-slot svg { width: 19px; height: 19px; }
.panel { overflow: hidden; overflow-wrap: anywhere; }
.preview-heading { background: var(--b-100); padding: 20px 24px; }
.preview-heading h2 { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.2; margin: 6px 0; letter-spacing: -.03em; }
.preview-heading .avatar { background: var(--b); color: white; font-size: 42px; width: 75px; height: 75px; border-radius: 22px; }
.address { display: inline-flex; align-items: center; gap: 7px; }
.preview-location { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.preview-heading > div { min-width: 0; }
.directions-link { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 6px 11px; color: var(--b-ink); background: var(--b-100); border-radius: var(--r-chip); font-size: 15px; font-weight: 650; text-decoration: none; }
.directions-link:hover { text-decoration: underline; }
.directions-link svg { width: 17px; height: 17px; }
.directions-link .icon-slot:last-child svg { width: 14px; height: 14px; }
.in-sheet .preview-heading > div { width: 100%; }
.in-sheet .address { flex-basis: 100%; }
.in-sheet .directions-link { margin-inline-start: auto; }
.preview-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; align-items: start; }
.preview-content h3 { font-size: 20px; margin-bottom: 10px; }
.service { border-bottom: 1px solid var(--line); padding: 8px 0; gap: 9px; }
.service-text { flex: 1; }
.service-text strong, .service-text small { display: block; }
.service-text small { color: var(--t3); }
.service-price { text-align: right; }
.tile { width: 38px; height: 38px; border-radius: 11px; background: var(--cut-s); color: var(--cut); display: grid; place-items: center; flex: none; }
.tile.beard { background: var(--beard-s); color: var(--beard); }
.tile.colour { background: var(--color-s); color: var(--color); }
.tile.blow { background: var(--blow-s); color: var(--blow); }
.tile.care { background: var(--care-s); color: var(--care); }
.tile.kids { background: var(--kid-s); color: var(--kid); }
.more-services { margin-top: 12px; }
.shop-hours { background: var(--b-soft); border-radius: 16px; padding: 16px; }
.shop-hours h3 { margin: 16px 0 8px; }
.hours-row { align-items: baseline; gap: 12px; padding: 4px 0; font-size: 15px; }
.hours-row strong { text-align: right; }
.booking-link { margin-top: 20px; }
.notice { padding: 22px; margin: 8px 0; }
.notice h3 { margin: 8px 0; font-size: 23px; }
.notice .chip { margin-top: 16px; }
.discovery footer { padding: 16px 0 28px; }
.discovery dialog { width: min(440px, calc(100% - 24px)); max-height: min(90dvh, 820px); color: var(--ink); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-overlay); }
.discovery dialog::backdrop { background: rgba(21,21,27,.45); }
.sheet-bar { justify-content: flex-end; padding: 12px 18px 0; }
#dialog-body > .form-content { padding: 8px 22px 24px; }
.form-content h2 { font-size: 28px; margin: 2px 0 10px; }
.form-content p { margin: 10px 0; }
.form-content label, .form-content legend { font-weight: 650; }
.form-content input[type=text], .form-content select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 12px; margin: 6px 0 12px; background: white; color: var(--ink); }
.form-content .primary { margin: 8px 0 14px; }
.form-content fieldset { border: 0; margin: 16px 0; padding: 0; }
.form-content fieldset legend { margin-bottom: 8px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.suggestions { display: grid; gap: 4px; margin-bottom: 12px; }
.suggestions .chip { justify-content: flex-start; border-color: transparent; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
#desktop-preview { position: sticky; top: 12px; }
@media(max-width: 1080px) and (min-width: 761px) { .preview-content { grid-template-columns: 1fr; } }
@media(max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .banner-row { min-height: 108px; }
  .neighborhood { display: none; }
  .filter-bar { margin-right: -18px; padding-right: 18px; border: 0; }
  .results-layout { display: block; margin-top: 16px; }
  #desktop-preview { display: none; }
  .shop-card[aria-current=true] { border-color: var(--line); box-shadow: none; }
  .discovery dialog { width: 100%; max-width: 100%; max-height: 93dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .preview-heading { background: white; padding: 6px 20px; }
  .preview-heading .avatar { display: none; }
  .preview-content { display: block; padding: 16px 20px 20px; }
  .shop-hours { margin-top: 18px; }
  .panel.in-sheet { border: 0; }
}
@media(prefers-reduced-motion: no-preference) { .shop-card, .chip, .primary { transition: border-color .15s, background-color .15s; } }
.guest-geo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 11px; border: 1.5px solid var(--b-ink); border-radius: var(--r-chip); color: var(--b-ink); background: white; font: 650 15px/1.2 var(--font); }
.discovery .guest-geo { font: 650 15px/1.2 var(--font); color: var(--b-ink); }
.guest-geo:hover { background: var(--b-soft); }
.guest-geo svg { width: 18px; height: 18px; }
#results-geo { margin-top: 14px; }
.discovery .banner-copy { padding-block: 14px; }
.home dialog.guest-location, .discovery dialog.guest-location { width: min(380px, calc(100% - 32px)); max-height: 90dvh; margin: auto; padding: 14px 22px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; box-shadow: var(--shadow-overlay); }
.guest-location::backdrop { background: rgba(21,21,27,.45); }
.location-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.location-heading h2 { font-size: 23px; line-height: 1.2; }
.location-close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.guest-location .location-description { margin-bottom: 18px; }
.location-secondary { width: 100%; margin-top: 10px; border-radius: var(--r-chip); background: var(--b-100); color: var(--b-ink); }
.location-warning { background: var(--warn-soft); border-radius: var(--r-chip); margin-bottom: 14px; padding: 12px; color: var(--warn-ink); }
.location-warning p { color: var(--t2); }
.location-form label, .location-list-label, .location-hint { display: block; font-size: 14px; color: var(--t2); }
.location-form input { display: block; width: 100%; height: 48px; padding: 8px 12px; margin-top: 6px; font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--r-chip); }
.location-form .location-list-label:not(:empty), .guest-location .location-hint:not(:empty) { margin-top: 10px; }
.location-form .location-hint { color: var(--warn-ink); }
.district-list { max-height: min(32dvh, 244px); overflow-y: auto; margin: 6px 0 0; }
.district-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; border: 0; border-radius: var(--r-chip); padding: 6px 10px; background: white; color: var(--ink); text-align: left; font: 600 16px/1.25 var(--font); }
.district-option:hover, .district-option:focus-visible { background: var(--b-soft); }
.district-option .icon-slot:last-child { margin-left: auto; }
.location-form [hidden] { display: none; }
.discovery footer { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.owner-link { color: var(--b-ink); font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.skeleton-card { display: grid; gap: 14px; padding: 22px; margin-bottom: 12px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.skeleton-card span { height: 17px; width: 70%; border-radius: 8px; background: var(--fill); }
.skeleton-card span:first-child { height: 42px; width: 45%; }
.skeleton-card span:last-child { width: 50%; }

.discovery #install-help { padding: 24px 22px max(24px, env(safe-area-inset-bottom)); }
.install-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 15px; background: var(--b-100); color: var(--b-ink); font-size: 30px; }
#install-help h2 { font-size: 26px; letter-spacing: -.025em; }
#install-help p { margin-top: 4px; color: var(--t2); }
#install-help ol { list-style: none; padding: 0; margin: 20px 0; counter-reset: install-step; }
#install-help li { display: flex; gap: 12px; padding: 12px; background: var(--b-50, #f7f5fc); border-radius: 14px; counter-increment: install-step; }
#install-help li + li { margin-top: 8px; }
#install-help li::before { content: counter(install-step); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--b-100); color: var(--b-ink); font-weight: 700; }
@media (max-width: 759px) {
  .discovery #install-help::before { content: ''; display: block; margin: -12px auto 20px; width: 44px; height: 4px; background: var(--line); border-radius: 4px; }
}

.select-value { display: none; }
@media (max-width: 760px) {
  .discovery, .guest-location { overflow-wrap: anywhere; }
  .list-heading, .discovery footer { flex-wrap: wrap; }
  .district-list { grid-template-columns: minmax(0, 1fr); }
  .location-heading h2 { min-width: 0; }
  /* A native select cannot wrap its closed value. Keep it over a wrapping label for touch and keyboard. */
  .sort-field { position: relative; margin: 6px 0 12px; }
  .sort-field .select-value { display: block; padding: 8px 32px 8px 12px; min-height: 48px; border: 1px solid var(--line2); border-radius: 12px; background: white; }
  .sort-field::after { content: ''; position: absolute; right: 12px; top: 18px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
  .sort-field select, .service-field .select-value:not(:empty) + select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; opacity: 0; }
  .sort-field:focus-within, .service-field:focus-within { outline: 3px solid var(--b); outline-offset: 2px; }
}
@media (max-width: 260px) {
  .card-top .avatar { display: none; }
  .head-row { flex-wrap: wrap; }
  #place-label { white-space: normal; overflow: visible; }
  .filter-bar { flex-wrap: wrap; white-space: normal; margin-right: 0; padding-right: 0; }
  .filter-bar .chip, .guest-geo, .discovery footer .chip { max-width: 100%; }
  .service, .hours-row { flex-wrap: wrap; }
  .home dialog.guest-location, .discovery dialog.guest-location { width: 100%; padding-inline: 12px; }
}
