/* =========================================================================
   ads-detail.css
   Ad-detail page styled after the familiar "marketplace ad" pattern:
   back-link + breadcrumb bar, title/price row, gallery with
   favorite/share actions, seller card with a chat CTA, item-overview
   quick-facts grid, and an item-details spec list.

   Palette carried over from the existing theme: ink navy, brass gold,
   deep teal, warm off-white background.

   Drop-in: link this AFTER the site's main stylesheet.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --dfc-ink:        #132743;
  --dfc-ink-soft:   #51617a;
  --dfc-ink-faint:  #8b96a8;
  --dfc-gold:       #c89b3c;
  --dfc-gold-dark:  #a67c28;
  --dfc-gold-tint:  #f7ecd3;
  --dfc-teal:       #0f5c5c;
  --dfc-teal-dark:  #0a4747;
  --dfc-teal-tint:  #e7f1f1;
  --dfc-bg:         #faf8f4;
  --dfc-card:       #ffffff;
  --dfc-border:     #e7e2d8;
  --dfc-danger:     #c0392b;
  --dfc-danger-bg:  #fdecea;
  --dfc-success:    #1e7e34;
  --dfc-success-bg: #eaf7ec;

  --dfc-font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --dfc-font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --dfc-font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --dfc-radius-sm: 6px;
  --dfc-radius:    10px;
  --dfc-radius-lg: 16px;
  --dfc-shadow:    0 2px 14px rgba(19, 39, 67, 0.07);
  --dfc-shadow-lg: 0 16px 44px rgba(19, 39, 67, 0.20);
}

body:has(.ads-details-wrapper) { background: var(--dfc-bg); }

.ads-details-wrapper, .ads-details-wrapper * { box-sizing: border-box; }
.ads-details-wrapper { font-family: var(--dfc-font-body); color: var(--dfc-ink); }

/* =========================================================================
   1. TOP BAR — back link + inline breadcrumb
   ========================================================================= */

.ads-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 0 10px;
  font-size: 13px;
}

.ads-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--dfc-teal);
  text-decoration: none;
  padding-right: 10px;
  border-right: 1px solid var(--dfc-border);
}

.ads-topbar__back:hover { color: var(--dfc-teal-dark); text-decoration: none; }

.ads-topbar__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--dfc-ink-faint);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ads-topbar__crumbs a {
  color: var(--dfc-ink-soft);
  text-decoration: none;
}

.ads-topbar__crumbs a:hover { color: var(--dfc-teal); }

.ads-topbar__crumbs .sep { color: var(--dfc-border); }

@media (max-width: 600px) {
  .ads-topbar__crumbs { display: none; }
}

/* =========================================================================
   2. TITLE + PRICE ROW
   ========================================================================= */

.ads-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 16px;
}

.ads-details-wrapper h1 { margin: 0; flex: 1 1 auto; min-width: 0; }

.ads-details-wrapper h1 .viewtitle {
  display: block;
  font-family: var(--dfc-font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.3;
  color: var(--dfc-ink);
  letter-spacing: -0.01em;
}

/* Old inline price kept for itemprop/SEO microdata, visually hidden —
   the visible price now lives in .ads-price-inline */
.ads-details-wrapper h1 .aedprice {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ads-price-inline {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--dfc-font-mono);
  font-weight: 600;
  font-size: 24px;
  color: var(--dfc-gold-dark);
  white-space: nowrap;
}

.ads-price-inline small {
  display: block;
  font-family: var(--dfc-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .ads-title-row { flex-direction: column; }
  .ads-price-inline { text-align: left; }
}

/* =========================================================================
   3. PREVIOUS / NEXT AD NAVIGATION
   ========================================================================= */

.ads-prevnext {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius);
  background: var(--dfc-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.ads-prevnext__link {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--dfc-ink);
  min-width: 0;
  transition: background-color 0.15s ease;
}

.ads-prevnext__link:hover, .ads-prevnext__link:focus {
  background: var(--dfc-gold-tint);
  text-decoration: none;
  color: var(--dfc-ink);
}

.ads-prevnext__link--next {
  flex-direction: row-reverse;
  text-align: right;
  border-left: 1px solid var(--dfc-border);
}

.ads-prevnext__icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--dfc-bg);
  color: var(--dfc-teal);
  font-size: 14px;
}

