:root {
  color-scheme: light;
  --panel-bg: rgba(249, 252, 250, 0.94);
  --panel-border: rgba(15, 50, 38, 0.22);
  --text: #10251d;
  --muted: #52645d;
  --accent: #0b6b4b;
  --accent-strong: #084c37;
  --focus: #ffcb47;
  --danger: #9c2525;
  --shadow: 0 8px 28px rgba(0, 20, 14, 0.28);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #17251f;
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1c2c25;
}

.topbar {
  position: absolute;
  z-index: 800;
  top: calc(10px + var(--safe-top));
  left: calc(10px + var(--safe-left));
  right: calc(10px + var(--safe-right));
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
}

.control-button:hover {
  background: #ffffff;
}

.control-button:active {
  transform: translateY(1px);
}

.control-button svg {
  width: 23px;
  height: 23px;
  flex: none;
}

.control-button--primary {
  gap: 8px;
  background: rgba(8, 76, 55, 0.96);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.control-button--primary:hover {
  background: #063f2d;
}

.control-button--flowering {
  gap: 8px;
  border-color: rgba(88, 124, 68, 0.62);
  background: #dce9ca;
  color: #713313;
}

.control-button--flowering:hover,
.control-button--flowering.control-button--active {
  border-color: #c54f17;
  background: #a63f12;
  color: #fff;
}

.flowering-button__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.flowering-button__image {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 10px;
  background: #c9dcae;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(37, 75, 47, 0.32));
}

.control-button--tree-info {
  gap: 8px;
  border-color: rgba(24, 91, 119, 0.38);
  background: rgba(239, 249, 252, 0.97);
  color: #174d63;
}

.control-button--tree-info:hover,
.control-button--tree-info.control-button--active {
  border-color: #176c8d;
  background: #155f7c;
  color: #fff;
}

.control-button--audio-guide {
  gap: 7px;
  border-color: rgba(72, 81, 139, 0.4);
  background: rgba(246, 247, 255, 0.97);
  color: #39427a;
}

.control-button--audio-guide:hover,
.control-button--audio-guide.control-button--active {
  border-color: #246a52;
  background: #175f49;
  color: #fff;
}

.audio-guide-state {
  min-width: 28px;
  padding: 3px 5px;
  border-radius: 6px;
  background: #39427a;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
  text-align: center;
}

.control-button--audio-guide.control-button--active .audio-guide-state {
  background: #fff;
  color: #175f49;
}

.control-button--commentary {
  border-color: rgba(44, 91, 76, 0.28);
  background: #edf5f1;
  color: #245d4a;
}

.control-button__text {
  font-weight: 750;
  white-space: nowrap;
}

.status-panel {
  min-width: 0;
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  line-height: 1.25;
  text-align: right;
  backdrop-filter: blur(10px);
}

.status-panel strong,
.status-panel span {
  display: block;
  white-space: nowrap;
}

.status-panel strong {
  font-size: 0.84rem;
}

.status-panel span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.map-actions {
  position: absolute;
  z-index: 750;
  right: calc(10px + var(--safe-right));
  bottom: calc(96px + var(--safe-bottom));
  display: grid;
  gap: 9px;
}

.map-actions .control-button {
  width: 48px;
  padding: 0;
}


.app-shell.card-open .map-actions {
  bottom: calc(425px + var(--safe-bottom));
}

.app-shell.card-open .tile-notice {
  bottom: calc(390px + var(--safe-bottom));
}

.search-panel {
  position: absolute;
  z-index: 1100;
  top: calc(10px + var(--safe-top));
  left: calc(10px + var(--safe-left));
  width: min(430px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));
  max-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(250, 253, 251, 0.98);
  box-shadow: 0 16px 46px rgba(0, 24, 16, 0.38);
  backdrop-filter: blur(16px);
}

.flowering-panel {
  position: absolute;
  z-index: 1080;
  top: calc(70px + var(--safe-top));
  left: calc(10px + var(--safe-left));
  width: min(520px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));
  max-height: calc(100dvh - 90px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  border: 1px solid rgba(96, 48, 20, 0.28);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 16px 46px rgba(37, 19, 8, 0.38);
  backdrop-filter: blur(16px);
}

