/* ===== VARIÁVEIS DE COR ===== */
:root {
  --teal:  #0a1a3a;
  --teal-hover:  #0a1a3a;
  --teal-light:  #0a1a3a;
  --purple: #6a0dad;
  --purple-hover: #5a0b9a;
  --navy: #0a1a3a;
  --navy-hover: #0d2247;
  --bg-dark: #000000;
  --bg-card: #121212;
  --border-dark: #333;
  --border-card: #222;
  --text-muted: #e0e0e0;
  --text-dim: #d4d4d4;
}

/* ===== ESTILOS GLOBAIS ===== */
body {
  background-color: var(--bg-dark);
  color: white;
  font-family: 'Inter', sans-serif;
}

/* ===== HEADER / NAVBAR ===== */
.navbar-teal {
  background-color: var(--navy) !important;
}

.navbar-teal .nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-teal .nav-link:hover {
  color: #dddddd !important;
}

.navbar-teal .nav-link.activo {
  color: white !important;
  border-bottom: 2px solid white;
}

.navbar-teal .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== METEOROLOGIA (NAVBAR) ===== */
.weather-badge {
  font-size: 0.85rem;
  color: white;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.4;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main {
  min-height: 60vh;
  padding: 20px 0;
}

/* ===== CARDS (Index) ===== */
.card-custom {
  border: 2px solid #888888;
  border-radius: 10px;
  min-height: 150px;
  transition: 0.5s;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.card-custom:hover {
  background-color: #888888;
  color: black;
  cursor: pointer;
}

.card-custom p {
  margin: 0;
  font-size: 14px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

/* ===== CONTAINER DAS PÁGINAS SECUNDÁRIAS ===== */
.container-page {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-dark);
  padding: 30px;
  border-radius: 15px;
}

/* ===== BOTÃO VOLTAR ===== */
.btn-teal {
  background-color: var(--teal);
  color: white;
  font-weight: 600;
  border-radius: 5px;
  transition: 0.3s;
  border: none;
}

.btn-teal:hover {
  background-color: var(--teal-hover);
  color: white;
  transform: scale(1.05);
}

/* ===== LISTAS ===== */
ul {
  list-style-position: inside;
  text-align: left;
  display: inline-block;
}

li {
  margin: 10px 0;
}

/* ===== TÍTULOS ===== */
h1 {
  color: #d4d4d4;
}

/* ===== TEXTO SECUNDÁRIO (Bootstrap override) ===== */
.text-secondary {
  color: #cccccc !important;
}

.text-teal {
  color: white;
}

.text-teal-light {
  color: white;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--navy);
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

footer h5 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid white;
  padding-bottom: 8px;
  display: inline-block;
}

footer p {
  margin: 8px 0;
  font-size: 14px;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #dddddd;
  text-decoration: underline;
}

/* ===== LOCAIS (details/summary) ===== */
.details-locais {
  text-align: left;
  margin: 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}

.details-locais summary {
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: inline-block;
  border-bottom: 2px dashed var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.details-locais summary:hover {
  color: #00baba;
}

.details-locais summary::-webkit-details-marker {
  display: none;
}

.info-content {
  margin-top: 15px;
  padding: 15px;
  background-color: #111;
  border-left: 3px solid var(--teal);
  border-radius: 4px;
}

.info-content p {
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: var(--text-muted);
}

.local-img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: 8px;
  border: 1px solid #444;
  display: block;
  margin: 10px auto 0 auto;
}

/* ===== MAPA ===== */
.mapa-container iframe {
  max-width: 100%;
  border-radius: 8px;
}

/* ===== MERCADOS ===== */
.card-mercado {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  text-align: center;
  height: 100%;
}

.card-mercado:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 6px 12px rgba(0, 128, 128, 0.2);
}

.card-mercado h5 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card-mercado p {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cccccc;
}

.card-mercado a {
  color: #bbbbbb;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.card-mercado a:hover {
  color: #eeeeee;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  color: #e8e8e8;
}

/* ===== SEPARADOR ===== */
hr {
  border: 0.5px solid #333;
  margin: 20px auto;
  width: 90%;
}

/* ===== METEOROLOGIA (CONTEÚDO PRINCIPAL) ===== */
.weather-main {
  font-size: 1rem;
  color: #e0e0e0;
  text-align: left;
}

/* ===== BARRA DE PESQUISA ===== */
.search-bar-container {
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border-radius: 25px;
  border: 1px solid #555;
  background-color: #1a1a1a;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input::placeholder {
  color: #bbbbbb;
}

.search-input:focus {
  border-color: #bbbbbb;
}

/* ===== RESULTADOS DA PESQUISA ===== */
.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background-color: #1a1a1a;
  border: 1px solid #555;
  border-radius: 10px;
  margin-top: 4px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #2a2a2a;
  color: white;
}

.search-result-snippet {
  display: block;
  font-size: 0.85rem;
  color: #cccccc;
  margin-top: 2px;
}