.ads-prevnext__link:hover .ads-prevnext__icon { background: var(--dfc-teal); color: #fff; }
.ads-prevnext__body { min-width: 0; }

.ads-prevnext__label {
  display: block;
  font-family: var(--dfc-font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
}

.ads-prevnext__title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ads-prevnext__link.is-disabled { opacity: 0.35; pointer-events: none; }

.ads-prevnext__list {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-left: 1px solid var(--dfc-border);
  border-right: 1px solid var(--dfc-border);
  color: var(--dfc-ink-faint);
  font-size: 14px;
  background: var(--dfc-bg);
}

.ads-prevnext__list:hover { color: var(--dfc-teal); }

@media (max-width: 767px) {
  .ads-prevnext { flex-wrap: wrap; }
  .ads-prevnext__link--next { border-left: none; border-top: 1px solid var(--dfc-border); }
  .ads-prevnext__list { display: none; }
  .ads-prevnext__title { max-width: 42vw; }
}

/* =========================================================================
   4. IMAGE GALLERY — hero + favorite/share overlay + thumbnails
   ========================================================================= */

.ads-gallery { margin-bottom: 26px; }

.ads-gallery__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 560px;
  background: #eef0ee;
  border-radius: var(--dfc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--dfc-border);
}

@media (max-width: 767px) {
  .ads-gallery__hero { aspect-ratio: 4 / 3; max-height: none; }
}

.ads-gallery__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ads-gallery__actions {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  gap: 8px;
}

.ads-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--dfc-border);
  color: var(--dfc-ink);
  font-family: var(--dfc-font-body);
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ads-pill-btn:hover { background: #fff; }
.ads-pill-btn i { font-size: 13px; }

.ads-pill-btn--favorite.is-active { color: var(--dfc-danger); border-color: var(--dfc-danger-bg); background: #fff; }
.ads-pill-btn--favorite.is-active i:before { content: "\2665"; } /* filled heart glyph fallback */

.ads-gallery__hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(19, 39, 67, 0.55);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ads-gallery__hero-nav:hover { background: rgba(19, 39, 67, 0.85); }
.ads-gallery__hero-nav--prev { left: 12px; }
.ads-gallery__hero-nav--next { right: 12px; }

.ads-gallery__counter {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(19, 39, 67, 0.65);
  color: #fff;
  font-family: var(--dfc-font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

.ads-gallery__thumbs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}

.ads-gallery__thumbnav {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--dfc-border);
  background: var(--dfc-card);
  color: var(--dfc-ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ads-gallery__thumbnav:hover { background: var(--dfc-gold-tint); color: var(--dfc-ink); }

.ads-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ads-gallery__thumbs::-webkit-scrollbar { height: 5px; }
.ads-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--dfc-border); border-radius: 3px; }

.ads-gallery__thumb {
  flex: 0 0 auto;
  width: 92px; height: 70px;
  border-radius: var(--dfc-radius-sm);
  overflow: hidden;
  border: 2px solid var(--dfc-border);
  padding: 0;
  cursor: pointer;
  background: #eef0ee;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ads-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ads-gallery__thumb:hover { opacity: 1; }
.ads-gallery__thumb.is-active { opacity: 1; border-color: var(--dfc-gold); }

.ads-gallery--empty {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--dfc-ink-faint);
  background: var(--dfc-bg);
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius-lg);
}

.ads-gallery--empty i { font-size: 28px; color: var(--dfc-border); }
.ads-gallery--empty span { font-size: 13px; }

/* =========================================================================
   4b. PRICE & META PANEL — left column, below the gallery
   ========================================================================= */

.ads-price-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--dfc-card);
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius-lg);
  box-shadow: var(--dfc-shadow);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.ads-price-panel__price {
  font-family: var(--dfc-font-mono);
  font-weight: 600;
  font-size: 30px;
  color: var(--dfc-gold-dark);
  line-height: 1;
}

