/**
 * Appraisal Feed - TRUE 2-Column Grid Layout
 * Full-width grid with CTAs above/below (not beside)
 */

/* ============================================
   PAGE CONTAINER
   ============================================ */

.appraisal-feed-page,
.appraisal-feed-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ============================================
   TOP CTA BANNER
   ============================================ */

.feed-top-cta {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  color: white;
}

.feed-top-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.feed-top-cta__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff !important;
  /* Override global h2 gradient text styles */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.feed-top-cta__text p {
  font-size: 15px;
  margin: 0;
  opacity: 0.9;
  color: #e2e8f0;
}

.feed-top-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #d4af37 0%, #b8931f 100%);
  color: white !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.feed-top-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.feed-top-cta__stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}

.feed-top-cta__stats span {
  font-size: 14px;
  color: #e2e8f0;
}

.feed-top-cta__stats strong {
  color: #fbd38d;
}

@media (max-width: 768px) {
  .feed-top-cta {
    padding: 20px 24px;
  }

  .feed-top-cta__content {
    flex-direction: column;
    text-align: center;
  }

  .feed-top-cta__text h2 {
    font-size: 1.25rem;
  }

  .feed-top-cta__stats {
    justify-content: center;
  }
}

/* ============================================
   SEO INTRO BLOCK
   ============================================ */

.appraisal-feed-intro {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.appraisal-feed-intro h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c !important;
  margin: 0 0 10px 0;
  /* Override global h1 gradient text styles */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1a202c !important;
  background-clip: unset !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Hide duplicate "Latest Appraisals" heading when SEO intro is shown */
.appraisal-feed-page .latest-appraisals-heading {
  display: none !important;
}

/* Homepage categories section - with heading */
.homepage-categories-section {
  margin-bottom: 32px;
}

.homepage-categories-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px 0;
  /* Override global h2 gradient text styles */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1a365d !important;
  background-clip: unset !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.homepage-categories-intro {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.homepage-categories-inline {
  margin-bottom: 0;
}

.appraisal-feed-intro p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 8px 0;
}

.appraisal-feed-intro p:last-child {
  margin-bottom: 0;
}

/* ============================================
   HOMEPAGE SEO SECTIONS
   Structured content for featured snippets
   ============================================ */

.homepage-seo-sections {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

/* Two-column grid for SEO sections on desktop */
.seo-sections-grid {
  display: block;
}

@media (min-width: 992px) {
  .seo-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 24px;
  }

  .seo-col--left .seo-section,
  .seo-col--right .seo-section {
    margin-bottom: 0;
  }

  .seo-col--right .seo-section:first-child {
    margin-bottom: 20px;
  }

  .seo-col--right .seo-section--why-us {
    padding-top: 4px;
  }
}

/* Tablet: asymmetrical 2-column layout (iPad portrait/landscape) */
@media (min-width: 768px) and (max-width: 991px) {
  .seo-sections-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 20px;
  }

  .seo-col--left .seo-section,
  .seo-col--right .seo-section {
    margin-bottom: 0;
  }

  .seo-col--right .seo-section:first-child {
    margin-bottom: 16px;
  }

  .seo-col--right .seo-section--why-us {
    padding-top: 0;
  }

  /* Slightly smaller text on tablet for better fit */
  .seo-section h2 {
    font-size: 1.15rem;
  }

  .seo-section p,
  .seo-section ul li {
    font-size: 14px;
  }

  .homepage-seo-sections {
    padding: 24px;
  }
}

/* Mobile: stack sections vertically */
@media (max-width: 767px) {
  .seo-sections-grid .seo-section {
    margin-bottom: 24px;
  }

  .seo-sections-grid .seo-section:last-child {
    margin-bottom: 0;
  }

  .seo-col--right {
    margin-top: 24px;
  }
}

.seo-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d !important;
  margin: 0 0 12px 0;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1a365d !important;
  background-clip: unset !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.seo-section p {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5568;
  margin: 0;
}

.seo-section ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.seo-section ul li {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 6px;
}

.seo-section ul li:last-child {
  margin-bottom: 0;
}

/* Subsection styling - visually lighter
   Ultra-specific selectors to override global h3 styles even for admin users */