.tree-info-panel {
  position: absolute;
  z-index: 1080;
  top: calc(70px + var(--safe-top));
  left: calc(10px + var(--safe-left));
  display: flex;
  width: min(520px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));
  max-height: calc(100dvh - 90px - var(--safe-top) - var(--safe-bottom));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(23, 78, 101, 0.3);
  border-radius: 18px;
  background: rgba(245, 251, 253, 0.98);
  box-shadow: 0 16px 46px rgba(8, 38, 51, 0.38);
}

.tree-info-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px 8px 18px;
}

.tree-info-panel__header h1 {
  margin: 0;
  color: #123f52;
  font-size: 1.08rem;
}

.tree-info-panel__header p {
  margin: 4px 0 0;
  color: #56727e;
  font-size: 0.78rem;
}

.tree-info-panel__header .icon-button {
  flex: none;
  color: #123f52;
  font-size: 1.75rem;
  line-height: 1;
}

.tree-info-panel__search {
  padding: 5px 16px 10px;
}

.tree-info-panel__search input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #9db9c4;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.tree-info-panel__search input:focus {
  border-color: #176c8d;
  outline: 3px solid rgba(23, 108, 141, 0.2);
}

.tree-species-list {
  min-height: 120px;
  padding: 0 16px 8px;
  overflow-y: auto;
}

.tree-species-group + .tree-species-group {
  margin-top: 12px;
}

.tree-species-group h2 {
  position: sticky;
  z-index: 1;
  top: 0;
  margin: 0 0 6px;
  padding: 5px 2px;
  background: rgba(245, 251, 253, 0.96);
  color: #176c8d;
  font-size: 0.75rem;
}

.tree-species-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tree-species {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid #c4d7df;
  border-radius: 11px;
  background: #fff;
  color: #153b4b;
  cursor: pointer;
  text-align: left;
}

.tree-species:hover,
.tree-species:focus-visible {
  border-color: #2983a5;
  background: #eaf7fb;
}

.tree-species[aria-pressed="true"] {
  border-color: #155f7c;
  background: #155f7c;
  color: #fff;
}

.tree-species strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-species em {
  grid-column: 1;
  overflow: hidden;
  color: #5c7782;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-species[aria-pressed="true"] em {
  color: #d8edf5;
}

.tree-species small {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #56727e;
  font-variant-numeric: tabular-nums;
}

.tree-species[aria-pressed="true"] small {
  color: #fff;
}

.tree-species-list__empty {
  margin: 24px 0;
  color: #56727e;
  text-align: center;
}

.tree-info-panel__help {
  margin: 0;
  padding: 7px 18px 14px;
  color: #56727e;
  font-size: 0.72rem;
  line-height: 1.45;
}

.flowering-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px 8px 18px;
}

.flowering-panel__header h1 {
  margin: 0;
  color: #5e2b13;
  font-size: 1.08rem;
}

.flowering-panel__header p {
  margin: 4px 0 0;
  color: #796354;
  font-size: 0.78rem;
}

.flowering-panel__header .icon-button {
  flex: none;
  font-size: 1.75rem;
  line-height: 1;
}

.flowering-panel__controls {
  display: flex;
  gap: 8px;
  padding: 5px 16px 12px;
}

.flowering-months {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.month-filter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid #d9d2c9;
  border-radius: 10px;
  background: #fff;
  color: #35291f;
  cursor: pointer;
  text-align: left;
}

.month-filter:hover {
  border-color: #a98b76;
  background: #fff8ef;
}

.month-filter[aria-pressed="false"] {
  opacity: 0.48;
  filter: grayscale(0.75);
}

.month-filter__dot {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--month-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.month-filter > span:not(.month-filter__dot) {
  font-size: 0.75rem;
  font-weight: 760;
}

.month-filter small {
  grid-column: 2;
  color: #75675d;
  font-size: 0.66rem;
}

.month-filter--all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  font-size: 0.78rem;
  font-weight: 780;
  text-align: center;
}

