/* Contenedor Principal del Módulo */
.office-locator {
  display: flex;
background-color: #0355dd;
  color: #ffffff;
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
}

/* Barra Lateral */
.sidebar {
  width: 30%;
  min-width: 280px;
  background-color: #005ff9;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 40px;
  color:#fff;
}

/* Menú de Continentes */
.continents-menu {
  display: flex;
  flex-direction: column;
}

.continent-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.continent-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  text-align: left;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.3s;
}

.continent-toggle:hover {
  opacity: 1;
}

/* Estado Activo (Europa en la imagen) */
.continent-group.active .continent-toggle {
  opacity: 1;
  font-weight: bold;
}

/* Lista de Países */
.countries-list {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  display: none; /* Oculto por defecto */
}

.continent-group.active .countries-list {
  display: block; /* Visible solo si el grupo está activo */
}
.countries-list{
    background-color: #0355dd;
    padding: 23px 0 23px 1em !important;
}
.countries-list li {
  list-style-type: none;
}
.countries-list li:not(:last-child) {
  margin-bottom: 15px;
}

.countries-list li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: inline-block;
}

.countries-list li a:hover {
  opacity: 1;
}

/* Contenedor del Mapa */
.map-container {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Estilo temporal para cuando pegues tu SVG */
.map-container svg {
  width: 100%;
  height: auto;
  max-height: 100%;
}

/* Placeholder temporal (puedes borrar esto al meter el SVG) */
.map-placeholder {
  opacity: 0.5;
  font-style: italic;
  font-size: 14px;
  width: 100%;
}

/* Responsivo para Pantallas Móviles */
@media (max-width: 768px) {
  .office-locator {
    flex-direction: column;
  }
  .sidebar, .map-container {
    width: 100%;
  }
  .sidebar {
    padding: 25px 20px;
  }
}

.get_continente {
fill:  rgba(210,240,255,0.377);
}
/* Color base para todos los continentes del mapa (azul apagado como en tu imagen) */
#mapadominion path {
  fill: #2575fc; /* Ajusta al tono exacto de azul claro que quieras */
  transition: fill 0.3s ease;
  cursor: pointer;
}

/* Color cuando pasas el ratón por encima de un continente */
#mapadominion path:hover {
  fill: #5392ff;
}

/* Color cuando el continente está ACTIVO (seleccionado en el menú) */
#mapadominion path.highlighted {
  fill: #ffffff !important; /* Se vuelve blanco o resalta como en tu diseño original */
}

/* MODAL */

/* Fondo difuminado/oscurecido del modal */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 20, 50, 0.6); /* Fondo oscuro semitransparente */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Mostrar el modal */
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Caja contenedora */
.modal-container {
  background-color: #ffffff;
  width: 90%;
  max-width: 950px;
  min-height: 500px;
  display: flex;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Botón cerrar flotante */
.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: #0056f3;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Columna Izquierda (Azul) */
.modal-left {
  background-color: #0056f3;
  color: #ffffff;
  width: 40%;
  padding: 50px 40px;
  box-sizing: border-box;
}

.main-office-tag, .secondary-office-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 30px;
  font-weight:400;
}

.secondary-office-tag { color: #fff;font-weight:400; }

.office-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 25px 0;
}
.office-name{
    color:#fff;
    font-size: 14px;
    font-weight: 400;
}
.modal-right .office-name {
  color: #333333;
}

/* Elementos de información (Dirección, Teléfono, Email) */
.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
  font-weight:400;
}

.info-item .icon {
  margin-right: 12px;
  font-size: 16px;
}

.modal-left .info-item a { color: #ffffff; text-decoration: none; }
.modal-right .info-item a { color: #0056f3; text-decoration: none; }

/* Columna Derecha (Blanca) */
.modal-right {
  width: 60%;
  padding: 50px 50px 80px 50px; /* Espacio extra abajo para la paginación */
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Bloque divisor para múltiples oficinas en la misma página */
.office-block {
  margin-bottom: 35px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}
.office-block:last-child {
  border-bottom: none;
}

/* Contenedor e iconos de paginación */
.pagination-container {
  position: absolute;
  bottom: 30px;
  left: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pag-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #0056f3;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pag-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.pag-info {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-container { flex-direction: column; width: 95%; }
  .modal-left, .modal-right { width: 100%; padding: 30px; }
  .modal-close { top: 10px; right: 10px; }
}