/* --- Animated gradient keyframes --- */
@keyframes borderGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --- Body Scroll Prevention --- */
html.panel-open {
  overflow: hidden;
  overscroll-behavior: contain;
  /* position: fixed;
  width: 100%;
  height: 100%; */

  -webkit-overflow-scrolling: hidden;
  scrollbar-gutter: stable;
}

/* --- Ad Detail Slide Panel Styles --- */
.ad-detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 0 6px;
  justify-content: center;
}

.ad-detail-panel.show {
  opacity: 1;
  visibility: visible;
}

.ad-detail-panel-content {
  max-width: 660px;
  max-height: 95dvh;
  min-height: 400px; /* Ensure minimum height even when hidden */
  background: var(--bg-color);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  /* Enable smooth slide animations */
  transition: transform 0.3s ease;
  transform: translateY(100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

/* Panel animation states */
.ad-detail-panel-content.animate-open {
  transition: transform 0.3s ease;
}

.ad-detail-panel-content.snap-back {
  transition: transform 0.3s ease;
}

/* Dragging state - disable transitions during drag */
.ad-detail-panel-content.dragging {
  transition: none !important;
  cursor: grabbing;
}

/* -------------------------------------------------- */
/* Lightweight overrides                             */
/* -------------------------------------------------- */

/* (Removed) previously forced transition disabling to retain slide-up animation */

/* Always reserve 280px for image areas when images exist */
.ad-card-gallery,
.ad-card-main-image,
.ad-card-swiper,
.ad-card-swiper .swiper-slide {
  height: 280px;
  min-height: 280px;
}

.ad-detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem 0.6rem 1.5rem;
  background: var(--card-bg);
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  border-bottom: 4px solid;
  border-image: linear-gradient(45deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
  border-image-slice: 1;
  box-shadow: #00000029 0px 4px 13px 4px;
  z-index: 10;
}

.ad-detail-panel-header:active {
  cursor: grabbing;
}

.ad-detail-panel-header.dragging {
  cursor: grabbing;
}

.ad-detail-panel-title {
  color: var(--text-color);
  font-weight: 600;
  margin: 0;
  font-size: 1.25rem;
  pointer-events: none;
}

.ad-detail-panel-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  z-index: 10;
  position: relative;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.ad-detail-panel-close:hover {
  background-color: var(--border-color);
}

.ad-detail-panel-body {
  flex: 1;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 400px; /* Ensure minimum height */
  /* overscroll-behavior: contain; */
  /* scroll-snap-type: x mandatory; */
  /* scrollbar-gutter: stable; */
}

.ad-detail-panel-content-row {
  width: 100%;
  min-height: 400px; /* Ensure minimum height for content */
  /* scroll-snap-align: start; */
}

.ad-card-separator {
  opacity: 0.4;
}

/* Handle bar indicator */
.ad-detail-panel-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Enhanced handle bar for dragging feedback */
.ad-detail-panel-header:hover::before {
  background: var(--primary-color);
  width: 50px;
}

.ad-detail-panel-header.dragging::before {
  background: var(--primary-color);
  width: 60px;
  height: 5px;
}



.ad-card-holder {
  width: 100%;
  padding: 8px;
}

.ad-card-holder::-webkit-scrollbar {
  display: none;
}

/* --- Unified Ad Card Layout --- */
.ad-card {
  /* scroll-snap-align: start; */
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 280px;
}

.ad-card::-webkit-scrollbar {
  display: none;
}


/* --- Ad Card Gallery Styles --- */

.ad-card-main-image {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 280px;
  background: var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  background: var(--border-color); /* Fallback background */
  min-height: 280px;
}



/* Ensure gallery container maintains height */
.ad-card-gallery {
  height: 280px;
  min-height: 280px;
  position: relative;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Zoom icon at top-left of gallery */
.ad-card-zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ad-card-zoom:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-1px);
}

.ad-card-zoom:active {
  transform: translateY(0);
}



/* Swiper styles for ad card gallery */
.ad-card-swiper {
  width: 100%;
  height: 280px;
}

.ad-card-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.ad-card-image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 15;
}

