/* Seller Finance Finder / Listings directory */

.dl-page {
  background: var(--cream, #faf8ff);
  --dl-sticky-nav: 4.5rem;
  /* Approx single-row filter bar; map clears this so sticky filters do not cover it */
  --dl-sticky-filters-height: 7.75rem;
  --dl-sticky-filters-gap: 0.75rem;
}

.dl-hero {
  padding: 2.25rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.dl-hero.is-hidden {
  display: none;
}

.dl-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 860px) {
  .dl-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas:
      "copy disclaimer"
      "hide hide";
  }

  .dl-hero-copy {
    grid-area: copy;
  }

  .dl-read-first {
    grid-area: disclaimer;
  }

  .dl-hero-hide {
    grid-area: hide;
    justify-self: start;
  }
}

.dl-hero-copy {
  min-width: 0;
}

.dl-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.dl-hero-title em {
  font-style: italic;
  color: var(--purple-700, #5c3d99);
}

.dl-hero-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

.dl-read-first {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--purple-200, #ecdff7);
  border-radius: 12px;
  background: color-mix(in srgb, var(--purple-50, #f5f0ff) 80%, white);
}

.dl-read-first-label {
  display: block;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.dl-read-first p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.dl-read-first p strong {
  display: inline;
  font-weight: 700;
  color: inherit;
}

.dl-hero-hide {
  margin-top: 0.15rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  border-color: var(--purple-200, #ecdff7);
}

.dl-hero-show[hidden] {
  display: none !important;
}

.dl-filters {
  position: sticky;
  top: var(--dl-sticky-nav);
  z-index: 20;
  background: color-mix(in srgb, var(--cream, #faf8ff) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--purple-200, #ecdff7);
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
}

.dl-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.dl-filters input,
.dl-filters select {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--purple-200, #ecdff7);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  min-width: 0;
}

.dl-filters input[type="search"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.dl-filters input[type="number"] {
  width: 6.5rem;
}

.dl-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  white-space: nowrap;
}

.dl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.dl-meta {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.dl-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dl-view-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 10px;
  border: 1px solid var(--purple-200, #ecdff7);
  background: #fff;
  gap: 0.15rem;
}

.dl-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.dl-view-btn.is-active {
  background: var(--purple-100, #ede5f8);
  color: var(--purple-800, #3d2a6b);
}

.dl-view-btn:hover:not(.is-active) {
  color: var(--charcoal);
}

.dl-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 960px) {
  .dl-layout.map-on {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.dl-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .dl-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .dl-layout:not(.map-on) .dl-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1px solid var(--purple-200, #ecdff7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(45, 27, 78, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dl-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.dl-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 27, 78, 0.1);
  border-color: var(--purple-400, #a78bfa);
}

.dl-card-photo {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: linear-gradient(145deg, #efe7fb, #f7f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600, #7c3aed);
  overflow: hidden;
}

.dl-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dl-card-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--purple-600, #7c3aed);
  font-size: 0.875rem;
  font-weight: 600;
}

.dl-card-photo-placeholder i {
  font-size: 1.75rem;
  opacity: 0.85;
}

.dl-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
}

.dl-card-cat {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b5563;
  background: #f3f4f6;
  line-height: 1.2;
  flex: 0 1 auto;
  min-width: 0;
}

.dl-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  line-height: 1.3;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.dl-card-loc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.35em;
}

.dl-card-price {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-800, #3d2a6b);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}

.dl-card-topline .dl-card-price {
  font-size: 1.15rem;
}

.dl-card-field {
  margin-top: 0.25rem;
  min-height: 0;
}

.dl-field-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.2rem;
}

.dl-card-field p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

.dl-card-field--contact p {
  -webkit-line-clamp: 1;
  min-height: 1.4em;
  white-space: nowrap;
  display: block;
  text-overflow: ellipsis;
}

.dl-card-cta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  text-align: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: var(--charcoal) !important;
  border-radius: 10px;
  font-weight: 600;
}

.dl-card-cta:hover {
  border-color: var(--purple-400, #a78bfa) !important;
  background: var(--purple-50, #f5f0ff) !important;
  color: var(--purple-800, #3d2a6b) !important;
}

/* Compact list view */
.dl-results.is-compact {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.dl-results.is-compact .dl-card {
  flex-direction: row;
  align-items: stretch;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  border-radius: 12px;
}

.dl-results.is-compact .dl-card:hover {
  transform: none;
}

.dl-results.is-compact .dl-card-photo {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: auto;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  align-self: stretch;
}

.dl-results.is-compact .dl-card-photo-placeholder {
  font-size: 0.7rem;
  gap: 0.35rem;
  padding: 0.5rem;
  text-align: center;
}

.dl-results.is-compact .dl-card-photo-placeholder i {
  font-size: 1.35rem;
}

.dl-results.is-compact .dl-card-photo-placeholder span {
  display: none;
}

.dl-results.is-compact .dl-card-photo-count {
  right: 0.3rem;
  bottom: 0.3rem;
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
}

.dl-results.is-compact .dl-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "title price"
    "loc loc"
    "terms terms";
  align-content: center;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  padding: 0.55rem 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}

.dl-results.is-compact .dl-card-topline {
  display: contents;
}

.dl-results.is-compact .dl-card-cat,
.dl-results.is-compact .dl-card-field--about,
.dl-results.is-compact .dl-card-field--contact,
.dl-results.is-compact .dl-card-cta {
  display: none;
}

.dl-results.is-compact .dl-card-title {
  grid-area: title;
  font-size: 0.98rem;
  margin: 0;
  min-height: 0;
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-results.is-compact .dl-card-price,
.dl-results.is-compact .dl-card-topline .dl-card-price {
  grid-area: price;
  margin: 0;
  font-size: 0.98rem;
  align-self: center;
  justify-self: end;
}

.dl-results.is-compact .dl-card-loc {
  grid-area: loc;
  font-size: 0.8rem;
  min-height: 0;
}

.dl-results.is-compact .dl-card-field--terms {
  grid-area: terms;
  margin: 0;
}

.dl-results.is-compact .dl-card-field--terms .dl-field-label {
  display: none;
}

.dl-results.is-compact .dl-card-field--terms p {
  font-size: 0.78rem;
  color: var(--gray-600);
  min-height: 0;
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .dl-results.is-compact .dl-card {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
  }

  .dl-results.is-compact .dl-card-photo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    min-height: 88px;
    max-height: 88px;
  }

  .dl-results.is-compact .dl-card-body {
    padding: 0.45rem 0.7rem;
    row-gap: 0.1rem;
  }

  .dl-results.is-compact .dl-card-title,
  .dl-results.is-compact .dl-card-topline .dl-card-price {
    font-size: 0.9rem;
  }
}

.dl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.dl-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--purple-100, #f3e8ff);
  color: var(--purple-900, #2d1b4e);
}

.dl-chip.muted {
  background: #f3f4f6;
  color: #4b5563;
}

.dl-map {
  display: none;
  position: sticky;
  top: calc(var(--dl-sticky-nav) + var(--dl-sticky-filters-height) + var(--dl-sticky-filters-gap));
  z-index: 5;
  height: calc(
    100vh - var(--dl-sticky-nav) - var(--dl-sticky-filters-height) - var(--dl-sticky-filters-gap) - 1.25rem
  );
  min-height: 320px;
  max-height: 70vh;
  border: 1px solid var(--purple-200, #ecdff7);
  border-radius: 12px;
  background: #f8f7fc;
  overflow: hidden;
}

.dl-layout.map-on .dl-map {
  display: block;
}

.dl-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.dl-map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  background: color-mix(in srgb, var(--cream, #faf8ff) 88%, transparent);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.dl-map-empty[hidden] {
  display: none !important;
}

.dl-map-popup {
  min-width: 160px;
  max-width: 220px;
}

.dl-map-popup strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.dl-map-popup p {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #4b5563;
}

.dl-map-popup a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6d28d9;
  text-decoration: none;
}

.dl-map-popup a:hover {
  text-decoration: underline;
}

@media (max-width: 959px) {
  .dl-layout.map-on .dl-map {
    position: relative;
    top: auto;
    height: 50vh;
    min-height: 280px;
    margin-bottom: 1rem;
  }

  .dl-layout.map-on {
    display: flex;
    flex-direction: column;
  }

  .dl-layout.map-on .dl-map {
    order: -1;
  }
}

.dl-empty,
.dl-error {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-600);
}

.dl-cta-band {
  background: var(--purple-100, #ede5f8);
  color: var(--charcoal);
  padding: 3rem 0;
  margin-top: 0.5rem;
}

.dl-cta-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.dl-cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 1.25rem;
  line-height: 1.25;
  color: var(--charcoal);
}

.dl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dl-footer-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  max-width: 36rem;
}

.dl-page .footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.dl-page .footer-contact {
  margin: 0.45rem 0 0.85rem;
}

/* Detail */
.dl-detail {
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.dl-detail-header {
  margin: 0 0 1.15rem;
}

.dl-detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .dl-detail-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .dl-detail-main,
  .dl-actions {
    min-width: 0;
  }
}

.dl-detail-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0 0.35rem;
  color: var(--charcoal);
}

.dl-photo-hero {
  margin: 0 0 1.15rem;
}

.dl-photo-hero-btn {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  aspect-ratio: 16 / 10;
  max-height: 460px;
}

.dl-photo-hero-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dl-photo-hero-btn:hover img,
.dl-photo-hero-btn:focus-visible img {
  transform: scale(1.02);
}

.dl-photo-hero-btn:focus-visible {
  outline: 2px solid var(--purple-500, #7c3aed);
  outline-offset: 2px;
}

.dl-photo-view-all {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.78);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.dl-card-photo-count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

body.dl-lightbox-open {
  overflow: hidden;
}

.dl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 3.5rem 4.5rem;
}

.dl-lightbox[hidden] {
  display: none !important;
}

.dl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  cursor: zoom-out;
}

.dl-lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.dl-lightbox-close,
.dl-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dl-lightbox-close:hover,
.dl-lightbox-nav:hover,
.dl-lightbox-close:focus-visible,
.dl-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.dl-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.25rem;
}

.dl-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 1.15rem;
}

.dl-lightbox-prev {
  left: 1rem;
}

.dl-lightbox-next {
  right: 1rem;
}

.dl-lightbox-nav[hidden] {
  display: none !important;
}

.dl-lightbox-counter {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
  .dl-photo-hero-btn {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .dl-lightbox {
    padding: 3.5rem 0.75rem 4.5rem;
  }

  .dl-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .dl-lightbox-prev {
    left: 0.4rem;
  }

  .dl-lightbox-next {
    right: 0.4rem;
  }
}

.dl-terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}

.dl-terms-table th,
.dl-terms-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.dl-terms-table th {
  color: var(--gray-600);
  font-weight: 500;
  width: 42%;
  padding-right: 0.75rem;
}

.dl-actions {
  background: white;
  border: 1px solid var(--purple-200, #ecdff7);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 1.25rem;
}

.dl-aside-title {
  margin: 0.35rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #eee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.dl-actions > .btn.btn-primary + .dl-aside-title {
  margin-top: 0.15rem;
}

.dl-aside-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-700, #374151);
}

.dl-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.dl-contact-name {
  font-weight: 600;
  color: var(--charcoal);
}

.dl-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--purple-700, #6d28d9);
  text-decoration: none;
  word-break: break-word;
}

.dl-contact-link:hover {
  text-decoration: underline;
}

.dl-contact-fallback {
  color: var(--gray-600);
  font-size: 0.88rem;
}

.dl-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.dl-claim-help {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-600);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dl-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.dl-attrs {
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.dl-attrs li {
  padding: 0.25rem 0;
}

@media (max-width: 700px) {
  .dl-hero {
    padding-top: 1.75rem;
  }

  .dl-filters {
    top: 0;
    position: relative;
  }

  .dl-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-filters input[type="number"] {
    width: 100%;
  }

  .dl-cta-actions {
    flex-direction: column;
  }

  .dl-cta-actions .btn {
    width: 100%;
  }
}

/* Dark mode */
[data-theme="dark"] .dl-page {
  background: var(--cream, #0f0d14);
}

[data-theme="dark"] .dl-hero-title {
  color: #f8fafc;
}

[data-theme="dark"] .dl-hero-hide,
[data-theme="dark"] .dl-hero-show {
  color: #c4c4cc;
  border-color: #3b2d5c;
}

[data-theme="dark"] .dl-hero-title em {
  color: #c4b5fd;
}

[data-theme="dark"] .dl-hero-subtitle,
[data-theme="dark"] .dl-meta,
[data-theme="dark"] .dl-card-loc,
[data-theme="dark"] .dl-field-label {
  color: #a1a1aa;
}

[data-theme="dark"] .dl-read-first {
  background: #1a1228;
  border-color: #3b2d5c;
}

[data-theme="dark"] .dl-read-first-label {
  color: #f5f3ff;
}

[data-theme="dark"] .dl-read-first p {
  color: #c4c4cc;
}

[data-theme="dark"] .dl-filters {
  background: rgba(15, 13, 20, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dl-view-switch {
  background: #1f1830;
  border-color: #3b2d5c;
}

[data-theme="dark"] .dl-view-btn {
  color: #a1a1aa;
}

[data-theme="dark"] .dl-view-btn.is-active {
  background: rgba(167, 139, 250, 0.22);
  color: #f5f3ff;
}

[data-theme="dark"] .dl-view-btn:hover:not(.is-active) {
  color: #f5f3ff;
}

[data-theme="dark"] .dl-card,
[data-theme="dark"] .dl-actions,
[data-theme="dark"] .dl-filters input,
[data-theme="dark"] .dl-filters select {
  background: #1f1830;
  border-color: #3b2d5c;
  color: #f3e8ff;
  color-scheme: dark;
}

[data-theme="dark"] .dl-filters input::placeholder {
  color: #8b8b9a;
  opacity: 1;
}

[data-theme="dark"] .dl-filters input:focus,
[data-theme="dark"] .dl-filters select:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22);
}

[data-theme="dark"] .dl-filters select option {
  background: #1f1830;
  color: #f3e8ff;
}

[data-theme="dark"] .dl-filter-check {
  color: #a1a1aa;
}

[data-theme="dark"] .dl-filters .btn-ghost {
  color: #e9d5ff;
  border-color: #3b2d5c;
  background: transparent;
}

[data-theme="dark"] .dl-filters .btn-ghost:hover {
  background: #1f1830;
  border-color: #a78bfa;
  color: #f5f3ff;
}

[data-theme="dark"] .dl-card-photo {
  background: linear-gradient(145deg, #2a1f42, #1a1228);
}

[data-theme="dark"] .dl-card-photo-placeholder {
  color: #c4b5fd;
}

[data-theme="dark"] .dl-card-cat {
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

[data-theme="dark"] .dl-card-title,
[data-theme="dark"] .dl-detail-title,
[data-theme="dark"] .dl-card-field p,
[data-theme="dark"] .dl-cta-band h2 {
  color: #f8fafc;
}

[data-theme="dark"] .dl-card-price {
  color: #ddd6fe;
}

[data-theme="dark"] .dl-card-cta {
  background: #1f1830 !important;
  border-color: #4c3d6e !important;
  color: #f5f3ff !important;
}

[data-theme="dark"] .dl-card-cta:hover {
  background: #2a1f42 !important;
  border-color: #a78bfa !important;
  color: #fff !important;
}

[data-theme="dark"] .dl-cta-band {
  background: #1a1228;
}

[data-theme="dark"] .dl-disclaimer {
  background: #161022;
}

[data-theme="dark"] .dl-map {
  background: #161022;
  border-color: #3b2d5c;
}

[data-theme="dark"] .dl-map-empty {
  background: rgba(22, 16, 34, 0.9);
  color: #d4d4d8;
}

[data-theme="dark"] .dl-terms-table th,
[data-theme="dark"] .dl-terms-table td {
  border-bottom-color: #3b2d5c;
}

[data-theme="dark"] .dl-aside-title {
  border-top-color: #3b2d5c;
}

[data-theme="dark"] .dl-contact-name {
  color: #f8fafc;
}

[data-theme="dark"] .dl-contact-link {
  color: #c4b5fd;
}

[data-theme="dark"] .dl-aside-note,
[data-theme="dark"] .dl-contact-fallback,
[data-theme="dark"] .dl-claim-help {
  color: #d4d4d8;
}

[data-theme="dark"] .dl-chip {
  background: rgba(167, 139, 250, 0.28);
  color: #f5f3ff;
  border: 1px solid rgba(196, 181, 253, 0.45);
}

[data-theme="dark"] .dl-chip.muted {
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
