/* Kleuren komen uit kleur.css (laad dat bestand eerst in de HTML) */
:root {
  color-scheme: light;
}

/* Basic page styles. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--kleur-achtergrond);
  color: var(--kleur-donkergroen);
  font-family: Arial, Helvetica, sans-serif;
}

button, input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--kleur-groen);
  outline-offset: 4px;
}

/* Main page layout. */
.discovery-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 36px;
}

/* Page title and link to the homepage. */
.guide-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kleur-groen);
  font-size: 15px;
  font-weight: 700;
  width: fit-content;
}

.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kleur-zachtgroen);
  color: var(--kleur-groen);
  font-size: 31px;
  font-weight: 700;
  flex-shrink: 0;
}

.back-home {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--kleur-tekst-zacht);
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 3.5vw, 49px);
  line-height: 1.06;
  letter-spacing: -1.4px;
}

h1 span {
  color: var(--kleur-groen);
}

.intro-text {
  max-width: 470px;
  margin: 0 0 20px;
  color: var(--kleur-tekst-zacht);
  font-size: 14px;
  line-height: 1.55;
}

/* Topic buttons. */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.categories button {
  border: 0;
  border-radius: 12px;
  background: var(--kleur-kaart);
  color: var(--kleur-donkergroen);
  min-height: 80px;
  padding: 8px 3px;
  font-size: 11px;
}

.categories button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 7px;
  background: var(--kleur-zachtgroen);
  border-radius: 50%;
  font-size: 28px;
  color: var(--kleur-groen);
}

/* Large Amsterdam card. */
.featured-city {
  position: relative;
  min-height: 300px;
  aspect-ratio: 1.8;
  overflow: hidden;
  border-radius: 13px;
  background: var(--kleur-donkergroen);
}

.featured-city > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.featured-city::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgb(51 73 57 / 85%));
}

.featured-content {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 20px;
  bottom: 18px;
  color: white;
}

.popular-badge {
  display: inline-block;
  padding: 5px 18px;
  background: var(--kleur-zachtgroen);
  border-radius: 16px;
  color: var(--kleur-donkergroen);
  font-size: 12px;
  font-weight: 700;
}

.featured-content h2 {
  font-size: 30px;
  margin: 7px 0 5px;
  letter-spacing: -.7px;
}

.featured-content p {
  margin: 0 0 16px;
  font-size: 13px;
}

/* Main green buttons. */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 17px;
  background: var(--kleur-groen);
  color: white;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* City search field. */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--kleur-kaart);
  border: 1px solid var(--kleur-zand);
  box-shadow: 0 1px 5px rgb(51 73 57 / 10%);
  border-radius: 14px;
  padding: 10px 14px;
}

.search-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--kleur-groen);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.search-box input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: var(--kleur-donkergroen);
  font-size: 12px;
  padding: 3px;
}

.search-box input::placeholder {
  color: var(--kleur-tekst-zacht);
}

/* Show all cities button. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.filters button {
  border: 1px solid var(--kleur-groen);
  background: var(--kleur-groen);
  padding: 9px 15px;
  border-radius: 20px;
  font-size: 11px;
  color: white;
}

/* City cards. */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.city-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--kleur-kaart);
  border: 1px solid var(--kleur-zand);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgb(51 73 57 / 10%);
}

.city-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  background: var(--kleur-zachtgroen);
}

.city-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 10px 10px;
}

.city-content h2 {
  margin: 0 0 7px;
  font-size: 14px;
}

.city-content > p {
  margin: 0 0 9px;
  color: var(--kleur-tekst-zacht);
  font-size: 11px;
  line-height: 1.45;
}

.city-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-top: auto;
}

.province {
  color: var(--kleur-tekst-zacht);
  font-size: 9px;
}

.province::before {
  content: '⌖ ';
  color: var(--kleur-groen);
  font-size: 15px;
}

.city-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  color: var(--kleur-groen);
  background: var(--kleur-zachtgroen);
  flex-shrink: 0;
}

/* Button to show all cities again. */
.more-cities {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--kleur-zachtgroen);
  border-radius: 13px;
  margin-top: 18px;
}

.more-cities h2 {
  color: var(--kleur-groen);
  margin: 0 0 5px;
  font-size: 12px;
}

.more-cities p {
  color: var(--kleur-tekst-zacht);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.more-cities button {
  margin-left: auto;
  border: 1px solid var(--kleur-groen);
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--kleur-groen);
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}

.more-cities button span {
  margin-left: 6px;
}

/* Button hover effect. */
button:hover {
  filter: brightness(.94);
}

/* Message shown when no cities match. */
.empty-state {
  color: var(--kleur-tekst-zacht);
  line-height: 1.6;
  padding: 25px 0;
}

/* Hide text on screen but keep it for screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* City information window. */
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 85vh;
  padding: 32px;
  background: var(--kleur-kaart);
  border: 1px solid var(--kleur-zand);
  border-radius: 18px;
  color: var(--kleur-donkergroen);
  box-shadow: 0 20px 80px rgb(51 73 57 / 20%);
}

dialog::backdrop {
  background: rgb(51 73 57 / 55%);
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: var(--kleur-zachtgroen);
  color: var(--kleur-groen);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 24px;
}

.dialog-eyebrow {
  color: var(--kleur-groen);
  font-size: 12px;
  font-weight: 700;
}

dialog h2 {
  margin: 10px 0;
  font-size: 30px;
}

dialog h3 {
  font-size: 16px;
  margin: 22px 0 6px;
  color: var(--kleur-groen);
}

dialog p {
  line-height: 1.65;
  font-size: 14px;
}

.close-dialog-bottom {
  margin-top: 16px;
}

/* Photo credits stay closed until the visitor opens them. */
.photo-credits {
  margin-top: 12px;
  color: var(--kleur-tekst-zacht);
  font-size: 12px;
  line-height: 1.6;
}

.photo-credits summary {
  width: fit-content;
  color: var(--kleur-groen);
  cursor: pointer;
}

.photo-credits ul {
  padding-left: 20px;
}

/* Large screens. */
@media (min-width: 1400px) {
  .city-photo {
    aspect-ratio: 1.5;
  }

  .featured-city {
    min-height: 350px;
  }

}

/* Tablets and smaller screens. */
@media (max-width: 1000px) {
  .discovery-layout {
    padding: 24px;
    gap: 24px;
  }

  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories {
    gap: 6px;
  }

  .categories button {
    font-size: 9px;
  }

  .more-cities {
    flex-wrap: wrap;
  }

  .more-cities button {
    margin-left: 54px;
  }

}

/* Phones. */
@media (max-width: 700px) {
  .discovery-layout {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(31px, 7vw, 46px);
  }

  .intro-text {
    max-width: none;
  }

  .categories button {
    font-size: 10px;
  }

  .featured-city {
    min-height: 290px;
  }

  .city-grid {
    gap: 12px;
  }

  .filters {
    gap: 6px;
  }

  .filters button {
    font-size: 10px;
    padding: 9px 11px;
  }

}

/* Tekst in knoppen kan vertaald worden: de <b> erft de stijl van de knop. */
button b {
  font-weight: inherit;
}

/* Eerste regel van de titel is niet groen. */
h1 .title-line {
  color: var(--kleur-donkergroen);
}