@charset "UTF-8";
.lp-auto {
  margin: 12px auto;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .lp-auto {
    margin: 10px auto;
  }
}
@media (max-width: 600px) {
  .lp-auto {
    margin: 6px auto;
  }
}

.lp-main-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.lp-quarter {
  grid-column: 1;
}

.lp-threequarter {
  grid-column: 2;
}

.lp-margin-bottom {
  margin-bottom: 12px;
}

.lp-margin-top {
  margin-top: 12px;
}

.lp-margin-left {
  margin-left: 12px;
}

.lp-white {
  background-color: var(--color-bg-body);
  color: var(--color-text-primary);
}
@media (prefers-color-scheme: light) {
  .lp-white {
    background-color: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .lp-white {
    background-color: #1a2332;
  }
}
html[data-theme="light"] .lp-white {
  background-color: #ffffff;
}
html[data-theme="dark"] .lp-white {
  background-color: #1a2332;
}

.lp-border {
  border: 1px solid var(--color-border);
}

.lp-border-grey {
  border-color: var(--color-border);
}

.lp-round {
  border-radius: 6px;
}

.lp-round-medium {
  border-radius: 4px;
}

.lp-round-large {
  border-radius: 8px;
}

.lp-round-container {
  border-radius: 6px 6px 0 0;
}

.index_boxHeader {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
@media (prefers-color-scheme: light) {
  .index_boxHeader {
    background: #f8f9fa;
  }
}
@media (prefers-color-scheme: dark) {
  .index_boxHeader {
    background: #0f172a;
  }
}
html[data-theme="light"] .index_boxHeader {
  background: #f8f9fa;
}
html[data-theme="dark"] .index_boxHeader {
  background: #0f172a;
}
.index_boxHeader h2 {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-primary);
}

.lp-link-original a {
  color: #e89c0a;
}
.lp-link-original a:hover {
  color: #c18208;
  text-decoration: underline;
}

.lp-list-index {
  list-style: none;
  padding: 10px 12px;
  margin: 0;
}
.lp-list-index li {
  padding: 6px 0;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.lp-list-index li:last-child {
  border-bottom: none;
}
.lp-list-index li:before {
  content: "✓ ";
  color: #5ba831;
  font-weight: 700;
  margin-right: 6px;
}

.lp-index-all-categories {
  padding: 10px 12px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.lp-index-all-categories a {
  font-weight: 600;
  color: #e89c0a;
}
.lp-index-all-categories a:hover {
  text-decoration: underline;
}

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
  min-height: 44px;
  width: auto;
}
.lp-button:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(232, 156, 10, 0.1);
}
.lp-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(232, 156, 10, 0.05);
}
.lp-button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
@media (prefers-color-scheme: light) {
  .lp-button {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .lp-button {
    background: #1a2332;
  }
}
html[data-theme="light"] .lp-button {
  background: #ffffff;
}
html[data-theme="dark"] .lp-button {
  background: #1a2332;
}

.lp-button-secondary {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.lp-button-secondary:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a;
}

.lp-center {
  text-align: center;
}

.lp-padding-16 {
  padding: 12px;
}

.lp-container {
  padding: 10px 12px;
}

.lp-info-banner {
  position: relative;
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.lp-info-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.lp-info-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.8);
}

