/* ======= Rent Search & Archive Pages Unified Styles ======= */

/* Page Title Enhancement */
.rent-search-page h1,
.rent-archive-page h1 {
  position: relative;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.rent-search-page h1:after,
.rent-archive-page h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-radius: 2px;
}

/* Search Form Card Enhancement */
.rent-search-form-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.rent-search-form-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #3498db, #2980b9, #e74c3c, #f39c12);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rent-search-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Form Controls Enhancement */
.rent-search-page .form-label,
.rent-archive-page .form-label {
  font-weight: 600;
  color: #34495e;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.rent-search-page .form-select,
.rent-search-page .form-control,
.rent-archive-page .form-select,
.rent-archive-page .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
}

.rent-search-page .form-select:focus,
.rent-search-page .form-control:focus,
.rent-archive-page .form-select:focus,
.rent-archive-page .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
  transform: translateY(-1px);
}

.rent-search-page .form-select:hover,
.rent-search-page .form-control:hover,
.rent-archive-page .form-select:hover,
.rent-archive-page .form-control:hover {
  border-color: #bdc3c7;
  transform: translateY(-1px);
}

/* Button Enhancements */
.rent-search-btn-primary,
.rent-archive-btn-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  position: relative;
  overflow: hidden;
  color: white;
}

.rent-search-btn-primary:before,
.rent-archive-btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.rent-search-btn-primary:hover:before,
.rent-archive-btn-primary:hover:before {
  left: 100%;
}

.rent-search-btn-primary:hover,
.rent-archive-btn-primary:hover {
  background: linear-gradient(45deg, #2980b9, #1f618d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  color: white;
}

.rent-search-btn-secondary,
.rent-archive-btn-secondary {
  border: 2px solid #95a5a6;
  color: #7f8c8d;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}

.rent-search-btn-secondary:hover,
.rent-archive-btn-secondary:hover {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
  border-color: #7f8c8d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
  text-decoration: none;
}

/* Property Count Display */
.rent-property-count {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3498db;
}

.rent-property-count p {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.rent-property-count strong {
  color: #e74c3c;
  font-size: 1.2rem;
}

/* Property Cards Enhancement */
.rent-property-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.rent-property-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, #3498db, #e74c3c);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rent-property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.rent-property-card:hover:before {
  opacity: 1;
}

/* Property Image Enhancement */
.rent-property-image {
  position: relative;
  overflow: hidden;
}

.rent-property-image img {width:100%:height:auto;
  transition: all 0.5s ease;
}

.rent-property-card:hover .rent-property-image img {
  transform: scale(1.1);
}

.rent-property-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rent-property-card:hover .rent-property-image:after {
  opacity: 1;
}
.custom-img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Property Content */
.rent-property-card .card-title a {
  color: #2c3e50;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.rent-property-card .card-title a:hover {
  color: #3498db;
  text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

/* Price Display Enhancement */
.rent-property-price {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(231, 76, 60, 0.3);
}

/* Property Details Grid */
.rent-property-card .property-details .row > div {
  margin-bottom: 0.5rem;
}

.rent-property-card .property-details small.text-muted {
  font-weight: 600;
  color: #7f8c8d !important;
}

/* Details Button Enhancement */
.rent-details-btn {
  border: 2px solid #3498db;
  color: #3498db;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: transparent;
}

.rent-details-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #3498db, #2980b9);
  transition: left 0.3s ease;
  z-index: -1;
}

.rent-details-btn:hover:before {
  left: 0;
}

.rent-details-btn:hover {
  color: white;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

/* No Results Alert Enhancement */
.rent-no-results {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  border: none;
  border-left: 4px solid #17a2b8;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

.rent-no-results p {
  font-size: 1.1rem;
  color: #0c5460;
  margin: 0;
  font-weight: 500;
}

/* Pagination Enhancement */
.rent-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.rent-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rent-pagination .page-numbers li {
  display: inline-block;
}

.rent-pagination .page-numbers li a,
.rent-pagination .page-numbers li span {
  display: block;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: white;
}

.rent-pagination .page-numbers li a:hover {
  border-color: #3498db;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.rent-pagination .page-numbers li span.current {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-color: #2980b9;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Section Titles */
.rent-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
  color: #2c3e50;
  position: relative;
}

.rent-section-title:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: #3498db;
  margin-right: 10px;
  border-radius: 2px;
}

/* Loading Animation */
.rent-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #3498db;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .rent-search-form-card {
    border-radius: 10px;
    margin-bottom: 2rem;
  }
  
  .rent-search-btn-primary,
  .rent-search-btn-secondary,
  .rent-archive-btn-primary,
  .rent-archive-btn-secondary {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .rent-search-btn-primary:last-child,
  .rent-search-btn-secondary:last-child,
  .rent-archive-btn-primary:last-child,
  .rent-archive-btn-secondary:last-child {
    margin-bottom: 0;
  }
  
  .rent-property-card {
    margin-bottom: 1.5rem;
  }
  
  .rent-pagination .page-numbers {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .rent-pagination .page-numbers li a,
  .rent-pagination .page-numbers li span {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .rent-search-page h1,
  .rent-archive-page h1 {
    font-size: 1.8rem;
  }
  
  .rent-search-form-card .card-body {
    padding: 1rem;
  }
  
  .rent-search-page .form-select,
  .rent-search-page .form-control,
  .rent-archive-page .form-select,
  .rent-archive-page .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .rent-property-card .card-body {
    padding: 1rem;
  }
  
  .rent-property-card .card-title {
    font-size: 1rem;
  }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
  .rent-property-card:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  }
  
  .rent-property-card:hover .rent-property-image img {
    transform: none;
  }
  
  .rent-search-btn-primary:hover,
  .rent-archive-btn-primary:hover,
  .rent-details-btn:hover,
  .rent-search-btn-secondary:hover,
  .rent-archive-btn-secondary:hover {
    transform: none;
  }
}

/* Additional Bootstrap Override */
.rent-search-page .btn.btn-primary,
.rent-archive-page .btn.btn-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.rent-search-page .btn.btn-primary:hover,
.rent-archive-page .btn.btn-primary:hover {
  background: linear-gradient(45deg, #2980b9, #1f618d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.rent-search-page .btn.btn-outline-secondary,
.rent-archive-page .btn.btn-outline-secondary {
  border: 2px solid #95a5a6;
  color: #7f8c8d;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.rent-search-page .btn.btn-outline-secondary:hover,
.rent-archive-page .btn.btn-outline-secondary:hover {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
  border-color: #7f8c8d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.rent-search-page .btn.btn-outline-primary,
.rent-archive-page .btn.btn-outline-primary {
  border: 2px solid #3498db;
  color: #3498db;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.rent-search-page .btn.btn-outline-primary:hover,
.rent-archive-page .btn.btn-outline-primary:hover {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-color: #2980b9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}