.ads-price-panel__price small {
  display: block;
  font-family: var(--dfc-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dfc-ink-faint);
  margin-bottom: 4px;
}

.ads-price-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.ads-price-panel__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ads-price-panel__meta-item span:first-child {
  font-family: var(--dfc-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
}

.ads-price-panel__meta-item span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--dfc-ink);
}

@media (max-width: 600px) {
  .ads-price-panel { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   5. ITEM OVERVIEW — quick-facts grid
   ========================================================================= */

.ads-overview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.ads-section-heading {
  font-family: var(--dfc-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--dfc-ink);
  margin: 0;
}

.ads-overview-header__date {
  font-size: 12.5px;
  color: var(--dfc-ink-soft);
}

.ads-overview-header__date strong { font-family: var(--dfc-font-mono); font-weight: 600; color: var(--dfc-ink); }

.ads-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

@media (max-width: 767px) {
  .ads-overview-grid { grid-template-columns: repeat(2, 1fr); }
}

.ads-overview-card {
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius);
  background: var(--dfc-card);
  padding: 14px 10px;
  text-align: center;
}

.ads-overview-card__label {
  display: block;
  font-family: var(--dfc-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
  margin-bottom: 5px;
}

.ads-overview-card__value {
  display: block;
  font-family: var(--dfc-font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--dfc-ink);
  line-height: 1.35;
}

/* =========================================================================
   6. ITEM DETAILS — label/value spec rows
   ========================================================================= */

.ads-details-section { margin-bottom: 26px; }

.ads-details-rows {
  border-top: 1px solid var(--dfc-border);
  margin-top: 14px;
}

.ads-details-row {
  display: flex;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid var(--dfc-border);
  font-size: 13.5px;
}

.ads-details-row__key {
  flex: 0 0 190px;
  color: var(--dfc-ink-soft);
}

.ads-details-row__value {
  font-weight: 700;
  color: var(--dfc-ink);
}

@media (max-width: 600px) {
  .ads-details-row { flex-direction: column; gap: 3px; }
  .ads-details-row__key { flex: none; font-size: 12px; }
}

/* =========================================================================
   7. DESCRIPTION
   ========================================================================= */

.ads-description-section { margin-bottom: 26px; }

.ads-description-section .ads-card__body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--dfc-ink-soft);
  white-space: pre-line;
  margin-top: 12px;
}

.ads-website-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dfc-border);
  font-size: 13px;
  color: var(--dfc-ink-soft);
  word-break: break-all;
}

.ads-website-row a { color: var(--dfc-teal); font-weight: 600; }

/* De-emphasize sponsored / affiliate blocks */
.ads-sponsored {
  margin: 18px 0;
  padding: 10px 12px;
  border: 1px dashed var(--dfc-border);
  border-radius: var(--dfc-radius-sm);
  background: var(--dfc-bg);
}

.ads-sponsored__label {
  display: block;
  font-family: var(--dfc-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
  margin-bottom: 6px;
}

/* =========================================================================
   8. HERO ROW — gallery + a compact contact panel beside it
   (no page-length sidebar; everything else below runs full width)
   ========================================================================= */

.ads-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22px;
}

.ads-hero-row__media {
  flex: 1 1 auto;
  min-width: 0;
}

.ads-hero-row__media .ads-gallery { margin-bottom: 0; }

.ads-hero-row__contact {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 991px) {
  .ads-hero-row { flex-direction: column; }
  .ads-hero-row__contact { flex: 1 1 auto; width: 100%; }
}

.ads-seller-card {
  background: var(--dfc-card);
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius-lg);
  box-shadow: var(--dfc-shadow);
  padding: 20px;
}

.ads-seller-card__heading {
  font-family: var(--dfc-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dfc-ink-faint);
  margin: 0 0 12px;
}

