/**
 * Listing Archive Widget Styles
 */

/* Mobile Filter Accordion Styles */
.deshibiker-listing-grid-filters-mobile-toggle {
  display: none;
}

.deshibiker-filters-toggle-btn {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #e63946;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deshibiker-filters-toggle-btn:hover {
  background-color: #e63946;
  border-color: #e63946;
}

.deshibiker-filters-toggle-btn .toggle-arrow {
  transition: transform 0.3s ease;
}

.deshibiker-filters-toggle-btn svg:first-child {
  margin-right: 10px;
}

@media (max-width: 767px) {
  .deshibiker-listing-grid-filters-mobile-toggle {
    display: block;
  }

  .deshibiker-listing-grid-filters-inner {
    display: none;
    margin-top: 15px;
  }

  .deshibiker-listing-grid-filters.filters-open
    .deshibiker-listing-grid-filters-inner {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .deshibiker-listing-grid-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .deshibiker-listing-grid-filters {
    flex-basis: calc(30% - 10px);
  }

  .deshibiker-listing-grid {
    flex-basis: calc(70% - 10px);
  }
}

@media (max-width: 991px) {
  .deshibiker-listing-grid-filters {
    margin-bottom: 20px;
  }
}

.deshibiker-listing-item {
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.deshibiker-listing-inner {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 8px;
  padding: 0px;
  border: 1px solid #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.deshibiker-listing-inner:hover {
  border-color: #ccc;
}

.deshibiker-listing-featured .deshibiker-listing-inner {
  border-color: #e63946;
  background-color: rgba(230, 57, 71, 0.8);
}

.deshibiker-listing-image {
  position: relative;
  overflow: hidden;
  padding-top: 33.33333333333333%; /* 16:9 Aspect Ratio */
  flex-basis: 50%;
}

.deshibiker-listing-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.deshibiker-listing-image:hover img {
  transform: scale(1.05);
}

.deshibiker-listing-content {
  padding: 15px 30px;
  flex-basis: 50%;
}

@media (max-width: 600px) {
  .deshibiker-listing-image {
    padding-top: 66.66666666666666%;
  }
  .deshibiker-listing-image,
  .deshibiker-listing-content {
    flex-basis: 100%;
  }
}

.page-content .deshibiker-listing-title,
.deshibiker-listing-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.6em; /* 2 lines * 1.3 line-height */
}

.deshibiker-listing-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.deshibiker-listing-title a:hover {
  color: #e63946;
}

.deshibiker-listing-featured .deshibiker-listing-title a,
.deshibiker-listing-featured .deshibiker-listing-title a:hover {
  color: #fff;
}

.deshibiker-listing-price {
  font-size: 18px;
  font-weight: 700;
  color: #e63946;
  letter-spacing: 0.05em;
}

.deshibiker-listing-featured .deshibiker-listing-price {
  color: #fff;
}

.deshibiker-listing-price del {
  color: #888;
  font-weight: 400;
  font-size: 14px;
  margin-right: 5px;
}

.deshibiker-listing-price ins {
  text-decoration: none;
}

.deshibiker-listing-button-wrapper {
  padding-top: 15px;
}

.page-content .deshibiker-listing-button,
.deshibiker-listing-button {
  display: inline-block;
  background-color: transparent;
  border: 1px solid #e63946;
  color: #e63946;
  padding: 1px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.deshibiker-listing-button:hover {
  background-color: #d62828;
  color: #fff;
}

.deshibiker-listing-info {
  margin-top: 10px;
}

.deshibiker-listing-single-info {
  display: flex;
  flex-direction: row;
  font-size: 14px;
  font-weight: 400;
  color: #888;
}

.deshibiker-listing-topic {
  font-size: 14px;
  font-weight: 400;
  flex-basis: 100px;
}

.deshibiker-listing-description {
  font-size: 14px;
  font-weight: 600;
}

.deshibiker-listing-featured .deshibiker-listing-topic,
.deshibiker-listing-featured .deshibiker-listing-description {
  color: #fff;
}

.deshibiker-listing-grid-filters {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px 25px;
}

.deshibiker-listing-grid-filters-item {
  margin-bottom: 30px;
}

.deshibiker-listing-grid-filters-item:last-child {
  margin-bottom: 0px;
}

.deshibiker-listing-grid-filters-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.deshibiker-listing-grid-filters-item-title::before {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--e-global-color-accent);
}

.deshibiker-listing-grid-filters-item-content-inner-item {
  padding: 8px 0px;
  position: relative;
}

.deshibiker-accordion-children
  .deshibiker-listing-grid-filters-item-content-inner-item {
  padding: 15px 0px 0;
}

.deshibiker-listing-grid-filters-item-parent,
.deshibiker-listing-grid-filters-item-child {
  display: flex;
  gap: 10px;
}

.deshibiker-listing-grid-filters-item-content-inner-item input {
  cursor: pointer;
}

.deshibiker-listing-grid-filters-item-content-inner-item label {
  cursor: pointer;
}

.deshibiker-accordion-toggle {
  cursor: pointer;
  user-select: none;
  float: right;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 0;
}

.deshibiker-accordion-children {
  display: none;
  margin-left: 20px;
}

.deshibiker-accordion-parent.open > .deshibiker-accordion-children {
  display: block;
}

/* Price Range Slider Styles */
.deshibiker-odo-range-wrapper,
.deshibiker-price-range-wrapper {
  padding: 10px 0;
}

.deshibiker-odo-range-display,
.deshibiker-price-range-display {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.deshibiker-odo-range-slider,
.deshibiker-price-range-slider {
  margin: 10px 0;
}

.deshibiker-odo-range-slider .ui-slider-range,
.deshibiker-price-range-slider .ui-slider-range {
  background: #e63946;
}

.deshibiker-odo-range-slider .ui-slider-handle,
.deshibiker-price-range-slider .ui-slider-handle {
  border: 2px solid #e63946;
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  top: -3px;
  cursor: pointer;
}

.deshibiker-odo-range-separator,
.deshibiker-price-range-separator {
  margin: 0 10px;
  color: #666;
}

/* Filter Form Styles */
.deshibiker-filter-form {
  margin-bottom: 20px;
}

.deshibiker-filter-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.deshibiker-filter-submit {
  background-color: #e63946;
  border: 1px solid #e63946;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.deshibiker-filter-submit:hover {
  background-color: #d62828;
  border-color: #d62828;
}

.deshibiker-filter-reset {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.deshibiker-filter-reset:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 991px) {
}

@media (max-width: 767px) {
  .deshibiker-listing-grid {
    grid-template-columns: 1fr;
  }

  .deshibiker-listing-title {
    font-size: 20px;
  }

  .deshibiker-listing-title {
    font-size: 14px;
  }

  .deshibiker-listing-price {
    font-size: 16px;
  }

  .deshibiker-listing-button {
    padding: 1px 15px;
    font-size: 12px;
  }
}
