/* Area-first browsing, with location as an optional shortcut. */
[hidden] { display: none !important; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #007cbf;
  outline-offset: 3px;
}
button:disabled { opacity: .6; cursor: wait; }
.area-picker-overlay.is-home {
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at top, #ffe8e2, transparent 65%), #f7f4ef;
}
.is-home .area-picker-sheet {
  border-radius: 24px;
  max-height: calc(100dvh - 32px);
  padding: 28px 24px;
}
.is-home .area-picker-handle { display: none; }
.area-brand { font-size: 21px; font-weight: 750; margin: 12px 0 26px; }
.area-brand span { color: #e74c3c; font-size: 27px; }
.area-picker-header { margin-bottom: 8px; }
.area-picker-header h2 { font-size: 25px; letter-spacing: -.6px; line-height: 1.2; }
.area-intro { color: #65605d; line-height: 1.5; margin: 0 0 20px; }
.area-picker-sheet { max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
.area-picker-close { flex-shrink: 0; width: 44px; height: 44px; }
.popular-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.popular-area { min-height: 46px; border-radius: 12px; text-align: left; }
.popular-area:hover, .area-result:hover { background: #fff2ee; }
.area-result { min-height: 56px; }
#area-locate-btn { margin-top: 10px; color: #b93629; }
.area-privacy { color: #65605d; text-align: center; font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.location-status {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f2f4f5;
  color: #30383c;
  font-size: 14px;
  line-height: 1.45;
}
.location-status strong { display: block; font-size: 15px; }
.location-status p { margin: 4px 0 6px; }
.status-actions { display: flex; flex-wrap: wrap; column-gap: 14px; }
.status-actions button {
  padding: 6px 0;
  min-height: 44px;
  background: none;
  border: 0;
  color: #9d3026;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#area-location-status .location-status { margin-bottom: 16px; }
#area-location-status #location-status-choose { display: none; }
.is-locating strong::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #dbcfcb;
  border-top-color: #e74c3c;
  border-radius: 50%;
  animation: locate-spin 1s linear infinite;
}
@keyframes locate-spin { to { transform: rotate(360deg); } }
#map-location-status {
  position: fixed;
  top: calc(180px + env(safe-area-inset-top));
  left: 12px;
  width: min(380px, calc(100% - 24px));
  z-index: 8;
}
#map-location-status .location-status { background: #fff; box-shadow: 0 4px 18px #0002; }
#change-area-btn {
  top: calc(12px + env(safe-area-inset-top));
  bottom: auto;
  left: 12px;
  right: 70px;
  max-width: 420px;
  border-radius: 14px;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#locate-btn { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
.category-chips { top: calc(70px + env(safe-area-inset-top)); right: 12px; }
.filter-chips { top: calc(123px + env(safe-area-inset-top)); right: 12px; }
.category-chip { border: 0; min-height: 44px; font-size: 14px; padding: 10px 16px; }
#search-area-btn { top: calc(182px + env(safe-area-inset-top)); }
#locating-banner { top: calc(176px + env(safe-area-inset-top)); z-index: 9; }
#top10-strip {
  box-sizing: border-box;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px #0002;
  max-height: 38dvh;
  display: flex;
  flex-direction: column;
}
#top10-strip.hidden { display: none; }
.top10-header { padding: 0 16px; gap: 8px; }
.top10-heading { flex: 1; min-width: 0; }
.top10-label { font-size: 16px; text-transform: none; letter-spacing: 0; text-shadow: none; line-height: 1.3; }
.top10-area { color: #65605d; font-size: 12px; margin-top: 3px; }
.top10-toggle { border: 0; background: #f4f1ee; border-radius: 10px; min-height: 44px; padding: 8px 10px; color: #3a3330; font-weight: 600; cursor: pointer; }
.top10-state { font-size: 12px; line-height: 1.4; color: #65605d; padding: 6px 16px 10px; }
.top10-cards { height: 160px; min-height: 0; padding: 2px 16px 4px; flex-shrink: 1; }
.top10-card { width: 164px; min-height: 130px; padding: 0; text-align: left; color: inherit; }
.top10-card-name { font-size: 14px; }
.top10-card-rating { font-size: 13px; }
.top10-card-price { font-size: 12px; color: #65605d; }
.top10-card-body { padding: 7px 9px; }
.top10-card-rank { width: 22px; height: 22px; font-size: 12px; }
.restaurant-retry { width: calc(100% - 32px); margin: 0 16px; }
#top10-strip.expanded { max-height: calc(100dvh - 185px - env(safe-area-inset-top)); }
.expanded .top10-cards { display: flex; flex-direction: column; height: auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.expanded .top10-card { width: 100%; height: 94px; min-height: 94px; flex-direction: row; align-items: center; }
.expanded .top10-card-img-wrap { flex: none; height: 100%; width: 104px; }
.expanded .top10-card-body { min-width: 0; flex: 1; }
.expanded .top10-card-name { white-space: normal; }
@media (min-width: 700px) {
  #top10-strip { left: 12px; bottom: 12px; right: auto; width: 420px; border-radius: 20px; }
  .area-picker-sheet { padding: 24px; }
}
@media (max-width: 360px) {
  .is-home .area-picker-sheet { padding: 20px 16px; }
  .area-picker-header h2 { font-size: 23px; }
  .top10-label { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
