/* ===========================================
   LOCATION INPUT COMPONENT STYLES
   Extracted from property_or_development_add.css
   =========================================== */

/* Essential Utility Classes */
.display-none {
  display: none;
}

.close {
  /* Used with .collapse-box for animations */
}

.is-empty {
  /* Utility class for empty states */
}

.blue-border {
  border-color: #007bff !important;
}

.manual-search {
  /* Utility class for manual search sections */
}

/* Structure and Animation Classes */
.collapse-box:not(.close) {
  transition: all 0.9s ease;
}

/* ✅ Estado visible: ocupa espacio, se muestra */
.collapse-box {
  height: auto; /* o la altura específica que uses */
  opacity: 1;
  overflow: visible;
}

/* ✅ Estado oculto: desaparece de forma abrupta */
.collapse-box.close {
  transition: none !important; /* esto anula cualquier animación */
  height: 0;
  opacity: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.liselcont {
  height: 54px;
}
.action-btns-cont {
  margin-top: 32px !important;
}
/* Location Lists */
.location-list {
  max-height: 300px;
  width: 260px;
  overflow-y: scroll;
  margin-top: 30px;
}

.subzone-list {
  max-height: 140px;
}

/* Search Location Container */
#new_prop_search_location {
  position: relative;
}

.search-right-icon {
  position: absolute;
  top: 11px;
  right: 11px;
}

#location-close-search {
  cursor: pointer;
}

/* Selected Location Display */
#new_prop_selected_location {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#new_prop_selected_location span {
  font-size: 14px;
  line-height: 18px;
  font-family: "Nunito sans";
}

#new_prop_selected_location .icon-ubicacion {
  margin-right: 11px;
  height: 14px;
  align-self: center;
}

#new_prop_selected_location button {
  float: right;
}

.selected-location-cont {
  display: flex;
}

/* Search Results */
#new_prop_search_locations_list {
  width: 100%;
}

#new_prop_search_locations_results {
  max-height: 300px;
  overflow-y: scroll;
}

.location-result {
  padding: 11px 12px;
}

#new_prop_search_locations_results div[data-location_id="0"] {
  pointer-events: none;
}

/* Dropdown Specific */
.new-prop-dropdown {
  width: 100%;
}

/* Zipcode Opacity */
.li-zipcode-opacity {
  opacity: 0.5;
}

/* Input Search Specific */
.input-search .buscador {
  padding-right: 24px;
}

/* Focus States for Location Inputs */
#new-prop-country-select:focus,
#new-prop-region-select:focus,
#new-prop-zone-select:focus,
#new-prop-subzone-select:focus,
#new-prop-subsubzone-select:focus {
  border-color: #6f838d !important;
}

/* Dropdown Height Limits */
#new-prop-subzone-list {
  max-height: 179px;
}

#new-prop-zone-list {
  max-height: 258px;
}

/* Shared Dropdown Styles (copied from main CSS) */
.container-input-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 8px;
  gap: 4px;
  height: 30px;
  background: #ffffff;
  border: 1px solid #c9d1d5;
  border-radius: 8px;
  margin: 10px 10px 12px 10px;
}

.container-input-search i,
#search-input::placeholder {
  color: #6f838d;
}

.container-input-search input {
  border: none;
  color: #6f838d;
  width: 100%;
}

.element-op-selected {
  background-color: #eff3f5;
}

.search-results-ul {
  overflow-y: scroll;
  overscroll-behavior: contain;
}

.no-results {
  padding: 8px 16px;
  cursor: pointer;
}
#new-prop-zipcode-select {
  display: flex;
}
#zipode-selected {
  flex: 1;
}
#wrong-code-btn {
  display: block;
  border-left: 1px solid var(--gray-500);
  color: var(--gray-800);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  padding-left: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#wrong-code-btn:hover {
  opacity: 0.7;
}

/* Estilos para cuando el zipcode tiene múltiples opciones */
#zipode-selected.clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background-color 0.2s ease;
}

#zipode-selected {
  min-height: 19px;
  display: inline-block;
}

#zipode-selected.clickable:hover {
  background-color: #f0f0f0;
}
#new-prop-zipcode-select:focus {
  border: solid 1px var(--gray-600);
}
.unmatched-zipcode {
  padding: 13px 8px !important;
  border-radius: 0px !important;
  border-top: solid 1px var(--gray-300);
}
.edit-manually-zipcode {
  padding: 13px 8px !important;
  border-radius: 0px !important;
  border-top: solid 1px var(--gray-300);
}
.wrong-code-btn-single {
  display: inline;
  color: var(--Petrokko-color-primary-500, #e63946);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  text-decoration: underline;
}
.wrong-code-btn-single:hover {
  text-decoration: none;
}
.edit-manually-btn-single {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  text-decoration: underline;
}
.edit-manually-btn-single:hover {
  text-decoration: none;
}
#input-location-list {
  width: 100%;
}

