/* ================================== */
/* ARCHIVO: radar-chart-styles.css    */
/* ================================== */

/* --- Contenedores principales --- */
.home-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding-top: 0px;
}

.map-container {
  flex: 0 1 700px;
}

.chart-container {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

/* --- Estilos del gráfico --- */
#wrap {
  position: relative;
  width: 400px;
  height: 400px;
  background: transparent;
}

#chart {
  opacity: 0;
}

#pointArea .point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 10px;
  margin: -6px 0 0 -6px;
  background: #fff;
  border-style: solid;
  border-width: 2px;
  transition: all 0.2s ease;
}

#pointArea .point:hover {
  width: 16px;
  height: 16px;
  border-radius: 10px;
  margin: -8px 0 0 -8px;
  transform: scale(1.1);
}

#balloonArea .balloon {
  position: absolute;
  background-color: rgba(8, 15, 26, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 140px;
  color: #fff;
  margin: -110px 0 0 -70px;
  display: none;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  text-align: center;
  overflow: hidden;
  pointer-events: none;
}

#balloonArea .balloon .accent-bar {
  height: 4px;
  width: 100%;
  border-radius: 0;
}

#balloonArea .balloon .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 8px 0 2px;
  padding: 0 10px;
}

#balloonArea .balloon .dimension {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
  padding: 0 10px;
  opacity: 0.95;
  line-height: 1.3;
}

#balloonArea .balloon .score {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  padding: 0 10px;
  line-height: 1.1;
}

#balloonArea .balloon .maxScore {
  font-size: 12px;
  opacity: 0.55;
  margin: 2px 0 10px;
  padding: 0 10px;
}

/* ================================================= */
/* [NUEVO] ESTILOS PARA INDICADORES Y BUSCADORES     */
/* ================================================= */

/* Contenedor del input de comparación */
#compare-search-container {
  margin-bottom: 20px;
  padding: 0 15px;
}

.compare-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Estilos para los indicadores de color */
.color-indicator {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Para que no interfiera con el clic */
}

.main-indicator {
  background-color: #0BA3B8; /* Celeste */
  left: 42px; /* Posicionado después del icono de lupa */
}

.comparison-indicator {
  background-color: #FF6A13; /* Naranja */
  left: 15px;
}

/* Ajuste de padding para el input de comparación */
.compare-input-wrapper {
  position: relative;
}

#compare-search-input {
  width: 100%;
  padding: 12px 15px 12px 35px;
  background-color: rgba(10, 58, 102, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

/* Ajuste de padding para el input principal (se asume que sus estilos base están en otro archivo) */
#search-input {
    padding-left: 62px;
}


#compare-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#compare-search-input:focus {
  outline: none;
  border-color: #FF6A13; /* Naranja */
  background-color: rgba(0, 0, 0, 0.3);
}

/* ================================================= */
/* ESTILOS UNIFICADOS PARA AMBOS DROPDOWNS           */
/* ================================================= */

.search-results-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  color: #fff;
  background-color: rgba(10, 58, 102, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 163, 184, 0.5);
  z-index: 1001;
}

.search-results-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-dropdown .continent-item > span {
  display: block;
  padding: 12px 20px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: default;
}

.search-results-dropdown .city-list {
  padding-left: 0;
  display: block;
}

.search-results-dropdown .city-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.search-results-dropdown .world-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-dropdown .world-item .fa-globe {
  margin-right: 10px;
  opacity: 0.8;
}

.search-results-dropdown .world-item:hover,
.search-results-dropdown .city-item:hover {
  background-color: #0BA3B8;
}

.search-results-dropdown .city-name {
  font-weight: 600;
}

.search-results-dropdown .country-name {
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 8px;
}