/* Filter Sidebar Styles */
.filter-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* Custom Scrollbar Styles */
.filter-sidebar::-webkit-scrollbar {
  width: 8px;
}

.filter-sidebar::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background: #0d5560;
  border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
  background: #08443e;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-header h4 {
  color: #0d5560;
  margin: 0;
  font-size: 1.25rem;
}

.filter-header .btn-link {
  color: #00e6ac;
  text-decoration: none;
  padding: 0;
  font-size: 0.9rem;
}

.filter-header .btn-link:hover {
  color: #0d5560;
}

/* Search Bar Styles */
.search-container .input-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container .form-control {
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.search-container .btn-primary {
  background: #0d5560;
  border: none;
  padding: 0.75rem 1.25rem;
}

.search-container .btn-primary:hover {
  background: #08443e;
}

/* Filter Section Styles */
.filter-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-section h5 {
  color: #0d5560;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Style Tags */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.style-tag {
  position: relative;
  cursor: pointer;
}

.style-tag input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.style-tag span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #495057;
  transition: all 0.3s ease;
}

.style-tag input:checked + span {
  background: #0d5560;
  color: white;
  border-color: #0d5560;
}

/* Size Options */
.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.size-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.size-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Bedroom Options */
.bedroom-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bedroom-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.bedroom-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.bedroom-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Floor Options */
.floor-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floor-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.floor-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.floor-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Layout Options */
.layout-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layout-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.layout-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.layout-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Purpose Options */
.purpose-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.purpose-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.purpose-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.purpose-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Lot Options */
.lot-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lot-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.lot-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.lot-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Special Options */
.special-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.special-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.special-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.special-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Sort Container Styles */
.sort-container {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.results-count {
  color: #ffffff;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.sort-options {
  position: relative;
  z-index: 1;
}

/* Wind Background Animation */
.wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/product-cards/pexels-pixabay-358636.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(1px) brightness(0.7);
  transition: all 1.5s ease;
}

.wave-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(13, 85, 96, 0.5),
    rgba(0, 230, 172, 0.5)
  );
  animation: wind 15s ease-in-out infinite;
}

.wave-bg.active {
  opacity: 1;
}

@keyframes wind {
  0% {
    transform: scale(1) translateX(0);
  }
  25% {
    transform: scale(1.05) translateX(-2%);
  }
  50% {
    transform: scale(1) translateX(0);
  }
  75% {
    transform: scale(1.05) translateX(2%);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}

.sort-options select {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: rgba(13, 85, 96, 0.7);
  cursor: pointer;
  min-width: 200px;
  backdrop-filter: blur(4px);
}

.sort-options select option {
  background-color: #0d5560;
  color: #ffffff;
}

/* Budget Slider Styles */
.budget-slider {
  padding: 1rem 0.5rem;
}

.budget-range {
  margin-bottom: 1rem;
}

.form-range {
  width: 100%;
  height: 6px;
  padding: 0;
  background-color: #e9ecef;
  border-radius: 3px;
  -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #0d5560;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
  background: #08443e;
  transform: scale(1.1);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #0d5560;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.form-range::-moz-range-thumb:hover {
  background: #08443e;
  transform: scale(1.1);
}

.budget-value {
  display: flex;
  justify-content: space-between;
  color: #495057;
  font-size: 0.9rem;
}

/* Product Grid Layout */
.row-cols-lg-3 > * {
  flex: 0 0 auto;
  width: 33.333333%;
}

@media (max-width: 992px) {
  .row-cols-md-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }

  .filter-sidebar {
    position: static;
    height: auto;
    margin-bottom: 2rem;
  }

  .plan-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .sort-container {
    flex-direction: column;
    gap: 1rem;
  }

  .sort-options select {
    width: 100%;
  }

  .plan-actions {
    opacity: 1;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
  }

  .action-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .row-cols-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }

  .filter-container {
    padding: 1rem;
  }

  .plan-info {
    padding: 1rem;
  }

  .plan-title {
    font-size: 1rem;
  }

  .plan-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .plan-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .plan-footer .btn-primary {
    width: 100%;
  }
}

/* Plan Card Styles */
.plan-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.plan-image {
  position: relative;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.plan-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.plan-card:hover .plan-image img {
  transform: scale(1.05);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #00e6ac;
  color: #0d5560;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.plan-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.plan-card:hover .plan-actions {
  opacity: 1;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d5560;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  background: #0d5560;
  color: white;
  transform: translateY(-2px);
}

.plan-info {
  padding: 1.5rem;
}

.plan-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d5560;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.plan-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.plan-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background: #f8f9fa;
  color: #0d5560;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.plan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d5560;
}

.plan-footer .btn-primary {
  background: #0d5560;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.plan-footer .btn-primary:hover {
  background: #08443e;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255, 255, 255, 0.98);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  min-width: 280px;
  text-align: center;
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #198754;
}

.notification-content i {
  font-size: 1.5rem;
}

.notification-content span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Pagination Styles */
.pagination-container {
  margin-top: 2rem;
}

.pagination .page-link {
  color: #0d5560;
  border: 1px solid #e9ecef;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 6px;
}

.pagination .page-item.active .page-link {
  background: #0d5560;
  border-color: #0d5560;
  color: white;
}

.pagination .page-link:hover {
  background: #f8f9fa;
  color: #0d5560;
}

/* Budget Options */
.budget-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.budget-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.budget-option span {
  font-size: 0.95rem;
  color: #495057;
}

/* Country Options */
.country-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.country-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.country-option span {
  font-size: 0.95rem;
  color: #495057;
}
