.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal-backdrop.hidden {
  display: none;
}
.auth-card,
.wizard-card {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
}
.wizard-card {
  max-width: 550px;
}
.auth-header,
.wizard-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.auth-header h3,
.wizard-header h3 {
  font-size: 16px;
  font-weight: 800;
}
.wizard-header p {
  font-size: 11px;
  color: #64748b;
}
.btn-close-modal {
  background: #e2e8f0;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}
.auth-body,
.step-page {
  padding: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #334155;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-auth-primary,
.btn-wizard-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.btn-wizard-submit {
  background: #059669;
}
.auth-switch {
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: #64748b;
}
.auth-switch span {
  color: #2563eb;
  font-weight: bold;
  cursor: pointer;
}

/* NEW FULL PAGE VEHICLE VIEW (Ikman Style) */
.full-page-overlay {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.full-page-overlay.hidden {
  display: none;
}
.full-page-navbar {
  background: #fff;
  padding: 15px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.full-page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  flex: 1;
}
.breadcrumb {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 20px;
}
.breadcrumb strong {
  color: #0f172a;
}
.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.detail-header-row h1, .detail-header-row h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}
.action-icons button {
  background: none;
  border: none;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-left: 15px;
}
.posted-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.detail-split-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.detail-left {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.detail-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Left Column Gallery & Specs */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.main-image-container {
  height: 400px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.photo-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.thumbnail-item {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbnail-item.active {
  border-color: #2563eb;
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.price-large {
  font-size: 28px;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}
.spec-cell {
  display: flex;
  font-size: 13px;
}
.spec-cell .label {
  color: #64748b;
  width: 120px;
}
.spec-cell strong {
  color: #0f172a;
  font-weight: 700;
}

.desc-section h4 {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.desc-content {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}

/* Right Column Seller Info */
.seller-panel {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.seller-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.seller-header .avatar {
  width: 45px;
  height: 45px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: #2563eb;
  font-size: 18px;
}
.seller-name {
  font-size: 14px;
  font-weight: 800;
}
.seller-badge-verify {
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.btn-contact-large {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  border: none;
  text-decoration: none;
  text-align: left;
}
.btn-contact-large.call {
  background: #0f172a;
  color: #fff;
}
.btn-contact-large.wa {
  background: #059669;
  color: #fff;
}
.btn-contact-large .icon {
  font-size: 18px;
}
.btn-contact-large .text {
  font-size: 13px;
}

.safety-panel {
  background: #fffbeb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #fef3c7;
}
.safety-panel h4 {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 10px;
}
.safety-panel ul {
  padding-left: 15px;
  font-size: 11px;
  color: #92400e;
  line-height: 1.5;
}
.safety-panel li {
  margin-bottom: 6px;
}

/* More Ads Scroller */
.more-ads-section {
  margin-top: 40px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.more-ads-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}
.more-ads-scroller {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.mini-ad-card {
  width: 220px;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.mini-ad-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.mini-ad-body {
  padding: 10px;
}
.mini-ad-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.mini-ad-price {
  font-size: 13px;
  font-weight: 900;
  color: #10b981;
}

/* FULLSCREEN IMAGE LIGHTBOX ZOOM */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 65, 85, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.hidden {
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 35px;
  cursor: pointer;
  font-weight: 300;
}
.lightbox-close:hover {
  color: #cbd5e1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #cbd5e1;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-main {
  max-width: 90%;
  max-height: 70vh;
  margin-bottom: 20px;
}
.lightbox-main img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 80%;
  justify-content: center;
}
.lightbox-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  opacity: 0.4;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 4px;
}
.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border: 2px solid #fff;
}

/* FULL PAGE AD DETAIL MODAL OVERRIDES */
.full-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  z-index: 9999;
  overflow-y: auto;
  padding-bottom: 50px;
}
.full-page-navbar {
  background: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.full-page-content {
  max-width: 1150px;
  margin: 30px auto;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}
.breadcrumb strong {
  color: #0f172a;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.detail-header-row h1, .detail-header-row h2 {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.posted-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 30px;
}

.detail-split-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Side - Gallery & Specs */
.detail-left {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.main-image-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  margin-bottom: 15px;
}
.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.thumbnail-strip img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  opacity: 0.6;
}
.thumbnail-strip img:hover {
  opacity: 1;
}
.thumbnail-strip img.active {
  border-color: #2563eb;
  opacity: 1;
}

.price-large {
  font-size: 32px;
  font-weight: 900;
  color: #10b981;
  margin: 35px 0 25px;
  letter-spacing: -0.5px;
}

/* Clean Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: x 20px;
  row-gap: 15px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 25px 0;
  margin-bottom: 30px;
}
.spec-cell {
  display: flex;
  font-size: 14px;
}
.spec-cell .label {
  color: #64748b;
  width: 130px;
  flex-shrink: 0;
}
.spec-cell strong {
  color: #0f172a;
  font-weight: 700;
}

.desc-section h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
}
.desc-content {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* Right Side - Seller Info */
.detail-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}
.seller-panel,
.safety-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.seller-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.seller-header .avatar {
  width: 55px;
  height: 55px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seller-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.seller-badge-verify {
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-block;
}

.btn-contact-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  border-radius: 12px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
  margin-bottom: 12px;
}
.btn-contact-large.call {
  background: #0f172a;
  color: #fff;
}
.btn-contact-large.call:hover {
  background: #1e293b;
}
.btn-contact-large.wa {
  background: #10b981;
  color: #fff;
}
.btn-contact-large.wa:hover {
  background: #059669;
}

.safety-panel {
  background: #fefce8;
  border-color: #fef08a;
}
.safety-panel h4 {
  font-size: 14px;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.safety-panel ul {
  padding-left: 20px;
  margin: 0;
}
.safety-panel li {
  font-size: 12px;
  color: #a16207;
  margin-bottom: 8px;
  line-height: 1.5;
}

.more-ads-section {
  margin-top: 50px;
  display: none;
}

@media (max-width: 900px) {
  .detail-split-layout {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .main-image-container {
    height: 300px;
  }
}

.seller-badge-verify[hidden]{display:none}
.seller-name-row{display:flex;align-items:center;gap:6px}
.verified-tick{flex:none}.verified-tick[hidden]{display:none}
.verified-line{font-size:12px;font-weight:600;color:#15803d;margin:2px 0 4px}.verified-line[hidden]{display:none}

/* Site footer shown at the end of the ad page */
.full-page-overlay { padding-bottom: 0; }
.full-page-overlay > .ad-page-footer { flex-shrink: 0; margin-top: 50px; }
@media (max-width: 768px) {
  /* keep the last footer line clear of the fixed Call / WhatsApp / Chat bar */
  body:has(.m4u-bar:not([hidden])) .full-page-overlay > .ad-page-footer { padding-bottom: 84px; }
}
