/* ----- LAYOUT VARIABLES ----- */
:root {
  --main-container-max-width: 100vw;
  --content-max-width: 90vw;
  --navigation-max-width: 90vw;
  --footer-max-width: 90vw;
  --main-padding: 2vw;
  --main-padding-bottom: 5vh;
}

/* ----- BODY ----- */
.main-body {
  padding-left: calc(var(--bs-gutter-x) * 1);
  padding-right: calc(var(--bs-gutter-x) * 1);
  padding-top: 1vh;
}

/* ----- LAYOUT CONSISTENCY ----- */
.layout-container {
  max-width: var(--main-container-max-width);
  margin: 0 auto;
  padding: var(--main-padding);
  padding-bottom: var(--main-padding-bottom);
}

.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.navigation-container {
  max-width: var(--navigation-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.footer-container {
  max-width: var(--footer-max-width);
  margin: 0 auto;
}

/* Footer specific styling */
.custom-footer .row {
  margin: 0;
}

.custom-footer .col {
  padding: 10px 1vw;
}

/* Ensure proper column distribution for footer */
.custom-footer .row > .col:first-child {
  flex: 0 0 25%;
  /* First column: 25% */
}

.custom-footer .row > .col:nth-child(2) {
  flex: 0 0 25%;
  /* Second column: 25% */
}

.custom-footer .row > .col:last-child {
  flex: 0 0 50%;
  /* Third column: 50% (institutions) */
}

.logos-oficiais {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.link-to-dashs {
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  font-size: large;
}

.separator {
  margin-left: 10px;
  margin-right: 10px;
}

#disclaimer-open {
  margin-top: 1vh;
  background-color: inherit;
  color: #008cba;
  border: 1px #008cba solid;
  border-radius: 10% / 50%;
  padding: 1vh;
}

/* #disclaimer-open:hover {
  margin-top: 1vh;
  color: #006f94;
  border-radius: 10% / 50%;
  border: 1px gray solid;
  padding: 1vh;
}

#disclaimer-open:hover {
  margin-top: 1vh;
  color: white;
  background-color: #006f94;
  border: 0;
  padding: 1vh;
} */

/* ----- DROPDOWN ----- */
/* - INPUT FIELD - */
.custom-dropdown > .Select-control {
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.375rem 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-dropdown.is-focused:not(.is-open) > .Select-control {
  border-color: var(--bs-form-focused-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 140, 186, 0.25);
  outline: 0;
}

/* - SELECT ITEMS - */
.custom-dropdown .Select-value {
  background-color: var(--bs-form-dropdown-item);
  color: var(--bs-primary);
}

/* - ITEMS LIST -*/
.custom-dropdown .VirtualizedSelectFocusedOption {
  background-color: var(--bs-form-dropdown-item);
}

/* --- MULTI SELECT VALUE WRAPPER --- */
/* Handle the overflow and height of selected values */
.custom-dropdown .Select-multi-value-wrapper {
  height: 4em;
  /* Set the maximum height for selected items */
  overflow-y: scroll;
  /* Allow scrolling when there are too many selected items */
  width: 100%;
  /* Ensure the width matches the dropdown */
}

/* ----- DATE PICKER ----- */
/* - CONTAINER FIELD -*/
.custom-range-date-picker,
.custom-range-date-picker .DateRangePicker,
.custom-range-date-picker .DateRangePickerInput {
  width: 100%;
}

.custom-range-date-picker .DateRangePickerInput {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* - INPUT FIELDS - */
.custom-range-date-picker .DateInput {
  width: 45%;
}

.custom-range-date-picker .DateInput > input {
  text-align: center;
}

.custom-range-date-picker .DateInput > .DateInput_input__focused {
  border-bottom: var(--bs-border-width) solid var(--bs-primary);
}

/* - ARROW - */
.custom-range-date-picker .DateRangePickerInput_arrow {
  width: 10%;
}

.custom-range-date-picker
  .DateRangePickerInput_arrow
  > .DateRangePickerInput_arrow_svg {
  fill: var(--bs-primary);
}

/* - CALENDAR - */
.custom-range-date-picker .CalendarDay__selected_span {
  background: var(--bs-primary);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.custom-range-date-picker .CalendarDay__selected {
  background: var(--bs-primary-darker);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.custom-range-date-picker .DateRangePicker_picker {
  left: 20% !important;
}

.custom-range-date-picker .DateInput_fang {
  z-index: 0;
}

.custom-range-date-picker .DateInput_fangStroke {
  stroke: #00000000;
  fill: #00000000;
}

/* - CALENDAR TOOLTIP -*/
.custom-range-date-picker
  .DayPickerKeyboardShortcuts_show__bottomRight::before {
  border-right: 33px solid var(--bs-primary);
}

/* ----- BUTTONS ----- */
.full-w-button {
  width: 100%;
}

/* ----- FOOTER ----- */
.custom-footer {
  background: var(--bs-gray-200);
  left: 0;
  margin-top: 0;
  padding-top: 1em;
  position: absolute;
  right: 0;
  width: 100%;
  margin: auto;
  padding-bottom: 30px;
}

.footer-container {
  color: var(--bs-gray-600);
  font-size: 0.75rem;
  margin-left: calc(var(--bs-gutter-x) * 3);
  margin-right: calc(var(--bs-gutter-x) * 3);
  padding-top: 10px;
}

.faq-column > div {
  height: 100%;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ----- COLOR PATH MAP ----- */
.map-column > div {
  width: 100%;
  aspect-ratio: 5 / 4;
}

/* ----- LINKS ----- */
a.disabled {
  color: var(--bs-color-pallete-green);
  pointer-events: none;
}

/* ----- TOGGLE ----- */
.gJuplL {
  background: var(--bs-primary) !important;
}

/* ----- Buttons ----- */
/* Let Bootstrap handle all button styling - no overrides needed */

/* Custom button styles - only apply to specific custom buttons, not Bootstrap buttons */
.custom-btn {
  -webkit-border-radius: 7;
  -moz-border-radius: 7;
  border-radius: 7px;
  font-family: Arial;
  color: #195ca9;
  font-size: 15px;
  background: #ffffff;
  padding: 10px 10px 10px 10px;
  border: solid #195ca9 1px;
  text-decoration: none;
  margin-left: 2px;
  margin-right: 2px;
}

.custom-btn {
  height: 50px;
}

@media (min-width: 1200px) {
  .custom-btn {
    width: 80%;
  }
}

@media (min-width: 992px) {
  .custom-btn {
    height: 70px;
  }
}

.download-btn {
  font-family: Arial;
  color: #525252;
  font-size: 17px;
  background: none;
  border: none;
  text-decoration: none;
}

.download-btn:hover {
  color: #195ca9;
  text-decoration: none;
}

.custom-btn:hover {
  background: #195ca9;
  color: #ffffff;
  text-decoration: none;
}

.custom-btn-reset {
  -webkit-border-radius: 7;
  -moz-border-radius: 7;
  border-radius: 7px;
  font-family: Arial;
  color: #d15466;
  font-size: 15px;
  background: #ffffff;
  padding: 10px 10px 10px 10px;
  border: solid #d15466 1px;
  text-decoration: none;
  margin-left: 2px;
  margin-right: 2px;
}

.custom-btn-reset:hover {
  background: #d15466;
  color: #ffffff;
  text-decoration: none;
}

.info {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.info h4 {
  margin: 0 0 5px;
  color: #777;
}

.pie_marker {
  background-color: transparent;
}

.section-title {
  color: #195ca9;
}

.modal-content,
/* Let Bootstrap handle card and input-group border-radius */

#title-header {
  border: none !important;
  text-decoration: none !important;
}

#leaflet_map_dengue {
  z-index: 0 !important;
}

/* Raise the z-index of dropdown menus and date pickers */
.Select-menu-outer,
.DatePickerSingle .DayPickerPortal,
.DateRangePicker .DayPickerPortal {
  z-index: 1051 !important;
}

/* Default: small screens */
.responsive-map {
  width: 100%;
  aspect-ratio: 3 / 4; /* tall on mobile */
}

/* Medium & large screens (≥992px) */
@media (min-width: 840px) {
  .responsive-map {
    aspect-ratio: 16 / 9; /* standard widescreen */
  }
}

/* Extra large screens (≥1200px) */
@media (min-width: 1700px) {
  .responsive-map {
    aspect-ratio: 21 / 9; /* ultrawide on big monitors */
  }
}
