:root {
  --bg-dark: #3e1f0d;
  --bg-mid: #5e2f17;
  --accent-red: #aa3b2f;
  --text-light: #f8e8d2;
  --text-dark: #2c1b0c;
  --green-moss: #56714b;
}

body {
  margin: 0;
  font-family: "Verdana", sans-serif;
  background-color: var(--bg-mid);
  color: var(--text-light);
}

.top-header {
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

nav a {
  margin: 0 10px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

#map {
  width: 100%;
  height: calc(100vh - 120px); /* header + footer */
  border-top: 2px solid var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}

.bottom-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9em;
  border-top: 2px solid var(--accent-red);
}

.about-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-dark);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.about-section h2 {
  color: var(--accent-red);
  margin-bottom: 20px;
  text-align: center;
}

.about-section p {
  color: var(--text-light);
  font-size: 1.1em;
  line-height: 1.6;
}

.about-image {
  margin-top: 30px;
  text-align: center;
}

.about-image img {
  max-width: 90%;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--accent-red);
}

.filter-container {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.filter-left,
.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#graffity-counter {
  font-weight: bold;
}

.filter-container select {
  padding: 5px 10px;
  font-size: 1em;
}

.popup-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-content img.popup-image {
  max-width: 180px;
  max-height: 150px;
  border-radius: 8px;
  cursor: zoom-in;
  object-fit: contain;
  margin-bottom: 8px;
}

#image-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#overlay-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  border: 4px solid white;
  background: white;
  cursor: zoom-out;
}

/* Botón "✖" para cerrar */
#close-overlay {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}
.x-button {
  background-color: var(--accent-red);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.x-button:hover {
  background-color: #1d9bf0; /* azul de X */
  transform: scale(1.05);
}
