/* ==========================================================
   Classifieds
   ========================================================== */

/* Top Hero Section */

/* End Hero Section */

/* Range sliders */
.classifieds-range-filter {
  min-height: 72px;
  padding: 0.55rem 0.85rem;
  background: #fff;
}

.classifieds-range-filter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.classifieds-range-filter__top > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(37, 26, 19, 0.65);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.classifieds-range-filter__top strong {
  color: #251a13;
}

.classifieds-range-slider {
  --range-min: 0%;
  --range-max: 100%;
  position: relative;
  height: 28px;
}

.classifieds-range-slider::before,
.classifieds-range-slider::after {
  content: "";
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 999px;
}

.classifieds-range-slider::before {
  right: 0;
  left: 0;
  background: rgba(37, 26, 19, 0.18);
}

.classifieds-range-slider::after {
  left: var(--range-min);
  right: calc(100% - var(--range-max));
  background: #251a13;
}

.classifieds-range-slider__range {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.classifieds-range-slider__range::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -6.5px;
  border: 3px solid #251a13;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  box-shadow: 0 0 0 2px rgba(37, 26, 19, 0.08);
}

.classifieds-range-slider__range::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid #251a13;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 0 2px rgba(37, 26, 19, 0.08);
}

.classifieds-range-slider__range::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  background: transparent;
}

.classifieds-range-slider__range::-moz-range-track {
  height: 4px;
  border: 0;
  background: transparent;
}

/* Create */
.classified-create__eyebrow {
  color: rgba(37, 26, 19, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.classified-create-card_DEPRECATED {
  padding: 1.25rem;
  border: 1px solid rgba(37, 26, 19, 0.1);
  border-radius: 8px;
  background: #fff;
}

.classified-create-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.classified-create-card__header h2 {
  margin: 0;
  color: #251a13;
  font-size: 1.15rem;
  font-weight: 850;
}

.classified-create-card__header p {
  margin: 0.2rem 0 0;
  color: rgba(37, 26, 19, 0.58);
  font-size: 0.9rem;
}

.classified-create-card__status {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(37, 26, 19, 0.08);
  color: #251a13;
  font-size: 0.78rem;
  font-weight: 800;
}

.classified-photo-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.classified-photo-upload__drop {
  display: grid;
  gap: 0.15rem;
  min-height: 96px;
  padding: 1rem;
  border: 1px dashed rgba(37, 26, 19, 0.32);
  border-radius: 8px;
  color: #251a13;
  cursor: pointer;
}

.classified-photo-upload__drop i {
  font-size: 1.35rem;
}

.classified-photo-upload__drop span {
  font-weight: 850;
}

.classified-photo-upload__drop small {
  color: rgba(37, 26, 19, 0.58);
}

.classified-dropzone {
  min-height: 170px;
  border: 1px dashed rgba(37, 26, 19, 0.32);
  border-radius: 8px;
  background: rgba(37, 26, 19, 0.025);
}

.classified-dropzone .dz-message {
  display: grid;
  gap: 0.25rem;
  margin: 2.4rem 0;
  color: #251a13;
  text-align: center;
}

.classified-dropzone .dz-message i {
  justify-self: center;
  font-size: 1.6rem;
}

.classified-dropzone .dz-message span {
  font-weight: 850;
}

.classified-dropzone .dz-message small {
  color: rgba(37, 26, 19, 0.58);
}

.classified-dropzone .dz-preview .dz-error-message {
  top: 145px;
}

.classified-photo-empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  min-height: 100px;
  background: rgba(238, 230, 189, 0.323);
  color: var(--sh-navy);
}

.classified-photo-empty i {
  font-size: 1.6rem;
}

.classified-photo-empty p {
  margin: 0;
  font-weight: 750;
}

.classified-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.classified-photo-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 26, 19, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(37, 26, 19, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.classified-photo-item:hover,
.classified-photo-item--chosen {
  border-color: rgba(37, 26, 19, 0.26);
  box-shadow: 0 16px 38px rgba(37, 26, 19, 0.14);
  transform: translateY(-2px) scale(1.01);
}

.classified-photo-item.is-primary {
  border-color: #251a13;
  box-shadow: 0 16px 42px rgba(37, 26, 19, 0.18);
}

.classified-photo-item--ghost {
  opacity: 0.48;
}

.classified-photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(37, 26, 19, 0.06);
  cursor: pointer;
}

.classified-photo-item__badge {
  display: none;
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: #251a13;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
}

.classified-photo-item.is-primary .classified-photo-item__badge {
  display: inline-flex;
}

.classified-photo-item__primary,
.classified-photo-item__handle {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #251a13;
  box-shadow: 0 8px 22px rgba(37, 26, 19, 0.18);
}

.classified-photo-item__primary {
  top: 0.55rem;
  right: 0.55rem;
}

.classified-photo-item__handle {
  right: 0.55rem;
  bottom: 3.65rem;
  cursor: grab;
}

.classified-photo-item__handle:active {
  cursor: grabbing;
}

.classified-photo-item__body {
  display: flex;
  justify-content: flex-end;
  padding: 0.7rem;
}

.classified-photo-item__delete {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 32px;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 6px;
  background: rgba(185, 28, 28, 0.04);
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 800;
}

.classified-photo-item__delete:hover {
  border-color: rgba(185, 28, 28, 0.38);
  background: rgba(185, 28, 28, 0.08);
}

@media (max-width: 767.98px) {
  .classified-photo-upload {
    grid-template-columns: 1fr;
  }

  .classified-create-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .classified-create-card__status {
    width: fit-content;
  }
}

@media (min-width: 992px) {
  .classified-create-sidebar-sticky {
    position: sticky;
    top: calc(var(--sh-header-height, 78px) + 1rem);
    max-height: calc(100dvh - var(--sh-header-height, 78px) - 2rem);
    overflow-y: auto;
  }
}

.classified-quill-editor {
  min-height: 0;
  font-size: 0.9rem;
}

.classified-quill-editor .ql-editor {
  min-height: 220px;
}

.classified-quill-editor.ql-container {
  height: auto;
}

#classified-data-form.was-validated
  select:invalid
  ~ .select2
  .select2-selection {
  border-color: var(--bs-form-invalid-border-color, #dc3545);
}

#classified-data-form.was-validated
  .classified-quill-editor:has(~ textarea:invalid) {
  border-color: var(--bs-form-invalid-border-color, #dc3545);
}
