/* Hidden utility */
.hidden {
  display: none !important;
}

/* Fullscreen map wrapper + map */
.map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  z-index: 999 !important;
}

/* Optional: prevent any parent spacing issues */
#dform_widget_gis_le_gis.map-fullscreen,
#dform_widget_le_gis.map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
}

/* Esri controls */
.esri-ui-top-right {
  top: 20px !important;
  right: 20px !important;
  z-index: 1001 !important;
}

/* Esri popup */
.esri-popup__main-container {
  top: 100px !important;
  max-height: 400px !important;
  z-index: 1001 !important;
}

/* Location popup */
.location-popup {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1002;
  width: 320px;
  max-width: calc(100vw - 32px);
  background-color: #fff;
  padding: 24px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bottom-box {
  text-align: center;
}

.location-icon {
  margin-bottom: 12px;
}

.location-message {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #1F2937;
}

.selected-address {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  word-break: break-word;
}

/* Generic gov button styling for open / confirm / change */
.btn-gov {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  background-color: #00672f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
  text-decoration: none !important;
}

.btn-gov:hover:not(:disabled) {
  background-color: #005526 !important;
}

.btn-gov:disabled {
  background-color: #ccc !important;
  border-color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

/* Button container */
.change-location-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 0;
}

/* Mobile app header */
.mobile-app-header {
  display: flex;
  align-items: center;
  padding: 10px;
  color: white;
  border-bottom: 12px solid #777772;
  background-color: #003049 !important;
}

.header-logo img {
  height: 30px;
}

/* Category styles */
.category-styled {
  color: #222;
  text-align: left;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 10px 0;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-left: 6px solid #D1BF91;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .location-popup {
    bottom: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 20px;
  }

  .location-message {
    font-size: 15px;
  }

  .btn-gov {
    width: 100% !important;
  }

  .esri-ui-top-right {
    top: 12px !important;
    right: 12px !important;
  }

  .esri-popup__main-container {
    top: 80px !important;
    max-width: calc(100vw - 24px) !important;
  }
}
