/* Layout & Container Styles */
.home-container {
  max-width: 95%;
  min-height: 60vh;
  margin: auto;
}

.sub-heading {
  display: flex;
  justify-content: space-between;
}

.home-container h1 {
  font-size: 30px;
  font-weight: 700;
  color: #067577;
  margin-top: 3rem;
}

/* Back Button Styles */
.back-btn {
  text-align: left;
}

.back-btn a {
  text-decoration: none;
  color: #004d66;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.back-btn a::before {
  content: "<";
  font-size: 20px;
  margin-right: 8px;
}

/* Form Container Styles */
.selection-container {
  padding: 10px;
  gap: 0;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 100%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  margin: auto 0;
}

.address-form-container {
  background-color: #f0f8ff;
  padding: 20px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 10px;
  margin: 10px 0 5px 0;
}

/* Address Input Styles */
.address-fields {
  display: flex;
  align-items: center;
  max-width: 1200px;
  gap: 10px;
  justify-content: center;
}

.address-input {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #1a629e;
  outline: none;
  width: 800px;
  flex: none;
  min-width: 0;
  box-shadow: 0px 4px 4px 0px #0000001a inset;
}

.or-divider {
  color: #0077b6;
  font-weight: bold;
  font-size: 20px;
  padding: 0 10px;
}

/* Validation Section */
.validation-section {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.valid-postcode {
  font-weight: 700;
  font-size: 18px;
  color: #067577;
}

/* Map Layers Sidebar */
.map-layers {
  height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1a629e transparent;
  border-radius: 5px;
  box-shadow: 0px 4px 4px 0px #00000040;
  background: #f6fbff;
  padding: 10px !important;
}

.map-layers h2 {
  font-size: 15px;
  font-weight: 400;
  line-height: 15.62px;
  letter-spacing: -0.03em;
  text-align: center;
  color: #1a629e;
  display: flex;
  box-shadow: 0px 4px 4px 0px #00000040;
  background: #dcecf9;
  border-radius: 20px;
}

.map-layers h2 img {
  width: 30px;
  height: 30px;
  margin: auto;
  margin-left: 10px;
}

/* Demographics Controls Sidebar */
.demographic-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  background: #f6fbff;
  height: calc(100vh - 130px);
  overflow-y: auto;
  border-radius: 5px;
  scrollbar-color: #007bff transparent;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.carrier-route-heading {
  color: #067577;
}

#carrier_id {
  color: red;
}

/* Table Styles */
.table th,
.table td {
  font-size: 14px;
  font-weight: 700;
  line-height: 23.44px;
  text-align: left;
  color: #067577;
}

.table td {
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* Note Section */
.note {
  padding: 12px 15px;
  background: #ffffff;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 10px;
}

.note-display {
  color: #1a629e;
  font-weight: 600;
  font-size: 15px;
}

/* Map Container */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Validate Button */
#billboards-validate-btn {
  padding: 10px;
  border-radius: 10px;
  color: white;
  width: 180px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26.04px;
  transition: background 0.3s ease, transform 0.2s ease;
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 0.8) 100%);
  border-color: unset;
}

#billboards-validate-btn:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

/* Loading Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: none;
}

.loader-icon {
  font-size: 2em;
  vertical-align: middle;
  margin-right: 0.5em;
}

.overlay-text {
  color: white;
}

.select-header {
  font-weight: 600;
  font-size: 16px;
  color: #0f395c;
  margin-left: 2px;
  text-align: center;
  margin-top: 1rem;
}

/* Accordion Styles */
.accordion-button::after {
  display: none !important;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.accordion-item {
  background: none;
}

.accordion-body {
  box-shadow: 0px 4px 4px 0px #00000040;
  background: #eef6fc;
  border-radius: 0 0 20px 20px;
}

/* Accordion Button Styling */
.accordion-flush > .accordion-item > .accordion-header .accordion-button,
.accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed {
  border-radius: 0px 20px 20px 0px;
  background: #dcecf9;
  box-shadow: none;
}

.accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed + .accordion-header {
  border-radius: 0px 20px 20px 0px;
}

.accordion-flush > .accordion-item > .accordion-header .accordion-button:not(.collapsed) {
  border-radius: 0px 20px 0px 0px;
}

/* Custom Accordion Icons */
.accordion-button .icon {
  position: absolute;
  right: 20px;
  font-size: 20px;
  font-weight: bold;
}

.accordion-button.collapsed .icon:before {
  content: "+";
}

.accordion-button:not(.collapsed) .icon:before {
  content: "-";
}

/* Feature Section Styles */
.feature-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto 0;
  background: #dcecf9;
  border-radius: 10px;
  padding: 20px;
  transition: border-radius 0.3s, box-shadow 0.3s;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.slider-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a629e;
}

.options-container.active {
  display: block;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  gap: 10px;
}

.layer-wrapper.active {
  background: rgb(246, 251, 255);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 4px 0px;
  padding-top: 0.4rem;
  margin-top: 1rem;
}

.feature-section.active {
  background-color: #bfdff2;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 4px 0px;
  max-width: 86%;
  padding: 5px;
}

.feature-content.active {
  flex-direction: row;
}

/* noUiSlider Styles */
.js-nouislider.age,
.js-nouislider.income,
.js-nouislider.mileage {
  height: 4px;
  margin: 20px 10px;
}

.noUi-target {
  border: none;
  box-shadow: none;
  background: #e2e8f0;
}

.noUi-connect {
  background: #4299e1;
}

.noUi-handle {
  width: 20px !important;
  height: 20px !important;
  right: -10px !important;
  top: -8px !important;
  border-radius: 50%;
  background: #2c5282;
  box-shadow: none;
  border: none;
  cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-tooltip {
  font-size: 12px;
  background: #2d3748;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
}

.noUi-active .noUi-tooltip {
  display: block;
}

/* Custom Popup Styles */
.billboard-custom-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  display: contents;
}

.billboard-custom-popup .leaflet-popup-tip-container {
  display: none;
}