.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: system-ui;
}

.popup-iberdrola {
  position: relative;
  background: white;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.popup-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 90px;
}

.popup-top {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: stretch;
}

.popup-img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.popup-title {
  font-weight: 600;
  color: #2f5e8e;
  font-size: 16px;
  line-height: 1.2;
}

.popup-address {
  margin-top: 6px;
  font-size: 13px;
  color: #6b6b6b;
}

.popup-details {
  padding: 0 14px 10px 14px;
  font-size: 14px;
  color: #444;
}

.popup-row {
  margin-top: 6px;
}

.popup-connectors {
  padding: 10px 14px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.connector {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 14px;
}

.popup-buttons {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-dark {
  background: #3e5368;
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

.btn-green {
  background: #12a150;
  color: white;
  padding: 12px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-dark,
.btn-green {
  letter-spacing: 0.3px;
  font-size: 18px;
}

/* Botones */
.btn-dark,
.btn-green {
  font-size: 17px;
  padding: 15px;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.btn-dark {
  background: #3e5368;
  color: white;
}

.btn-dark:hover {
  background: #2f4154;
  transform: translateY(-1px);
}

.btn-green {
  background: #12a150;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-green:hover {
  background: #0e7d3d;
  transform: translateY(-1px);
}

.btn-dark:active,
.btn-green:active {
  transform: translateY(0px);
}

.mapboxgl-popup-close-button {
  background-color: transparent;
  font-size: 1rem;
  padding: 6px;
}
.mapboxgl-popup-close-button:hover {
  background-color: transparent !important;
  font-size: 1.5rem;
  padding: 4px;
}

.mapboxgl-popup-content {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.mapboxgl-popup-tip {
  display: none;
}

/* POPUL FULLSCREEN ESTACION */

.estacion-modal {
  background: #f5f7fa;
  border-radius: 0;
}

.imagen-principal {
  border-radius: 12px;
  max-height: 500px;
  object-fit: cover;
}

.btn-green {
  background: #16a34a;
  color: white;
  border-radius: 25px;
  padding: 8px;
  font-size: 14px;
  border: none;
}

.btn-green:hover {
  background: #15803d;
}

.btn-dark {
  background: #3e5368;
  color: white;
  border-radius: 25px;
  padding: 8px;
  font-size: 14px;
  border: none;
}

.btn-dark:hover {
  background: #2f4154;
}

.info-line {
  margin: 8px 0;
}

#tituloEstacion {
  /*color: #364C67;*/
  font-size: 34px;
  font-weight: 700;
}
#como-llegar-modal {
  font-size: 1.3rem;
  font-weight: 700;
}

/*#descripcionEstacion{
  color: #364C67;
}*/

.modal-fullscreen {
  color: #364c67;
}
.modal-fullscreen h5 {
  font-size: 1.4rem;
  font-weight: 700;
}

.linea-gradiente {
  max-width: 100%;
  height: 2px;
}

.conector {
  display: flex;
  align-items: center;
  padding: 10px 0;
  /*border-bottom: 1px solid #ddd;*/
}

.col1 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.col2 {
  flex: 2;
  color: #5b6b7a;
}

.col3 {
  flex: 0.5;
  text-align: right;
  font-weight: bold;
}

.icono {
  font-size: 20px;
}

.popup-galeria {
  width: 100%;
}

.imagen-principal img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.miniaturas-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.miniaturas {
  display: flex;
  gap: 10px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  justify-content: center;
  /*overflow-x: auto;   */
  scroll-behavior: smooth;
}

.miniaturas img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.miniaturas img:hover {
  opacity: 1;
  /*transform: scale(1.05);*/
  transform: scale(0.95);
}

.nav {
  border: none;
  background: #2c3e50;
  color: white;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  cursor: pointer;

  display: flex; /* centro contenido */
  align-items: center; /* vertical */
  justify-content: center; /* horizontal */

  font-size: 60px; /* tamaño flecha */
  line-height: 1; /* evita desplazamiento */
}

.nav:hover {
  background: #1a252f;
}

.nav:disabled {
  background: #c3cad2;
}

.botones-carrusel {
  font-size: 50px;
}
.prev {
  margin-right: 10px;
}
.next {
  margin-left: 10px;
}

/*@media (max-width: 580px) {
  .popup-custom {
    max-width: 250px;
  }
}*/
