/* =====================================================================
   Classified Ads Components, Cards, Gallery & Modals
   ===================================================================== */

/* ---------------------------------------------------------------------
   Classified Advertisement Card
   --------------------------------------------------------------------- */
.listing-card,
.sk-card,
.ad-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-height: 380px;
  position: relative;
}

.listing-card:hover,
.sk-card:hover,
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.listing-card.is-vip,
.sk-card.is-vip,
.ad-card.is-vip {
  border: 1.5px solid rgba(2, 132, 199, 0.4);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.10);
}

.listing-card-img-wrap,
.listing-img-wrap,
.ad-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%; /* Generous vertical aspect ratio so head/top of photo is never cropped */
  height: 0;
  overflow: hidden;
  background-color: #f1f5f9;
  display: block;
}

.listing-card-img-wrap > a,
.listing-img-wrap > a,
.ad-card-img-wrap > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.listing-card-img-wrap img,
.listing-img-wrap img,
.ad-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Keep focus towards upper face and subject so top is never cut off */
  display: block;
  transition: transform 0.35s ease;
}

.listing-card:hover .listing-card-img-wrap img,
.listing-card:hover .listing-img-wrap img,
.sk-card:hover .listing-img-wrap img,
.ad-card:hover .ad-card-img-wrap img {
  transform: scale(1.04);
}

