:root {
  --paper: #ffffff;
  --ink: #11100e;
  --muted: #7e7a72;
  --line: #d8d2c7;
  --wash: #f0ede7;
  --tap: rgba(17, 16, 14, 0.045);
  color-scheme: light;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home-active {
  background: var(--paper);
  animation: none;
}

@keyframes home-ambient-drift {
  from {
    background-position: 0% 0%, 8% 100%, 92% 100%;
  }

  50% {
    background-position: 0% 0%, 58% 98%, 42% 96%;
  }

  to {
    background-position: 0% 0%, 92% 100%, 10% 98%;
  }
}

body.masthead-hidden .masthead {
  opacity: 0;
  transform: translate3d(0, calc(-100% - 10px), 0);
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    visibility 0s linear 240ms;
}

body.app-loading {
  overflow: hidden;
}

body.app-loading .app-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease;
}

.app-loader-arrow {
  font-size: clamp(3.2rem, 16vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  transform: rotate(-45deg);
  transform-origin: center;
  animation: app-loader-spin 1.05s linear infinite;
}

@keyframes app-loader-spin {
  from {
    transform: rotate(-45deg);
  }

  to {
    transform: rotate(315deg);
  }
}

body.search-active .masthead,
body.nearby-active .masthead {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-loader,
  body.app-loading .app-loader {
    transition: none;
  }

  .app-loader-arrow {
    animation: none;
  }

  body.home-active {
    animation: none;
  }

  @media (min-width: 900px) {
    body {
      animation: none;
    }
  }
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 30px max(40px, env(safe-area-inset-bottom));
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-inline: -30px;
  padding: max(24px, env(safe-area-inset-top)) 30px 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
  opacity: 1;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform, opacity;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

h1,
.letter-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.68rem, 7.2vw, 2.08rem);
  line-height: 1.02;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex: 0 0 auto;
}