#input-location-list input:focus {
  border-color: #6f838d !important;
}
#input-location-list .select-list {
  padding: 8px;
}
#lizipcodecont {
  height: 100%;
  margin-bottom: 32px;
}
#zipcode-suggestion-card {
  display: flex;
  padding: 12px 8px 12px 12px;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  border-radius: 8px;
  border: 1px solid var(--Grey-color-grey-300, #d6dee2);
  margin-bottom: 16px;
}
#zipcode-suggestion-card::after {
  content: none !important;
}
.zipcode-suggestion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zipcode-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}
.zipcode-suggestion-button {
  min-width: max-content;
  padding: 0 8px;
  cursor: pointer;
}
.zipcode-suggestion-info {
  flex: 1;
}
.zipcode-suggestion-success,
.wrong_zipcode-suggestion-success {
  display: flex;
  gap: 4px;
  color: #137d62;
  align-items: center;
}
.zipcode-suggestion-success > i,
.wrong_zipcode-suggestion-success > i {
  font-size: 16px;
}
.edit-manually-zipcode-suggestion {
  min-width: max-content;
  padding: 0 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.edit-manually-zipcode-suggestion:hover {
  text-decoration: none;
}
.modal_zipcode_suggestion {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
}
#invalid-zipcode-suggestion {
  display: flex;
  width: 100%;
  justify-content: end;
  margin-top: 8px;
}
.modal_zipcode_suggestion-content {
  background-color: #fefefe;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid #888;
  width: 576px;
  border-radius: 16px;
}

.modal_zipcode_suggestion-close {
  color: var(--neutrals-gris-2, #566a75);
  position: absolute;
  right: 24px;
  font-size: 18px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.modal_suggestion_header_content {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  width: 100%;
}
.modal_header_logo {
  width: 56px;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--Petrokko-color-secondary-50, #daebf0);
  border: 1px solid var(--Petrokko-color-secondary-100, #b9dce7);
  border-radius: 12px;
}
.modal_header_logo > i {
  color: #275c6d;
  font-size: 24px;
}
.modal_header_text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}
.modal_header_text > span:first-child {
  color: var(--Grey-color-grey-800, #2e393f);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}
.modal_header_text > span:last-child {
  color: var(--Grey-color-grey-600, #586a74);
  font-size: 14px;
  line-height: 20px;
}
.modal_suggestion_input_content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal_suggestion_input_content > span:first-child {
  color: var(--Grey-color-grey-700, #44545d);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px; /* 133.333% */
  padding-left: 16px;
}
#suggestionZipcodeInput {
  background-color: #fff;
  width: 100%;
  height: 40px;
  padding-left: 16px;
  border-color: var(--Grey-color-grey-300, #d6dee2);
}
.modal_zipcode_suggestion-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.modal_zipcode_suggestion-buttons > button {
  margin: 0;
  height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: "Nunito Sans";
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}
.modal_zipcode_suggestion-buttons > button:first-child {
  background-color: #fff;
  color: var(--Grey-color-grey-800, #2e393f);
}
.modal_suggestion_tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--Grey-color-grey-300, #d6dee2);
  margin-bottom: 0;
}
.modal_suggestion_tab {
  background: none;
  border: none;
  padding: 12px 0;
  color: var(--Grey-color-grey-600, #586a74);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.modal_suggestion_tab:hover {
  background: none;
  color: var(--Grey-color-grey-600, #586a74);
}
.modal_suggestion_tab.active {
  color: var(--Petrokko-color-primary-500, #e63946);
  border-bottom-color: var(--Petrokko-color-primary-500, #e63946);
}
.modal_suggestion_tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.modal_suggestion_tab.active:hover {
  color: var(--Petrokko-color-primary-500, #e63946);
}
.modal_suggestion_tab_content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal_suggestion_manual_label {
  color: var(--Grey-color-grey-600, #586a74);
  font-size: 12px;
  line-height: 16px;
  padding-left: 16px;
  margin-top: 8px;
  display: block;
}
#new-prop-zipcode-select {
  position: relative;
}
.reset-zipcode-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--Petrokko-color-primary-500, #0c0808);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 10;
}
.reset-zipcode-btn:hover {
  background: none;
  border: none;
  color: var(--Petrokko-color-primary-500, #0c0808);
  text-decoration: none;
}
#manualZipcodeInput {
  background-color: #fff;
  width: 100%;
  height: 40px;
  padding-left: 16px;
  border-color: var(--Grey-color-grey-300, #d6dee2);
}
.modal_suggestion_zipcodes_content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  background-color: var(--Grey-color-grey-100, #f3f6f8);
}
.modal_suggestion_zipcodes_content > span:first-child {
  color: var(--Grey-color-grey-800, #2e393f);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.modal_suggestion_zipcodes_content > span:last-child {
  color: var(--Grey-color-grey-600, #586a74);
  font-size: 14px;
  line-height: 20px;
}

/* Styles for Property file integration */
.modal_location_selection #input-location-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal_location_selection #input-search-location,
.modal_location_selection .select-container {
  background-color: #fff;
  border-color: var(--Grey-color-grey-300, #d6dee2);
}
.modal_location_selection #lizipcodecont .select-list {
  max-height: 125px;
}
#input-zipcode-searcher {
  opacity: 0 !important;
  pointer-events: none;
}
.modal_location_selection #new-prop-zipcode-onlyone {
  background-color: var(--Grey-color-grey-200, #eaeef1);
}
