.page-ale {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.page-ale .location-tooltip {
  display: none !important;
}

.page-ale .ale-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-ale .ale-top-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.page-ale .ale-voltar {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 0;
}

.page-ale .ale-titulo {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-ale .ale-weather {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 0 !important;
  flex-shrink: 0;
  margin-left: auto;
}

.page-ale .ale-weather-temp {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}

.page-ale .ale-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.page-ale .ale-weather-icon svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  color: #FFB800;
  display: inline-block;
  vertical-align: middle;
}

.page-ale .ale-mapa {
  flex: 1;
  min-height: 0;
  background-color: #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.page-ale .ale-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.page-ale .ale-panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.page-ale .ale-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.page-ale .ale-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #999;
  flex-shrink: 0;
}

.page-ale .ale-search-icon svg {
  width: 20px;
  height: 20px;
}

.page-ale .ale-search-icon.loading svg {
  display: none;
}

.page-ale .ale-search-icon.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #FFB800;
  border-radius: 50%;
  animation: ale-spin 0.6s linear infinite;
}

@keyframes ale-spin { to { transform: rotate(360deg); } }

.page-ale .ale-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  flex-shrink: 0;
  padding: 0;
}

.page-ale .ale-gps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #FFB800;
  flex-shrink: 0;
  padding: 0;
}

.page-ale .ale-gps-btn svg {
  width: 18px;
  height: 18px;
}

.page-ale .ale-clear-btn svg {
  width: 20px;
  height: 20px;
}

.page-ale .ale-input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: transparent;
}

.page-ale .ale-input::placeholder {
  color: #aaa;
}

.page-ale .ale-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: calc(100% - 1.5rem);
  margin: 0.5rem 0.75rem;
  padding: 0.5rem;
  background: #FFB800;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.page-ale .ale-add-btn:hover {
  background: #e5a600;
}

.page-ale .ale-add-btn svg {
  width: 16px;
  height: 16px;
}

#ale-enderecos-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.page-ale .endereco-grupo {
  padding: 0;
}

.page-ale .endereco-grupo:first-of-type {
  margin-top: 0.5rem;
}

.page-ale .endereco-grupo-titulo {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 0.5rem;
  padding: 0 1rem;
}

.page-ale .endereco-grupo-contagem {
  font-weight: 400;
  color: #bbb;
}

.page-ale .endereco-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-ale .endereco-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.12s;
}

.page-ale .endereco-card:last-child {
  border-bottom: none;
}

.page-ale .endereco-card:hover {
  background: #fafafa;
}

.page-ale .endereco-card-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.page-ale .endereco-card-info svg {
  width: 18px;
  height: 18px;
  color: #FFB800;
  flex-shrink: 0;
  margin-top: 2px;
}

.page-ale .star-icon {
  color: #FFB800 !important;
  fill: #FFB800;
}

.page-ale .endereco-card-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-ale .endereco-card-rua {
  font-size: 0.82rem;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-ale .endereco-card-coords {
  font-size: 0.72rem;
  color: #bbb;
  font-family: monospace;
}

.page-ale .endereco-card-data {
  font-size: 0.75rem;
  color: #999;
}

.page-ale .endereco-card-acoes {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.page-ale .endereco-card-star,
.page-ale .endereco-card-apagar {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-ale .endereco-card-star {
  color: #999;
}

.page-ale .endereco-card-apagar {
  color: #e74c3c;
}

.page-ale .endereco-card-star svg,
.page-ale .endereco-card-apagar svg {
  width: 18px;
  height: 18px;
}

.page-ale .ale-suggestions {
  display: none;
  position: fixed;
  background: #fff;
  z-index: 10001;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0;
  max-width: 340px;
  min-width: 260px;
}

.page-ale .ale-suggestions.open { display: block; }

.page-ale .ale-sug-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.12s ease;
}

.page-ale .ale-sug-item:last-child { border-bottom: none; }
.page-ale .ale-sug-item:hover { background: #f9f9f9; }
.page-ale .ale-sug-item strong { font-weight: 700; }

.page-ale .ale-sug-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #999;
  margin-top: 2px;
}

.page-ale .ale-sug-icon svg { width: 18px; height: 18px; }

.page-ale .ale-sug-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-ale .ale-sug-name {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.3;
}

.page-ale .ale-sug-end {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.2;
}

.page-ale .ale-sug-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

.maplibregl-ctrl-bottom-right {
  margin: 0 12px 12px 0;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #333;
  transition: background 0.15s;
  position: static;
  border-radius: 4px;
  padding: 0;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:disabled {
  opacity: 0.3 !important;
  cursor: default !important;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:hover {
  background: #fff;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button svg {
  width: 18px;
  height: 18px;
}