.flowering-panel__help {
  margin: 0;
  padding: 0 18px 14px;
  color: #75675d;
  font-size: 0.72rem;
  line-height: 1.45;
}

.flowering-confirm {
  width: calc(100% - 32px);
  min-height: 44px;
  margin: 0 16px 16px;
  border: 0;
  border-radius: 12px;
  background: #a94708;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  cursor: pointer;
}

.search-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px 18px;
}

.search-panel__header h1 {
  margin: 0;
  font-size: 1.1rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(10, 78, 56, 0.1);
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.search-field {
  position: relative;
  margin: 0 14px;
}

.search-field input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 15px;
  border: 2px solid #7a9188;
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}

.search-field input:focus {
  border-color: var(--accent);
}

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

.search-field .icon-button {
  position: absolute;
  top: 3px;
  right: 3px;
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 9px 14px 0;
}

.search-action {
  min-height: 42px;
  border: 1px solid #81958d;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.search-action:hover:not(:disabled),
.search-action:focus-visible {
  border-color: var(--accent);
  background: #e9f3ee;
}

.search-action--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.search-action--primary:hover:not(:disabled),
.search-action--primary:focus-visible {
  background: var(--accent-strong);
  color: #fff;
}

.search-action:disabled {
  cursor: default;
  opacity: 0.48;
}

.search-help {
  margin: 7px 18px 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 650;
}

.search-summary {
  min-height: 34px;
  margin: 0;
  padding: 8px 18px 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.search-results {
  max-height: min(62dvh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 8px 10px;
}

.search-result {
  display: grid;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #d8e0dc;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: #e9f3ee;
}

.search-result__common {
  font-size: 0.98rem;
}

.search-result__scientific {
  margin-top: 2px;
  color: #2f4c41;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.search-result--place {
  background: #f2f7f3;
}

.search-result__type {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-result__origin {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.plant-card-panel {
  position: absolute;
  z-index: 900;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  width: min(430px, calc(100% - 24px - var(--safe-left) - var(--safe-right)));
  transform: translateX(-50%);
}

.plant-card {
  overflow: hidden;
  border: 1px solid rgba(15, 50, 38, 0.3);
  border-radius: 18px;
  background: rgba(252, 254, 253, 0.98);
  box-shadow: 0 16px 46px rgba(0, 24, 16, 0.42);
  backdrop-filter: blur(14px);
}

.plant-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 4px 7px 4px 17px;
  background: #0a5d43;
  color: #fff;
}

.plant-card__title {
  font-size: 1rem;
  font-weight: 800;
}

.plant-card__header .icon-button {
  color: #fff;
}

.plant-card__header .icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.plant-card__media {
  position: relative;
  height: 176px;
  margin: 0;
  overflow: hidden;
  background: #dce9e1;
}

.plant-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plant-card-panel--flowering .plant-card__media {
  height: min(240px, 32dvh);
  background: #e9eee9;
}

.plant-card-panel--flowering .plant-card__media img {
  object-fit: cover;
  object-position: center;
}

.plant-card__gallery-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(8, 31, 23, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.plant-card__gallery-button--prev {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.plant-card__gallery-button--next {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.plant-card__image-count {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 31, 23, 0.78);
  color: #fff;
  font-size: 0.7rem;
}

.plant-card__credit {
  position: absolute;
  right: 8px;
  bottom: 7px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(8, 31, 23, 0.78);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: right;
}

.plant-card__body {
  padding: 9px 16px 13px;
}

.plant-card__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #dfe6e2;
}

.plant-card__row:last-child {
  border-bottom: 0;
}

.plant-card__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.plant-card__value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  line-height: 1.35;
}

em.plant-card__value {
  font-family: Georgia, "Times New Roman", serif;
}

.loading-overlay {
  position: absolute;
  z-index: 1500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 18, 0.76);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(4px);
}

.loading-overlay__panel {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(10, 53, 39, 0.92);
  box-shadow: var(--shadow);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  border: 4px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-overlay--error .loading-spinner {
  display: none;
}

.loading-overlay p {
  margin: 0;
  line-height: 1.5;
}

.loading-overlay progress {
  width: 100%;
  height: 9px;
  margin-top: 16px;
  accent-color: #8ed9ba;
}

.toast {
  position: absolute;
  z-index: 1600;
  top: calc(72px + var(--safe-top));
  left: 50%;
  width: min(520px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(20, 40, 33, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.toast[data-kind="error"] {
  background: rgba(126, 27, 27, 0.97);
}

.toast[data-kind="success"] {
  background: rgba(7, 91, 60, 0.97);
}

.tile-notice {
  position: absolute;
  z-index: 850;
  left: calc(10px + var(--safe-left));
  bottom: calc(14px + var(--safe-bottom));
  width: min(510px, calc(100% - 88px - var(--safe-left) - var(--safe-right)));
  padding: 12px 52px 12px 14px;
  border: 1px solid rgba(123, 77, 0, 0.35);
  border-radius: 14px;
  background: rgba(255, 247, 221, 0.97);
  box-shadow: var(--shadow);
  color: #4f3604;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tile-notice .icon-button {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

/* Leaflet 마커와 라벨 */
.flowering-marker {
  border: 0 !important;
  background: transparent !important;
}

.flowering-marker__dot {
  position: absolute;
  inset: 3px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--month-color);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(0, 0, 0, 0.48);
}

.flowering-marker--selected .flowering-marker__dot {
  inset: 1px;
  border-width: 4px;
  box-shadow: 0 0 0 5px rgba(255, 222, 82, 0.82), 0 3px 12px rgba(0, 0, 0, 0.95);
  animation: selected-pulse 1.35s ease-in-out infinite;
}

.flowering-cluster {
  border: 0 !important;
  background: transparent !important;
}

.flowering-cluster__disc {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--cluster-gradient);
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.76), inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.flowering-cluster__disc strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.8);
  color: #fff;
  font-size: 0.72rem;
}

.plant-marker {
  border: 0 !important;
  background: transparent !important;
}

.plant-marker__dot {
  position: absolute;
  inset: 4px;
  display: block;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0a7652;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 44, 30, 0.75);
}

.plant-marker--selected .plant-marker__dot {
  inset: 1px;
  border-width: 3px;
  background: #ffcc3d;
  box-shadow: 0 0 0 4px rgba(255, 105, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.9);
  animation: selected-pulse 1.35s ease-in-out infinite;
}

.plant-cluster {
  display: grid !important;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(6, 92, 63, 0.91);
  color: #fff;
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.72), inset 0 0 0 2px rgba(0, 35, 23, 0.3);
}

.plant-cluster--medium {
  background: rgba(7, 76, 112, 0.92);
}

.plant-cluster--large {
  background: rgba(103, 55, 8, 0.93);
}

.plant-cluster__count {
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.plant-label-anchor {
  border: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.plant-name-label {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: 230px;
  transform: translate(-50%, -100%);
  overflow: hidden;
  padding: 3px 7px 4px;
  border: 1px solid rgba(20, 42, 33, 0.62);
  border-radius: 7px;
  background: rgba(255, 255, 247, 0.94);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.48);
  color: #11251d;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-name-label::after {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(20, 42, 33, 0.62);
  border-bottom: 1px solid rgba(20, 42, 33, 0.62);
  background: rgba(255, 255, 247, 0.94);
  content: "";
}

.plant-name-label--forced {
  border-width: 2px;
  border-color: #e27000;
  background: #fff8c9;
  color: #311b00;
  font-size: 13px;
  z-index: 2;
}

.leaflet-control-zoom {
  margin-right: calc(10px + var(--safe-right)) !important;
  margin-bottom: calc(10px + var(--safe-bottom)) !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  width: 48px !important;
  height: 48px !important;
  line-height: 46px !important;
  border: 0 !important;
  background: var(--panel-bg) !important;
  color: var(--text) !important;
  font-size: 25px !important;
}

.leaflet-control-zoom a + a {
  border-top: 1px solid var(--panel-border) !important;
}

.leaflet-control-attribution {
  max-width: calc(100vw - 20px);
  padding: 2px 5px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  font-size: 9px !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes selected-pulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
}

.control-button--route {
  gap: 8px;
  border-color: rgba(180, 83, 9, 0.4);
  background: rgba(255, 247, 237, 0.97);
  color: #8a3c08;
}

.control-button--route:hover,
.control-button--route[aria-expanded="true"] {
  border-color: #c25b0a;
  background: #a94708;
  color: #fff;
}

.control-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.route-panel {
  position: absolute;
  z-index: 1090;
  top: calc(70px + var(--safe-top));
  left: calc(10px + var(--safe-left));
  width: min(420px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));
  max-height: calc(100dvh - 90px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  border: 1px solid rgba(138, 60, 8, 0.32);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 46px rgba(46, 24, 8, 0.38);
  backdrop-filter: blur(16px);
}

.route-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.route-panel__header h1 {
  margin: 0;
  font-size: 1.2rem;
}

.route-panel__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-form {
  display: grid;
  gap: 8px;
  padding: 4px 18px 14px;
}

.route-form label {
  font-size: 0.8rem;
  font-weight: 800;
}

.route-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 12px;
  border: 1px solid rgba(56, 72, 64, 0.32);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.route-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.audio-guide-dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: #fffdf8;
  color: #17372c;
  box-shadow: 0 18px 50px rgba(16, 38, 30, 0.34);
}

.audio-guide-dialog::backdrop {
  background: rgba(9, 27, 21, 0.55);
}

.audio-guide-dialog h1 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.audio-guide-dialog > strong {
  display: block;
  color: #0a6549;
  font-size: 1rem;
}

.audio-guide-dialog p {
  margin: 8px 0 20px;
  color: #425b52;
  font-size: 0.88rem;
}

.audio-guide-dialog__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.audio-guide-dialog__actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #e7ece9;
  color: #27483d;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.audio-guide-dialog__actions button:first-child {
  background: #0a6549;
  color: #fff;
}

.audio-guide-dialog__actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.audio-guide-player {
  position: absolute;
  z-index: 930;
  right: calc(14px + var(--safe-right));
  bottom: calc(14px + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(220px, 300px) 44px;
  align-items: center;
  gap: 10px;
  max-width: min(680px, calc(100vw - 28px));
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: #fffdf8;
  color: #17372c;
  box-shadow: 0 12px 36px rgba(16, 38, 30, 0.32);
}

.audio-guide-player[hidden] {
  display: none;
}

.audio-guide-player div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.audio-guide-player span {
  color: #587067;
  font-size: 0.68rem;
}

.audio-guide-player strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-guide-player audio {
  width: 100%;
  height: 40px;
}

.audio-guide-player button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #e7ece9;
  color: #17372c;
  font: inherit;
  cursor: pointer;
}

.audio-guide-player button svg {
  width: 20px;
  height: 20px;
}

.audio-guide-player__meta .audio-guide-ask-toggle {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0 9px;
  background: #dcece6;
  color: #07543d;
  font-size: 0.72rem;
  font-weight: 800;
}

.audio-guide-ask-toggle:disabled {
  cursor: wait;
  opacity: 0.55;
}

.audio-guide-ask-toggle svg {
  width: 16px !important;
  height: 16px !important;
}

.commentary-panel {
  position: absolute;
  z-index: 925;
  right: calc(14px + var(--safe-right));
  bottom: calc(104px + var(--safe-bottom));
  width: min(430px, calc(100vw - 28px));
  max-height: min(440px, calc(100dvh - 190px));
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: #fffdf8;
  color: #17372c;
  box-shadow: 0 14px 40px rgba(16, 38, 30, 0.3);
}

.commentary-panel[hidden] {
  display: none;
}

.commentary-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.commentary-panel__header h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.commentary-panel__header p {
  margin: 0;
  color: #536b62;
  font-size: 0.76rem;
}

.commentary-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 7px;
  margin-top: 14px;
}

