:root {
  --bg: #1a1b1d;
  --panel: #222428;
  --panel-2: #292c31;
  --ink: #eef0f2;
  --muted: #9aa0a8;
  --line: rgba(238, 240, 242, 0.12);
  --accent: #d4a24c;
  --accent-2: #3d8f6e;
  --amex-blue: #006fcf;
  --danger: #d9785c;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);
  --font: "Noto Sans TC", sans-serif;
  --display: "Fraunces", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(0, 111, 207, 0.12), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(212, 162, 76, 0.1), transparent 50%),
    linear-gradient(160deg, #161719, #202226 45%, #1a1b1d);
}

.app {
  --panel-width: 362px;
  position: relative;
  height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.panel {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  bottom: 0.5rem;
  width: var(--panel-width);
  z-index: 650;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.1rem 0.7rem;
  background: transparent;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--glass-shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(14, 16, 20, 0.78);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  margin: 0;
  color: #006fcf;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.brand h1 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font);
  font-size: 1.36rem;
  line-height: 1.15;
  font-weight: 400;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.basemap-control a.basemap-control__btn,
.locate-control a.locate-control__btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  line-height: 1;
  color: #333;
  background: #fff;
}

.basemap-control a.basemap-control__btn:hover,
.locate-control a.locate-control__btn:hover {
  background: #f4f4f4;
  color: #1a73e8;
}

.filters {
  display: grid;
  gap: 0.85rem;
}

.filter-main {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-width: 0;
}

.filter-row > * {
  min-width: 0;
  width: 100%;
}

.filter-row--offer {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.85rem;
}

.filter-row--offer .chip-group {
  width: auto;
  flex-wrap: wrap;
}

.filter-row--offer select {
  width: 100%;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  appearance: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 1.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover:not(:disabled) {
  background: color-mix(in srgb, var(--amex-blue) 22%, rgba(255, 255, 255, 0.1));
  border-color: color-mix(in srgb, var(--amex-blue) 55%, var(--line));
}

.chip.is-active {
  background: color-mix(in srgb, var(--amex-blue) 34%, rgba(255, 255, 255, 0.1));
  border-color: color-mix(in srgb, var(--amex-blue) 75%, var(--line));
  color: #f0f4f8;
}

.chip.is-active:hover:not(:disabled) {
  background: color-mix(in srgb, var(--amex-blue) 42%, rgba(255, 255, 255, 0.1));
}

.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--amex-blue) 70%, white);
  outline-offset: 1px;
}

input, select {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 1.9rem;
}

select {
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

.filters input:focus,
.filters select:focus {
  outline: 2px solid color-mix(in srgb, var(--amex-blue) 70%, white);
  outline-offset: 1px;
}

input:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 1px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: -0.35rem;
}

.count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(154, 160, 168, 0.35);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.2;
}

.btn:hover {
  background: color-mix(in srgb, var(--amex-blue) 22%, rgba(255, 255, 255, 0.1));
  border-color: color-mix(in srgb, var(--amex-blue) 55%, var(--line));
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.table-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: -0.35rem;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

th, td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

td:first-child {
  width: auto;
  overflow-wrap: anywhere;
}

td:last-child {
  width: 5.5em;
  padding-left: 0;
  padding-right: 0.65rem;
  vertical-align: middle;
  text-align: right;
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:hover,
tbody tr.active {
  background: rgba(0, 111, 207, 0.16);
}

td .name {
  font-weight: 400;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

td .addr {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

table .discount-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-align: left;
}

table .discount-chip::before {
  flex: 0 0 auto;
}

table .discount-chip__text {
  min-width: 0;
  flex: 0 1 auto;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-align: left;
}

.load-more-row td {
  padding: 0;
  border-bottom: none;
}

.load-more {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
}

.load-more:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--amex-blue) 16%, transparent);
}

.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.66;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 0.75rem;
}

.footnote__break {
  display: none;
}

.footnote__updated {
  margin-left: auto;
  text-align: right;
}

.footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footnote a:hover {
  color: inherit;
}

