body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

header {
  padding: 10px;
  background: #004080;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header a.location-btn {
    background:  #ff6600;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: 70vh;
}

#map {
  flex: 1;
}

#photographers-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f7f7f7;
}

#photographers-list h2 {
  margin-top: 0;
}

.photographer-item {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.photographer-item a {
  color: #a05421;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-right: 20px;
}

.photographer-item a:hover {
  text-decoration: underline;
}

.photographer-item a.visited::after {
  content: "✔";
  color: green;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.cities {
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #ffd9b3;
  border-bottom: 1px solid #ffd9b3;
}

.cities a {
  margin: 0 8px;
  color:rgb(202, 99, 30);
  text-decoration: none;
  font-weight: bold;
}

.cities a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  border-top: 1px solid #ffd9b3;
}

footer a {
    color: #000;
}

.text {
    padding : 20px;
}

/* Mobile */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    height: auto;
  }

  header h1 {
    text-align: center;
  }

  header a.location-btn {
    display:  block;
    margin: 10px auto;
}

   #photographers-list {
    height: auto;
    flex: none;
  }

  #map {
    height: 300px;
    flex: none;
  }
}