.commentary-form input,
.commentary-form button,
.commentary-suggestions button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font: inherit;
}

.commentary-form input {
  min-width: 0;
  padding: 0 12px;
  background: #edf2ef;
  color: #17372c;
}

.commentary-form button {
  background: #0a6549;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.commentary-suggestions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
}

.commentary-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  background: #e7ece9;
  color: #315247;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.commentary-status {
  margin: 12px 0 0;
  color: #536b62;
  font-size: 0.76rem;
}

.commentary-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(56, 72, 64, 0.18);
}

.commentary-result > strong {
  color: #07543d;
  font-size: 0.85rem;
}

.commentary-result p {
  margin: 8px 0 0;
  color: #2e4c42;
  font-size: 0.8rem;
  line-height: 1.55;
}

.commentary-result__image {
  display: block;
  width: 100%;
  max-height: 210px;
  margin-top: 10px;
  border-radius: 12px;
  object-fit: cover;
  background: #edf3ec;
}

.commentary-result__image[hidden] {
  display: none;
}

.official-details {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(23, 100, 71, 0.2);
}

.official-details h4 {
  margin: 0 0 9px;
  color: #17332a;
  font-size: 0.82rem;
}

.official-details dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.official-details dl div {
  display: grid;
  grid-template-columns: minmax(56px, 76px) minmax(0, 1fr);
  gap: 8px;
}

