.blurred-background {
  position: relative;
  background: url("img/background.jpg") no-repeat center center/cover;
  filter: blur(8px);
  height: 100vh;
  width: 100%;
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
}

.content-overlay {
  position: relative;
  z-index: 1;
}
.stars {
  font-size: 1rem;
  letter-spacing: 2px;
}

.text-warning {
  color: #ffd700 !important;
}

.rating-summary {
  font-size: 0.9rem;
}

.rating-text {
  color: #6c757d;
  font-size: 0.8rem;
}

.card-body {
  padding: 1rem;
}
/* Add these new styles for the listing cards */
.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  width: 100%;
  height: 500px;
  margin: 0;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.25rem;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0.75rem;
}

.card-text {
  color: #636e72;
  font-size: 0.95rem;
  line-height: 1.5;
}

.price-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00b894;
  margin: 0.5rem 0;
}

/* Section spacing */
.products {
  padding: 2rem 0;
  background-color: #f8f9fa;
}

.title {
  margin-bottom: 2rem;
  text-align: center;
  color: #2d3436;
  font-size: 2.5rem;
  font-weight: bold;
}
.filter-bar {
  margin-top: -20px;
}

.filter-wrapper {
  border-radius: 15px;
  transition: all 0.3s ease;
}

.filter-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.custom-select,
.form-control {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.custom-select:focus,
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  border-color: #0d6efd;
}

.custom-range {
  width: calc(100% - 60px);
}

.distance-value {
  min-width: 60px;
  text-align: right;
  color: #666;
}

.price-inputs input {
  width: 50%;
}

.filter-actions {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .filter-wrapper {
    border-radius: 0 0 15px 15px;
  }

  .filter-group:not(:last-child) {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
  }

  .filter-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
    margin: 0 -1rem -1rem -1rem;
    border-radius: 0 0 15px 15px;
  }
}

/* Animation for collapse */
.collapse {
  transition: all 0.3s ease;
}

/* Active states */
.btn-primary:not(:disabled):not(.disabled):active {
  transform: scale(0.98);
}

/* Range slider styling */
input[type="range"] {
  height: 25px;
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
}
.box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.card {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .box-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .box-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .box-container {
    grid-template-columns: 1fr;
  }
}
input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #0d6efd;
  -webkit-appearance: none;
  margin-top: -7px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .box-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 1rem;
    gap: 1rem;
  }

  .carousel-inner {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .carousel-inner {
    height: 200px;
  }
}

.carousel-inner {
  height: 300px;
  position: relative;
  width: 100%;
}

.carousel-item {
  height: 100%;
  position: relative;
}

.carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
}

.chat-rooms {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chat-header {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.chat-room-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-room-item:hover {
  background-color: #f8f9fa;
}

.chat-room-item.unread {
  background-color: #e3f2fd;
}

.chat-avatar {
  position: relative;
}

.chat-avatar img {
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-room-item:hover .chat-avatar img {
  border-color: #007bff;
}