.seo-subsection-title,
h3.seo-subsection-title,
.seo-section h3.seo-subsection-title,
.seo-col h3.seo-subsection-title,
.homepage-seo-sections h3.seo-subsection-title,
.homepage-seo-sections .seo-section h3.seo-subsection-title,
.appraisal-feed-page .homepage-seo-sections h3.seo-subsection-title,
body .appraisal-feed-page .homepage-seo-sections .seo-section h3.seo-subsection-title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  margin: 28px 0 12px 0 !important;
  padding-top: 20px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  /* Override global h3 gradient/styled text */
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #2d3748 !important;
  background-clip: unset !important;
}

.seo-subsection-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.seo-subsection-list li {
  font-size: 14px;
  line-height: 1.4;
  color: #4a5568;
  margin-bottom: 2px;
}

.seo-subsection-list li:last-child {
  margin-bottom: 0;
}

.seo-section--cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.seo-section--cta h2 {
  margin-bottom: 12px;
}

.seo-cta-transition {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0 0 1.25rem 0; /* 20px - spacing before CTA button */
  line-height: 1.5;
}

.seo-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #d4af37 0%, #b8931f 100%);
  color: white !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

.seo-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  color: white !important;
}

@media (max-width: 768px) {
  .homepage-seo-sections {
    padding: 24px 20px;
    gap: 24px;
  }

  .seo-section h2 {
    font-size: 1.1rem;
  }

  .seo-cta-transition {
    margin-bottom: 1.5rem; /* 24px on mobile */
  }
}

/* ============================================
   SIDEBAR VISIBILITY RULES
   Hide sidebars on pages with appraisal feed
   ============================================ */

/* CSS variable for conditional right sidebar (toggle server-side) */
:root {
  --sidebar-right-enabled: none; /* Set to 'block' when sponsor is active */
}

/* DIRECT FIX: Hide right sidebar on frontpage and appraisals page using body class */
body.path-frontpage .layout-sidebar-second,
body.path-frontpage aside.layout-sidebar-second,
body.path-frontpage .region-sidebar-second,
body.path-frontpage .sidebar-second,
body.path-frontpage aside[role="complementary"]:last-of-type,
body.path-frontpage .main-content aside,
body.path-frontpage .layout-content > aside:last-child,
/* Also hide on /appraisals page */
body.path-appraisals .layout-sidebar-second,
body.path-appraisals aside.layout-sidebar-second,
body.path-appraisals .region-sidebar-second,
body.path-appraisals .sidebar-second,
body.path-appraisals aside[role="complementary"]:last-of-type,
body.path-appraisals .main-content aside,
body.path-appraisals .layout-content > aside:last-child {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Make main content full width and centered on frontpage and appraisals page */
body.path-frontpage .layout-content,
body.path-appraisals .layout-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  display: block !important;
  margin: 0 auto !important;
  justify-content: center !important;
}

body.path-frontpage .layout-content > .content,
body.path-appraisals .layout-content > .content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Center all sections below the grid on frontpage */
body.path-frontpage .load-more-wrapper,
body.path-frontpage .feed-bottom-ctas,
body.path-frontpage .homepage-faq,
body.path-frontpage .features-section,
body.path-frontpage .feature-cards,
body.path-frontpage .faq-section {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
}