.official-details dt {
  color: #527065;
  font-size: 0.7rem;
  font-weight: 800;
}

.official-details dd {
  margin: 0;
  color: #29483d;
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.official-details .official-details__description {
  margin-top: 11px;
  color: #29483d;
  line-height: 1.65;
}

.route-field-row--dual {
  grid-template-columns: minmax(0, 1fr) 76px 76px;
}

.route-icon-button,
.route-swap,
.route-submit,
.route-reset {
  min-height: 44px;
  border: 1px solid rgba(138, 60, 8, 0.28);
  border-radius: 12px;
  cursor: pointer;
}

.route-icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff7ed;
  color: #8a3c08;
}

.route-icon-button[aria-pressed="true"] {
  border-color: #9a4308;
  background: #a94708;
  color: #fff;
}

.route-icon-button svg {
  width: 18px;
  height: 18px;
}

.route-icon-button span {
  font-size: 0.65rem;
  font-weight: 760;
  white-space: nowrap;
}

.route-swap {
  width: max-content;
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  color: #7a3a12;
  font-size: 0.78rem;
  font-weight: 750;
}

.route-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.route-submit {
  border-color: #9a4308;
  background: #a94708;
  color: #fff;
  font-weight: 850;
}

.route-reset {
  padding: 0 14px;
  background: #fff;
  color: #643014;
}

