.ad-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid;
  margin-bottom: 14px;
}

.ad-status-badge.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}

.ad-status-badge.status-approved {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.ad-status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.ad-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.ad-sidebar {
  order: -1;
}

.ad-main-box {
  order: 2;
}

@media(min-width: 900px) {
  .ad-layout {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }
  .ad-sidebar {
    position: sticky;
    top: 20px;
    order: 2;
  }
  .ad-main-box {
    order: 1;
  }
}

.ad-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ad-title-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.favorite-btn-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2); 
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4); 
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-btn-floating:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.favorite-btn-floating:active {
  transform: scale(0.9);
}

.favorite-btn-floating .heart-icon {
  display: inline-block;
  transition: transform 0.2s;
}

.favorite-btn-floating:active .heart-icon {
  transform: scale(1.3);
}

.vehicle-plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--amber);
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.vehicle-plate .plate-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.vehicle-plate .plate-brand {
  color: var(--amber);
}

.ad-main-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--bg2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.detail-gallery {
  display: block;
  width: 100%;
  position: relative;
}

.detail-main-image {
  width: 100%;
  height: 440px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-main-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  border: 2px dashed var(--line);
  color: var(--muted);
}

.image-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: var(--amber);
  border-radius: 20px;
}

.thumb {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: .25s;
  flex-shrink: 0;
  opacity: 0.7;
}

.thumb:hover {
  opacity: 1;
  transform: scale(1.03);
}

.thumb.active {
  border-color: var(--amber);
  opacity: 1;
}

.ad-section-divider {
  border-top: 1px solid var(--line);
  margin: 26px 0 20px 0;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 0;
}

.section-eyebrow .eyebrow-bar {
  width: 4px;
  height: 18px;
  background: var(--amber);
  border-radius: 2px;
}

.section-eyebrow span {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.detail-box .box-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.detail-box .box-text span {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 2px;
}

.detail-box .box-text strong {
  font-size: 15px;
  color: var(--text);
}

.ad-sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.sidebar-section+.sidebar-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.sell-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.price-label {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
}

.main-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
}

.main-price .price-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
}

.price-sub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.price-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
}

.price-sub-item span {
  color: var(--text2);
}

.price-sub-item strong {
  color: var(--text);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.contact-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: var(--amber);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.phone-box {
  display: none;
  margin-top: 10px;
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--amber);
  direction: ltr;
}

.sidebar-location-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-mini-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.location-mini-box .box-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.location-mini-box .box-text span {
  display: block;
  font-size: 11px;
  color: var(--text2);
}

.location-mini-box .box-text strong {
  font-size: 13.5px;
  color: var(--text);
}

.sidebar-description-body {
  position: relative;
  padding-right: 16px;
  border-right: 3px solid var(--amber);
}

.sidebar-description-body p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text2);
  white-space: pre-wrap;
  margin: 0;
  text-align: justify;
  max-height: 220px;
  overflow-y: auto;
  padding-left: 4px;
}

.sidebar-description-body p::-webkit-scrollbar {
  width: 5px;
}

.sidebar-description-body p::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

@media(max-width: 768px) {
  .detail-main-image {
    height: 260px;
  }
  .ad-main-box,
  .ad-sidebar-card {
    padding: 16px;
  }
  .ad-title-row h2 {
    font-size: 19px;
  }
  .main-price {
    font-size: 24px;
  }
}

@media(max-width: 480px) {
  .detail-main-image {
    height: 210px;
  }
  .favorite-btn-floating {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .detail-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .detail-box {
    padding: 10px 12px;
  }
  .detail-box .box-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .detail-box .box-text strong {
    font-size: 13px;
  }
  .thumb {
    width: 72px;
    height: 54px;
  }
  .ad-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .vehicle-plate {
    font-size: 12px;
    padding: 5px 10px;
  }
}