body {
  font-family: "Outfit", sans-serif !important;
  background-color: #273954;
}

#map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Panel Container for Vertical Cards */
.panel-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

/* Mobile layout - cards above map */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .panel-container {
    /* position: relative; */
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;

    gap: 0px;
    /* background: #273954; */
  }

  #map {

    /* position: relative; */

    height: 100%;
    width: 100%;
  }
}

/* Shared card style */
.card {
  width: 499px;
  background: #232d4b;
  border-radius: 12px 74px 12px 12px;
  /* full round on top-right */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Animation states */
.card.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delays */
.card:nth-child(1) {
  transition-delay: 0.2s;
}

.card:nth-child(2) {
  transition-delay: 0.4s;
}

.card-header {
  background: #232d4b;
  color: #fff;
  padding: 28px;
  border-radius: 8px 74px 0 0;
  /* keep top-right round */
  font-size: 36px;
}

.card-body {
  background: white;
  padding: 12px 28px;
}

/* Mobile collapsible functionality */
@media (max-width: 768px) {
  .card {
    width: 100%;
    border-radius: 8px; /* Remove round borders on mobile */

    /* margin: 0 0 10px 0; */
  }

  .card-header {
    border-radius: 8px 8px 0 0; /* Remove round borders on mobile */
    cursor: pointer;
    position: relative;
    padding-right: 60px; /* Make space for collapse button */
    font-size: 26px;
  }

  .collapse-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }

  .collapse-btn.collapsed {
    transform: translateY(-50%) rotate(180deg);
  }

  .card-content {
    max-height: none;
    overflow: visible;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
  }

  .card-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
}

/* Desktop - hide collapse buttons */
@media (min-width: 769px) {
  .collapse-btn {
    display: none;
  }
}

/* Search card specific */
.search-input-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
  position: relative;
}

.search-input-container input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 4px 4px 12px;
  outline: none;
  position: relative;
  height: 48px;
  font-size: 18px;
}

.search-input-container button {
  background: #e37325;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  position: absolute;
  right: 8px;
}

.search-footer {
  padding: 14px 28px;
  background: #f4f4f4;
  font-size: 18px;
  font-weight: bold;
  color: #232d4b;
  cursor: pointer;
}

/* Multiple search form styles */
.multiple-search-form {
  display: none;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  pointer-events: none;
}

.multiple-search-form.show {
  display: block;
  max-height: 500px;
  opacity: 1;
  overflow: hidden; /* Remove auto scroll from main container */
  pointer-events: visible;
}

.multiple-search-form-body {
  padding: 12px 28px;
}

/* Address inputs container with scroll */
#address-inputs {
  max-height: 300px; /* Set maximum height for scrollable area */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-right: 5px; /* Add some padding for scrollbar */
}

/* Custom scrollbar styling for address inputs */
#address-inputs::-webkit-scrollbar {
  width: 6px;
}

#address-inputs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#address-inputs::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#address-inputs::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.back-button {
  display: flex;
  align-items: center;
  color: #232d4b;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
  padding: 12px 28px;
  background: #f4f4f4;
}

.address-input-group {
  margin-bottom: 15px;
  position: relative;
}

.address-input-group input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 4px 4px 12px;
  outline: none;
  box-sizing: border-box;
  font-size: 18px;
  height: 48px;
}

.address-input-group input:focus {
  border-color: #e37325;
}

.remove-btn-container {
  position: absolute;
  right: 8px;
  top: 25px;
  transform: translateY(-50%);
}

.add-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.control-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.add-btn {
  background: #b1b1b5;
  color: white;
  transition: background-color 0.3s ease;
}

.add-btn:hover {
  background: #9c9c9f;
}

.remove-btn {
  background: #ccc;
  color: #666;
}

.remove-btn:hover {
  background: #ff4444;
  color: white;
}

.search-button {
  background: #e37325;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  display: inline-block;
  font-size: 18px;
}

.search-button:hover {
  background: #e68900;
}

.csv-upload {
  background: #f4f4f4;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.csv-upload-label {
  font-size: 18px;
  color: #232d4b;
}

.csv-upload-btn {
  background: #666;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.csv-upload-btn:hover {
  background: #555;
}

/* CSV File Display Styles */
.csv-file-display {
  background: #f4f4f4;
  padding: 10px 28px;
  border-top: 1px solid #ddd;
}

.csv-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.csv-file-name {
  font-size: 16px;
  color: #232d4b;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csv-cancel-btn {
  background: #ff4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.csv-cancel-btn:hover {
  background: #ff6666;
}

/* Layer panel specific */
.layer-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  column-gap: 12px;
}

.layer-toggle input[type="checkbox"] {
  appearance: none;
  width: 69px;
  height: 34px;
  background: #ddd;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 10px;
}

.layer-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  transition: transform 0.3s;
}

.layer-toggle input[type="checkbox"]:checked {
  background: #e37325;
}

.layer-toggle input[type="checkbox"]:checked::before {
  transform: translateX(34px);
}

.layer-toggle .dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-left: 8px;
}

.layer-toggle span {
  font-size: 18px;
  color: #232d4b;
  flex: auto;
}

.dot-dark {
  background: #232d4b;
  background: #808585;
}

.dot-blue {
  background: #5ea1d1;
}

.dot-white {
  background: white;
  border: 1px solid #BABABA;
}

.dot-yellow {
  background: #F5AA31;
  border: 1px solid #BABABA;
}

.dot-yellow_second {
  background: #F5CB87;
  border: 1px solid #BABABA;
}

.dot-line {
  background-image: url('./assets/lines.svg');
  background-size: contain;   /* scale SVG */
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #BABABA;
}

/* Search Results Card */
.results-card {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.results-card.show {
  display: block;
  max-height: 400px;
  opacity: 1;
}

.results-header {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.search-again-btn {
  display: flex;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
}

.results-content {
  padding: 0 28px 15px 28px;
}

.results-text {
  color: #666;
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.action-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 15px;
  justify-content: center;
}

.action-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.free-assessment-btn {
  background: #e37325;
  color: white;
}

.free-assessment-btn:hover {
  background: #e68900;
}

.contact-btn {
  background: transparent;
  color: #e37325;
  border: 2px solid #e37325;
}

.contact-btn:hover {
  background: #e68900;
  color: white;
}

.location-info {
  background: #f8f8f8;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 18px;
  color: #666;
}

.location-info strong {
  color: #333;
}

.suggestions {
  border: 1px solid #ccc;
  border-bottom: hidden;
  border-top: hidden;
  border-bottom-style: hidden;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.suggestions li {
  border-top: 1px solid #ccc;
  padding: 6px;
  cursor: pointer;
}

.suggestions li:hover {
  background: #eee;
}

/* Zoom Controls */
.zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: #e37325;
  border: 1px solid #e37325;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-in {
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.zoom-out {
  border-radius: 0 0 4px 4px;
}
