:root {
  --accent-fill: #fff200;
  --on-accent: #353839;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f3f5ef;
  --panel: #ffffff;
  --panel-soft: #e8ede7;
  --text: #1b2923;
  --muted: #46594e;
  --yellow: var(--text);
  --yellow-soft: var(--panel-soft);
  --accent-fill: var(--panel-soft);
  --on-accent: var(--text);
  --line: var(--quiet-line);
  --quiet-line: rgb(27 41 35 / 20%);
  --shadow: 0 18px 50px rgb(27 41 35 / 10%);
  /* De fallbacks in styles.css behouden het bestaande donkere kleurenpalet. */
  --theme-canvas: var(--ink);
  --theme-surface: var(--panel);
  --theme-surface-raised: var(--panel-soft);
  --theme-text: var(--text);
  --theme-muted: var(--muted);
  --theme-accent: var(--yellow);
  --theme-border: var(--quiet-line);
  --theme-accent-line: var(--quiet-line);
  --theme-highlight-fill: var(--panel-soft);
  --theme-focus: var(--text);
  --theme-overlay: rgb(27 41 35 / 4%);
  --theme-success: #176b3d;
  --theme-danger: #a42e26;
  --theme-background-start: #eeebd3;
  --theme-background-middle: #f3f5ef;
  --theme-background-end: #e6ece5;
}

.theme-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--quiet-line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--panel-soft);
  border-color: var(--yellow);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.theme-icon {
  display: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme-mode="system"] .theme-icon-system,
[data-theme-mode="light"] .theme-icon-light,
[data-theme-mode="dark"] .theme-icon-dark {
  display: block;
}

/* Witte tekst blijft leesbaar op gekleurde statusbalken. */
:root[data-theme="light"] :is(.ig-profile-criterion-status, .ig-profile-status-criterion,
  .ig-explanation-status-label, .location-pin-logo, .location-pin-logo > span) {
  color: #ffffff !important;
}

:root[data-theme="light"] .ig-profile-explanation .ig-example-profile .ig-explanation-status-label {
  color: #ffffff !important;
}

:root[data-theme="light"] .search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b2923' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

/* Rustige randen op alle pagina’s; toetsenbordfocus blijft goed zichtbaar. */
:root[data-theme="light"] :focus-visible {
  outline-color: var(--text) !important;
}

:root[data-theme="light"] .brand-mark {
  --accent-fill: #fff200;
  --on-accent: #353839;
}

:root[data-theme="light"] .location-filter-panel {
  border-top-color: var(--quiet-line);
}

:root[data-theme="light"] .location-alphabet-button {
  border-color: #66756d;
  background: #ffffff;
  color: #1b2923;
}

:root[data-theme="light"] .location-alphabet-button small {
  color: #34483d;
}

:root[data-theme="light"] .location-alphabet-button:hover,
:root[data-theme="light"] .location-alphabet-button.is-active {
  border-color: #b7a900;
  background: #fff200;
  color: #353839;
}

:root[data-theme="light"] .location-alphabet-button:hover small,
:root[data-theme="light"] .location-alphabet-button.is-active small {
  color: #353839;
}

:root[data-theme="light"] .location-city-initial > summary > span:first-of-type {
  color: #725d00;
}

:root[data-theme="light"] .location-city-initial > summary::before {
  border-color: #66756d;
  color: #34483d;
}

:root[data-theme="light"] .location-city-initial > summary,
:root[data-theme="light"] .location-city-group > summary {
  color: #1b2923;
}

:root[data-theme="light"] .location-city-initial > summary > span:last-of-type,
:root[data-theme="light"] .location-city-group > summary > span {
  color: #34483d;
}

:root[data-theme="light"] .location-city-group > summary::before {
  color: #34483d;
}

:root[data-theme="light"] .location-city-group > summary:hover::before,
:root[data-theme="light"] .location-city-group[open] > summary::before {
  color: #725d00;
}

:root[data-theme="light"] .location-ig-id-line {
  background: var(--quiet-line);
}

:root[data-theme="light"] .facility-filter-option:has(:checked) {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--text);
}

:root[data-theme="light"] .accessibility-list-choice {
  border-color: var(--quiet-line);
  background: var(--panel);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-list-choice:hover {
  border-color: var(--category-color, var(--text));
  background: var(--panel-soft);
}

:root[data-theme="light"] .accessibility-list-category .accessibility-list-count {
  background: var(--panel-soft);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-list-city {
  border-color: var(--quiet-line);
  border-left-color: var(--category-color, var(--text));
  background: var(--panel);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-list-city:hover {
  background: var(--panel-soft);
}

:root[data-theme="light"] .accessibility-city-tab .accessibility-list-city-count {
  border-color: var(--quiet-line);
  background: var(--panel);
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-list-city-count {
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-list-city-count-number {
  background: var(--panel-soft);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location:hover {
  background: var(--panel-soft);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-map-list {
  border-color: var(--quiet-line);
  background: var(--panel-soft);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-map-list > .accessibility-panel-eyebrow {
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-map-toolbar .accessibility-panel-eyebrow {
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-search.accessibility-city-list-search label {
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-city-list-search input {
  border-color: var(--quiet-line);
  background: var(--panel);
  color: var(--text);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-city-list-search button {
  border-color: #d8cb00;
  background: #fff200;
  color: #353839;
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-back,
:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-search label {
  color: var(--text);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location {
  border-color: var(--quiet-line);
  border-left-color: var(--category-color, var(--text));
  background: var(--panel);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location h3 {
  color: var(--text) !important;
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location p {
  color: var(--muted);
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location .accessibility-location-id {
  border-bottom-color: var(--category-color, var(--quiet-line));
  color: #353839;
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location .passport-card-link,
:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location .passport-card-link:hover {
  color: #353839 !important;
}

:root[data-theme="light"] .accessibility-map-list-view .accessibility-list-location .passport-card-link:hover {
  text-decoration: underline;
}

@media print {
  .theme-toggle { display: none; }
}