.route-reset:disabled,
.route-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.route-status {
  display: grid;
  gap: 2px;
  margin: 0 18px 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff3df;
  color: #63310e;
  font-size: 0.84rem;
}

.route-status strong {
  font-size: 1.05rem;
}

.route-status span,
.route-disclaimer {
  color: #75543d;
  font-size: 0.74rem;
}

.route-disclaimer {
  margin: 0;
  padding: 0 18px 18px;
}

.route-marker {
  background: transparent;
  border: 0;
}

.route-marker span {
  display: block;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #0b6b4b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transform: rotate(-45deg);
}

.route-marker--end span {
  background: #b54e08;
}

.route-marker b {
  position: absolute;
  top: -2px;
  left: 29px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #17251f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  white-space: nowrap;
}

#map.route-picking {
  cursor: crosshair;
}

.route-place-marker {
  background: transparent;
  border: 0;
}

.route-place-marker span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c4570a;
  box-shadow: 0 3px 9px rgba(48, 24, 7, 0.42);
}

.route-illustration-marker {
  background: transparent;
  border: 0;
}

.route-illustration-marker img {
  display: block;
  width: 100%;
  height: calc(100% - 18px);
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(25, 33, 27, 0.38));
  transform: rotate(var(--route-rotation, 0deg));
}

.route-illustration-marker--flag img {
  height: 100%;
}

.route-illustration-marker--character {
  opacity: 0.92;
}

.route-illustration-marker--character img {
  height: 100%;
  filter: drop-shadow(0 3px 4px rgba(22, 41, 30, 0.34));
  transition: filter 160ms ease, transform 160ms ease;
}