/* Seller identity and the contact CTA live in the same row, so the
   button is always right next to who you're messaging. */
.ads-seller-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ads-seller-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.ads-seller-card__who > div { min-width: 0; }

.ads-seller-card__avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dfc-teal) 0%, var(--dfc-teal-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dfc-font-display);
  font-weight: 700;
  font-size: 16px;
}

.ads-seller-card__name {
  display: block;
  font-family: var(--dfc-font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--dfc-ink);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ads-seller-card__meta {
  display: block;
  font-size: 12px;
  color: var(--dfc-ink-faint);
  margin-top: 1px;
}

.ads-cta-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  background: var(--dfc-teal);
  color: #fff;
  font-family: var(--dfc-font-display);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: var(--dfc-radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ads-cta-chat:hover, .ads-cta-chat:focus {
  background: var(--dfc-teal-dark);
  color: #fff;
  text-decoration: none;
}

/* Mobile sticky bar keeps its own full-bleed sizing */
.ads-mobile-bar .ads-cta-chat { width: auto; }

@media (max-width: 400px) {
  .ads-seller-card__row { flex-direction: column; align-items: stretch; }
  .ads-cta-chat { width: 100%; }
}

.ads-seller-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dfc-border);
  font-size: 12px;
  color: var(--dfc-ink-soft);
}

.ads-seller-card__foot a { color: var(--dfc-ink-soft); }
.ads-seller-card__foot a:hover { color: var(--dfc-danger); text-decoration: none; }

.ads-price-tag-sm {
  font-family: var(--dfc-font-mono);
  font-weight: 600;
  color: var(--dfc-gold-dark);
}

.ads-safety-card {
  background: var(--dfc-teal-tint);
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius-lg);
  padding: 18px 20px;
  display: flex;
  gap: 12px;
}

.ads-safety-card__icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dfc-card);
  color: var(--dfc-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.ads-safety-card strong {
  display: block;
  font-family: var(--dfc-font-display);
  font-size: 13.5px;
  color: var(--dfc-ink);
  margin-bottom: 3px;
}

.ads-safety-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--dfc-ink-soft); }

/* =========================================================================
   9. MOBILE STICKY ACTION BAR
   ========================================================================= */

.ads-mobile-bar { display: none; }

@media (max-width: 767px) {
  .ads-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    background: var(--dfc-card);
    border-top: 1px solid var(--dfc-border);
    box-shadow: 0 -6px 20px rgba(19, 39, 67, 0.12);
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .ads-mobile-bar__price {
    font-family: var(--dfc-font-mono);
    font-weight: 600;
    font-size: 16px;
    color: var(--dfc-ink);
    line-height: 1.1;
  }

  .ads-mobile-bar__price small {
    display: block;
    font-family: var(--dfc-font-body);
    font-weight: 400;
    font-size: 10px;
    color: var(--dfc-ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .ads-mobile-bar .ads-cta-chat { width: auto; flex: 0 0 auto; padding: 12px 20px; }

  .ads-details-wrapper { padding-bottom: 74px; }
}

/* =========================================================================
   10. SEND A MESSAGE MODAL (#contactAdvertiser)
   ========================================================================= */

#contactAdvertiser .modal-dialog { max-width: 460px; margin: 30px auto; }

#contactAdvertiser .modal-content {
  border: none;
  border-radius: var(--dfc-radius-lg);
  box-shadow: var(--dfc-shadow-lg);
  overflow: hidden;
  font-family: var(--dfc-font-body);
}

#contactAdvertiser .modal-header {
  background: linear-gradient(135deg, var(--dfc-teal) 0%, var(--dfc-teal-dark) 100%);
  border-bottom: none;
  padding: 20px 24px;
  color: #fff;
}

#contactAdvertiser .modal-header .modal-title {
  font-family: var(--dfc-font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

#contactAdvertiser .modal-header .modal-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}

#contactAdvertiser .modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
  font-size: 22px;
  margin-top: -2px;
}