.photo-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.badges-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.badge-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-verified {
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.listing-card-body,
.ad-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-card-title,
.ad-card-title {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4 !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  min-height: 2.8em !important;
  max-height: 2.8em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.listing-card-title a,
.ad-card-title a {
  color: var(--color-text-dark);
  text-decoration: none;
}

.listing-card-title a:hover,
.ad-card-title a:hover {
  color: var(--color-primary);
}

.listing-card-title .verified-tick {
  font-size: 0.88rem;
  vertical-align: -1px;
  display: inline-block;
}

.listing-card-meta,
.ad-card-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.badge-age-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.listing-card-price,
.ad-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.listing-card-snippet,
.ad-card-snippet {
  font-size: 0.84rem;
  color: var(--color-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.4;
}

.listing-card-footer,
.ad-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.listing-card-time {
  white-space: nowrap !important;
  font-size: 0.76rem !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: #64748b;
  min-width: 0;
}

.listing-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-whatsapp-sm {
  background: var(--color-whatsapp);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-whatsapp-sm:hover {
  background: var(--color-whatsapp-hover);
}

.btn-call-sm {
  background: var(--color-phone);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-call-sm:hover {
  background: var(--color-phone-hover);
}

/* ---------------------------------------------------------------------
   Advertisement Detail Page Styling
   --------------------------------------------------------------------- */
.ad-detail-header {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.listing-detail-gallery,
.ad-detail-gallery {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.gallery-main-view {
  width: 100%;
  height: 440px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-main-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card-sticky {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 85px;
  margin-top: 0;
}

.btn-whatsapp-lg {
  background: var(--color-whatsapp);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  margin-bottom: 12px;
  transition: background 0.2s ease;
}

.btn-whatsapp-lg:hover {
  background: var(--color-whatsapp-hover);
}

.btn-call-lg {
  background: var(--color-phone);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: background 0.2s ease;
}

.btn-call-lg:hover {
  background: var(--color-phone-hover);
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.spec-table tr:nth-child(even) {
  background: #f8fafc;
}

.spec-table th, .spec-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.spec-table tr:last-child th, .spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  color: var(--color-text-muted);
  width: 35%;
  font-weight: 600;
}

.spec-table td {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* =====================================================================
   Premium & Boosted Ad Details Page Styles
   ===================================================================== */
.ad-detail-header.premium-detail-header {
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: #ffffff;
}

.ad-detail-header.premium-detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #0369a1 100%);
}

.ad-detail-header.has-super-top::before {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 40%, #f59e0b 80%, #ef4444 100%);
  height: 4.5px;
}

.pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
}

.ad-detail-gallery.premium-gallery {
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
  background: #0f172a;
}

.gallery-main-view.premium-main-view {
  width: 100%;
  height: 480px;
  background: #0b1120;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-ambient-bg {
  position: absolute;
  inset: -25px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
  transition: background-image 0.25s ease;
}

.gallery-main-view.premium-main-view img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.gallery-floating-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-counter-floating {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.gallery-zoom-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: scale(1.08);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.85;
}

.gallery-nav-btn:hover {
  background: #0284c7;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
}

.gallery-nav-btn.prev-btn { left: 14px; }
.gallery-nav-btn.next-btn { right: 14px; }

.gallery-thumbs-row.premium-thumbs {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumbs-row.premium-thumbs .gallery-thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery-thumbs-row.premium-thumbs .gallery-thumb.active,
.gallery-thumbs-row.premium-thumbs .gallery-thumb:hover {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

/* Modern Executive Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.spec-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.22s ease;
  min-height: 72px;
}

.spec-tile:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.spec-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.spec-tile-content {
  min-width: 0;
  flex-grow: 1;
}

.spec-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.spec-tile-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* Premium Sidebar Card */
.contact-card-sticky.premium-sidebar {
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(2, 132, 199, 0.12);
  position: sticky;
  top: 85px;
  z-index: 20;
  padding: 24px;
  background: #ffffff;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  margin-top: 0;
}

.contact-card-sticky.premium-sidebar::-webkit-scrollbar {
  width: 5px;
}
.contact-card-sticky.premium-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.contact-card-sticky.premium-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

@media (max-width: 991.98px) {
  .contact-card-sticky,
  .contact-card-sticky.premium-sidebar {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    margin-top: 20px !important;
  }
}

/* Dashboard My Advertisements Action Buttons */
.btn-dash-action {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  border: 1px solid transparent;
}

.btn-dash-view {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.btn-dash-view:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-dash-edit {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}
.btn-dash-edit:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-dash-toggle {
  background: #fefce8;
  border-color: #fef08a;
  color: #b45309;
}
.btn-dash-toggle:hover {
  background: #eab308;
  border-color: #eab308;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.25);
}

.btn-dash-delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}
.btn-dash-delete:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.btn-whatsapp-premium {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.32);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-whatsapp-premium:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-call-premium {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-call-premium:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.42);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-telegram-premium,
.btn-telegram-lg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.32);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-telegram-premium:hover,
.btn-telegram-lg:hover {
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #ffffff !important;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
  display: inline-block;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.trust-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 7px;
}

.trust-check-item:last-child {
  margin-bottom: 0;
}

.trust-check-item i {
  color: #0284c7;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 92vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1070;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* ---------------------------------------------------------------------
   Publishing Form Wizard
   --------------------------------------------------------------------- */
.publish-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   18+ Adult Age Gate Modal
   --------------------------------------------------------------------- */
.age-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-card {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.age-gate-icon {
  width: 72px;
  height: 72px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 800;
}

/* ---------------------------------------------------------------------
   Cookie Consent Banner
   --------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  background: #0f172a;
  color: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner a {
  color: #38bdf8;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   Custom Pagination
   --------------------------------------------------------------------- */
.pagination .page-item .page-link {
  color: var(--color-text-dark);
  border-color: var(--color-border);
  padding: 8px 16px;
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ---------------------------------------------------------------------
   India-Wide State & District Location Modal & Tiles
   --------------------------------------------------------------------- */
.modal-state-btn {
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  color: #334155;
}

.modal-state-btn:hover {
  background-color: #f8fafc;
  color: #0284c7;
}

.modal-state-btn.active {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  border-left: 3px solid #0284c7 !important;
}

.location-city-tile {
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.location-city-tile:hover {
  transform: translateY(-2px);
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  background-color: #ffffff !important;
}

.location-city-tile .text-dark {
  color: #1e293b;
}

.location-city-tile:hover .text-dark {
  color: #0284c7 !important;
}

/* =====================================================================
   Upgraded Classified Ad Cards: Modern Luxury Executive Style
   ===================================================================== */
.listing-card.ad-card-colored-bg,
.sk-card.ad-card-colored-bg {
  background: #ffffff !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.10), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.listing-card.ad-card-colored-bg .listing-card-body,
.sk-card.ad-card-colored-bg .listing-card-body {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 60%);
}

.listing-card.ad-card-colored-bg:hover,
.sk-card.ad-card-colored-bg:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.20) !important;
  border-color: #0284c7 !important;
}

.listing-card.ad-card-super-top,
.sk-card.ad-card-super-top {
  background: #ffffff !important;
  border: 1.5px solid rgba(2, 132, 199, 0.5) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  position: relative;
}

.listing-card.ad-card-super-top::before,
.sk-card.ad-card-super-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #0369a1 100%);
  z-index: 5;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.listing-card.ad-card-super-top:hover,
.sk-card.ad-card-super-top:hover {
  transform: translateY(-4px);
  border-color: #0284c7 !important;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.24) !important;
}

.listing-card.ad-card-super-top.ad-card-colored-bg,
.sk-card.ad-card-super-top.ad-card-colored-bg {
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.16) !important;
}

.badge-super-top {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-new-arrival {
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-featured-highlight {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* =====================================================================
   Creative Redesign for All 4 Premium Tiers
   (Diamond ₹11,999, Platinum ₹6,999, Sapphire ₹2,999, Emerald ₹999)
   ===================================================================== */

/* ========================================================= */
/* BESPOKE LUXURY 4-TIER CARDS & STYLING (CREATIVE REDESIGN)  */
/* ========================================================= */

/* Suppress all overlay badges on photos to keep photos 100% clean and unobstructed */
.badges-overlay {
  display: none !important;
}

/* Translucent Photo Counter Pill in bottom-right corner */
.photo-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50px !important;
  padding: 3px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  z-index: 2 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Base Tier Ribbon */
.tier-card-ribbon {
  width: 100%;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  z-index: 3;
  line-height: 1.2;
}

/* 1. 👑 DIAMOND VIP (₹11,999) - Midnight Obsidian & Imperial Royal Violet */
.tier-frame-diamond,
.tier-card-diamond {
  border: 1.5px solid #7c3aed !important;
  box-shadow: 0 10px 28px -4px rgba(124, 58, 237, 0.24), 0 0 0 1px rgba(245, 158, 11, 0.18) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-frame-diamond:hover,
.tier-card-diamond:hover {
  transform: translateY(-5px);
  border-color: #6d28d9 !important;
  box-shadow: 0 18px 38px -6px rgba(124, 58, 237, 0.35), 0 0 14px rgba(245, 158, 11, 0.3) !important;
}
.ribbon-diamond {
  background: linear-gradient(135deg, #1e112a 0%, #3b0764 45%, #581c87 75%, #1e112a 100%) !important;
  color: #fef08a !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  border-bottom: 1.5px solid #d97706 !important;
}
.ribbon-diamond i {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}
.tier-price-diamond {
  color: #6b21a8 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.3px;
}

/* 2. ⭐ PLATINUM VIP (₹6,999) - 24K Champagne Gold Foil */
.tier-frame-platinum,
.tier-card-platinum {
  border: 1.5px solid #d97706 !important;
  box-shadow: 0 10px 25px -4px rgba(217, 119, 6, 0.22) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-frame-platinum:hover,
.tier-card-platinum:hover {
  transform: translateY(-5px);
  border-color: #b45309 !important;
  box-shadow: 0 16px 34px -5px rgba(217, 119, 6, 0.32) !important;
}
.ribbon-platinum {
  background: linear-gradient(135deg, #451a03 0%, #78350f 30%, #b45309 60%, #451a03 100%) !important;
  color: #fef3c7 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  border-bottom: 1.5px solid #fbbf24 !important;
}
.ribbon-platinum i {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}
.tier-price-platinum {
  color: #92400e !important;
  font-weight: 800 !important;
  font-size: 1.22rem !important;
  letter-spacing: -0.3px;
}

/* 3. 💎 SAPPHIRE FEATURED (₹2,999) - French Azure & Deep Cobalt */
.tier-frame-sapphire,
.tier-card-sapphire {
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.20) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-frame-sapphire:hover,
.tier-card-sapphire:hover {
  transform: translateY(-5px);
  border-color: #0369a1 !important;
  box-shadow: 0 15px 32px -5px rgba(2, 132, 199, 0.28) !important;
}
.ribbon-sapphire {
  background: linear-gradient(135deg, #082f49 0%, #0369a1 45%, #0284c7 75%, #082f49 100%) !important;
  color: #e0f2fe !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  border-bottom: 1.5px solid #38bdf8 !important;
}
.ribbon-sapphire i {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}
.tier-price-sapphire {
  color: #0369a1 !important;
  font-weight: 800 !important;
  font-size: 1.18rem !important;
  letter-spacing: -0.2px;
}

/* 4. ⚡ EMERALD EXPRESS (₹999) - Deep Forest & Neon Mint */
.tier-frame-emerald,
.tier-card-emerald {
  border: 1.5px solid #059669 !important;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.18) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-frame-emerald:hover,
.tier-card-emerald:hover {
  transform: translateY(-5px);
  border-color: #047857 !important;
  box-shadow: 0 14px 30px -5px rgba(5, 150, 105, 0.26) !important;
}
.ribbon-emerald {
  background: linear-gradient(135deg, #022c22 0%, #065f46 45%, #059669 75%, #022c22 100%) !important;
  color: #ecfdf5 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  border-bottom: 1.5px solid #34d399 !important;
}
.ribbon-emerald i {
  color: #34d399 !important;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
}
.tier-price-emerald {
  color: #047857 !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.2px;
}

/* Details Page Header & Gallery Frames */
.detail-header-diamond {
  border: 2px solid #c084fc !important;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%) !important;
  border-top: 5px solid #a855f7 !important;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18) !important;
}
.gallery-frame-diamond {
  border: 3px solid #a855f7 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25), 0 0 20px rgba(245, 158, 11, 0.2) !important;
}
.sidebar-card-diamond {
  border: 2px solid #c084fc !important;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2) !important;
}

.detail-header-platinum {
  border: 2px solid #fcd34d !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%) !important;
  border-top: 5px solid #f59e0b !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.18) !important;
}
.gallery-frame-platinum {
  border: 3px solid #f59e0b !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25) !important;
}
.sidebar-card-platinum {
  border: 2px solid #fcd34d !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2) !important;
}

.detail-header-sapphire {
  border: 2px solid #7dd3fc !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
  border-top: 5px solid #0284c7 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15) !important;
}
.gallery-frame-sapphire {
  border: 2.5px solid #0284c7 !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.2) !important;
}
.sidebar-card-sapphire {
  border: 2px solid #7dd3fc !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15) !important;
}

.detail-header-emerald {
  border: 2px solid #a7f3d0 !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  border-top: 5px solid #10b981 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12) !important;
}
.gallery-frame-emerald {
  border: 2px solid #10b981 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15) !important;
}
.sidebar-card-emerald {
  border: 2px solid #a7f3d0 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12) !important;
}

/* Tier-Specific Styling for About This Advertisement & Specifications Section */
.ad-about-spec-card {
  transition: all 0.25s ease;
}

/* 1. Diamond VIP Tier */
.about-card-diamond {
  border: 2px solid #e9d5ff !important;
  border-top: 5px solid #a855f7 !important;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 35%) !important;
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.14) !important;
}
.about-card-diamond .tier-icon-accent {
  color: #9333ea !important;
}
.about-card-diamond .tier-verified-badge {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border: 1px solid #d8b4fe !important;
  font-weight: 700;
}
.about-card-diamond .spec-tile {
  background: #faf5ff !important;
  border: 1px solid #f3e8ff !important;
}
.about-card-diamond .spec-tile:hover {
  border-color: #c084fc !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.15) !important;
}
.about-card-diamond .spec-tile-icon {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #9333ea !important;
}
.about-card-diamond .tier-rate-val {
  color: #9333ea !important;
}

/* 2. Platinum VIP Tier */
.about-card-platinum {
  border: 2px solid #fde68a !important;
  border-top: 5px solid #f59e0b !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 35%) !important;
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.14) !important;
}
.about-card-platinum .tier-icon-accent {
  color: #d97706 !important;
}
.about-card-platinum .tier-verified-badge {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fcd34d !important;
  font-weight: 700;
}
.about-card-platinum .spec-tile {
  background: #fffdf5 !important;
  border: 1px solid #fef3c7 !important;
}
.about-card-platinum .spec-tile:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15) !important;
}
.about-card-platinum .spec-tile-icon {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #d97706 !important;
}
.about-card-platinum .tier-rate-val {
  color: #d97706 !important;
}

/* 3. Sapphire Featured Tier */
.about-card-sapphire {
  border: 2px solid #bae6fd !important;
  border-top: 5px solid #0284c7 !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 35%) !important;
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.14) !important;
}
.about-card-sapphire .tier-icon-accent {
  color: #0284c7 !important;
}
.about-card-sapphire .tier-verified-badge {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  font-weight: 700;
}
.about-card-sapphire .spec-tile {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.about-card-sapphire .spec-tile:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15) !important;
}
.about-card-sapphire .spec-tile-icon {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}
.about-card-sapphire .tier-rate-val {
  color: #0284c7 !important;
}

/* 4. Emerald Boost Tier */
.about-card-emerald {
  border: 2px solid #bbf7d0 !important;
  border-top: 5px solid #10b981 !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 35%) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12) !important;
}
.about-card-emerald .tier-icon-accent {
  color: #059669 !important;
}
.about-card-emerald .tier-verified-badge {
  background: #f0fdf4 !important;
  color: #047857 !important;
  border: 1px solid #86efac !important;
  font-weight: 700;
}
.about-card-emerald .spec-tile {
  background: #f6fef9 !important;
  border: 1px solid #dcfce7 !important;
}
.about-card-emerald .spec-tile:hover {
  border-color: #34d399 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15) !important;
}
.about-card-emerald .spec-tile-icon {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
}
.about-card-emerald .tier-rate-val {
  color: #059669 !important;
}