.ad-card-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  
  /* Position thumbnails over the main image at bottom */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 0.5rem;
  backdrop-filter: blur(4px);
  margin-top: 220px;
}

.ad-card-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.ad-card-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.ad-card-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.ad-card-thumbnail {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.ad-card-thumbnail:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.ad-card-thumbnail.active {
  border-color: white;
  border-width: 3px;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.ad-card-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ad-card-thumbnail.active::after {
  opacity: 0;
}

.ad-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Ad Card Header Styles --- */
.ad-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.ad-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  flex: 1;
  line-height: 1.3;
  cursor: pointer;
}

.ad-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
  color: white !important;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
  cursor: pointer;
}

.ad-card-price .price-currency {
  font-size: 0.8em;
  opacity: 0.8;
  margin-right: 6px;
}

/* --- Ad Card Keypoints Styles --- */
.ad-card-keypoints-section {
  margin: 1rem 0;
}

.ad-card-keypoints {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.ad-card-keypoints::before {
  content: '💡';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
  opacity: 0.3;
}

.ad-card-keypoints h5 {
  color: var(--text-color);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-card-keypoints h5::before {
  content: '📋';
  font-size: 1.1rem;
}

.ad-card-keypoints-content {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Ad Card Contact Styles --- */
.ad-card-contact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Floating Contact Info */
.floating-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.floating-contact-item {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.floating-contact-item:nth-child(1) { animation-delay: 0s; }
.floating-contact-item:nth-child(2) { animation-delay: 0.2s; }
.floating-contact-item:nth-child(3) { animation-delay: 0.4s; }
.floating-contact-item:nth-child(4) { animation-delay: 0.6s; }

.floating-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.floating-btn:hover::before {
  left: 100%;
}

.floating-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--text-color);
}

.floating-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.floating-btn:hover i {
  transform: scale(1.1);
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* Specific button colors */
.phone-item .floating-btn {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(32, 201, 151, 0.8));
  border-color: rgba(40, 167, 69, 0.6);
  color: white;
}

.whatsapp-item .floating-btn {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.8), rgba(18, 140, 126, 0.8));
  border-color: rgba(37, 211, 102, 0.6);
  color: white;
}

.email-item .floating-btn {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(200, 35, 51, 0.8));
  border-color: rgba(220, 53, 69, 0.6);
  color: white;
}

.website-item .floating-btn {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.8), rgba(90, 50, 163, 0.8));
  border-color: rgba(111, 66, 193, 0.6);
  color: white;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Ad Card Location Styles --- */
.ad-card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.ad-card-location i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* --- Enhanced Ad Card Body Styles --- */
.ad-card-body {
  width: 100%;
  padding: 1.5rem;
}

/* --- Loader and skeletons --- */
.ad-card-loader-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12), rgba(0,0,0,0.06));
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text-line {
  height: 14px;
}

.skeleton-text-block {}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(13, 110, 253, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ad-card-loading-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ad-card-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-style: italic;
  background: var(--card-bg);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.ad-card-body-text-section {
  margin-bottom: 1rem;
}

.show-more-btn {
  color: var(--primary-color) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
  margin-bottom: 0.75rem !important;
  text-decoration: none !important;
}

.show-more-btn:hover {
  color: #0b5ed7 !important;
  text-decoration: none !important;
}

.ad-card-body-text {
  font-size: 0.9rem;
  color: var(--text-color);
  /* margin-bottom: 1rem; */
  line-height: 1.6;
  text-align: left;
}

.ad-card-body-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

.ad-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 1rem;
}

.ad-card-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.ad-card-meta-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  text-align: right;
}

.ad-card-meta-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ad-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ad-card-author .author-avatar-link {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ad-card-author .author-avatar-link:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.ad-card-author .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.ad-card-author .author-avatar-link:hover .author-avatar {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.3);
}

