/* ==========================================================================
   1. CONTENEDOR PRINCIPAL
   ========================================================================== */
.om-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  min-height: 600px;
}

.om-map-canvas {
  width: 100%;
  max-width: 800px;
  position: relative;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

/* Badge informativo (arriba del mapa) */
.province-badge {
  background: #333333;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
  font-family: "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  min-width: 280px;
  text-align: center;
  border-left: 6px solid #b71c1c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.om-map-canvas svg {
  width: 100% !important;
  height: auto !important;
  display: block;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
   2. ESTILOS DEL MAPA (SIN TEXTOS)
   ========================================================================== */

/* Color base: Gris fuerte para todas las provincias */
svg path.provincia-path,
svg #cusco-map path {
  fill: #757575 !important; /* Gris oscuro sólido */
  stroke: #ffffff !important; /* Bordes blancos */
  stroke-width: 1.5px !important;
  transition:
    fill 0.3s ease,
    stroke 0.3s ease !important;
  cursor: pointer !important;
}

/* EFECTO HOVER: Rojo institucional */
svg path.provincia-path:hover,
svg #cusco-map path:hover {
  fill: #b71c1c !important;
  stroke: #8e1616 !important;
  filter: drop-shadow(0px 0px 8px rgba(183, 28, 28, 0.4));
}

/* ESTADO SELECCIONADO: Cuando se hace clic */
svg path.provincia-path.is-active {
  fill: #8e1616 !important;
  stroke: #333333 !important;
  stroke-width: 2px !important;
}

/* ==========================================================================
   3. TABLA DE DETALLES
   ========================================================================== */
#projects-table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* ==========================================================================
* 4. MODAL
* ========================================================================== */
.om-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.om-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 40px;
  width: 90%;
  max-width: 1100px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.om-modal-header-banner {
  background-color: #b10e24;
  display: inline-block;
  padding: 10px 40px 10px 20px;
  border-radius: 0 25px 25px 0;
  margin-left: -40px;
  margin-bottom: 30px;
}

#province-name-modal {
  color: #ffffff;
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.om-modal-close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.om-modal-close:hover {
  color: #b71c1c;
}

.om-projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.om-projects-table th {
  border-bottom: 2px solid #333;
  padding: 15px 10px;
  text-align: left;
  color: #333;
  font-weight: bold;
}

.om-projects-table td {
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  color: #666;
  vertical-align: middle;
}

.col-actions a {
  color: #b10e24;
  text-decoration: none;
  font-weight: 500;
}

.action-links {
  display: flex;
  gap: 10px;
}

.btn-icon {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: #b10e24;
}

.badge-good-practice {
  background-color: #fef9c3;
  color: #a16207;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #fde047;
  font-weight: bold;
  cursor: help;
  vertical-align: middle;
}

.badge-good-practice:hover {
  background-color: #fde047;
  color: #854d0e;
}
