.top-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 999;
}

.legend-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background-color: #f5f5f5;
  font-family: 'Georgia', serif;
}

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.active,
.accordion:hover {
  background-color: #ccc;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background-color: white;
  padding: 0;
  margin: 0;
}

.card-gallery .card {
  width: 220px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}

.card-gallery .card:hover {
  transform: scale(1.05);
}

.card-gallery .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-gallery .card .type {
  margin-top: 10px;
  color: #1e90ff;
  font-weight: bold;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-gallery .card h3 {
  margin: 5px 0 5px;
  font-size: 1.1em;
}

.card-gallery .card p {
  font-size: 0.9em;
  padding: 0 10px 10px;
  color: #555;
}

.card {
  margin-top: 10px;
  margin-bottom: 10px;
}

body {
  color: #111;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 40px 20px;
  min-height: 100vh;
}

.image-wrapper {
  position: relative;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffc107;
  color: #1e1e1e;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, .4);
  transition: transform .2s, box-shadow .2s;
}

.nav-button:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 18px rgba(0, 0, 0, .6);
}

.nav-left {
  left: -80px;
}

.nav-right {
  right: -80px;
}

@media(max-width:700px) {

  .nav-left,
  .nav-right {
    position: static;
    transform: none;
    margin: 10px 6px 0;
  }

  .image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.accordion-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: #1e90ff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 14px 20px;
  margin-bottom: 8px;
  border: 2px solid #1e90ff;
  border-radius: 6px;
  cursor: pointer;
  transition: .25s;
}

.accordion-label:hover {
  background: #1e90ff;
  color: #fff;
}

.accordion-label::after {
  content: '▾';
  font-size: 1.1em;
  transition: transform .3s;
}

.accordion-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.accordion-item input:checked+.accordion-label::after {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #fafafa;
  border-left: 3px solid #1e90ff;
  transition: max-height .5s ease, padding .3s ease;
}

.accordion-item input:checked~.accordion-content {
  max-height: 1200px;
  padding: 18px 20px 20px;
}