/* Center load more button and sections below grid */
body.path-frontpage .load-more-wrapper {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.path-frontpage .feed-bottom-ctas {
  width: 100% !important;
  /* Grid, not flex - so it respects breakpoints */
}

body.path-frontpage .homepage-faq {
  width: 100% !important;
}

/* Ensure main container is centered on frontpage */
body.path-frontpage main.main-content .layout-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

body.path-frontpage main.main-content .layout-container > .layout-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure .content div is full width and centered */
body.path-frontpage .layout-content > .content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* HIDE SIDEBARS when appraisal feed is present */
/* Target sidebars directly - they appear as siblings in the layout */
.appraisal-feed-page ~ .layout-sidebar-first,
.appraisal-feed-page ~ .layout-sidebar-second,
.appraisal-feed-page ~ aside,
.appraisal-feed-block ~ .layout-sidebar-first,
.appraisal-feed-block ~ .layout-sidebar-second,
.appraisal-feed-block ~ aside,
/* Also hide via parent when feed exists */
.layout:has(.appraisal-feed-page) .layout-sidebar-first,
.layout:has(.appraisal-feed-page) .layout-sidebar-second,
.layout:has(.appraisal-feed-block) .layout-sidebar-first,
.layout:has(.appraisal-feed-block) .layout-sidebar-second,
/* Direct targeting as fallback */
.layout-sidebar-first:has(~ .appraisal-feed-page),
.layout-sidebar-second:has(~ .appraisal-feed-page) {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* NUCLEAR OPTION: Hide all sidebars on homepage */
/* The frontpage view uses view-frontpage class */
.view-frontpage ~ .layout-sidebar-first,
.view-frontpage ~ .layout-sidebar-second,
.view-frontpage ~ aside.layout-sidebar-second,
.view-id-frontpage ~ .layout-sidebar-first,
.view-id-frontpage ~ .layout-sidebar-second {
  display: none !important;
}

/* When sidebar is inside a flex/grid layout container with the feed */
.layout-content:has(.appraisal-feed-page) ~ .layout-sidebar-second,
.layout-content:has(.appraisal-feed-block) ~ .layout-sidebar-second,
.layout-content:has(.view-frontpage) ~ .layout-sidebar-second,
aside.layout-sidebar-second:has(~ .layout-content .appraisal-feed-page),
aside.layout-sidebar-second:has(~ .layout-content .view-frontpage) {
  display: none !important;
  width: 0 !important;
}

/* Make main content full width */
.layout:has(.appraisal-feed-page) .layout-content,
.layout:has(.appraisal-feed-block) .layout-content,
.layout:has(.view-frontpage) .layout-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Force layout to not use sidebar space */
.layout:has(.appraisal-feed-page),
.layout:has(.appraisal-feed-block),
.layout:has(.view-frontpage) {
  display: block !important;
}

/* ============================================
   RESPONSIVE GRID - 3 columns on desktop
   Mobile: 1 col (<768px) | Tablet: 2 col (768-1023px) | Desktop: 3 col (1024px+)
   ============================================ */

.appraisal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Tablet (768px - 1023px): 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .appraisal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .appraisal-feed-page,
  .appraisal-feed-block {
    max-width: 900px;
  }
}

/* Desktop (1024px+): 3 columns */
@media (min-width: 1024px) {
  .appraisal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .appraisal-feed-page,
  .appraisal-feed-block {
    max-width: 1200px;
  }

  /* Fill image area — cover prevents gray bars above/below */
  .appraisal-card__media img {
    object-fit: cover;
  }
}

/* Large desktop (1400px+): 3 columns, wider gaps */
@media (min-width: 1400px) {
  .appraisal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .appraisal-feed-page,
  .appraisal-feed-block {
    max-width: 1300px;
  }
}

/* Inline promos span full width */
.appraisal-grid .inline-promo {
  grid-column: 1 / -1;
}

/* ============================================
   INLINE SPONSOR BLOCK (between cards)
   Insert after 4-6 cards, never first row
   ============================================ */

.inline-sponsor {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 8px 0;
}

.inline-sponsor__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0aec0;
  margin-bottom: 8px;
}

.inline-sponsor__logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.inline-sponsor__logo img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.inline-sponsor__content {
  flex: 1;
}

.inline-sponsor__text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.inline-sponsor__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2c5282;
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.inline-sponsor__cta:hover {
  background: #1a365d;
}