.info-button,
.nearby-button,
.search-button {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.info-button::before {
  content: "i";
  position: absolute;
  inset: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 18px;
  text-align: center;
}

.nearby-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nearby-button::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.nearby-button span::before,
.nearby-button span::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.nearby-button span::before {
  top: 16px;
  left: 5px;
  width: 24px;
  height: 1.5px;
}

.nearby-button span::after {
  top: 5px;
  left: 16px;
  width: 1.5px;
  height: 24px;
}

.nearby-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nearby-button:disabled {
  opacity: 0.45;
}

.search-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 22px;
  width: 9px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.info-button:active,
.nearby-button:active,
.search-button:active {
  background: var(--tap);
}

.nearby-button[aria-pressed="true"]:active {
  background: var(--ink);
}

body.search-active .search-button::before,
body.search-active .search-button::after {
  content: none;
}

body.search-active .search-button {
  font-size: 1.65rem;
  line-height: 1;
}

body.search-active .search-button span::before {
  content: "×";
}

body.info-active .info-button::before {
  content: none;
}

body.info-active .info-button {
  font-size: 1.65rem;
  line-height: 1;
}

body.info-active .info-button span::before {
  content: "×";
}

body.search-active .site-header h1 {
  display: none;
}

body.info-active .nearby-button,
body.info-active .search-button,
body.search-active .nearby-button {
  display: none;
}

body.search-active.nearby-active .nearby-button {
  display: block;
}

body.search-active .site-header {
  align-items: center;
  padding-top: 10px;
}

body.search-active .search-panel {
  flex: 1 1 auto;
  min-width: 0;
}

body.search-active .masthead {
  padding-top: max(18px, env(safe-area-inset-top));
}

.alphabet {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 13px 12px;
  max-height: 110px;
  margin-top: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 220ms ease,
    margin-top 220ms ease,
    padding-bottom 220ms ease,
    border-color 220ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.search-panel {
  display: none;
  max-height: 0;
  margin-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    max-height 220ms ease,
    margin-top 220ms ease,
    padding-bottom 220ms ease,
    border-color 220ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.search-input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  line-height: 1.45;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

body.info-active .alphabet,
body.search-active .alphabet,
body.nearby-active .alphabet {
  max-height: 0;
  margin-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-bottom-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
}

body.search-active .search-panel {
  display: block;
  max-height: 80px;
  margin-top: 0;
  padding-bottom: 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.info-active .masthead::after,
body.search-active .masthead::after,
body.nearby-active .masthead::after {
  content: "";
  display: block;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.alphabet a {
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1;
}

.alphabet a[aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.38;
  pointer-events: none;
}

.directory {
  padding-top: 22px;
  padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 86px));
}

body.info-active .directory,
body.info-active .desktop-details {
  display: none;
}

.info-panel,
.map-panel,
.business-page-panel {
  padding-top: 24px;
  padding-bottom: max(124px, calc(env(safe-area-inset-bottom) + 104px));
  animation: detail-reveal 180ms ease-out both;
}

.info-panel h2,
.map-panel h2,
.business-page-panel h2 {
  margin: 0 0 16px -10px;
  font: inherit;
  line-height: 1.28;
}

.info-panel h2 span,
.map-panel h2 span,
.business-page-panel h2 span {
  display: inline-block;
  padding: 1px 10px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 520;
}

/* Keep white title pills consistent across directory views. */
.info-panel h2 span,
.map-panel h2 span,
.business-page-panel h2 span,
.menu-page-type,
.desktop-detail-title,
.map-popup-pill {
  background: var(--paper);
  box-shadow: 2px 2px 0 #333333;
}

.map-popup-pill {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .map-popup-pill:hover {
    box-shadow: 3px 3px 0 #333333;
    transform: translate(-1px, -1px);
  }
}

.map-popup-pill:active {
  box-shadow: 0 0 0 #333333;
  transform: translate(2px, 2px);
}

@media (prefers-reduced-motion: reduce) {
  .map-popup-pill {
    transition: none;
  }
}

.info-index h2 {
  margin-bottom: 22px;
}

.info-index h2 span {
  font-size: 1.04rem;
  line-height: 1.28;
}

.info-description {
  margin: 0 0 8px;
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.42;
}

.info-links {
  display: grid;
  gap: 0;
}

[data-info-view="creditos"] .info-guide a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.info-links a,
.info-links button {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.04rem;
  line-height: 1.38;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.info-links a:active,
.info-links a:focus-visible,
.info-links button:active,
.info-links button:focus-visible {
  background: var(--tap);
  outline: 0;
}

.info-index-links {
  gap: 13px;
  margin-top: 0;
}

.info-index-links button {
  padding: 0;
  font-size: 1.12rem;
  font-weight: 540;
  line-height: 1.34;
}

.info-view[hidden] {
  display: none;
}

.info-view-revealed {
  animation: detail-reveal 180ms ease-out both;
}

.info-guide,
.app-save-guide {
  margin-top: 30px;
}

.info-guide h3,
.app-save-guide h3,
.app-save-guide h4 {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.32;
}

.info-guide h3,
.app-save-guide h3 {
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.info-guide p {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.42;
}

.app-save-group {
  margin-bottom: 20px;
}

.app-save-group h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.app-save-guide ol {
  margin: 0;
  padding-left: 1.25rem;
}

.app-save-guide li,
.app-save-guide p {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.42;
}

.app-save-guide li + li {
  margin-top: 3px;
}

.app-save-guide + .info-description,
.app-save-guide p {
  margin: 22px 0 0;
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.business-page-type {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 520;
  line-height: 1.38;
}

.menu-page-type {
  display: inline-block;
  width: fit-content;
  margin: 0 0 22px -10px;
  padding: 1px 10px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 1.04rem;
  line-height: 1.28;
}

.business-page-intro {
  margin: 0 0 16px;
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.42;
}

.business-page-section {
  margin: 18px 0 0;
}

.business-page-divider {
  margin: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}

.business-page-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 6px;
}

.business-page-section h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.38;
}

.business-page-section-header h3 {
  margin-bottom: 0;
}

.business-page-section-price {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.38;
  white-space: nowrap;
}

.business-page-section-date {
  margin: -2px 0 7px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.business-page-section p,
.business-page-section li {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.38;
}

.business-page-section .gallery-page {
  margin-top: 14px;
}

.business-page-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-page-link {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.04rem;
  line-height: 1.38;
  text-align: left;
  cursor: pointer;
}

.business-page-link::after {
  content: "→";
  margin-left: 6px;
}

.business-page-link:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}

.menu-page-items {
  display: grid;
  gap: 24px;
}

.menu-page-categories {
  display: grid;
  gap: 13px;
}

.menu-page-category-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 540;
  line-height: 1.34;
  text-align: left;
  cursor: pointer;
}

.menu-page-category-label {
  display: inline-block;
}

.menu-page-category-button[aria-expanded="true"] .menu-page-category-label {
  display: inline-block;
  width: fit-content;
  margin-left: -10px;
  padding: 1px 10px 2px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.menu-page-category-button[aria-expanded="true"] .nav-effect-label::after {
  transform: scaleX(0);
  transition: none;
}

.menu-page-category-button[aria-expanded="true"] .nav-effect-arrow {
  display: none;
}

.menu-page-category-static {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 540;
  line-height: 1.34;
}

.menu-page-category-panel {
  padding: 18px 0 18px;
}

.menu-page-category:not(:last-child) .menu-page-category-panel::after {
  content: "";
  display: block;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-page-category-panel[hidden] {
  display: none;
}

.menu-page-category-panel .menu-page-items {
  gap: 21px;
}

.menu-page-item {
  padding: 0;
}

.menu-page-subheading {
  margin: 12px 0 -2px;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.34;
}

.menu-page-subheading:first-child {
  margin-top: 0;
}

.menu-page-note-row {
  margin: -16px 0 -2px;
  color: #302f2c;
  font: inherit;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.4;
}

.menu-page-category-panel .menu-page-note-row:first-child {
  margin-top: 0;
}

.menu-page-item-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
}

.menu-page-item-name-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.menu-page-item-name,
.menu-page-item-price {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.34;
}

.menu-page-item-price {
  white-space: nowrap;
}

.menu-page-order-group {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.menu-page-add-button {
  appearance: none;
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  margin: -0.2rem -0.28rem -0.2rem 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.menu-page-add-button:active {
  transform: translateY(1px);
}

.menu-page-add-button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.menu-page-item-description {
  margin: 2px 0 0;
  color: #302f2c;
  font: inherit;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.4;
}

.menu-page-item-options {
  margin: 6px 0 0;
  padding-left: 1.18rem;
  color: #302f2c;
  font: inherit;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.4;
}

.menu-page-option-price {
  color: var(--ink);
  font-weight: 500;
}

.menu-page-item-options li + li {
  margin-top: 2px;
}

.menu-page-photo-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 18px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-page-photo-button:active,
.menu-page-photo-button:focus-visible {
  color: var(--muted);
  outline: 0;
}

.menu-page-photo-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.menu-page-photo-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.menu-page-photo-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 6px;
  height: 3px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: var(--paper);
}

.menu-page-photo {
  margin: 12px 0 0;
}

.menu-page-photo[hidden] {
  display: none;
}

.menu-page-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-page-notes {
  display: grid;
  gap: 3px;
  margin-top: -4px;
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.34;
}

.menu-page-notes p {
  margin: 0;
}

.menu-page-notes .is-strong {
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.06rem;
  font-style: normal;
  font-weight: 520;
}

.gallery-page {
  display: grid;
  gap: 18px;
}

.business-page-section + .gallery-page {
  margin-top: 24px;
}

.gallery-photo {
  margin: 0;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.map-canvas {
  width: 100%;
  height: min(72vh, 660px);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(17, 16, 14, 0.14);
  border-radius: 2px;
  background: #f7f6f2;
}

.map-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.leaflet-container {
  font: inherit;
  background: #f7f6f2;
}

.leaflet-tile-pane img {
  filter: saturate(0.78) contrast(1.04) brightness(1.02);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(17, 16, 14, 0.12);
}

.leaflet-popup-content {
  margin: 12px 14px 13px;
}

.map-pill-popup-shell .leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
}

.map-pill-popup-shell .leaflet-popup-content {
  margin: 0;
}

.map-pill-popup-shell .leaflet-popup-tip-container,
.map-pill-popup-shell .leaflet-popup-tip {
  display: none;
}

.map-popup-pill {
  display: block;
  width: max-content;
  max-width: min(300px, calc(100vw - 72px));
  padding: 5px 17px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.06rem;
  font-weight: 520;
  line-height: 1.14;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  cursor: pointer;
}

.map-popup-pill:active,
.map-popup-pill:focus-visible {
  color: var(--muted);
  outline: 0;
}

.leaflet-control-attribution {
  opacity: 0.72;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.56) !important;
}

.map-dot-marker {
  background: transparent;
  border: 0;
}

.map-dot {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.map-dot::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(17, 16, 14, 0.62);
  border-radius: 50%;
  background: rgba(17, 16, 14, 0.68);
  box-shadow: 0 1px 3px rgba(17, 16, 14, 0.14);
}

.map-user-location-marker {
  background: transparent;
  border: 0;
}

.map-user-location-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #2f7df6;
  box-shadow:
    0 0 0 4px rgba(47, 125, 246, 0.2),
    0 2px 7px rgba(17, 16, 14, 0.22);
}

.map-cluster-marker {
  display: grid;
  place-items: center;
  width: 26px !important;
  height: 26px !important;
  margin-left: -13px !important;
  margin-top: -13px !important;
  border: 1px solid rgba(17, 16, 14, 0.72);
  border-radius: 50%;
  background: rgba(17, 16, 14, 0.82);
  color: var(--paper);
  box-shadow: 0 2px 7px rgba(17, 16, 14, 0.12);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.map-cluster-marker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.map-cluster-marker.is-medium {
  width: 30px !important;
  height: 30px !important;
  margin-left: -15px !important;
  margin-top: -15px !important;
  font-size: 0.74rem;
  font-weight: 700;
}

.map-cluster-marker.is-large {
  width: 34px !important;
  height: 34px !important;
  margin-left: -17px !important;
  margin-top: -17px !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.no-results {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.empty-directory {
  overflow-wrap: anywhere;
}

.empty-result-actions {
  margin-top: 16px;
  gap: 8px;
}

.empty-result-actions :is(button, a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.letter-group {
  scroll-margin-top: 160px;
  margin-bottom: 24px;
}

.letter-heading {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.05;
}

.business-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby-list {
  padding-top: 3px;
}

.business-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-inline: -10px;
  padding: 5px 10px 6px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.12rem;
  line-height: 1.46;
  -webkit-user-select: none;
  user-select: none;
}

.business-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.business-name {
  position: relative;
  display: inline-block;
  min-width: 0;
}

.business-name::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.business-link:not([aria-expanded="true"]):active .business-name::after,
.business-link:not([aria-expanded="true"]):focus-visible .business-name::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.business-link[aria-expanded="true"] .business-name::after,
.business-link.suppress-underline .business-name::after {
  content: none;
  transform: scaleX(0);
  transition: none;
}

.business-link .business-name {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.business-link[aria-expanded="false"]:active .business-name {
  transform: translateX(1px);
}

.business-link[aria-expanded="true"] .business-name {
  display: inline-block;
  padding: 1px 10px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 #333333;
  transform: translate(0, 0);
}

.business-link[aria-expanded="true"]:active {
  background: transparent;
}

.business-link[aria-expanded="true"]:active .business-name {
  box-shadow: 0 0 0 #333333;
  transform: translate(2px, 2px);
}

@media (hover: hover) and (pointer: fine) {
  .business-link:not([aria-expanded="true"]):hover .business-name::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .business-link[aria-expanded="true"]:hover .business-name {
    box-shadow: 3px 3px 0 #333333;
    transform: translate(-1px, -1px);
  }

  .business-link[aria-expanded="true"]:active .business-name {
    box-shadow: 0 0 0 #333333;
    transform: translate(2px, 2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-link .business-name {
    transition: none;
  }

  .business-name::after {
    transition: none;
  }
}

.business-link:active,
.business-link:focus-visible {
  background: var(--tap);
  outline: 0;
}

@media (hover: none) and (pointer: coarse) {
  .business-link:active,
  .business-link:focus-visible {
    background: transparent;
  }

  .business-link .business-name::after {
    display: none;
  }

  .business-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}

.business-link[aria-expanded="true"] {
  background: transparent;
  font-weight: 520;
}

.business-link[aria-expanded="true"] .business-name {
  display: inline-block;
  padding: 1px 10px 2px;
  margin-left: -10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.business-link.has-wrapped-title[aria-expanded="true"] {
  align-items: flex-start;
}

.business-link.has-wrapped-title[aria-expanded="true"] .business-title-group {
  width: fit-content;
  max-width: calc(100% - 42px);
  flex: 0 1 auto;
}

.business-link.has-wrapped-title[aria-expanded="true"] .business-name {
  width: min(var(--wrapped-title-width, 100%), 100%);
  max-width: 100%;
  flex: 0 1 auto;
  padding: 4px 12px 5px;
  border-radius: 26px;
  font-size: 0.98em;
  line-height: 1.16;
}

.business-link.business-profile-title[aria-expanded="true"] {
  align-items: center;
  padding-bottom: 4px;
  margin-bottom: 7px;
}

.business-link.business-profile-title[aria-expanded="true"] .business-title-group {
  align-items: center;
}

.business-link.business-profile-title[aria-expanded="true"] .business-name,
.business-link.business-profile-title[aria-expanded="true"]:hover .business-name,
.business-link.business-profile-title[aria-expanded="true"]:active .business-name,
.business-profile-title .desktop-detail-title {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: none;
}

.business-link.business-profile-title[aria-expanded="true"] .verified-badge,
.business-profile-title .desktop-title-group .verified-badge {
  margin-left: 2px;
  transform: translateY(1px);
}

.business-link.business-profile-title[aria-expanded="true"] + .business-details {
  margin-top: 0;
}

.desktop-detail-content.business-profile-title .desktop-detail-header {
  margin-bottom: 10px;
}

.business-link.business-profile-title[aria-expanded="true"] .disclosure-arrow {
  display: none;
}

.business-link.business-inline-title[aria-expanded="true"] .business-name,
.business-link.business-inline-title[aria-expanded="true"]:hover .business-name,
.business-link.business-inline-title[aria-expanded="true"]:active .business-name {
  font-size: 1em;
  line-height: 1.44;
}

.business-link.business-inline-title[aria-expanded="true"] .verified-badge {
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
}

.business-profile-details > .detail-row.is-category {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 7px -3px;
  padding: 1px 6px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 #333333;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.25;
}

.business-profile-details > .detail-row.is-category:first-child {
  margin-top: 8px;
}

.business-profile-details.has-no-description > .detail-row.is-category:first-child {
  margin-top: 6px;
}

.business-link.business-inline-title[aria-expanded="true"] + .business-profile-details > .detail-row.is-category:first-child {
  margin-top: 0;
}

.business-profile-details > .detail-row.is-category.is-multiple-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.business-profile-details > .detail-row.is-category .category-pill {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  padding: 1px 6px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 #333333;
}

.category-pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .business-profile-details .category-pill:hover {
    box-shadow: 3px 3px 0 #333333;
    transform: translate(-1px, -1px);
  }
}

.business-profile-details .category-pill:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.business-profile-details > .detail-row.is-category + .detail-row.is-description {
  padding-top: 6px;
}

.business-link.business-inline-title[aria-expanded="true"] + .business-profile-details > .detail-row.is-category + .detail-row.is-description {
  padding-top: 4px;
}

.verified-badge {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #2f74e8;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.business-link[aria-expanded="true"] .verified-badge {
  display: inline-flex;
  margin-left: 4px;
  transform: translateY(1px);
}

.disclosure-arrow {
  flex: 0 0 auto;
  font-size: 0.92em;
  line-height: 1;
}

.business-link[aria-expanded="true"] .disclosure-arrow {
  display: none;
}

.business-details {
  margin: 4px 0 14px;
  padding: 2px 0 14px 0;
}

.business-details:not([hidden]),
.location-details:not([hidden]) {
  animation: detail-reveal 180ms ease-out both;
}

.directory.stable-single-result-view .business-details:not([hidden]) {
  animation: none;
}

.business-details::after {
  content: "";
  display: block;
  width: 76%;
  margin-top: 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}

.directory.single-result-view .business-details::after {
  display: none;
}

.business-list li:last-child .business-details::after {
  display: none;
}

.detail-row {
  display: block;
  padding: 4px 0;
  font-size: 1.04rem;
  line-height: 1.38;
  color: var(--ink);
}

.detail-row.is-category {
  color: var(--ink);
  font-weight: 500;
}

.detail-row.is-description {
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.upright-emoji {
  font-style: normal;
}

.detail-row.is-address {
  display: grid;
  gap: 1px;
  line-height: 1.28;
}

.detail-row.is-phone {
  display: grid;
  gap: 0;
  font-weight: 500;
}

.detail-row a {
  display: block;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
}

.detail-row a::after {
  content: "→";
  margin-left: 6px;
}

.detail-action-label {
  position: relative;
  display: inline-block;
}

.detail-action-label::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.detail-row.is-phone.has-multiple .detail-action-label::after {
  display: none;
}

.detail-row a:active .detail-action-label::after,
.detail-row a:focus-visible .detail-action-label::after,
.business-page-link:active .detail-action-label::after,
.business-page-link:focus-visible .detail-action-label::after,
.menu-categories-button:not([aria-expanded="true"]):active .detail-action-label::after,
.menu-categories-button:not([aria-expanded="true"]):focus-visible .detail-action-label::after,
.schedule-button:not([aria-expanded="true"]):active .detail-action-label::after,
.schedule-button:not([aria-expanded="true"]):focus-visible .detail-action-label::after,
.payment-methods-button:not([aria-expanded="true"]):active .detail-action-label::after,
.payment-methods-button:not([aria-expanded="true"]):focus-visible .detail-action-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.menu-categories-button[aria-expanded="true"] .detail-action-label::after,
.schedule-button[aria-expanded="true"] .detail-action-label::after,
.payment-methods-button[aria-expanded="true"] .detail-action-label::after {
  transform: scaleX(0);
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .detail-row a:hover .detail-action-label::after,
  .business-page-link:hover .detail-action-label::after,
  .menu-categories-button:not([aria-expanded="true"]):hover .detail-action-label::after,
  .schedule-button:not([aria-expanded="true"]):hover .detail-action-label::after,
  .payment-methods-button:not([aria-expanded="true"]):hover .detail-action-label::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-action-label::after {
    transition: none;
  }
}

.menu-categories-button,
.schedule-button,
.payment-methods-button,
.menu-category-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.menu-categories-button::after,
.schedule-button::after,
.payment-methods-button::after {
  content: "→";
  margin-left: 6px;
}

.menu-categories-button[aria-expanded="true"]::after,
.schedule-button[aria-expanded="true"]::after,
.payment-methods-button[aria-expanded="true"]::after {
  content: "↓";
}

.menu-categories-button[aria-expanded="true"],
.schedule-button[aria-expanded="true"],
.payment-methods-button[aria-expanded="true"] {
  font-weight: 520;
}

.menu-category-list {
  padding: 1px 0 10px 14px;
}

.menu-category-link:disabled {
  opacity: 1;
  cursor: default;
}

.schedule-panel,
.payment-methods-panel {
  display: grid;
  gap: 1px;
  padding: 1px 0 8px 14px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.34;
}

.payment-methods-panel {
  gap: 0;
  padding: 2px 0 8px 10px;
}

.schedule-panel[hidden],
.payment-methods-panel[hidden] {
  display: none;
}

.schedule-panel p,
.payment-methods-panel p {
  margin: 0;
}

.schedule-status {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9em;
  font-weight: 400;
  color: var(--ink);
}

.schedule-status > span { font-weight: 500; }
.schedule-status [data-status="open"] { color: #217346; }
.schedule-status [data-status="closed"] { color: #b03434; }
.schedule-status [data-status="unknown"] { color: #666; }

.schedule-note {
  margin-top: 4px !important;
  color: #24231f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.locations {
  margin-top: 12px;
}

.locations-count {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.4;
}

.locations-count.is-section-heading {
  margin: 4px 0 11px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.3;
}

.location-item {
  margin: 0;
}

.location-item.is-open:not(:last-child)::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin: 6px 0 14px;
  background: rgba(17, 16, 14, 0.1);
}

.location-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.location-button[aria-expanded="true"] {
  font-weight: 520;
}

.location-button.is-multi-branch[aria-expanded="true"] {
  font-weight: 500;
  padding-bottom: 0;
}

.location-label {
  display: inline-flex;
  align-items: baseline;
}

.location-label::after {
  content: "→";
  margin-left: 6px;
}

.location-button:not([aria-expanded="true"]) .location-label::after {
  display: inline-block;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.location-button:not([aria-expanded="true"]):active .detail-action-label::after,
.location-button:not([aria-expanded="true"]):focus-visible .detail-action-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.location-button:not([aria-expanded="true"]):active .location-label::after,
.location-button:not([aria-expanded="true"]):focus-visible .location-label::after {
  transform: rotate(-45deg);
}

.location-button[aria-expanded="true"] .detail-action-label::after {
  transform: scaleX(0);
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .location-button:not([aria-expanded="true"]):hover .detail-action-label::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .location-button:not([aria-expanded="true"]):hover .location-label::after {
    transform: rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-button:not([aria-expanded="true"]) .location-label::after {
    transition: none;
  }
}

.location-button[aria-expanded="true"] .location-label::after {
  content: "↓";
}

.location-button.is-multi-branch[aria-expanded="true"] .location-label::after {
  content: none;
}

.location-details {
  padding: 1px 0 10px 14px;
}

.location-button.is-multi-branch[aria-expanded="true"] + .location-details {
  margin-top: 0;
  padding-left: 0;
}

.location-button.is-multi-branch[aria-expanded="true"] + .location-details > .detail-row.is-category {
  padding-top: 0;
  padding-bottom: 0;
}

.location-button.is-multi-branch[aria-expanded="true"] + .location-details > .detail-row.is-category + .detail-row[data-detail-key="direccion"] {
  margin-top: 8px;
}

.location-details.has-branch-categories .detail-row.is-category {
  color: #555;
  font-size: 0.9rem;
  font-weight: 400;
}

.location-details .detail-row {
  font-size: 1rem;
}

.desktop-details {
  display: none;
}

@keyframes detail-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .page {
    padding-inline: 24px;
  }

  .masthead {
    margin-inline: -24px;
    padding-inline: 24px;
  }

  .site-header {
    gap: 8px;
  }

  h1 {
    font-size: clamp(1.52rem, 7vw, 1.72rem);
  }

  .header-actions {
    gap: 1px;
  }

  .info-button,
  .nearby-button,
  .search-button {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .alphabet {
    gap: 15px 7px;
  }

  .business-link {
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .business-link:active {
    background: transparent;
  }

  body.masthead-hidden .masthead {
    transform: none;
    opacity: 1;
  }

  .page {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .masthead {
    display: contents;
  }

  .site-header {
    grid-column: 1 / -1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 88px;
    padding: 0 48px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  h1 {
    font-size: 2.02rem;
  }

  .header-actions {
    gap: 12px;
  }

  .info-button,
  .nearby-button,
  .search-button {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .info-button::before {
    inset: 7px;
    line-height: 18px;
  }

  .nearby-button::before {
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
  }

  .nearby-button::after {
    top: 15px;
    left: 15px;
  }

  .nearby-button span::before {
    top: 16px;
    left: 5px;
    width: 24px;
  }

  .nearby-button span::after {
    top: 5px;
    left: 16px;
    height: 24px;
  }

  .search-button::before {
    top: 8px;
    left: 8px;
  }

  .search-button::after {
    top: 23px;
    left: 22px;
  }

  .alphabet {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 88px;
    z-index: 30;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 32px 48px 28px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--paper);
  }

  body.search-active .alphabet,
  body.nearby-active .alphabet {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.search-active .masthead::after,
  body.nearby-active .masthead::after {
    display: none;
  }

  body.info-active .masthead::after {
    display: none;
  }

  body.search-active .search-panel {
    max-width: 520px;
  }

  .info-panel {
    grid-column: 1 / -1;
    grid-row: 2 / 4;
    min-height: 0;
    overflow-y: auto;
    padding: 74px clamp(56px, 8vw, 140px) 90px;
  }

  .info-panel h2,
  .info-description,
  .info-links {
    max-width: 520px;
  }

  .directory {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 48px 80px;
    border-right: 1px solid var(--line);
    background: var(--paper);
  }

  .desktop-details {
    display: block;
    grid-column: 2;
    grid-row: 2 / 4;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 74px clamp(56px, 8vw, 140px) 90px;
  }

  .desktop-empty {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.4;
  }

  .desktop-detail-content {
    max-width: 720px;
    padding-right: 14px;
  }

  .desktop-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 22px;
  }

  .desktop-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .desktop-detail-title {
    display: inline-block;
    margin: 0;
    padding: 3px 16px 4px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font: inherit;
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.28;
  }

  .desktop-title-group .verified-badge {
    display: inline-flex;
    width: 20px;
    height: 20px;
  }

  .desktop-detail-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
  }

  .desktop-business-details {
    padding-bottom: 18px;
  }

  .desktop-business-details::after {
    content: none;
  }

  .desktop-business-details .detail-row {
    max-width: 520px;
  }

  .directory .business-details {
    display: none;
  }

  .directory .disclosure-arrow {
    display: none;
  }

  .letter-group {
    scroll-margin-top: 260px;
  }
}

/* Text navigation keeps the header calm while making secondary tools available on demand. */
.site-header {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 4px;
}

.header-actions {
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
}

.nearby-button,
.search-button,
.more-button {
  position: static;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
}

.nearby-button::before,
.nearby-button::after,
.nearby-button span::before,
.nearby-button span::after,
.search-button::before,
.search-button::after {
  content: none;
}

.nearby-button[aria-pressed="true"],
.nearby-button:active,
.search-button:active,
.more-button:active {
  background: transparent;
  color: var(--muted);
}

.nearby-button[aria-pressed="true"] {
  font-weight: 500;
}

.search-button,
.more-button {
  cursor: pointer;
}

.search-panel {
  grid-column: 1;
  grid-row: 2;
}

body.search-active .site-header {
  gap: 12px;
}

body.search-active .header-actions {
  grid-row: 3;
}

.browse-letters {
  display: block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.alphabet {
  display: none;
}

body.alphabet-open .alphabet {
  display: grid;
  max-height: 110px;
  margin-top: 26px;
  padding-bottom: 22px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom-color: var(--line);
}

body.alphabet-open.search-active .alphabet {
  display: grid;
  max-height: 110px;
  margin-top: 18px;
  padding-bottom: 22px;
}

.more-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 30px;
  z-index: 30;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(17, 16, 14, 0.1);
}

.more-menu[hidden] {
  display: none;
}

.menu-item {
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.menu-item:active {
  background: var(--tap);
}

@media (max-width: 360px) {
  .header-actions {
    gap: 12px;
  }

  .nearby-button,
  .search-button,
  .more-button {
    font-size: 0.86rem;
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 4px 0 0;
  }

  h1 {
    font-size: 1.56rem;
  }

  .header-actions {
    gap: 16px;
  }

  .nearby-button,
  .search-button,
  .more-button {
    flex-basis: auto;
    width: auto;
    height: auto;
    font-size: 0.86rem;
  }

  .more-menu {
    right: 0;
  }
}

/* Keep More as an inline secondary row in every layout. */
.more-menu {
  position: static;
  display: flex;
  min-width: 0;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.more-menu[hidden] {
  display: none;
}

.menu-item {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.menu-item:active {
  background: transparent;
  color: var(--muted);
}

/* Higher specificity keeps this inline rule stable against the legacy header styles. */
body .masthead .more-menu {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  display: flex !important;
  min-width: 0 !important;
  margin-top: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .masthead .more-menu[hidden] {
  display: none !important;
}

body .masthead .menu-item {
  padding: 0;
  background: transparent;
  color: var(--ink);
}

/* The regular header needs the same breathing room the alphabet previously supplied. */
body:not(.search-active):not(.info-active) .masthead::after {
  content: "";
  display: block;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

/* Text actions stay distinct through weight, spacing, and active state rather than separators. */
body .masthead .header-actions {
  gap: 26px;
}

body .masthead .nearby-button,
body .masthead .search-button,
body .masthead .more-button {
  padding: 4px 0;
  color: var(--ink);
  font-weight: 500;
}

body .masthead .header-actions > .nearby-button::after,
body .masthead .header-actions > .search-button::after {
  content: none !important;
}

body .masthead .nearby-button[aria-pressed="true"],
body.more-active .masthead .more-button {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (max-width: 360px) {
  body .masthead .header-actions {
    gap: 20px;
  }
}

/* Search is a focused mode: input first, alphabet immediately below. */
.search-back,
.search-close {
  display: none;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.search-back {
  width: auto;
  min-width: 18px;
  height: auto;
  font-size: 1.04rem;
  line-height: 1.38;
}

.search-close {
  opacity: 0;
  pointer-events: none;
}

body.search-active .header-actions {
  display: none;
}

body.search-active .search-panel {
  display: flex;
  grid-row: 1;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  max-width: none;
  max-height: 80px;
  margin-top: 0;
  padding-bottom: 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.search-active .search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  line-height: 30px;
}

body.search-active .search-back,
body.search-active .search-close {
  display: block;
}

body.search-active.search-has-query .search-close {
  opacity: 1;
  pointer-events: auto;
}

body.search-active .masthead::after {
  display: none;
}

body.search-active .alphabet,
body.search-active.alphabet-open .alphabet {
  display: grid;
  max-height: 110px;
  margin-top: 18px;
  padding-bottom: 22px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom-color: var(--line);
}

body:not(.search-active) .alphabet {
  display: none;
}

body.search-active .more-menu {
  display: none;
}

/* More expands into the header rather than opening a separate floating surface. */
.more-menu {
  position: static;
  display: flex;
  min-width: 0;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.more-menu[hidden] {
  display: none;
}

.menu-item {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.menu-item:active {
  background: transparent;
  color: var(--muted);
}

.info-button {
  display: none !important;
}

.header-actions > button + button::before {
  content: none !important;
}

.header-actions > .nearby-button::after,
.header-actions > .search-button::after {
  content: "/" !important;
  display: inline-block;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-left: 16px;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted);
  font-weight: 400;
  transform: none !important;
}

@media (max-width: 360px) {
  .header-actions > .nearby-button::after,
  .header-actions > .search-button::after {
    margin-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .masthead,
  .alphabet,
  .search-panel {
    transition: none;
  }

  .business-details:not([hidden]),
  .location-details:not([hidden]) {
    animation: none;
  }
}

/* Wide screens present the mobile directory as a soft app card. */
@media (min-width: 900px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    display: grid;
    place-items: center;
    height: 100vh;
    overflow: hidden;
    background: var(--paper);
    animation: none;
  }

  .page {
    position: relative;
    z-index: 1;
    display: block;
    width: min(408px, calc(100vw - 48px));
    height: min(862px, calc(100vh - 48px));
    min-height: 0;
    margin: 0;
    padding: 0 30px max(40px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(17, 16, 14, 0.055);
    border-radius: 34px;
    background: var(--paper);
    box-shadow:
      0 28px 80px rgba(17, 16, 14, 0.1),
      0 8px 24px rgba(17, 16, 14, 0.045);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .page::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body.masthead-hidden .masthead {
    opacity: 0;
    transform: translate3d(0, calc(-100% - 10px), 0);
  }

  .masthead {
    position: sticky;
    top: 0;
    z-index: 10;
    display: block;
    margin-inline: -30px;
    padding: 52px 30px 0;
    border: 0;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .site-header {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 0;
    padding: 10px 0 0;
    border: 0;
    background: transparent;
  }

  h1 {
    min-width: 0;
    font-size: 1.56rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .header-actions {
    gap: 0;
  }

  .info-button,
  .nearby-button,
  .search-button {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .alphabet {
    position: static;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 13px 12px;
    margin-top: 26px;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  body.search-active .alphabet,
  body.nearby-active .alphabet {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.search-active .search-panel {
    max-width: none;
  }

  .info-panel {
    min-height: 0;
    overflow: visible;
    padding: 24px 0 0;
  }

  .directory {
    min-height: 0;
    overflow: visible;
    padding: 22px 0 40px;
    border-right: 0;
  }

  .desktop-details {
    display: none;
  }

  .directory .business-details[hidden] {
    display: none;
  }

  .directory .business-details:not([hidden]) {
    display: block;
  }

  .directory .disclosure-arrow {
    display: inline-block;
  }

  .letter-group {
    scroll-margin-top: 160px;
  }
}

/* Final text-navigation overrides for the phone layout and wide-screen preview. */
.site-header {
  grid-template-columns: 1fr;
  gap: 13px;
  padding-top: 10px;
}

.header-actions {
  justify-content: flex-start;
  gap: 16px;
}

.nearby-button,
.search-button,
.more-button {
  position: static;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
}

.nearby-button::before,
.nearby-button::after,
.nearby-button span::before,
.nearby-button span::after,
.search-button::before,
.search-button::after {
  content: none;
}

.nearby-button[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.nearby-button:active,
.search-button:active,
.more-button:active {
  background: transparent;
  color: var(--muted);
}

.search-panel {
  grid-column: 1;
  grid-row: 2;
}

.browse-letters {
  display: block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

body:not(.alphabet-open) .alphabet {
  display: none;
}

body.alphabet-open .alphabet,
body.alphabet-open.search-active .alphabet {
  display: grid;
  max-height: 110px;
  margin-top: 18px;
  padding-bottom: 22px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom-color: var(--line);
}

.more-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 30px;
  z-index: 30;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(17, 16, 14, 0.1);
}

.menu-item {
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.menu-item:active {
  background: var(--tap);
}

@media (max-width: 360px) {
  .header-actions {
    gap: 12px;
  }

  .nearby-button,
  .search-button,
  .more-button {
    font-size: 0.86rem;
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 10px 0 0;
  }

  h1 {
    font-size: 1.56rem;
  }

  .header-actions {
    gap: 16px;
  }

  .nearby-button,
  .search-button,
  .more-button {
    flex-basis: auto;
    width: auto;
    height: auto;
    font-size: 0.86rem;
  }

  .more-menu {
    right: 0;
  }
}

/* Floating utility experiment: the directory opens directly into the list. */
.masthead {
  display: none;
}

body.search-active .masthead {
  display: block;
}

.directory {
  padding-top: max(28px, env(safe-area-inset-top));
}

body.search-active .directory {
  padding-top: 22px;
  padding-bottom: max(180px, calc(env(safe-area-inset-bottom) + 158px));
}

body:not(.search-active):not(.info-active) .masthead::after {
  content: none;
}

.floating-tools {
  position: fixed;
  right: 22px;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.floating-action {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(17, 16, 14, 0.16);
  cursor: pointer;
}

.floating-action::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.floating-action::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 31px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.tools-active .floating-action::before,
body.tools-active .floating-action::after {
  content: none;
}

body.tools-active .floating-action span::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
}

.floating-menu {
  display: grid;
  gap: 0;
  min-width: 176px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(17, 16, 14, 0.16);
}

.floating-menu[hidden] {
  display: none;
}

.floating-menu .nearby-button,
.floating-menu .search-button,
.floating-menu .menu-item {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.floating-menu .nearby-button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.floating-menu .nearby-button::before,
.floating-menu .nearby-button::after,
.floating-menu .nearby-button span::before,
.floating-menu .nearby-button span::after,
.floating-menu .search-button::before,
.floating-menu .search-button::after {
  content: none !important;
}

body.search-active .floating-tools {
  display: none;
}

@media (min-width: 900px) {
  .directory {
    padding-top: 76px;
  }

  body.search-active .directory {
    padding-top: 22px;
  }

  .floating-tools {
    right: calc((100vw - min(408px, calc(100vw - 48px))) / 2 + 26px);
    bottom: calc((100vh - min(862px, calc(100vh - 48px))) / 2 + 26px);
  }
}

/* Menu-first homepage experiment. */
body.home-active .page {
  padding-bottom: 0;
  background-color: var(--paper);
}

body.home-active .directory,
body.home-active .desktop-details {
  display: none;
}

.home-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(48px, env(safe-area-inset-top)) 0
    max(54px, calc(env(safe-area-inset-bottom) + 38px));
}

.home-brand {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  left: 0;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.2;
}

.home-menu {
  display: grid;
  justify-self: center;
  width: min(100%, 352px);
  gap: 17px;
}

.home-action {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(2.12rem, 10vw, 3.05rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.home-action-label {
  position: relative;
  display: inline-block;
}

.home-action-label::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.home-action-arrow {
  display: inline-block;
  margin-left: 0.1em;
  font-weight: 400;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.nav-effect-label {
  position: relative;
  display: inline-block;
}

.nav-effect-label::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.nav-effect-arrow {
  display: inline-block;
  margin-left: 0.2em;
  font-weight: 400;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.nav-effect-link:not(:disabled):not([aria-expanded="true"]):active .nav-effect-label::after,
.nav-effect-link:not(:disabled):not([aria-expanded="true"]):focus-visible .nav-effect-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-effect-link:not(:disabled):not([aria-expanded="true"]):active .nav-effect-arrow,
.nav-effect-link:not(:disabled):not([aria-expanded="true"]):focus-visible .nav-effect-arrow {
  transform: rotate(-45deg);
}

.home-action:focus-visible {
  outline: 0;
}

.home-action:active {
  color: var(--muted);
}

.home-action:active .home-action-label::after,
.home-action:focus-visible .home-action-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.home-action:active .home-action-arrow,
.home-action:focus-visible .home-action-arrow {
  transform: rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .nav-effect-link:not(:disabled):not([aria-expanded="true"]):hover .nav-effect-label::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .nav-effect-link:not(:disabled):not([aria-expanded="true"]):hover .nav-effect-arrow {
    transform: rotate(-45deg);
  }

  .home-action:hover .home-action-label::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .home-action:hover .home-action-arrow {
    transform: rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-effect-label::after,
  .nav-effect-arrow,
  .home-action-label::after,
  .home-action-arrow {
    transition: none;
  }

  .home-action:active .home-action-arrow,
  .home-action:focus-visible .home-action-arrow,
  .home-action:hover .home-action-arrow,
  .nav-effect-link:active .nav-effect-arrow,
  .nav-effect-link:focus-visible .nav-effect-arrow,
  .nav-effect-link:hover .nav-effect-arrow {
    transform: none;
  }
}

.home-crowd {
  position: absolute;
  bottom: 0;
  left: -30px;
  width: calc(100% + 60px);
  height: 28%;
  max-height: 300px;
  pointer-events: none;
}

.home-return {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.04rem;
  line-height: 1.38;
  text-align: left;
  cursor: pointer;
}

.home-return:active,
.home-return:focus-visible {
  color: var(--muted);
  outline: 0;
}

.scroll-top-button {
  position: fixed;
  right: max(22px, calc((100vw - min(100vw, 460px)) / 2 + 22px));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 1.16rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(17, 16, 14, 0.08);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.scroll-top-button[hidden] {
  display: none;
}

.scroll-top-button:active,
.scroll-top-button:focus-visible {
  color: var(--muted);
  outline: 0;
}

.floating-tools {
  display: none;
}

@media (max-width: 360px) {
  .home-menu {
    gap: 15px;
  }

  .home-action {
    font-size: clamp(1.92rem, 9.5vw, 2.52rem);
  }

  .home-crowd {
    left: -24px;
    width: calc(100% + 48px);
  }
}

@media (min-width: 900px) {
  .scroll-top-button {
    display: none;
  }

  body.home-active .page {
    padding-bottom: 0;
  }

  .home-panel {
    min-height: 100%;
  }
}

/* Final view-state rules for the menu-first homepage. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body:not(.home-active) .home-panel {
  display: none;
}

body.home-active .info-panel,
body.home-active .map-panel,
body.home-active .business-page-panel,
body.home-active .directory,
body.home-active .desktop-details,
body.home-active .masthead {
  display: none;
}

body.search-active .masthead {
  display: block;
}

body.search-active .directory {
  display: block;
}

body.search-active:not(.nearby-view) .alphabet,
body.search-active.alphabet-open:not(.nearby-view) .alphabet {
  display: grid;
  max-height: 160px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

body.nearby-view .search-panel {
  display: flex;
  max-height: 88px;
  padding-bottom: 22px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  border-bottom: 1px solid var(--line);
}

body.nearby-view .alphabet {
  display: none !important;
}

body.nearby-view .search-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

body.nearby-view.search-has-query .search-close {
  display: block;
  font-size: 1.45rem;
}

body.nearby-view .directory {
  padding-top: 22px;
}

body.map-active .masthead {
  display: block;
}

body.map-active .search-panel {
  display: flex;
  max-height: 88px;
  padding-bottom: 22px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  border-bottom-color: transparent;
}

body.map-active .alphabet {
  display: none !important;
}

body.map-active .search-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

body.map-active.search-has-query .search-close {
  display: block;
  font-size: 1.45rem;
}

body.info-active .home-panel,
body.info-active .map-panel,
body.info-active .map-detail-panel,
body.info-active .business-page-panel,
body.info-active .directory,
body.info-active .desktop-details,
body.info-active .masthead {
  display: none;
}

body.info-active .info-panel {
  display: block;
}

body.map-active .home-panel,
body.map-active .info-panel,
body.map-active .map-detail-panel,
body.map-active .business-page-panel,
body.map-active .directory,
body.map-active .desktop-details {
  display: none;
}

body.map-active .map-panel {
  display: block;
  padding-top: 12px;
}

body.map-active.map-detail-active .masthead,
body.map-active.map-detail-active .map-panel {
  display: none;
}

body.map-active.map-detail-active .map-detail-panel {
  display: block;
}

.home-action::before,
.home-action::after {
  content: none !important;
}

/* Map view: optional, separate from the primary search-first directory flow. */
body.map-active .home-panel,
body.map-active .info-panel,
body.map-active .map-detail-panel,
body.map-active .business-page-panel,
body.map-active .directory,
body.map-active .desktop-details,
body.map-active .floating-tools {
  display: none !important;
}

body.map-active .map-panel {
  display: block;
}

body.map-active.map-detail-active .map-panel,
body.map-active.map-detail-active .masthead {
  display: none !important;
}

body.map-active.map-detail-active .map-detail-panel {
  display: block !important;
}

body.route-active .home-panel,
body.route-active .masthead,
body.route-active .info-panel,
body.route-active .map-panel,
body.route-active .directory,
body.route-active .desktop-details,
body.route-active .floating-tools {
  display: none !important;
}

body.route-active .map-detail-panel {
  display: block !important;
}

body.route-active .page {
  display: block;
  height: auto;
  min-height: 100vh;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  overflow: visible;
}

body.map-active.map-detail-active .page {
  display: block;
  height: auto;
  min-height: 100vh;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  overflow: visible;
}

.map-panel[hidden] {
  display: none !important;
}

.map-detail-panel[hidden] {
  display: none !important;
}

.business-page-panel[hidden] {
  display: none !important;
}

.map-detail-panel {
  padding-top: 26px;
}

.business-page-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: min(100%, 460px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding-inline: 30px;
  padding-top: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
}

.info-panel {
  padding-top: 28px;
}

body.business-page-active .info-panel,
body.business-page-active .map-panel,
body.business-page-active .map-detail-panel,
body.business-page-active .desktop-details,
body.business-page-active .floating-tools {
  display: none !important;
}

body.business-page-active .business-page-panel {
  display: block !important;
}

body.business-page-active .page {
  display: block;
}

.map-detail-content {
  list-style: none;
}

.map-detail-content .disclosure-arrow {
  display: none;
}

.map-detail-content .business-link {
  pointer-events: none;
}

.map-detail-content .business-details::after {
  content: none;
}

@media (min-width: 900px) {
  .map-panel {
    min-height: 0;
    overflow: visible;
    padding: 24px 0 40px;
  }

  .map-canvas {
    height: min(62vh, 620px);
    min-height: 500px;
  }
}

/* Full-screen map mode: keep search on top, let the map become the surface. */
body.map-active .page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: 0;
  overflow: hidden;
}

body.map-active .map-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: -30px;
  padding: 8px 0 0;
}

body.map-active .map-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

@media (min-width: 900px) {
  body.map-active .page {
    height: min(862px, calc(100vh - 48px));
    min-height: 0;
  }

  body.map-active .map-panel {
    padding-top: 8px;
  }

  body.map-active .map-canvas {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  body.route-active .page {
    height: min(862px, calc(100vh - 48px));
    min-height: 0;
    padding: 0 30px max(40px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 900px) {
  body.business-page-active .business-page-panel {
    position: fixed;
    inset: auto;
    top: calc((100vh - min(862px, calc(100vh - 48px))) / 2);
    right: 0;
    left: 0;
    width: min(408px, calc(100vw - 48px));
    height: min(862px, calc(100vh - 48px));
    max-height: min(862px, calc(100vh - 48px));
    margin: 0 auto;
    padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 84px));
    border: 1px solid rgba(17, 16, 14, 0.055);
    border-radius: 34px;
    box-shadow:
      0 28px 80px rgba(17, 16, 14, 0.1),
      0 8px 24px rgba(17, 16, 14, 0.045);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  body.business-page-active .business-page-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

@media (max-width: 899px) {
  body.masthead-hidden .masthead,
  body.masthead-hidden .masthead * {
    pointer-events: none !important;
  }
}

/* View-specific mobile sizing must never expand the desktop frame. */
@media (min-width: 900px) {
  body .page,
  body.home-active .page,
  body.search-active .page,
  body.nearby-active .page,
  body.info-active .page,
  body.route-active .page,
  body.map-active .page,
  body.map-active.map-detail-active .page,
  body.business-page-active .page {
    width: min(408px, calc(100vw - 48px));
    min-width: 0;
    max-width: min(408px, calc(100vw - 48px));
    height: min(862px, calc(100vh - 48px));
    min-height: 0;
    max-height: min(862px, calc(100vh - 48px));
  }

  body.map-active.map-detail-active .page {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Readability pass: lift content text while keeping the header and alphabet compact. */
.no-results {
  font-size: 1.06rem;
}

.business-link {
  font-size: 1.19rem;
  line-height: 1.44;
}

.business-details {
  margin-top: 4px;
  padding-top: 0;
}

.detail-row,
.business-page-link,
.info-links a,
.info-links button,
.info-guide h3,
.info-guide p,
.app-save-guide li,
.app-save-guide p {
  font-size: 1.1rem;
}

.detail-row.is-address {
  line-height: 1.3;
}

.info-description,
.business-page-intro {
  font-size: 1.1rem;
}

.info-index-links button,
.menu-page-category-button,
.menu-page-category-static,
.menu-page-subheading,
.menu-page-item-name,
.menu-page-item-price {
  font-size: 1.19rem;
}

.business-page-type,
.menu-page-type,
.business-page-section h3,
.business-page-section-price,
.business-page-section p,
.business-page-section li {
  font-size: 1.1rem;
}

.menu-categories-button,
.schedule-button,
.payment-methods-button,
.menu-category-link,
.location-button,
.location-details .detail-row,
.schedule-panel,
.payment-methods-panel {
  font-size: 1.08rem;
}

.locations-count {
  font-size: 1.1rem;
}

.menu-page-note-row,
.menu-page-item-description,
.menu-page-item-options {
  font-size: 1.09rem;
}

.menu-page-notes {
  font-size: 1.04rem;
}

@media (max-width: 360px) {
  .business-link {
    font-size: 1.12rem;
  }
}
.profile-icons .detail-row.is-address {
  margin-bottom: 3px;
}

.profile-icons a.has-leading-icon,
.profile-icons button.has-leading-icon {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.profile-icons [data-detail-key] a::after,
.profile-icons .business-page-link::after,
.profile-icons .schedule-button::after,
.profile-icons .payment-methods-button::after,
.profile-icons .menu-categories-button::after {
  content: none;
}

.profile-icons .schedule-button[aria-expanded="true"]::after,
.profile-icons .payment-methods-button[aria-expanded="true"]::after,
.profile-icons .menu-categories-button[aria-expanded="true"]::after {
  content: none;
}

.profile-icons [data-detail-key="telefono"] a::after,
.profile-icons [data-detail-key="whatsapp"] a::after {
  display: inline-block;
  content: "→";
  margin-left: -3px;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.62, 0.05, 0.01, 0.99);
}

.profile-icons [data-detail-key="telefono"] a:active::after,
.profile-icons [data-detail-key="telefono"] a:focus-visible::after,
.profile-icons [data-detail-key="whatsapp"] a:active::after,
.profile-icons [data-detail-key="whatsapp"] a:focus-visible::after {
  transform: rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .profile-icons [data-detail-key="telefono"] a:hover::after,
  .profile-icons [data-detail-key="whatsapp"] a:hover::after {
    transform: rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-icons [data-detail-key="telefono"] a::after,
  .profile-icons [data-detail-key="whatsapp"] a::after {
    transition: none;
  }
}

.profile-icons [data-detail-key="whatsapp"] {
  font-weight: 500;
}

.detail-leading-icon {
  grid-column: 1;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.desktop-companion {
  display: none;
}

@media (min-width: 1200px) and (min-height: 560px) {
  .desktop-companion {
    display: block;
    position: fixed;
    left: calc(50% + 268px);
    top: 50%;
    transform: translateY(-50%);
    width: 264px;
    color: var(--ink, #11100e);
  }

  .desktop-companion h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .desktop-qr {
    display: block;
    width: 144px;
    height: 144px;
    margin: 0 0 20px;
  }

  .desktop-companion p {
    margin: 0 0 16px;
    color: #666;
    font-size: 16px;
    line-height: 1.55;
  }

  .desktop-companion button {
    border: 0;
    padding: 6px 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .desktop-companion button:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .desktop-companion button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }

  .desktop-companion nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    font-size: 14px;
    color: #666;
  }
}
.photo-stack-preview {
  display: block;
  width: min(100%, 264px);
  margin: 34px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.photo-stack-images {
  position: relative;
  display: block;
  width: 86%;
  aspect-ratio: 1;
  margin: 0 0 18px;
  perspective: 1000px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.photo-stack-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
  border: 1px solid #0000000d;
  border-radius: 8px;
  box-shadow: 0 5px 14px #00000020;
  transform-origin: 85% 85%;
  transform: rotate(calc(var(--photo-index) * 6deg)) scale(calc(1 - var(--photo-index) * .035));
  z-index: calc(100 - var(--photo-index));
  pointer-events: none;
  transition: transform 280ms cubic-bezier(.2,.9,.3,1.12), box-shadow 280ms ease, opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .photo-stack-preview:hover .photo-stack-images:not(.is-dragging) img {
    transform: translateX(calc(var(--photo-index) * 4px)) rotate(calc(var(--photo-index) * 9deg)) scale(calc(1 - var(--photo-index) * .035));
  }
  .photo-stack-preview:hover .photo-stack-images:not(.is-dragging) img.is-front {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 10px 20px #00000026;
  }
}
.photo-stack-preview:active .photo-stack-images:not(.is-dragging) img.is-front {
  transform: translateY(2px) scale(.99);
  box-shadow: 0 3px 8px #00000020;
}
@keyframes gallery-fan-reveal {
  0%, 100% { transform: rotate(calc(var(--photo-index) * 6deg)) scale(calc(1 - var(--photo-index) * .035)); }
  45%, 60% { transform: translateX(calc(var(--photo-index) * 4px)) rotate(calc(var(--photo-index) * 9deg)) scale(calc(1 - var(--photo-index) * .035)); }
}
@keyframes gallery-front-reveal {
  0%, 100% { transform: none; }
  45%, 60% { transform: translateY(-5px) rotate(-2deg); }
}
.photo-stack-images.is-introducing img {
  animation: gallery-fan-reveal 850ms ease-in-out;
}
.photo-stack-images.is-introducing img.is-front {
  animation-name: gallery-front-reveal;
}
.photo-stack-images.is-dragging { cursor: grabbing; }
.photo-stack-images img.photo-stack-logo {
  object-fit: contain;
  background: var(--photo-placeholder, #fff);
  border: 0;
}
.photo-stack-images.is-dragging img { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .photo-stack-images img { transition: none; animation: none; }
}
.photo-stack-preview:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
