/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f500;
}

.wrapper {
  display: flex;
  height: auto;
  width: 100vw;
  overflow: hidden;
  position: center;
}

.card-box {
  width: 400px; /* tamanho mais compacto */
  background: #c62828;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 25px 55px;
  border-radius: 78px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  font-family: 'Segoe UI', sans-serif;

  /* Novos recursos */
  height: auto;                    /* Altura ajustada ao conteúdo */
  max-height: 90vh;                /* Limite de altura para não ultrapassar a tela */
  overflow-y: auto;                /* Scroll interno se ultrapassar altura máxima */
  align-self: center;          /* Alinhado ao topo (use 'center' para centralizar) */
  /* position: relative;              /* Mantenha relative (ou troque para absolute se necessário) */
  position: absolute;
  top: 200px;
  left: 50px; /* ou right: 20px */


}


.card-box .pin {
  width: 56px;
  height: 54px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 12px;
}

.card-box h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.card-box .card p {
  font-size: 13px; /* de 14px para 13px */
  margin-bottom: 8px;
}

.card-box input {
  padding: 8px;
  width: 100%;
  border-radius: 4px;
  border: none;
  margin-bottom: 8px;
  font-size: 13px; /* menor */
  outline: none;
}

.card-box input::placeholder {
  color: #ccc;
}

.card-box input:focus {
  outline: 2px solid white;
  background: #e53935;
  color: white;
}

.card-box button {
  padding: 8px;
  background: white;
  color: #c62828;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.card-box button:hover {
  background: #f0f0f0;
}

.card-box .description {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.4;
}

.map-box {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 100vh;
  position: relative;
  top: 5px;
  left: 5px; /* ou right: 20px */
  z-index: 1000;
  transition: flex 0.3s ease;
  background: linear-gradient(to bottom right, #e0e0e000, #ffffff00); /* <-- NOVO FUNDO */
}

.map-box.fullscreen {
  flex-grow: 1;
}

#map {
  width: 100%;
  height: 100%;
  background: transparent; /* <-- IMPORTANTE: deixa o gradiente da map-box visível */
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important; /* <-- já está correto */
}

#back-button {
  position: absolute;
  top: 10px;
  left: 15px;
  z-index: 2000;
  background: white;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: bold;
  display: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#back-button:hover {
  background: #f0f0f0;
}

.state-label {
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 2px #000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#info-card {
  position: absolute;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 2500;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  display: flex;
  flex-direction: column;
}

#info-card::-webkit-scrollbar {
  width: 6px;
}

#info-card::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

#info-card.visible {
  right: 0;
}

#info-card h2 {
  font-size: 20px;
  color: #c62828;
  margin-bottom: 10px;
}

#info-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  display: block;
}

#info-card p strong {
  font-weight: bold;
  margin-right: 5px;
  display: inline;
}

#info-card p i {
  margin-right: 6px;
  color: #c62828;
}

.map-link {
  display: inline-block;
  background-color: #c62828;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin: 12px 0;
  transition: background 0.3s ease;
}

.map-link:hover {
  background-color: #c62828;
}

#info-card ul {
  padding-left: 0;
  margin-top: 10px;
  list-style: none;
  columns: 2;
}

#info-card ul li {
  font-size: 13px;
  color: #444;
  margin-bottom: 5px;
  position: relative;
  padding-left: 12px;
}

#info-card ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: orange;
}

#card-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

#info-card-content {
  padding: 25px 20px;
  flex: 1;
}

#card-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-weight: bold;
}

.leaflet-control-attribution .leaflet-attribution-flag {
  display: none !important;
}

.map-link.outline {
  background-color: #f5f8fd;
  color: #333333;
  border: 1px solid #FFD700;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.map-link.outline i {
  color: #FFD700;
  font-size: 14px;
}

.map-link.outline:hover {
  background-color: #fff8e1;
  border-color: #e6c200;
  color: #e6c200;
}

.creditos-polzin {
  position: absolute;
  bottom: 10px;
  right: 450px;
  z-index: 3000;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.creditos-polzin a {
  color: #000000 !important;
  text-decoration: none;
  font-weight: bold;
}

.creditos-polzin a:hover {
  text-decoration: underline;
}

