/* IBERPESCA — ¿Dónde Pescar? */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.donde-pescar-page {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  width: 100%;
}

.donde-pescar-hero {
  text-align: center;
  margin-bottom: 36px;
}

.donde-pescar-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.donde-pescar-icon {
  font-size: 1.5rem;
}

.donde-pescar-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Secciones */
.donde-pescar-especies {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Mapa + listado (estilo tipo buscador de tiendas) */
.donde-pescar-map-section {
  margin-bottom: 40px;
}

.map-section-search {
  margin-bottom: 20px;
}

.map-section-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-section-input::placeholder {
  color: var(--text-secondary);
}

.map-section-input:focus {
  outline: none;
  border-color: var(--logo-green);
  box-shadow: 0 0 0 3px rgba(13, 107, 61, 0.12);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.map-list-col {
  min-width: 0;
}

.map-results-heading {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.listado-comunidades {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.listado-comunidades::-webkit-scrollbar {
  width: 6px;
}

.listado-comunidades::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.listado-comunidades::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 3px;
}

.listado-empty {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 24px 0;
}

/* Tarjeta de lugar (estilo Pepco) */
.lugar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lugar-card:hover {
  border-color: rgba(13, 107, 61, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lugar-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.lugar-card-title-link {
  color: var(--logo-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lugar-card-title-link:hover {
  color: var(--logo-green-bright);
}

.lugar-card-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.lugar-card-pez {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.lugar-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.lugar-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ver-mapa {
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--logo-green);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-ver-mapa:hover {
  background: var(--logo-green-bright);
  box-shadow: 0 2px 8px rgba(13, 107, 61, 0.25);
}

.btn-como-llegar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--logo-green);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-como-llegar:hover {
  background: var(--logo-green-bright);
  box-shadow: 0 2px 8px rgba(13, 107, 61, 0.25);
  color: #fff;
}

.map-map-col {
  position: sticky;
  top: 80px;
  min-height: 400px;
}

.donde-pescar-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #e8f4f0;
}

.donde-pescar-map .leaflet-popup-content {
  margin: 12px 16px;
  font-size: 0.85rem;
  max-width: 320px;
}

.map-popup-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.map-popup-list li {
  margin-bottom: 4px;
}

/* Especies — una fila en PC */
.donde-pescar-especies .section-desc {
  margin-bottom: 20px;
}

.especies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .especies-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.especie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.especie-card:hover {
  border-color: var(--logo-green);
  box-shadow: 0 4px 12px rgba(13, 107, 61, 0.12);
  transform: translateY(-2px);
}

.especie-icon {
  font-size: 1.75rem;
}

.especie-nombre {
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .donde-pescar-page {
    padding: 16px 12px 32px;
  }
  .donde-pescar-title {
    font-size: 1.4rem;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-map-col {
    position: static;
    min-height: 320px;
  }
  .donde-pescar-map {
    height: 320px;
  }
  .listado-comunidades {
    max-height: 360px;
  }
  .especies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
