.list-layout .utf-smt-listing-img-container {
  height: 0;
  min-height: 238px;
  flex: 2;
  overflow: hidden;
  border-radius: 3px 0 0 3px;
}

/* Filter Popup Styles */
.filter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.filter-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.filter-popup {
  background-color: var(--bg-light);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
}

.filter-popup-overlay.active .filter-popup {
  transform: translateY(0);
  opacity: 1;
}

.filter-popup-header {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-popup-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.filter-popup-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.filter-popup-body {
  padding: 20px;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 15px;
  position: relative;
  display: inline-block;
}

.filter-section-title:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.filter-form-group {
  margin-bottom: 15px;
}

.filter-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.filter-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.filter-form-col {
  flex: 1;
}

.filter-form-col label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  text-align: center;
  text-align-last: center;
}

.filter-select option {
  text-align: center;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 51, 36, 0.1);
}

/* Range slider */
.price-slider-container {
  margin: 15px 0 30px;
  padding: 0 10px;
}

.price-slider {
  position: relative;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin: 30px 0 10px;
}

.price-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background-color: var(--primary);
  border-radius: 3px;
}

.price-slider-handle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1;
  transition: box-shadow 0.2s;
}

.price-slider-handle:hover {
  box-shadow: 0 0 0 5px rgba(227, 51, 36, 0.2);
}

.price-slider-handle.active {
  box-shadow: 0 0 0 5px rgba(227, 51, 36, 0.3);
}

.price-slider-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-dark);
  font-weight: 500;
}

.price-bubble {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s;
  opacity: 0;
  visibility: hidden;
}

.price-bubble:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary);
}

.price-slider-handle:hover .price-bubble,
.price-slider-handle.active .price-bubble {
  opacity: 1;
  visibility: visible;
}

/* Radio options */
.filter-sort-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-radio-option {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  user-select: none;
  color: var(--text-dark);
}

.filter-radio-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid var(--border-color);
  border-radius: 50%;
}

.filter-radio-option:hover input ~ .radio-checkmark {
  border-color: var(--primary-light);
}

.filter-radio-option input:checked ~ .radio-checkmark {
  border-color: var(--primary);
}

.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.filter-radio-option input:checked ~ .radio-checkmark:after {
  display: block;
}

/* Footer */
.filter-popup-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  position: sticky;
  bottom: 0;
  background-color: var(--bg-light);
}

.filter-btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.filter-btn-reset {
  background-color:#c4c4c4;
  color: var(--text-dark);
}

.filter-btn-reset:hover {
  background-color: #eeeeee;
}

.filter-btn-apply {
  background-color: var(--primary);
  color: white;
}

.filter-btn-apply:hover {
  background-color: var(--primary-dark);
}

.filter-btn:active {
  transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .filter-popup {
    width: 95%;
  }

  .filter-popup-header {
    padding: 12px 15px;
  }

  .filter-popup-body {
    padding: 15px;
  }

  .filter-popup-title {
    font-size: 18px;
  }

  .filter-section-title {
    font-size: 16px;
  }

  .price-ranges {
    flex-direction: column;
    gap: 10px;
  }
}

/* Slider styles */
.range-slider {
  width: 100%;
  margin: 20px 0;
}

.slider-track {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  position: relative;
}

.slider-track-highlight {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.slider-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-dark);
  font-weight: 500;
}

.action-buttons {
    /* Hide by default for larger screens */
    display: none;
  }

  /* Only show on small screens */
  @media (max-width: 768px) {

    .action-buttons {
      display: flex;
      gap: 10px;
      padding: 12px 15px;
      background-color: #fff;
      width: 100%;
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 100;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
  }

  .action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #00332e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .action-button:hover {
    background-color: #004540;
  }

  .chat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .offer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }