/* -----------------------------------------------
   Styles spécifiques pour /address
----------------------------------------------- */

/* Form wrapper & suggestions */
.address-form-wrapper {
  position: relative;
  max-width: 520px;
}

.suggestions {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  position: absolute;
  z-index: 10;
  width: 100%;
}

.suggestion-item {
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

/* Buttons: utilise les classes phit existantes */
#analyseAddressBtn {
  @apply phit-btn-primary;
}

#exportAddressPdfBtn {
  @apply phit-btn-secondary;
}

/* Address Map */
#addressMap {
  height: 70vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ddd;
}

/* Table official vs technique */
#addressSystemsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#addressSystemsTable th {
  background: #f5f5f5;
}

#addressSystemsTable tbody tr:hover {
  background-color: #f8f8f8;
}

/* Toggle technical rows button */
.btn-link {
  background: none;
  border: none;
  color: var(--phit-primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

#mapWrapper {
  position: relative;
  width: 100%;
  background: #fff;
  padding: 4px;
}

#aleaLegend {
  margin-top: 4px;
  font-size: 0.9rem;
}

#aleaLegend span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

/* Ligne séparateur tableau technique */
.tech-toggle-row td {
  background: var(--color-background-secondary, #f5f5f5);
  border-top: 1px solid var(--color-border-tertiary, #ddd);
}
