/* Munay Wasi Search Styles - Soft Palette */
:root {
  /* Paleta Munay Wasi */
  --primary-color: #B68132; /* Dorado Tierra */
  --primary-dark: #8C5A2C; /* Café Sagrado */
  --primary-light: #E6B898; /* Melón Claro */
  --secondary-color: #6B8754; /* Verde Andino */
  --cream-bg: #F5EFE6; /* Fondo Crema */
  --gray-text: #7A6B5A; /* Gris Inspiración */
  --white: #FFFFFF;
  --shadow-soft: 0 6px 25px rgba(122, 107, 90, 0.12);
  --shadow-hover: 0 12px 35px rgba(122, 107, 90, 0.18);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-search-container {
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .search-card-wrapper {
      background: white;
      border-radius: 16px;
      padding: 32px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      border: 1px solid #e9ecef;
    }


    
.search-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-text);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.5px;
  position: relative;
}

.search-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.property-search-form {
  width: 100%;
}

.search-fields-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 24px;
  align-items: end;
  background: var(--cream-bg);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(182, 129, 50, 0.1);
  position: relative;
}

.search-fields-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 239, 230, 0.8), rgba(255, 255, 255, 0.9));
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.input-field-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.field-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.location-input-wrapper {
  position: relative;
}

.location-search-field,
.property-type-select,
.budget-range-select {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(182, 129, 50, 0.2);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: "Lora", serif;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--gray-text);
  box-shadow: 0 2px 8px rgba(122, 107, 90, 0.05);
}

.location-search-field::placeholder {
  color: rgba(122, 107, 90, 0.6);
  font-style: italic;
}

.location-search-field:focus,
.property-type-select:focus,
.budget-range-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(182, 129, 50, 0.15);
  transform: translateY(-2px);
}

.property-type-select,
.budget-range-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23B68132' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

.location-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid rgba(182, 129, 50, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.location-suggestions-dropdown.show-dropdown {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestions-header {
  padding: 16px 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-text);
  border-bottom: 1px solid rgba(182, 129, 50, 0.1);
  background: linear-gradient(135deg, var(--cream-bg), rgba(245, 239, 230, 0.7));
}

.suggestions-list {
  padding: 12px 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.suggestion-item:hover {
  background: linear-gradient(135deg, rgba(245, 239, 230, 0.5), rgba(255, 255, 255, 0.8));
  border-left-color: var(--primary-color);
  transform: translateX(4px);
}

.suggestion-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.suggestion-item:hover .suggestion-icon {
  transform: scale(1.1);
}

.suggestion-icon.icon-location {
  background: linear-gradient(135deg, rgba(107, 135, 84, 0.15), rgba(107, 135, 84, 0.25));
  color: var(--secondary-color);
}

.suggestion-icon.icon-building {
  background: linear-gradient(135deg, rgba(182, 129, 50, 0.15), rgba(182, 129, 50, 0.25));
  color: var(--primary-color);
}

.suggestion-icon.icon-culture {
  background: linear-gradient(135deg, rgba(230, 184, 152, 0.15), rgba(230, 184, 152, 0.25));
  color: var(--primary-light);
}

.suggestion-icon.icon-residential {
  background: linear-gradient(135deg, rgba(140, 90, 44, 0.15), rgba(140, 90, 44, 0.25));
  color: var(--primary-dark);
}

.suggestion-content {
  flex: 1;
}

.suggestion-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--gray-text);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.suggestion-description {
  font-family: "Lora", serif;
  font-size: 14px;
  color: rgba(122, 107, 90, 0.7);
  font-style: italic;
}

.search-submit-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 18px 32px;
  border-radius: var(--border-radius);
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  min-width: 140px;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.search-submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.search-submit-button:hover::before {
  left: 100%;
}

.search-submit-button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.search-submit-button:active {
  transform: translateY(-1px);
}

.search-icon {
  font-size: 16px;
  transition: var(--transition);
}

.search-submit-button:hover .search-icon {
  transform: scale(1.1);
}

/* Custom scrollbar para dropdown */
.location-suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.location-suggestions-dropdown::-webkit-scrollbar-track {
  background: var(--cream-bg);
  border-radius: 3px;
}

.location-suggestions-dropdown::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.location-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Estados de loading */
.search-submit-button.loading {
  opacity: 0.8;
  pointer-events: none;
}

.search-submit-button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Efectos de focus mejorados */
.input-field-container:focus-within .field-label {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-fields-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .search-card-wrapper {
    padding: 30px 20px;
    margin: 15px;
  }

  .search-title {
    font-size: 28px;
  }

  .location-search-field,
  .property-type-select,
  .budget-range-select {
    padding: 16px 18px;
  }

  .search-submit-button {
    padding: 16px 28px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .property-search-container {
    padding: 0 15px;
  }

  .search-card-wrapper {
    padding: 25px 15px;
    border-radius: var(--border-radius);
  }

  .search-fields-grid {
    padding: 20px;
    border-radius: var(--border-radius);
  }

  .search-title {
    font-size: 24px;
  }

  .field-label {
    font-size: 14px;
  }

  .location-search-field,
  .property-type-select,
  .budget-range-select {
    padding: 14px 16px;
    font-size: 15px;
  }

  .suggestion-item {
    padding: 12px 16px;
  }

  .suggestion-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .suggestion-name {
    font-size: 16px;
  }

  .suggestion-description {
    font-size: 13px;
  }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-card-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

/* Efectos de hover para campos */
.location-search-field:hover,
.property-type-select:hover,
.budget-range-select:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(182, 129, 50, 0.1);
}

/* Estilo para opciones seleccionadas */
.property-type-select option:checked,
.budget-range-select option:checked {
  background: var(--cream-bg);
  color: var(--primary-color);
}

/* Mejoras de accesibilidad */
.search-submit-button:focus {
  outline: 3px solid rgba(182, 129, 50, 0.3);
  outline-offset: 2px;
}

.location-search-field:focus,
.property-type-select:focus,
.budget-range-select:focus {
  outline: none;
}

/* Estados de validación */
.input-field-container.error .location-search-field,
.input-field-container.error .property-type-select,
.input-field-container.error .budget-range-select {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.input-field-container.success .location-search-field,
.input-field-container.success .property-type-select,
.input-field-container.success .budget-range-select {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(107, 135, 84, 0.1);
}

/* Efectos de glassmorphism */
.search-fields-grid {
  backdrop-filter: blur(10px);
}

.location-suggestions-dropdown {
  backdrop-filter: blur(15px);
}

/* Gradientes suaves para fondos */
.search-card-wrapper {
  background: linear-gradient(135deg, var(--white) 0%, rgba(245, 239, 230, 0.3) 100%);
}