/* =========================================================
   Gaudau.lt – žemėlapio sekcija
   ========================================================= */

.map-app {
  display: grid;
  gap: 16px;
}

/* ---------- Toolbar ---------- */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.map-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
  flex: 1 1 150px;
}

.map-field-search {
  flex: 1 1 200px;
}

.map-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.map-select:hover {
  border-color: var(--green-line);
}

.map-select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
}

.map-search {
  position: relative;
  display: flex;
  align-items: center;
}

.map-search-icon {
  position: absolute;
  left: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.map-search-icon svg {
  width: 15px;
  height: 15px;
}

.map-search-input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

.map-search-input:hover {
  border-color: var(--green-line);
}

.map-search-input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
}

.map-search-clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-search-clear:hover {
  background-color: var(--surface);
  color: var(--text-strong);
}

.map-search-clear:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  background-color: var(--surface);
  color: var(--text-strong);
}

.map-search-clear svg {
  width: 13px;
  height: 13px;
}

.map-today {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-today svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.map-today:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

.map-today[aria-pressed="true"] {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}

.map-today:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
}

.map-today-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.map-today[aria-pressed="true"] .map-today-count {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
}

.map-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-reset svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.map-reset:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

.map-reset:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
}

.map-reset.has-active-filters {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
}

.map-reset-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.map-reset-count[hidden] {
  display: none;
}

.map-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.map-status:empty {
  display: none;
}

.map-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Seasonal calendar ---------- */
.map-seasonal {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.map-seasonal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.map-seasonal-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.map-seasonal-title {
  font-size: 1.05rem;
  line-height: 1.25;
}

.map-seasonal-month {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-seasonal-lede {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.map-seasonal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-seasonal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-seasonal-chip:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.map-seasonal-chip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.map-seasonal-chip.is-active {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}

.map-seasonal-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.map-seasonal-chip.is-active .map-seasonal-chip-count {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
}

.map-seasonal-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Seasonal empty state */
.map-seasonal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 26px) clamp(14px, 3vw, 22px);
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background-color: var(--surface-3);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.map-seasonal-empty[hidden] {
  display: none;
}

.map-seasonal-empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.map-seasonal-empty-icon svg {
  width: 22px;
  height: 22px;
}

.map-seasonal-empty-title {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.map-seasonal-empty-hint {
  margin: 0;
  max-width: 340px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.map-seasonal-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.map-seasonal-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-seasonal-empty-cta:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  transform: translateY(-1px);
}

.map-seasonal-empty-cta:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-seasonal-empty-cta:focus-visible {
  outline-color: var(--green);
}

.map-seasonal-empty-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.map-seasonal-empty-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Seasonal "show more" toggle */
.map-seasonal-more {
  margin-top: 10px;
}

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

.map-seasonal-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-seasonal-more-btn:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

.map-seasonal-more-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.map-seasonal-more-count {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
}

.map-seasonal-more-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.map-seasonal-more-btn[aria-expanded="true"] .map-seasonal-more-icon {
  transform: rotate(180deg);
}

/* ---------- Layout ---------- */
.map-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .map-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

/* ---------- Canvas ---------- */
.map-canvas-wrap {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background-color: var(--surface);
  min-height: 320px;
}

.map-canvas {
  width: 100%;
  height: clamp(320px, 48vw, 520px);
  background-color: var(--surface-3);
}

/* Leaflet overrides */
.map-canvas .leaflet-container {
  background-color: var(--surface-3);
  font-family: 'Inter', system-ui, sans-serif;
}

.map-canvas .leaflet-control-attribution {
  background-color: var(--overlay-bg);
  color: var(--muted);
  font-size: 0.68rem;
}

.map-canvas .leaflet-control-attribution a {
  color: var(--green);
}

.map-canvas .leaflet-bar a {
  background-color: var(--surface);
  color: var(--text);
  border-bottom-color: var(--line);
}

.map-canvas .leaflet-bar a:hover {
  background-color: var(--surface-3);
  color: var(--green);
}

.map-canvas .leaflet-popup-content-wrapper {
  background-color: var(--surface);
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.map-canvas .leaflet-popup-tip {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
}

.map-canvas .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.map-canvas .leaflet-popup-close-button {
  color: var(--muted);
}

.map-canvas .leaflet-popup-close-button:hover {
  color: var(--text-strong);
}

.map-popup-species {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.map-popup-location {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.map-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.map-popup-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Custom marker */
.map-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2px solid var(--bg);
  background-image: linear-gradient(135deg, var(--green), var(--green-bright));
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
}

.map-marker svg {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  color: #0b1418;
}

.map-marker.is-active {
  background-image: linear-gradient(135deg, var(--sand), var(--sand-soft));
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
}

/* Map empty state */
.map-empty {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background-color: var(--overlay-bg);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.map-empty[hidden] {
  display: none;
}

.map-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  flex-shrink: 0;
}

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

.map-empty p {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.map-empty-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 300px;
}

.map-empty-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-empty-reset:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  transform: translateY(-1px);
}

.map-empty-reset:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-empty-reset:focus-visible {
  outline-color: var(--green);
}

.map-empty-reset svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Map toast */
.map-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 500;
  max-width: calc(100% - 32px);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--green-line);
  background-color: var(--bg-2);
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.map-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-toast.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

/* ---------- Side list ---------- */
.map-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--surface-2), var(--surface));
  min-height: 200px;
}