.map-pane {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/* 地圖控制項避開左側浮層 */
.leaflet-top.leaflet-left {
  left: calc(var(--panel-width, 362px) + 1.5rem);
}

.detail {
  position: absolute;
  left: calc(var(--panel-width, 362px) + 1.5rem);
  right: 1rem;
  bottom: 1rem;
  max-width: 460px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 500;
}

.detail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  pointer-events: none;
}

.detail > * {
  position: relative;
  z-index: 1;
}

.detail.hidden { display: none; }

.detail h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.25;
  color: #3a3f47;
}

.detail .meta {
  color: #5c636c;
  font-size: 0.86rem;
  margin-bottom: 0.55rem;
}

.detail .discount-chip {
  font-weight: 400;
  color: #5c636c;
}

.detail-phone {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.detail-phone:hover {
  color: #3a3f47;
}

.detail .offer {
  margin: 0.4rem 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--offer-accent, #9aa0a8);
  background: rgba(255, 255, 255, 0.35);
  color: #3a3f47;
  font-size: 0.9rem;
  line-height: 1.45;
}

.colocated {
  margin: 0.65rem 0 0.85rem;
  display: grid;
  gap: 0.35rem;
}
.colocated__title {
  font-size: 0.75rem;
  color: #7a828c;
  font-weight: 700;
}
.colocated__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(90, 98, 108, 0.22);
  background: rgba(255, 255, 255, 0.28);
  color: #3a3f47;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
}
.colocated__item:hover {
  border-color: color-mix(in srgb, var(--amex-blue) 85%, white);
  background: color-mix(in srgb, var(--amex-blue) 16%, white);
}
.colocated__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pin, #8a8a8a);
  flex: 0 0 auto;
}
.colocated__dot--diamond {
  border-radius: 1px;
  transform: rotate(45deg) scale(0.85);
}
.colocated__dot--square,
.colocated__dot--circle,
.colocated__dot--ring {
  border-radius: 2px;
}
.colocated__text {
  min-width: 0;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* 1. 冰透水晶：地圖／關閉 */
.detail-actions a.action-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  color: #64748b;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.detail-actions a.action-btn--google:hover,
.detail-actions a.action-btn--apple:hover {
  background: rgba(255, 255, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.7);
  color: #475569;
}

/* 優惠說明：同冰透結構，字略淺的運通藍，底略實一點 */
.detail-actions a.action-btn--offer {
  color: #006fcf;
  background: rgba(255, 255, 255, 0.34);
}

.detail-actions a.action-btn--offer:hover {
  color: #0057a8;
  background: rgba(255, 255, 255, 0.48);
  border-top-color: rgba(255, 255, 255, 0.7);
}

.detail-actions button {
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: auto;
  color: #64748b;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.detail-actions button:hover {
  background: rgba(255, 255, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.7);
  color: #475569;
}

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

.locate-control a.locate-control__btn.is-locating {
  color: #1a73e8;
  animation: locate-pulse 0.9s ease-in-out infinite;
}

@keyframes locate-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  color: #fff !important;
}