.ad-card-author .author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-card-author .author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.ad-card-author .author-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ad-card-author .author-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ad-card-author .author-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.ad-card-author .author-name-link {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ad-card-author .author-name-link:hover {
  color: #0b5ed7;
  text-decoration: underline;
  transform: scale(1.02);
}

.ad-card-author .author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid;
}

.ad-card-author .store-badge {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.3);
}

.ad-card-author .store-badge:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(32, 201, 151, 0.2));
  transform: scale(1.05);
  text-decoration: none;
  color: #28a745;
}

.ad-card-author .premium-badge {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}

.ad-card-author .premium-badge:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
  transform: scale(1.05);
}

.ad-card-views {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ad-card-views::before {
  content: '👁️';
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.ad-card-date {
  color: var(--text-muted);
  /* font-style: italic; */
  font-size: 0.85rem;
}

.ad-card-date::before {
  content: '📅';
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.ad-card-tags {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}

.ad-card-tags .badge {
  background: var(--border-color) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.ad-card-tags .badge:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* View more tags button */
.ad-card-tags .badge-view-more {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.ad-card-tags .badge-view-more:hover {
  background: #0b5ed7 !important;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.ad-card-tags .badge-view-more:active {
  transform: scale(0.95);
}

/* Hidden tags */
.ad-card-tags .badge.hidden {
  display: none;
}

/* Hidden tags animation when shown */
.ad-card-tags .badge.show-hidden {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



/* --- Gallery Modal Styles --- */
.gallery-modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-content {
  width: 95vw;
  max-width: 900px;
  height: 90vh;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal .swiper {
  height: 100%;
}
.gallery-modal .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-modal .swiper-zoom-container img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 24px;
  line-height: 38px;
  background: none;
  border: none;
  z-index: 10;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  width: 38px;
  height: 38px;
  text-align: center;
}
.gallery-modal-close:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .gallery-modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
  }
  .gallery-modal .swiper-zoom-container img {
    max-height: 60vh;
  }
}

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 600px) {
  .ad-detail-panel {
    padding: 0;
  }
  
  .ad-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .ad-card-title {
    font-size: 1.1rem;
  }
  
  .ad-card-price {
    font-size: 1.3rem;
  }
  
  .ad-card-thumbnail {
    width: 35px;
    height: 35px;
  }
  
  .ad-card-lead {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .ad-card-body-text {
    font-size: 0.8rem;
  }
  
  .ad-card-meta {
    font-size: 0.8rem;
    gap: 0.75rem;
  }
  
  .ad-card-author {
    gap: 0.5rem;
  }
  
  .ad-card-author .author-avatar {
    width: 20px;
    height: 20px;
  }
  
  .ad-card-author .author-name {
    font-size: 0.8rem;
  }
  
  .ad-card-author .author-label {
    font-size: 0.7rem;
  }
  
  .ad-card-author .author-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
  
  .ad-card-keypoints {
    padding: 0.75rem;
  }
  
  .ad-card-keypoints h5 {
    font-size: 0.9rem;
  }
  
  .ad-card-keypoints-content {
    font-size: 0.8rem;
  }
  
  .floating-contact-info {
    gap: 0.5rem;
  }
  
  .floating-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .contact-label {
    font-size: 0.75rem;
  }
  
  .floating-btn i {
    font-size: 0.9rem;
  }

  .show-more-btn {
    font-size: 0.85rem !important;
  }

  .ad-card-body {
    padding: 1rem;
  }

  .ad-card-holder {
    padding: 4px;
  }
}

/* --- Panel Mobile Responsive Styles --- */
@media (max-width: 500px) {
  .ad-detail-panel-header {
    padding: 0.6rem 1rem 0.3rem 1rem;
  }
  .ad-detail-panel-header h5 {
    font-size: 1.15rem;
  }

  .author-badge span {
    display: none;
  }
} 

/* --- End Message Styles --- */
.ad-card-end-message {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-color);
  border-radius: 12px;
  margin: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.end-message-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.end-message-content i {
  font-size: 3rem;
  color: var(--success-color, #28a745);
}

.end-message-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

.end-message-content .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.end-message-content .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} 