.lp-info-content {
  position: relative;
  z-index: 2;
  color: white;
}
.lp-info-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}
.lp-info-content p {
  font-size: 1rem;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.lp-info-content a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border) !important;
}
.lp-info-content a:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  color: #e89c0a !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #e89c0a !important;
  transform: translateY(-2px);
}
.lp-info-content a:active {
  background: rgba(232, 156, 10, 0.1) !important;
  color: #e89c0a !important;
  transform: translateY(0);
}
.lp-info-content a:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
@media (prefers-color-scheme: light) {
  .lp-info-content a {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border) !important;
  }
  .lp-info-content a:hover {
    background: rgba(232, 156, 10, 0.05) !important;
    border-color: #e89c0a !important;
    color: #e89c0a !important;
  }
  .lp-info-content a:active {
    background: rgba(232, 156, 10, 0.1) !important;
    color: #e89c0a !important;
  }
}
@media (prefers-color-scheme: dark) {
  .lp-info-content a {
    background: #1a2332 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  .lp-info-content a:hover {
    background: rgba(232, 156, 10, 0.1) !important;
    border-color: #e89c0a !important;
    color: #e89c0a !important;
  }
  .lp-info-content a:active {
    background: rgba(232, 156, 10, 0.15) !important;
    color: #e89c0a !important;
  }
}
html[data-theme="light"] .lp-info-content a {
  background: #ffffff !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
}
html[data-theme="light"] .lp-info-content a:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
}
html[data-theme="light"] .lp-info-content a:active {
  background: rgba(232, 156, 10, 0.1) !important;
  color: #e89c0a !important;
}
html[data-theme="dark"] .lp-info-content a {
  background: #1a2332 !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .lp-info-content a:hover {
  background: rgba(232, 156, 10, 0.1) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
}
html[data-theme="dark"] .lp-info-content a:active {
  background: rgba(232, 156, 10, 0.15) !important;
  color: #e89c0a !important;
}

.lp-small-button {
  padding: 6px 10px;
  font-size: 13px;
  background-color: #e89c0a;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.lp-small-button:hover {
  background-color: #c18208;
  text-decoration: none;
}
.lp-small-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.lp-margin-left {
  margin-left: 10px !important;
}

.lp-gallery {
  margin-bottom: 18px;
}

/* ===== KORRIGIERT: Galerie-Karussell Styles (ohne Duplikate) ===== */
.gallery-section {
  position: relative;
  margin-bottom: 18px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.gallery-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.gallery-header .gallery-edit-link {
  font-size: 13px;
  color: #e89c0a;
  text-decoration: none;
}
.gallery-header .gallery-edit-link:hover {
  text-decoration: underline;
}

.gallery-container {
  display: flex;
  gap: 10px;
  padding: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: calc(100% / 4 - 10px);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1280px) {
  .gallery-item {
    width: calc(100% / 3 - 10px);
  }
}
@media (max-width: 1024px) {
  .gallery-item {
    width: calc(100% / 2 - 10px);
  }
}
@media (max-width: 640px) {
  .gallery-item {
    width: calc(100% - 10px);
  }
}
.gallery-item-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.gallery-item-link:hover {
  text-decoration: none !important;
}

.gallery-item-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-secondary);
}
.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
}