.discount-cluster {
  background: transparent !important;
}
/* 展開 spiderfy 時，函式庫會把中心叢集設成 opacity:0.3 → 全透明且不接收點擊 */
.leaflet-marker-icon.marker-cluster.discount-cluster[style*="opacity: 0.3"],
.leaflet-marker-icon.marker-cluster.discount-cluster[style*="opacity:0.3"] {
  opacity: 0 !important;
  pointer-events: none !important;
}
.leaflet-cluster-spider-leg {
  stroke-opacity: 0 !important;
  opacity: 0 !important;
}
.discount-cluster div {
  width: 36px;
  height: 36px;
  margin-left: 2px;
  margin-top: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.discount-pin {
  background: transparent;
  border: 0;
}
.discount-pin__dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 4px auto 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin, #8a8a8a);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.discount-pin__dot--diamond {
  /* 外形縮至 90%，內部「5」字級維持 10px */
  width: 18px;
  height: 18px;
  margin-top: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
}
.discount-pin__dot--square {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  transform: none;
}
/* 舊資料若仍為 circle／ring，改與方塊同尺寸，避免比 5 折還大 */
.discount-pin__dot--circle,
.discount-pin__dot--ring {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  transform: none;
  background: var(--pin, #8a8a8a);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.discount-pin__label {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.discount-pin__dot--diamond .discount-pin__label {
  transform: rotate(-45deg);
  font-size: 11px;
}
.discount-pin__dot--pin .discount-pin__label {
  transform: rotate(45deg);
}

.discount-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.discount-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pin, #8a8a8a);
  flex: 0 0 auto;
}
.discount-chip--diamond::before {
  border-radius: 2px;
  transform: rotate(45deg);
}
.discount-chip--square::before,
.discount-chip--circle::before,
.discount-chip--ring::before {
  border-radius: 2px;
}
.discount-chip--pin::before {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.legend {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 450;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* 毛玻璃只做在偽元素，避免圖示／文字被 backdrop-filter 一起糊掉 */
.legend::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  pointer-events: none;
}

.legend > * {
  position: relative;
  z-index: 1;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.28rem 0;
  color: #5c636c;
}
.legend__item small {
  color: #9aa0a8;
}
.legend__swatch {
  width: 1em;
  height: 1em;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin, #8a8a8a);
  border: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  top: -2px;
}
.legend__swatch span {
  display: none;
}
.legend__swatch--diamond {
  border-radius: 2px;
  transform: rotate(45deg) scale(0.9);
}
.legend__swatch--square,
.legend__swatch--circle,
.legend__swatch--ring {
  border-radius: 2px;
  transform: none;
  box-shadow: none;
  background: var(--pin, #8a8a8a);
  border: none;
}

@media (max-width: 900px) {
  .app {
    height: 100dvh;
    overflow: hidden;
  }
  .map-pane {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .panel {
    --panel-width: min(100% - 1rem, 375px);
    top: auto;
    left: 0.5rem;
    right: auto;
    bottom: 0.5rem;
    width: var(--panel-width);
    max-width: 375px;
    max-height: none;
    height: auto;
    border-radius: 16px;
    padding: 1rem 0.8rem 0.8rem;
    gap: 0.8rem;
  }
  .panel .filters {
    gap: 0.68rem;
  }
  .panel .filter-main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .panel .filter-main .filter-row {
    display: contents;
  }
  .panel .filter-main input,
  .panel .filter-main select,
  .panel .filters input,
  .panel .filters select {
    font-size: 0.738rem;
    padding: 0.36rem 0.55rem;
    line-height: 1.2;
    min-height: 1.71rem;
  }
  .panel .filters select {
    padding-right: 1.35rem;
  }
  .panel .chip {
    font-size: 0.738rem;
    padding: 0.36rem 0.68rem;
    min-height: 1.71rem;
  }
  .panel .filter-row--offer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
  }
  .panel .filter-row--offer .chip-group {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
  }
  .panel .filter-row--offer select {
    flex: 0 0 calc((100% - 0.8rem) / 3);
    width: calc((100% - 0.8rem) / 3);
    max-width: calc((100% - 0.8rem) / 3);
  }
  .panel .btn {
    font-size: 0.73rem;
    font-weight: 400;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .panel .btn:hover {
    background: transparent;
    border-color: transparent;
  }
  .panel .toolbar {
    margin-top: -0.7rem;
  }
  .panel .table-wrap {
    display: none;
  }
  .panel .footnote {
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    z-index: 2;
    max-width: 48%;
    margin: 0;
    padding: 0;
    text-align: right;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 0.608rem;
    line-height: 1.5;
    color: var(--muted);
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    row-gap: 0;
  }
  .panel .footnote .footnote__updated {
    margin-left: 0;
  }
  .brand {
    padding-right: min(48%, 11rem);
  }
  .brand-kicker {
    font-size: 0.648rem;
  }
  .leaflet-top.leaflet-left {
    left: 0.5rem;
    top: 0.5rem;
  }
  .detail {
    left: 0.5rem;
    right: 0.5rem;
    bottom: auto;
    top: 0.5rem;
    max-width: none;
  }
  .legend {
    top: 0.5rem;
    bottom: auto;
    right: 0.5rem;
    left: auto;
    max-width: 46vw;
    transform: scale(0.8);
    transform-origin: top right;
  }
}