.map-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-side-head h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.map-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.map-side-status,
.map-side-count-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
  min-width: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.map-list-item:hover {
  background-color: var(--surface-2);
  border-color: var(--green-line);
  transform: translateX(2px);
}

.map-list-item.is-active {
  background-color: var(--green-soft);
  border-color: var(--green-line);
}

.map-list-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
}

.map-list-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.map-list-icon svg {
  width: 15px;
  height: 15px;
}

.map-list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.map-list-species {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-list-location {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-list-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  line-height: 1.2;
}

.map-list-weight {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-strong);
}

.map-list-date {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Side list empty state */
.map-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1.2rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background-color: var(--surface-3);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.map-list-empty[hidden] {
  display: none;
}

.map-list-empty p {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.map-list-empty-hint {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
}

.map-list-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

/* Empty-state CTA link ("Pridėti pirmąjį laimikį") */
.map-list-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-list-empty-cta[hidden] {
  display: none;
}

.map-list-empty-cta:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  transform: translateY(-1px);
}

/* Visible keyboard focus ring for the map side-list empty-state CTA
   link. Uses the bright green accent plus a soft halo so the focus
   state is clearly distinguishable from the hover state on both
   themes. */
.map-list-empty-cta:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-list-empty-cta:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* Fallback focus ring for browsers that do not support :focus-visible.
   Uses :focus so keyboard users on older engines still see a clear
   indicator on the empty-state CTA link. The :focus-visible rule above
   takes precedence in modern browsers. */
.map-list-empty-cta:focus {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  background-color: var(--green);
  border-color: var(--green);
  color: #0b1418;
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-list-empty-cta:focus {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* Suppress the fallback ring for mouse users in browsers that support
   :focus-visible, so the ring only appears for keyboard navigation. */
.map-list-empty-cta:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}

.map-list-empty-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Empty-state reset button ("Išvalyti filtrus") */
.map-list-empty-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-list-empty-reset[hidden] {
  display: none;
}

.map-list-empty-reset:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

/* Visible keyboard focus ring for the map side-list empty-state reset
   button. Uses the bright green accent plus a soft halo so the focus
   state is clearly distinguishable from the hover state on both
   themes. */
.map-list-empty-reset:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-list-empty-reset:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* Fallback focus ring for browsers that do not support :focus-visible.
   Uses :focus so keyboard users on older engines still see a clear
   indicator on the empty-state reset button. The :focus-visible rule
   above takes precedence in modern browsers. */
.map-list-empty-reset:focus {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .map-list-empty-reset:focus {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* Suppress the fallback ring for mouse users in browsers that support
   :focus-visible, so the ring only appears for keyboard navigation. */
.map-list-empty-reset:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
  border-color: var(--line-strong);
  background-color: var(--surface);
  color: var(--text);
}

.map-list-empty-reset svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Side list "show more" toggle */
.map-list-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 2px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-list-toggle[hidden] {
  display: none;
}

.map-list-toggle:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

.map-list-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.map-list-toggle-count {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
}

.map-list-toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.map-list-toggle[aria-expanded="true"] .map-list-toggle-icon {
  transform: rotate(180deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .map-toolbar {
    padding: 12px;
  }

  .map-field {
    flex: 1 1 100%;
  }

  .map-today,
  .map-reset {
    flex: 1 1 auto;
    justify-content: center;
  }

  .map-canvas {
    height: clamp(280px, 60vw, 400px);
  }
}

@media (max-width: 480px) {
  .map-seasonal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-list-empty-actions {
    flex-direction: column;
    width: 100%;
  }

  .map-list-empty-cta,
  .map-list-empty-reset {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .map-select,
  .map-search-input,
  .map-search-clear,
  .map-today,
  .map-reset,
  .map-seasonal-chip,
  .map-seasonal-empty-cta,
  .map-seasonal-more-btn,
  .map-seasonal-more-icon,
  .map-empty-reset,
  .map-toast,
  .map-list-item,
  .map-list-empty-cta,
  .map-list-empty-reset,
  .map-list-toggle,
  .map-list-toggle-icon {
    transition: none;
  }

  .map-seasonal-chip:hover,
  .map-seasonal-empty-cta:hover,
  .map-empty-reset:hover,
  .map-list-item:hover,
  .map-list-empty-cta:hover {
    transform: none;
  }

  .map-toast {
    transform: translate(-50%, 0);
  }

  .map-toast.is-visible {
    transform: translate(-50%, 0);
  }

  .map-list-toggle[aria-expanded="true"] .map-list-toggle-icon,
  .map-seasonal-more-btn[aria-expanded="true"] .map-seasonal-more-icon {
    transform: rotate(180deg);
  }
}

/* ---------- Side list & seasonal chips (markup rendered by map.js) ---------- */
.map-list-item {
  padding: 0;
  gap: 0;
  cursor: default;
}

.map-list-btn {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.map-list-btn.is-active .map-list-name {
  color: var(--green-bright);
}

.map-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-list-btn .map-list-meta {
  margin-left: 0;
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.map-list-btn .map-list-species {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}

.map-list-share {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.map-list-share:hover {
  border-color: var(--green-line);
  color: var(--green-bright);
}

.map-list-share svg {
  width: 15px;
  height: 15px;
}

.map-list-btn:focus-visible,
.map-list-share:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.map-popup-notes {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.map-seasonal-chip-icon {
  display: grid;
  place-items: center;
  color: var(--green);
}

.map-seasonal-chip-icon svg {
  width: 14px;
  height: 14px;
}

.map-seasonal-chip-body {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.map-seasonal-chip-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