#contactAdvertiser .modal-header .close:hover { opacity: 1; }

#contactAdvertiser .modal-body { padding: 24px; }

.dfc-form-group { position: relative; margin-bottom: 18px; }

.dfc-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dfc-ink-soft);
  margin-bottom: 6px;
}

.dfc-form-group .required { color: var(--dfc-gold-dark); }

.dfc-form-control {
  width: 100%;
  border: 1px solid var(--dfc-border);
  border-radius: var(--dfc-radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--dfc-font-body);
  color: var(--dfc-ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.dfc-form-control:focus {
  outline: none;
  border-color: var(--dfc-teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 92, 0.13);
}

.dfc-form-control.is-invalid { border-color: var(--dfc-danger); }

.dfc-form-row { display: flex; gap: 12px; }
.dfc-form-row .dfc-form-group { flex: 1 1 0; }

textarea.dfc-form-control { resize: vertical; min-height: 96px; }

.dfc-char-count {
  position: absolute;
  right: 2px;
  bottom: -18px;
  font-family: var(--dfc-font-mono);
  font-size: 11px;
  color: var(--dfc-ink-soft);
}

.dfc-error-msg { display: none; font-size: 12px; color: var(--dfc-danger); margin-top: 4px; }
.dfc-form-group.has-error .dfc-error-msg { display: block; }

.dfc-modal-alert {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--dfc-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.dfc-modal-alert.dfc-alert--success { display: flex; background: var(--dfc-success-bg); color: var(--dfc-success); }
.dfc-modal-alert.dfc-alert--error { display: flex; background: var(--dfc-danger-bg); color: var(--dfc-danger); }

#contactAdvertiser .modal-footer {
  border-top: 1px solid var(--dfc-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dfc-btn-send {
  background: var(--dfc-gold);
  border: none;
  color: #fff;
  font-family: var(--dfc-font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: var(--dfc-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.dfc-btn-send:hover { background: var(--dfc-gold-dark); }
.dfc-btn-send:active { transform: translateY(1px); }
.dfc-btn-send[disabled] { opacity: 0.7; cursor: not-allowed; }

.dfc-btn-cancel {
  background: transparent;
  border: none;
  color: var(--dfc-ink-soft);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.dfc-btn-cancel:hover { color: var(--dfc-ink); }

.dfc-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: dfc-spin 0.7s linear infinite;
}

.dfc-btn-send.is-loading .dfc-spinner { display: inline-block; }
.dfc-btn-send.is-loading .dfc-btn-send__label { opacity: 0.85; }

@keyframes dfc-spin { to { transform: rotate(360deg); } }

.dfc-privacy-note { font-size: 11px; color: var(--dfc-ink-soft); margin-top: 2px; }

@media (max-width: 480px) {
  #contactAdvertiser .modal-dialog {
    margin: 0; max-width: 100%; min-height: 100vh;
    display: flex; align-items: flex-end;
  }
  #contactAdvertiser .modal-content { border-radius: 16px 16px 0 0; width: 100%; }
  #contactAdvertiser .modal-body { padding: 18px; max-height: 70vh; overflow-y: auto; }
  .dfc-form-row { flex-direction: column; gap: 0; }
  #contactAdvertiser .modal-footer {
    padding: 14px 18px; flex-direction: column-reverse; gap: 10px; align-items: stretch;
  }
  .dfc-btn-send { width: 100%; justify-content: center; }
  .dfc-btn-cancel { text-align: center; }
}

/* =========================================================================
   11. RELATED ADS
   ========================================================================= */

.inner-box.relative .title-2 {
  font-family: var(--dfc-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--dfc-ink);
}

.inner-box.relative .carousel-nav { color: var(--dfc-teal); }

/* --------------------------------------------------------------------- */
/* Reduced motion                                                        */
/* --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dfc-spinner { animation-duration: 1.4s; }
  .ads-prevnext__link, .dfc-form-control, .dfc-btn-send, .ads-gallery__thumb,
  .ads-cta-chat, .ads-pill-btn { transition: none; }
}