.gallery-item-title {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-location, .gallery-item-price {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 10px 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.gallery-item-price {
  margin-bottom: 10px;
}

.gallery-badge, .price-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
}

.gallery-badge {
  background-color: rgba(21, 101, 192, 0.1);
  color: #1565c0;
}

.price-badge.free {
  background-color: rgba(91, 168, 49, 0.1);
  color: #5ba831;
}

.price-badge.negotiable {
  background-color: rgba(232, 156, 10, 0.1);
  color: #e89c0a;
}

.price-badge.fixed {
  background-color: rgba(21, 101, 192, 0.1);
  color: #1565c0;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.gallery-btn {
  pointer-events: all;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.gallery-btn:hover {
  background-color: var(--color-bg-secondary);
  transform: scale(1.1);
  border-color: #e89c0a;
  color: #e89c0a;
}
@media (prefers-color-scheme: dark) {
  .gallery-btn {
    background-color: rgba(42, 50, 66, 0.7);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
  }
}
html[data-theme="dark"] .gallery-btn {
  background-color: rgba(42, 50, 66, 0.7);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}

.classifieds-section {
  margin-bottom: 18px;
}
.classifieds-section .container {
  padding: 0;
}

/* ✅ ULTRA-SPEZIFISCH: Überschreibt alle globalen Regeln */
html[data-theme="light"] .lp-threequarter .classifieds-section h1#featured-classifieds-heading,
html[data-theme="light"] .classifieds-section h1 {
  color: #1f2937 !important;
}

html[data-theme="dark"] .lp-threequarter .classifieds-section h1#featured-classifieds-heading,
html[data-theme="dark"] .classifieds-section h1 {
  color: #f1f5f9 !important;
}

/* ✅ Fallback für prefers-color-scheme, aber nur wenn data-theme gesetzt ist */
@media (prefers-color-scheme: light) {
  html[data-theme="light"] .classifieds-section h1 {
    color: #1f2937 !important;
  }
}
@media (prefers-color-scheme: dark) {
  html[data-theme="light"] .classifieds-section h1 {
    color: #1f2937 !important;
    /* ✅ WICHTIG: Auch im Dark Mode System-Setting */
  }

  html[data-theme="dark"] .classifieds-section h1 {
    color: #f1f5f9 !important;
  }
}
/* ✅ Standard-Styling */
.classifieds-section h1 {
  margin-bottom: 12px;
  font-size: 17px;
  padding: 0 10px;
  font-weight: 700;
}

.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.classifieds-grid[data-cols="5"] {
  grid-template-columns: repeat(5, 1fr);
}
.classifieds-grid[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}
.classifieds-grid[data-cols="3"] {
  grid-template-columns: repeat(3, 1fr);
}
.classifieds-grid[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.classified-box {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
@media (prefers-color-scheme: light) {
  .classified-box {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .classified-box {
    background: #1a2332;
  }
}
html[data-theme="light"] .classified-box {
  background: #ffffff;
}
html[data-theme="dark"] .classified-box {
  background: #1a2332;
}

.classified-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.classified-link:hover {
  text-decoration: none;
}
.classified-link:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: -2px;
}
.classified-link:visited {
  color: inherit;
}

.classified-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
  /* NEU: Platzhalter-Farbe (Skeleton-Effekt) */
  background-color: #e5e7eb;
  /* Dark Mode Anpassung für den Platzhalter */
}
@media (prefers-color-scheme: dark) {
  .classified-image-container {
    background-color: #374151;
  }
}
html[data-theme="dark"] .classified-image-container {
  background-color: #374151;
}
.classified-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  /* NEU: Sanftes Einblenden verhindert das "Aufploppen" */
  animation: fadeInImage 0.4s ease-out;
}
.classified-image-container:hover img {
  transform: scale(1.05);
}

/* NEU: Styling für den NEU-Hinweis */
.classified-badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1565c0;
  /* Freundliches Blau statt Rot */
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 20;
  /* Muss höher sein als das Bild */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  pointer-events: none;
  /* Klicks gehen durch auf den Link */
}

/* PRO-Badge */
.classified-badge-pro {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #1f2937;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  pointer-events: none;
}

/* Keyframe für die Animation */
@keyframes fadeInImage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.classified-favorite {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: all 0.2s ease;
  z-index: 30;
}
.classified-favorite::before {
  content: "★";
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.classified-favorite:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}
.classified-favorite.bookmarked {
  color: #e89c0a;
  background: rgba(0, 0, 0, 0.5);
}
.classified-favorite.bookmarked:hover {
  background: rgba(0, 0, 0, 0.7);
}

.classified-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 10px;
  flex-grow: 1;
}

.classified-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
.classified-location svg {
  flex-shrink: 0;
}
.classified-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classified-price {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #5ba831;
  z-index: 15;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.price-badge {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.75);
  color: white;
}
.price-badge.free {
  background: rgba(91, 168, 49, 0.9);
  color: white;
}
.price-badge.negotiable {
  background: rgba(212, 161, 55, 0.9);
  color: white;
}
.price-badge.fixed {
  background: rgba(91, 168, 49, 0.9);
  color: white;
}