.route-illustration-marker--character:hover img,
.route-illustration-marker--character:focus-visible img {
  filter: drop-shadow(0 5px 6px rgba(22, 41, 30, 0.42));
  transform: rotate(var(--route-rotation, 0deg)) scale(1.08);
}

.route-illustration-marker span {
  position: absolute;
  left: 50%;
  bottom: 0;
  max-width: 150px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #17352a;
  box-shadow: 0 2px 7px rgba(20, 39, 31, 0.24);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.route-illustration-marker:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.route-summary {
  display: none;
}

.guide-help-button {
  position: absolute;
  z-index: 920;
  left: calc(14px + var(--safe-left));
  bottom: calc(14px + var(--safe-bottom));
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #075c43;
  color: #fff;
  box-shadow: 0 7px 22px rgba(4, 44, 31, 0.34);
  cursor: pointer;
  touch-action: manipulation;
}

.guide-help-button:hover {
  background: #043f2e;
}

.guide-help-button svg {
  width: 27px;
  height: 27px;
}

.onboarding-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #f4f8f2;
  color: #17372c;
  box-shadow: 0 22px 70px rgba(5, 31, 22, 0.42);
  animation: onboarding-rise 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-dialog::backdrop {
  background: rgba(7, 29, 22, 0.64);
}

.onboarding-dialog__hero {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 58px 22px 24px;
  background: #e7f1e8;
}

.onboarding-dialog__hero > img {
  width: 190px;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
}

.onboarding-dialog__hero h1 {
  max-width: 18ch;
  margin: 0 0 10px;
  color: #064a36;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.onboarding-dialog__hero p {
  max-width: 58ch;
  margin: 0;
  color: #36594c;
  font-size: 0.9rem;
  line-height: 1.65;
}

.onboarding-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #17372c;
  cursor: pointer;
}

.onboarding-dialog__close svg {
  width: 21px;
  height: 21px;
}

.onboarding-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: min(430px, calc(100dvh - 350px));
  overflow: auto;
  padding: 10px 24px;
  scrollbar-color: #69907f transparent;
  scrollbar-width: thin;
}

.onboarding-feature {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(26, 75, 56, 0.14);
}

.onboarding-feature:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.onboarding-feature img,
.onboarding-feature > svg {
  width: 86px;
  height: 72px;
  object-fit: contain;
}

.onboarding-feature > svg {
  padding: 13px;
  color: #17624a;
}

.onboarding-feature h2 {
  margin: 0 0 4px;
  color: #07543d;
  font-size: 0.94rem;
}

.onboarding-feature p {
  margin: 0;
  color: #46675b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.onboarding-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px 18px;
  background: #fffdf8;
}

.onboarding-dialog__footer p {
  margin: 0;
  color: #49665c;
  font-size: 0.76rem;
}

.onboarding-dialog__footer button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #086347;
  color: #fff;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.onboarding-dialog__footer button:hover {
  background: #064d38;
}

.audio-guide-marker {
  border: 0;
  background: transparent;
}

.audio-guide-marker span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #315a8a;
  color: #fff;
  box-shadow: 0 5px 14px rgba(9, 32, 50, 0.42);
  transform: rotate(-45deg);
}

.audio-guide-marker svg {
  width: 21px;
  height: 21px;
  transform: rotate(45deg);
}