@media (max-width: 767px) {
  .inline-sponsor {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .inline-sponsor__logo {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   APPRAISAL CARD - Image-First Layout (2025)
   Hierarchy: Image → Title → Condition → Author → Value → CTA
   ============================================ */

/* CRITICAL: Reset all field/inline styles within cards */
.appraisal-card,
.appraisal-card * {
  /* Reset any injected inline styles from field templates */
}

.appraisal-card .field__item {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.appraisal-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.appraisal-card:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: #d9e6df;
}

/* Stretched link — makes entire card clickable via the title <a> */
.appraisal-card__stretched-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Ensure inner links (avatar, badges) stay clickable above the stretch */
.appraisal-card__badges,
.card-identity a,
.appraisal-card__cta a {
  position: relative;
  z-index: 2;
}

/* ============================================
   SECTION 1: MEDIA - Image at TOP with badge overlay
   FIXED aspect-ratio prevents CLS (layout shift) on image load
   Locked at 4:3 for all breakpoints - visually dominant images
   ============================================ */
.appraisal-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.5; /* Taller ratio for more image visibility */
  background: #f3f6fb;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 10px; /* Rounded corners on image area */
  padding: 0 !important; /* No inner padding - image fills entire box */
  margin: 0 !important; /* Kill ALL injected inline margins */
}

/* Kill any margins from field wrappers inside card media */
.appraisal-card__media .field,
.appraisal-card__media .field__item,
.appraisal-card__media .field__items {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 3 / 2.5) {
  .appraisal-card__media {
    padding-top: 83.33%; /* 3:2.5 fallback */
    position: relative;
  }
  .appraisal-card__media img {
    position: absolute;
    inset: 0;
  }
}

.appraisal-card__media .card-image-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
}

.appraisal-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.3s ease;
}

.appraisal-card:hover .appraisal-card__media img {
  transform: scale(1.03);
}

/* Placeholder when no image */
.appraisal-card__media .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #edf2f7;
  color: #a0aec0;
}

.appraisal-card__media .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.appraisal-card__media .placeholder-text {
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   BADGES - Overlay on image (top-left)
   Consistent order: FOR SALE → AI/QUICK SCAN → EXPERT/HUMAN
   ============================================ */
.appraisal-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto; /* Left-aligned only, not stretching */
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
  justify-content: flex-start; /* Always left-aligned */
}

.appraisal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

/* Badge ordering - explicit order values for consistency */
.appraisal-badge--for-sale {
  background: rgba(56, 161, 105, 0.95);
  color: white;
  order: 1; /* First: For Sale */
}

.appraisal-badge--ai {
  background: rgba(102, 126, 234, 0.8);
  color: white;
  order: 2; /* Second: AI Appraisal */
}

.appraisal-badge--quick-scan {
  background: rgba(113, 128, 150, 0.8);
  color: white;
  order: 3; /* Third: Quick Scan */
}

.appraisal-badge--expert {
  background: rgba(212, 175, 55, 0.95);
  color: white;
  order: 4; /* Fourth: Expert review */
}

.appraisal-badge--human {
  background: rgba(184, 147, 31, 0.9);
  color: white;
  order: 5; /* Fifth: Human reviewed */
}

/* ============================================
   SECTION 2: CONTENT AREA - Compact layout with reduced white space
   Title, condition, author, value indicator - minimal gaps
   ============================================ */
.appraisal-card__content {
  padding: 10px 16px 10px; /* Tighter vertical padding for density */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
}

/* ============================================
   HEADER ZONE: Title only (condition removed)
   ============================================ */
.appraisal-card__header {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  margin-bottom: 6px; /* Tight spacing after header */
}

/* Title - 2 lines max, tighter line-height */
.appraisal-card__title {
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.2 !important; /* Tighter */
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  color: #2f2f2f;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.appraisal-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.appraisal-card__title a:hover {
  color: #2c5282;
}