.promo-box {
  background: linear-gradient(135deg, rgba(232, 156, 10, 0.1) 0%, rgba(91, 168, 49, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 220px;
}

.promo-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.promo-link:hover {
  text-decoration: none;
}
.promo-link:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}

.promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  width: 100%;
}

.promo-logo {
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

.promo-text-only {
  font-size: 17px;
  font-weight: 700;
  color: #e89c0a;
}

.promo-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  max-width: 200px;
  line-height: 1.5;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
  min-height: 44px;
  width: auto;
}
.promo-cta:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(232, 156, 10, 0.1);
}
.promo-cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(232, 156, 10, 0.05);
}
.promo-cta:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
@media (prefers-color-scheme: light) {
  .promo-cta {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .promo-cta {
    background: #1a2332;
  }
}
html[data-theme="light"] .promo-cta {
  background: #ffffff;
}
html[data-theme="dark"] .promo-cta {
  background: #1a2332;
}

.search-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px 12px;
}

.search-location-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 44px;
  line-height: 1.4;
}
.search-location-link:hover {
  background: rgba(232, 156, 10, 0.1);
  border-color: #e89c0a;
  color: #e89c0a;
}
.search-location-link:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.search-location-link:active {
  transform: scale(0.98);
}
@media (prefers-color-scheme: light) {
  .search-location-link {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .search-location-link {
    background: #1a2332;
  }
}
html[data-theme="light"] .search-location-link {
  background: #ffffff;
}
html[data-theme="dark"] .search-location-link {
  background: #1a2332;
}

.classified-title {
  font-size: 0.8125rem;
  padding: 6px 10px;
  color: var(--color-text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  flex-shrink: 0;
  margin: 0;
}
@media (prefers-color-scheme: light) {
  .classified-title {
    color: #1f2937;
  }
}
@media (prefers-color-scheme: dark) {
  .classified-title {
    color: #f1f5f9;
  }
}
html[data-theme="light"] .classified-title {
  color: #1f2937;
}
html[data-theme="dark"] .classified-title {
  color: #f1f5f9;
}

.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.classifieds-grid[data-cols="5"] {
  grid-template-columns: repeat(5, 1fr);
}
.classifieds-grid[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}
.classifieds-grid[data-cols="3"] {
  grid-template-columns: repeat(3, 1fr);
}
.classifieds-grid[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .classifieds-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .classifieds-grid[data-cols="4"] {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .classifieds-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .classifieds-grid[data-cols="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .classifieds-grid[data-cols="4"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .classified-title {
    font-size: 0.75rem;
    padding: 3px 6px;
    line-height: 1.3;
    min-height: 1.3em;
  }

  .classified-location {
    font-size: 0.6875rem;
    padding: 0 6px;
    gap: 3px;
  }

  .classified-price {
    bottom: 0;
    right: 0;
    font-size: 0.75rem;
  }
  .classified-price .price-badge {
    font-size: 0.6875rem;
    padding: 2px 4px;
  }

  .classified-meta {
    padding: 3px 6px;
  }
}
@media (max-width: 600px) {
  .classifieds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .classifieds-grid[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .classifieds-grid[data-cols="3"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .classifieds-grid[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .classifieds-grid[data-cols="5"] {
    grid-template-columns: repeat(2, 1fr);
  }

  .classified-title {
    font-size: 0.6875rem;
    padding: 3px;
    line-height: 1.25;
    min-height: 1.25em;
  }

  .classified-location {
    font-size: 0.625rem;
    padding: 0 3px;
    gap: 2px;
  }

  .classified-price {
    bottom: 0;
    right: 0;
    font-size: 0.6875rem;
  }
  .classified-price .price-badge {
    font-size: 0.625rem;
    padding: 2px 3px;
  }

  .classified-meta {
    padding: 3px;
    gap: 3px;
  }
}
@media (max-width: 768px) {
  .lp-main-wrapper {
    padding: 0 10px;
  }
}
