
/* -------------------PROPIEDADES START-------------------- */
/* Variables CSS para consistencia */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --whatsapp-color: #25D366;
  --whatsapp-hover: #128C7E;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #7f8c8d;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
}
/* PROPERTY SEARCH SECTION */
.property-search-container {
  background-color: #143D66;
  padding: 2.5rem 0;
  max-width: 1200px;
  margin: auto;
}

.property-search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Quick Search Form */
.property-quick-search {
}

.property-search-input-group {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 60px;
  transition: all 0.3s ease;
}

.property-search-input-group:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.property-search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  color: #444;
}

.property-search-input::placeholder {
  color: #999;
}

.property-search-input:focus {
  outline: none;
}

.property-search-btn {
  background-color: #286AAD;
  color: white;
  border: none;  
  padding: 0 25px;
  height: 100%;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.property-search-btn:hover {
  background-color: #1E5A8A;
}

.property-toggle-advanced {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  gap: 8px;
  transition: all 0.2s ease;
}

.property-toggle-advanced:hover {
  color: #3ea8ff;
  text-decoration: underline;
}

/* Advanced Search Form */
.property-advanced-search {
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.property-search-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.property-search-column {
  flex: 1;
  min-width: 250px;
}

.property-search-column-title {
  margin: 0 0 15px 0;
  color: #286AAD;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.property-form-group {
  margin-bottom: 20px;
}

.property-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.property-form-select,
.property-form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.property-form-select:focus,
.property-form-input:focus {
  border-color: #286AAD;
  box-shadow: 0 0 0 2px rgba(40, 106, 173, 0.15);
  outline: none;
}

.property-range-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-range-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 0;
}

.property-range-separator {
  color: #777;
  font-size: 14px;
}

.property-currency-select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  min-width: 80px;
}

.property-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.property-amenity-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.property-amenity-checkbox input {
  margin: 0;
  accent-color: #286AAD;
}

.property-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}


.property-search-btn-primary {
    padding: 10px 20px;
    border-radius: 100px;
  background-color: #286AAD;
}

.property-search-btn-secondary {
        padding: 10px 20px;
    border-radius: 100px;
  background-color: #e74c3c;
  text-decoration: none;
}

.property-search-btn-secondary:hover {
  background-color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
  .property-search-input-group {
    flex-direction: column;
    height: auto;
    border-radius: 15px;
  }
  
  .property-search-input,
  .property-search-btn {
    width: 100%;
    height: 50px;
  }
  
  .property-search-btn {
    justify-content: center;
  }
  
  .property-search-column{
    width: 100%;
  }

  .property-search-columns {
    flex-direction: column;
    gap: 20px;
  }
}



/* Resultados de búsqueda */
.property-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin: auto;
    max-width: 1200px;
}

.property-search-container .container{
    padding: 0px 20px;
}

.property-results .container{
    background-color: #fff;
    width: 100%;
    padding: 25px;
    margin: 0px !important;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-hero-header,
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.search-hero-header h2,
.results-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.results-count {
  color: var(--text-medium);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filters {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clear-filters:hover {
  text-decoration: underline;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-options label {
  color: var(--text-medium);
  font-size: 0.875rem;
  white-space: nowrap;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: white;
  font-size: 0.875rem;
  min-width: 200px;
  transition: all var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
  outline: none;
}

/* Grid de propiedades */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.property-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(30, 30, 30, 0.3);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #286AAD;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(40, 106, 173, 0.9), transparent);
    color: white;
    text-align: center;
}

.property-price-overlay {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    width: max-content;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.property-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.property-location {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i {
    color: #286AAD;
}
.property-description {
    white-space: pre-wrap; /* Respeta saltos de línea y espacios */
    color: #666;
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}


.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.btn-consultar {
    background-color: #286AAD;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.btn-consultar:hover {
    background-color: #1a4f84;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-1px);
}


/* Badges */
.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--warning-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.pagination a {
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  background-color: white;
}

.pagination a:hover {
  background-color: var(--bg-light);
  border-color: var(--secondary-color);
}

.pagination a.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ellipsis {
  color: var(--text-light);
  padding: 0 0.5rem;
}

/* Sin resultados */
.no-results {
  text-align: center;
  margin: 0 auto;
}

.no-results i {
  font-size: 3rem;
  color: #bdc3c7;
  margin-bottom: 1.5rem;
}

.no-results h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-results p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-medium);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search-columns {
    flex-direction: column;
  }
  
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
.search-hero-header,
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-options {
    width: 100%;
  }
  
  .sort-select {
    flex: 1;
  }

  .property-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .search-input-group {
    flex-direction: column;
  }
  
  .search-button {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }
  
  .range-inputs {
    flex-wrap: wrap;
  }
  
  .range-inputs input {
    min-width: 100%;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }

  .btn-consultar, .btn-whatsapp {
    width: 100%;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}
/* -------------------PROPIEDADES END-------------------- */