.coffee-page { margin: 20px 0 56px; color: var(--ink); }
.coffee-title { margin: 0 0 14px; font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.1; letter-spacing: -.035em; }
.coffee-page [hidden] { display: none !important; }
.coffee-drinks { display: grid; grid-template-columns: repeat(4, auto); width: max-content; max-width: 100%; gap: 3px; padding: 3px; margin-bottom: 14px; background: #eef1f8; border-radius: 11px; }
.coffee-drinks a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #35415b; font-size: .86rem; font-weight: 650; }
.coffee-drinks a:hover { background: #edf1fc; }
.coffee-drinks [aria-current="page"] { background: #fff; color: #263f96; box-shadow: 0 1px 3px #24345d24; }
.coffee-filters {
  display: grid; grid-template-columns: minmax(130px, 1fr) repeat(2, minmax(84px, 120px)) auto auto;
  align-items: end; gap: 8px 12px; margin-bottom: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #f7f8fc;
}
.coffee-filters label { display: grid; gap: 5px; color: #455168; font-size: .875rem; font-weight: 650; }
.coffee-filters :is(input, select, button), .coffee-reset, .coffee-mobile-views button {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.coffee-filters :is(input, select) { width: 100%; min-width: 0; font-size: 1rem; }
.coffee-filters .coffee-open-filter { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
.coffee-open-filter input[type="checkbox"] { width: 17px; height: 17px; min-height: auto; padding: 0; margin: 0; accent-color: var(--blue); }
.coffee-hours-note { margin: -7px 0 12px; font-size: .82rem; color: #53617a; }
.coffee-filter-actions { display: flex; align-items: center; gap: 6px; }
.coffee-filters button { cursor: pointer; background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 650; }
.coffee-reset { display: inline-flex; align-items: center; font-size: .875rem; }
.coffee-page :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.coffee-mobile-views { display: none; }
.coffee-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; --coffee-map-height: clamp(430px, 66vh, 690px); }
.coffee-map-frame {
  position: relative; height: var(--coffee-map-height); overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: #eff3f7;
}
#coffee-map { position: absolute; inset: 0; }
#coffee-map-fallback {
  position: absolute; top: 50%; left: 50%; width: max-content; max-width: calc(100% - 36px);
  transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 9px;
  background: #fff; color: #283f9a; text-align: center;
}
.coffee-credit { font-size: .75rem; color: #53617a; margin: 6px 0 0; }
.coffee-credit a { text-decoration: underline; }
.coffee-results {
  display: flex; flex-direction: column; min-width: 0; max-height: var(--coffee-map-height);
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.coffee-results > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 15px; }
.coffee-results h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.08rem; }
.coffee-results > header span { padding: 2px 7px; border-radius: 99px; background: #eef2fc; color: #283f9a; font-size: .78rem; }
.coffee-results > header p { margin: 0; color: #53617a; font-size: .78rem; }
.coffee-list { overflow: auto; min-height: 0; scrollbar-gutter: stable; }
.coffee-card { position: relative; padding: 13px 15px; border-top: 1px solid var(--line); }
.coffee-card-map { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.coffee-page .coffee-card-map:focus-visible { outline-offset: -3px; }
.coffee-card:has(.coffee-card-map:not([hidden])):hover { background: #f8faff; }
.coffee-card:is(.is-selected, :target) { background: #f1f5ff; box-shadow: inset 3px 0 var(--blue); }
.coffee-card a { position: relative; z-index: 1; }
.coffee-identity { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.coffee-place { min-width: 0; }
.coffee-logo { flex: none; width: 48px; height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; object-fit: contain; }
.coffee-logo-dark { background: #293348; }
.coffee-card-details h3 { margin: 0; font: 700 1rem/1.3 system-ui, sans-serif; }
.coffee-address { margin: 3px 0 0; color: #53617a; font: 400 .85rem/1.4 system-ui, sans-serif; }
.coffee-prices { margin: 0 0 7px; }
.coffee-menu-label { margin: 0 0 4px; color: #53617a; font-size: .75rem; }
.coffee-prices > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 7px 9px; border-radius: 8px; font: 650 .85rem/1.3 system-ui, sans-serif; }
.coffee-prices dd { margin: 0; }
.coffee-prices dd:not(.coffee-source) { font-size: .94rem; font-variant-numeric: tabular-nums; }
.coffee-prices .coffee-price-selected { background: #eef2fc; }
.coffee-prices .coffee-source { grid-column: 1 / -1; }
.coffee-source a, .coffee-empty a { color: #283f9a; text-decoration: underline; text-underline-offset: 2px; }
.coffee-company { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 9px; border-radius: 7px; background: #eef2fc; color: #283f9a; font: 650 .8rem/1.4 system-ui, sans-serif; }
.coffee-company:hover { background: #e0e8fc; }
.coffee-hours { display: inline-block; margin-top: 3px; color: #53617a; font: 600 .74rem/1.35 system-ui, sans-serif; }
.coffee-hours:hover { text-decoration: underline; }
.coffee-hours.is-open { color: #166947; }
.coffee-pin {
  white-space: nowrap; padding: 0 8px; min-height: 33px; border: 2px solid #fff; border-radius: 999px;
  background: #2449ed; color: #fff; font: 700 .79rem system-ui, sans-serif; box-shadow: 0 2px 7px #23305755; cursor: pointer;
}
.coffee-pin:hover, .coffee-pin[aria-pressed="true"] { background: #132c91; z-index: 1; }
#coffee-map .maplibregl-popup { z-index: 2; }
#coffee-map .maplibregl-popup-content { border-radius: 11px; padding: 13px 14px; }
#coffee-map .coffee-card-details { max-height: min(310px, 42svh); overflow: auto; }
#coffee-map .maplibregl-popup-content h3 { padding-right: 20px; }
#coffee-map .maplibregl-popup-close-button { width: 28px; height: 28px; color: #283f9a; font-size: 1.25rem; }
.coffee-empty { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 900px) {
  .coffee-filters { grid-template-columns: minmax(130px, 1fr) repeat(2, minmax(84px, 120px)); }
}
@media (max-width: 760px) {
  .coffee-page { margin-top: 12px; }
  .coffee-drinks { width: 100%; margin-bottom: 10px; }
  .coffee-drinks a { padding: 0 2px; text-align: center; font-size: clamp(.75rem, 3.3vw, .86rem); }
  .coffee-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 8px; padding: 9px; }
  .coffee-search { grid-column: span 2; }
  .coffee-filters .coffee-open-filter { font-size: .8rem; }
  .coffee-filter-actions { flex-wrap: wrap; justify-content: flex-end; }
  .coffee-filters button, .coffee-reset { padding: 0 9px; font-size: .8rem; }
  .coffee-mobile-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; padding: 3px; border-radius: 11px; background: #eef1f8; }
  .coffee-mobile-views button { cursor: pointer; background: none; border: 0; border-radius: 8px; color: #35415b; font-weight: 650; }
  .coffee-mobile-views button[aria-pressed="true"] { background: #fff; color: #283f9a; box-shadow: 0 1px 3px #24345d24; }
  .coffee-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; --coffee-map-height: clamp(350px, 65svh, 550px); }
  .coffee-layout[data-view="list"] .coffee-map-panel,
  .coffee-layout[data-view="map"] .coffee-results { display: none; }
  .coffee-results { max-height: none; order: -1; }
  .coffee-list { overflow: visible; scrollbar-gutter: auto; }
  .coffee-card { scroll-margin-top: 8px; }
  .coffee-company { min-height: 44px; }
}

.coffee-prices .coffee-source {
  display: flex; flex-wrap: wrap; gap: 4px 12px; color: #53617a; font-size: .75rem; font-weight: 400;
}