/* Condition badge area */
.appraisal-card__condition {
  margin-top: 0 !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* Spacer reserves same height when no condition exists */
.appraisal-card__condition-spacer {
  margin-top: 0 !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  line-height: 22px;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.appraisal-card__condition .condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #e2e8f0;
  color: #2d3748;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Legacy helper text - now moved to identity row */
.appraisal-card__helper-text {
  display: none; /* Deprecated - use .identity-badge instead */
}

/* ============================================
   IDENTITY ROW: Avatar + Name + Time + Badge
   FINAL, STABLE VERSION - Locked layout
   ============================================ */
.card-identity {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
  border-top: none;
  margin: 0 !important; /* Kill ALL injected margins */
  margin-bottom: 6px !important;
  font-size: 0; /* Hide whitespace text nodes */
}

/* Reset font-size for actual content */
.card-identity > * {
  font-size: 13px;
}

/* Avatar - LOCKED 36x36, grid centering for consistent layout */
.identity-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  text-decoration: none;
  position: relative !important;
  font-size: 0;
}

/* Reset font-size for avatar content */
.identity-avatar > * {
  font-size: 13px;
}

/* Make BOTH img + fallback behave identically */
.identity-avatar-img,
.identity-avatar-default {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.identity-avatar-img {
  object-fit: cover;
  display: block !important;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
}

.identity-avatar-default {
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Text block: Name + Meta */
.identity-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* Allow text truncation */
  flex: 1;
  gap: 2px;
}

/* Name */
.identity-name,
.identity-name a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* Meta line: Time + optional badge */
.identity-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.identity-time {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
  margin: 0;
}

.identity-badge {
  font-size: 10px;
  color: #64748b;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
}

/* Value indicator — prominent pill style, shown right after title */
.appraisal-card__value {
  background: transparent;
  border: none;
  padding: 4px 8px 2px;
  margin-top: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.appraisal-card__value .value-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1a365d;
  padding: 4px 10px;
  background: #eef5ff;
  border: 1px solid #dbe7ff;
  border-radius: 20px;
}

.appraisal-card__value .value-label::before {
  content: none;
}

.appraisal-card__value--pending .value-label {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  background: #f9fafb;
  border-color: #e5e7eb;
}

.appraisal-card__value--pending .value-label::before {
  content: "○";
  color: #9ca3af;
}

/* High Value badge for items $2,000+ */
.value-badge--high {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92700c;
  background: linear-gradient(135deg, #fffdf5, #fef3c7);
  border: 1px solid #d4af37;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ============================================
   SECTION 3: CTA BUTTON - Strong but compact
   ============================================ */
.appraisal-card__cta {
  padding: 10px 16px 14px;
  margin-top: auto; /* Push to bottom */
}

.appraisal-card__cta .view-appraisal-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.appraisal-card__cta .view-appraisal-btn:hover {
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  transform: translateY(-1px);
}

/* ============================================
   QUICK SCAN CARD MODIFIER
   Lighter styling to differentiate from full appraisals
   ============================================ */

.appraisal-card--quick-scan {
  background: #fafbfc;
  border-color: #d1d5db;
}

.appraisal-card--quick-scan:hover {
  border-color: #9ca3af;
  background: #ffffff;
}

/* Quick Scan title - same size as regular, just different color */
.appraisal-card--quick-scan .appraisal-card__title {
  color: #4a5568;
  /* NO font-size override - must match regular cards exactly */
}

.appraisal-card--quick-scan .appraisal-card__title a {
  color: #4a5568;
}

.appraisal-card--quick-scan .appraisal-card__title a:hover {
  color: #2d3748;
}

/* Muted value box for Quick Scans */
.appraisal-card--quick-scan .appraisal-card__value {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-color: #e2e8f0;
}

.appraisal-card--quick-scan .appraisal-card__value .value-label {
  color: #718096;
}

/* Subdued CTA button for Quick Scans */
.appraisal-card--quick-scan .view-appraisal-btn {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.appraisal-card--quick-scan .view-appraisal-btn:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

/* For Sale card highlight - subtle, shows on hover */
.appraisal-card--for-sale {
  border-color: #e2e8f0; /* Same as default - no competing outline */
}

.appraisal-card--for-sale:hover {
  border-color: #9ae6b4; /* Soft green on hover only */
}

/* Legacy support - old class names */
.condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.appraisal-card__meta .meta-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 0 !important;
}

.appraisal-card__meta .field-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 11px !important;
}

.appraisal-card__meta .field-value {
  color: #2d3748;
}

/* Legacy value-teaser support (deprecated - use .appraisal-card__value instead) */
.appraisal-card__value-teaser {
  display: none; /* Hidden - old layout no longer used */
}

/* Legacy bottom section (deprecated - use .appraisal-card__cta instead) */
.appraisal-card__bottom {
  display: none; /* Old layout no longer used */
}

/* ============================================
   CATEGORY LINK
   ============================================ */

.appraisal-card__category-link {
  margin-top: 10px;
  padding-top: 10px;
  min-height: 28px; /* Consistent height */
}

.appraisal-card__category-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #4299e1;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.appraisal-card__category-link a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

/* ============================================
   CARD FOOTER - Always at bottom, fixed height
   ============================================ */

.appraisal-card__footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin: auto -16px -16px -16px;
  margin-top: auto !important; /* Force footer to bottom of card */
  min-height: 56px; /* Consistent footer height */
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #2c5282;
  color: white !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.read-more-link:hover {
  background: #1a365d;
}

.appraisal-card__secondary-cta {
  margin-top: 8px;
  min-height: 20px; /* Consistent height for all cards */
}

.secondary-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.secondary-cta-link--upgrade {
  color: #d69e2e;
}

.secondary-cta-link--sell {
  color: #38a169;
}

.secondary-cta-link--similar {
  color: #4299e1;
}

.secondary-cta-link:hover {
  text-decoration: underline;
}

.vote-widget-teaser {
  flex-shrink: 0;
  min-width: 60px; /* Consistent width for vote widget */
  min-height: 32px; /* Consistent height */
}

/* ============================================
   INLINE PROMOS
   ============================================ */

.inline-promo {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border: 1px solid #9ae6b4;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inline-promo--green {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-color: #9ae6b4;
}

.inline-promo--green h4 { color: #276749; }
.inline-promo--green p { color: #2f855a; }
.inline-promo--green a { background: #38a169; }

.inline-promo--gold {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.inline-promo--gold h4 { color: #92400e; }
.inline-promo--gold p { color: #b45309; }
.inline-promo--gold a { background: #d97706; }

.inline-promo__content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.inline-promo__content p {
  font-size: 13px;
  margin: 0;
}

.inline-promo__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inline-promo__cta a:hover {
  filter: brightness(0.9);
}

@media (max-width: 767px) {
  .inline-promo {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   BOTTOM CTA SECTION
   ============================================ */

.feed-bottom-ctas {
  display: grid !important;
  grid-template-columns: 1fr !important; /* Mobile: 1 column */
  gap: 16px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

@media (min-width: 768px) {
  .feed-bottom-ctas {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }
}

.feed-bottom-cta {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feed-bottom-cta__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feed-bottom-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.feed-bottom-cta p {
  font-size: 13px;
  color: #718096;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.feed-bottom-cta__btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feed-bottom-cta__btn--gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8931f 100%);
  color: white !important;
}

.feed-bottom-cta__btn--blue {
  background: #2c5282;
  color: white !important;
}

.feed-bottom-cta__btn--green {
  background: #38a169;
  color: white !important;
}

.feed-bottom-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feed-bottom-cta__btn--purple {
  background: #6366f1;
  color: white !important;
}

.feed-bottom-cta--trends {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}

.feed-bottom-cta--trends h3 {
  color: #4338ca;
}

.feed-bottom-cta--trends p {
  color: #4f46e5;
}

/* ============================================
   RECENT APPRAISALS SECTION HEADING
   ============================================ */

.recent-appraisals-section {
  margin: 32px 0 24px 0;
  padding: 0 0 16px 0;
  border-bottom: 2px solid #e2e8f0;
}

.recent-appraisals-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px 0;
  /* Override global h2 gradient text styles */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1a365d !important;
  background-clip: unset !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.recent-appraisals-intro {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   CATEGORY DISCOVERY ROW
   ============================================ */
.category-discovery-row {
  margin-top: 14px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}

.category-pill:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
}

.category-pill--active {
  background: #1a365d;
  border-color: #1a365d;
  color: #fff;
}

.category-pill--active:hover {
  background: #2c5282;
  border-color: #2c5282;
  color: #fff;
}

.category-pill__icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Loading state for grid during category switch */
.appraisal-grid--loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
  .recent-appraisals-section {
    margin: 24px 0 16px 0;
  }

  .recent-appraisals-title {
    font-size: 1.25rem;
  }

  /* Mobile: horizontal scroll for category pills */
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
  }

  .category-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .category-pill {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 5px 12px;
  }
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.load-more-wrapper {
  text-align: center;
  margin: 20px 0 10px 0; /* Balanced spacing */
  padding: 8px 20px 20px; /* Modest bottom padding */
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #f7fafc;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.load-more-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
  transform: none;
  box-shadow: none;
}

.load-more-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.load-more-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: #718096;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.load-more-btn.loading .load-more-spinner {
  display: inline-block;
}

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

.load-more-hint {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.no-more-items {
  text-align: center;
  padding: 20px;
  color: #718096;
  font-size: 14px;
}

/* Hidden SEO pager - still crawlable */
.pager-seo-links {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   PAGINATION (fallback)
   ============================================ */

.view-pager {
  margin-top: 32px;
}

/* ============================================
   VIEW FILTERS
   ============================================ */

.view-filters {
  margin-bottom: 20px;
}

/* ============================================
   MOBILE OPTIMIZATIONS - Marketplace-first experience
   Goal: prominent images, clear trust/value, single CTA, no excess whitespace
   Mobile: <768px (single column, 4:3 aspect ratio images)
   ============================================ */

@media (max-width: 767px) {

  /* Page container - tighter padding */
  .appraisal-feed-page {
    padding: 0 10px 30px;
  }

  /* Card styling - slightly rounded */
  .appraisal-card {
    border-radius: 14px;
  }

  /* Content area - tighter vertical spacing */
  .appraisal-card__content {
    padding: 12px 12px 8px;
  }

  /* Header zone - title only */
  .appraisal-card__header {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  /* Title - slightly larger for mobile readability, still 2-line clamp */
  .appraisal-card__title {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin-bottom: 0 !important;
  }

  /* Condition badge area */
  .appraisal-card__condition,
  .appraisal-card__condition-spacer {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin-top: 2px !important;
  }

  /* Identity row - larger avatar for touch, tighter spacing */
  .card-identity {
    gap: 10px;
    min-height: 40px;
    padding: 8px 0;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }

  /* Kill margins from field wrappers inside card media */
  .appraisal-card__media .field,
  .appraisal-card__media .field__item,
  .appraisal-card__media .field__items {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Larger avatar on mobile for touch targets */
  .identity-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    flex: 0 0 36px;
  }

  /* Identity text - no centering, left-aligned */
  .identity-text {
    justify-content: center;
    gap: 1px;
  }

  .identity-name {
    font-size: 14px;
  }

  .identity-time {
    font-size: 12px;
  }

  /* Value indicator - compact pill style */
  .appraisal-card__value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f6f9ff;
    border: 1px solid #e7effc;
    border-top: none;
    width: fit-content;
    margin-top: 8px;
  }

  .appraisal-card__value .value-label {
    padding: 0;
  }

  .appraisal-card__value .value-label::before {
    font-size: 10px;
  }

  /* CTA - sticky at bottom, full width */
  .appraisal-card__cta {
    padding: 8px 12px 12px;
    margin-top: auto;
  }

  .appraisal-card__cta .view-appraisal-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Footer - compact */
  .appraisal-card__footer {
    padding: 6px 10px;
    margin: auto -10px -10px -10px;
  }

  .footer-actions {
    flex-wrap: wrap;
  }

  /* Intro heading */
  .appraisal-feed-intro h1 {
    font-size: 1.25rem;
  }

  /* Badges - no wrapping, limit to 2 max via CSS truncation */
  .appraisal-card__badges {
    flex-wrap: nowrap;
    max-width: calc(100% - 20px);
    overflow: hidden;
  }

  .appraisal-badge {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* Hide third+ badges on mobile to prevent clutter */
  .appraisal-card__badges .appraisal-badge:nth-child(n+3) {
    display: none;
  }
}

/* ============================================
   TABLET OPTIMIZATIONS (iPad, etc.)
   768px - 1023px range (2-column grid)
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) {

  /* Card structure */
  .appraisal-card {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Image area - 3:2 ratio (shorter) */
  .appraisal-card__media {
    aspect-ratio: 3 / 2 !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .appraisal-card__media img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Identity row - compact horizontal */
  .card-identity {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 32px !important;
    padding: 6px 0 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }

  /* Kill margins from field wrappers inside card media */
  .appraisal-card__media .field,
  .appraisal-card__media .field__item,
  .appraisal-card__media .field__items {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Avatar - fixed 32px */
  .identity-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 50% !important;
    position: relative !important;
  }

  .identity-avatar-default {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
  }

  /* Identity text */
  .identity-text {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* ===========================================
   ARCHIVE PAGE STYLES
   =========================================== */

/* Archive Header */
.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.archive-header__content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px 0;
}

.archive-header__subtitle {
  color: #4a5568;
  font-size: 1rem;
  margin: 0;
  max-width: 600px;
}

.archive-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archive-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
  color: white !important;
  text-decoration: none;
}

/* Archive Filters */
.archive-filters {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.archive-quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-filter-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.quick-filter-chip {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-filter-chip:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
}

.quick-filter-chip.active {
  background: #1a365d;
  border-color: #1a365d;
  color: white;
}

/* Archive Categories Navigation */
.archive-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.archive-categories a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.archive-categories a:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .archive-header {
    flex-direction: column;
  }

  .archive-header__cta {
    width: 100%;
    justify-content: center;
  }

  .archive-header__content h1 {
    font-size: 1.5rem;
  }
}

/* ===========================================
   ARCHIVE FOOTER STYLES
   =========================================== */

/* Footer CTA - "Don't see your item?" */
.archive-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.archive-footer-cta__text {
  color: #166534;
  font-size: 15px;
}

.archive-footer-cta__text strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
  color: #14532d;
}

.archive-footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archive-footer-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
  color: white !important;
  text-decoration: none;
}

/* SEO Footer - "About Our Appraisal Archive" */
.archive-seo-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.archive-seo-footer h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 16px 0;
  padding-left: 16px;
  border-left: 4px solid #ed8936;
}

.archive-seo-footer p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.archive-seo-footer p:last-child {
  margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .archive-footer-cta {
    flex-direction: column;
    text-align: center;
  }

  .archive-footer-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   3-STEP PROCESS (Hero Area)
   ============================================ */

.appraisal-feed-intro__subtitle {
  font-size: 1.05rem;
  color: #4a5568;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.how-it-works-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 1.25rem 0;
}

.how-it-works-step {
  text-align: center;
  flex: 0 1 180px;
  padding: 0.75rem 0.5rem;
}

.how-it-works-step__icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.how-it-works-step__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a202c;
  margin-bottom: 0.2rem;
}

.how-it-works-step__desc {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.4;
}

.how-it-works-step__arrow {
  font-size: 1.3rem;
  color: #cbd5e0;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

.how-it-works-cta {
  text-align: center;
  margin-top: 0.25rem;
}

.how-it-works-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #b8931f 100%);
  color: #fff !important;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.how-it-works-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.how-it-works-cta__note {
  display: block;
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .how-it-works-steps {
    flex-direction: column;
    gap: 0.25rem;
  }
  .how-it-works-step {
    flex: none;
    padding: 0.4rem 0;
  }
  .how-it-works-step__arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

/* ============================================
   EXAMPLE RESULT PREVIEW
   ============================================ */

.example-result-preview {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.example-result-preview__badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #edf2f7;
  color: #718096;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
}

.example-result-preview__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.example-result-preview__image {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

.example-result-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-result-preview__details {
  flex: 1;
  min-width: 0;
}

.example-result-preview__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a202c;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.example-result-preview__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.2rem;
}

.example-result-preview__desc {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.4;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.example-result-preview__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4af37;
  text-decoration: none;
}

.example-result-preview__link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .example-result-preview__image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }
}

/* ============================================
   INLINE EARLY CTA (after 4th card)
   ============================================ */

.appraisal-grid .inline-early-cta {
  grid-column: 1 / -1;
}

.inline-early-cta {
  background: linear-gradient(135deg, #fffdf5 0%, #fff8e1 100%);
  border: 1px solid #f0e3a8;
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.inline-early-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-early-cta__text {
  font-size: 0.95rem;
  color: #4a5568;
}

.inline-early-cta__text strong {
  color: #1a202c;
}

.inline-early-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #b8931f 100%);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.inline-early-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

@media (max-width: 600px) {
  .inline-early-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