.audio-guide-marker:focus-visible span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@keyframes onboarding-rise {
  from {
    opacity: 0.35;
    filter: blur(4px);
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 620px) {
  .search-panel {
    max-height: min(46dvh, 360px);
  }

  .onboarding-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .onboarding-dialog__hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 48px 16px 14px;
  }

  .onboarding-dialog__hero > img {
    width: 112px;
    height: 104px;
  }

  .onboarding-dialog__hero h1 {
    margin-bottom: 6px;
    font-size: 1.3rem;
  }

  .onboarding-dialog__hero p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .onboarding-dialog__close {
    top: 8px;
    right: 8px;
  }

  .onboarding-features {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 300px);
    padding: 6px 12px;
  }

  .onboarding-feature,
  .onboarding-feature:nth-last-child(-n + 2) {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 9px 4px;
    border-bottom: 1px solid rgba(26, 75, 56, 0.14);
  }

  .onboarding-feature:last-child {
    border-bottom: 0;
  }

  .onboarding-feature img,
  .onboarding-feature > svg {
    width: 72px;
    height: 58px;
  }

  .onboarding-dialog__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px 14px;
  }

  .onboarding-dialog__footer button {
    width: 100%;
  }

  .search-help {
    display: none;
  }

  .search-results {
    max-height: min(18dvh, 150px);
  }

  .search-result {
    min-height: 44px;
    padding-block: 8px;
  }

  .route-panel {
    max-height: min(58dvh, 500px);
  }

  .route-summary:not([hidden]) {
    position: absolute;
    z-index: 1095;
    right: calc(12px + var(--safe-right));
    bottom: calc(14px + var(--safe-bottom));
    left: calc(12px + var(--safe-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 380px;
    margin-inline: auto;
    padding: 10px 12px;
    border: 1px solid rgba(138, 60, 8, 0.3);
    border-radius: 14px;
    background: rgba(255, 252, 247, 0.97);
    color: #63310e;
    box-shadow: 0 8px 26px rgba(46, 24, 8, 0.3);
  }

  .route-summary div {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .route-summary strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }

  .route-summary span {
    font-size: 0.78rem;
  }

  .route-summary button {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #a94708;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
  }

  .topbar {
    align-items: flex-start;
  }

  .control-button--primary {
    width: 48px;
    padding: 0;
  }

  .control-button--flowering {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .control-button--tree-info {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .control-button--route {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .control-button--audio-guide {
    min-width: 68px;
    width: 68px;
    padding: 0 7px;
    gap: 4px;
  }

  .control-button--audio-guide svg {
    width: 20px;
    height: 20px;
  }

  .control-button--commentary {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .audio-guide-player {
    right: calc(12px + var(--safe-right));
    bottom: calc(82px + var(--safe-bottom));
    left: calc(12px + var(--safe-left));
    grid-template-columns: minmax(0, 1fr) 44px;
    max-width: none;
  }

  .audio-guide-player audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .audio-guide-player button {
    grid-column: 2;
    grid-row: 1;
  }

  .audio-guide-player__meta .audio-guide-ask-toggle {
    grid-column: auto;
    grid-row: auto;
  }

  .commentary-panel {
    right: calc(12px + var(--safe-right));
    bottom: calc(226px + var(--safe-bottom));
    left: calc(12px + var(--safe-left));
    width: auto;
    max-height: min(38dvh, 330px);
  }

  .flowering-panel,
  .tree-info-panel {
    top: calc(70px + var(--safe-top));
  }

  .flowering-panel__controls {
    display: block;
  }

  .month-filter--all {
    width: 100%;
    margin-bottom: 7px;
  }

  .flowering-months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tree-species-group__items {
    grid-template-columns: 1fr;
  }

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

  .status-panel {
    display: none;
  }

  .status-panel strong {
    font-size: 0.78rem;
  }

  .status-panel span {
    font-size: 0.67rem;
  }

  .map-actions {
    bottom: calc(118px + var(--safe-bottom));
  }

  .plant-card-panel {
    bottom: calc(10px + var(--safe-bottom));
  }

  .plant-card__media {
    height: 150px;
  }

  .plant-card-panel--flowering .plant-card__media {
    height: min(200px, 28dvh);
  }

  .plant-card__body {
    padding-bottom: 10px;
  }

  .plant-card__row {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 7px 0;
  }

  .tile-notice {
    bottom: calc(10px + var(--safe-bottom));
  }
}

@media (min-width: 900px) {
  .plant-card-panel {
    left: auto;
    right: calc(16px + var(--safe-right));
    transform: none;
  }

  .map-actions {
    bottom: calc(132px + var(--safe-bottom));
  }

  .app-shell.card-open .map-actions {
    bottom: calc(425px + var(--safe-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.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;
}
