/**
 * Premium white marketplace — Home, Anunțuri, Firme, Transportatori, directory.
 * Do not load on profile / dashboard / publish.
 */

body.page-home,
body.page-listings,
body.page-directory,
body.page-business,
body.page-carriers,
body.page-passengers,
body.page-seo,
body.page-route-planner,
body.page-publish,
body.page-marketplace,
body.page-marketplace.page-directory {
  --vz-navy: #0a1f44;
  --vz-navy-deep: #07162f;
  --vz-accent: #1a56db;
  --vz-teal: #0a1f44;
  --prod-teal: #0a1f44;
  --prod-teal-deep: #07162f;
  --mp-bg: #ffffff;
  --mp-surface: #f7f8fb;
  --mp-ink: #0a1f44;
  --mp-ink-soft: #334155;
  --mp-muted: #5b6b86;
  --mp-accent: #0a1f44;
  --mp-accent-hover: #07162f;
  --mp-accent-soft: rgba(10, 31, 68, 0.06);
  --feed-blue: #0a1f44;
  background: #fff !important;
  color: #0a1f44;
}

/* ── Home hero: compact dense banner (search visible in first viewport) ── */
body.page-home .prod-hero-search,
body.page-home .prod-hero-search--convert,
body.page-home .prod-hero-search--dense,
body.page-home.page-production .prod-hero-search,
body.page-home.page-production .prod-hero-search--convert,
body.page-home.page-production .prod-hero-search--dense {
  position: relative;
  background: #c7ddf2 !important;
  min-height: 200px !important;
  max-height: min(42vh, 340px) !important;
  aspect-ratio: unset !important;
  height: min(42vh, 340px) !important;
  padding: 0 !important;
  overflow: hidden;
  display: block;
}

body.page-home .prod-hero-search__bg,
body.page-home .prod-hero-search__overlay {
  display: block !important;
}

body.page-home .prod-hero-search__map {
  display: none !important;
}

/* Crop banner to the compact hero box — never let the image dictate full-viewport height */
body.page-home .prod-hero-search__bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  transform: none;
}

body.page-home .prod-hero-search__bg img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center 42% !important;
  transform: none !important;
  opacity: 1;
  filter: none;
}

body.page-home .prod-hero-search__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

body.page-home .prod-hero-search > .prod-wrap.prod-hero-convert,
body.page-home .prod-hero-convert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  top: auto !important;
  z-index: 3;
  width: 100%;
  max-width: var(--prod-max, 1120px);
  margin: 0 auto;
  padding: 0 16px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: auto !important;
  min-height: 0 !important;
}

body.page-home .prod-hero,
body.page-home .prod-hero--compact {
  background: #fff !important;
  min-height: 0 !important;
}

body.page-home .prod-hero:not(.prod-hero--white) .prod-hero__media,
body.page-home .prod-hero:not(.prod-hero--white) .prod-hero__shade {
  display: none !important;
}

body.page-home .prod-hero__title,
body.page-home .prod-hero-search__title,
body.page-home .prod-hero-search--convert .prod-hero-search__title,
body.page-home .prod-hero-search--dense .prod-hero-search__title {
  color: #0a1f44 !important;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.page-home .prod-hero__lead,
body.page-home .prod-hero-search__sub {
  color: #334155 !important;
}

body.page-home .hero-accent,
body.page-home .prod-hero-search__title .hero-accent,
body.page-home .prod-hero-search__title em {
  color: #1a56db !important;
}

body.page-home .prod-hero-convert__search {
  max-width: 560px;
  background: #fff !important;
  border: 1px solid #d7deea !important;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-home .prod-hero-convert__search-icon,
body.page-home .prod-hero-convert__search input[type='search'] {
  color: #0a1f44 !important;
}

body.page-home .prod-hero-convert__search input[type='search']::placeholder {
  color: #5b6b86 !important;
}

body.page-home .prod-hero-convert__search .btn,
body.page-home .prod-hero-convert__search .btn-primary,
body.page-home .prod-hero-chip--primary,
body.page-home .prod-hero-convert__cta--primary,
body.page-home .btn-primary,
body.page-home.page-production .btn-primary,
body.page-listings .btn-primary,
body.page-listings a.btn-primary,
body.page-listings .header-cta .btn-header-publish,
body.page-listings .listing-card__cta {
  background: #1a56db !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

body.page-home .btn-primary:hover,
body.page-home.page-production .btn-primary:hover,
body.page-listings .btn-primary:hover,
body.page-listings .listing-card__cta:hover {
  background: #1648b8 !important;
}

body.page-home .prod-hero-chip--secondary,
body.page-home .prod-hero-chip--ghost,
body.page-home .prod-hero-convert__cta--secondary,
body.page-home .prod-hero-convert__cta--tertiary,
body.page-home .prod-hero-convert__cta--mini {
  background: #fff !important;
  color: #0a1f44 !important;
  border: 1px solid #d7deea !important;
}

body.page-home .prod-hero.prod-hero--white {
  display: none !important;
}

body.page-home .prod-getapp {
  background: #fff !important;
}

body.page-home .prod-banner {
  background: #fff !important;
  color: #0a1f44 !important;
  border-bottom: 1px solid #e6eaf1;
}

body.page-home .prod-banner a {
  color: #1a56db !important;
}

/* Home header: white bar, navy type (hero is no longer dark) */
body.page-home .site-header,
body.page-home .site-header--home,
body.page-home .site-header.site-header--home,
body.page-home .site-header--home.scrolled,
body.page-home.page-production .site-header,
body.page-home.page-production .site-header.site-header--home,
body.page-home.page-production .site-header.scrolled {
  position: sticky !important;
  top: 0;
  background: #fff !important;
  border-bottom: 1px solid #e6eaf1 !important;
  box-shadow: 0 1px 0 rgba(10, 31, 68, 0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-home .site-header--home .logo-link,
body.page-home .site-header--home .logo-text-van,
body.page-home .site-header--home .logo-text-zy,
body.page-home .logo-text-van,
body.page-home .logo-text-zy {
  color: #0a1f44 !important;
}

body.page-home .site-header--home .menu-toggle span,
body.page-home .menu-toggle span,
body.page-home:not(.page-legal) .menu-toggle span,
body.page-home .site-header--home .menu-toggle span,
body.page-home.page-production .menu-toggle span {
  background: #0a1f44 !important;
}

body.page-home .nav-mobile,
body.page-home:not(.page-legal) .nav-mobile,
body.page-listings .nav-mobile,
body.page-listings:not(.page-legal) .nav-mobile {
  background: #fff !important;
  border-top: 1px solid #e6eaf1 !important;
}

body.page-home .nav-mobile a,
body.page-home:not(.page-legal) .nav-mobile a,
body.page-listings .nav-mobile a,
body.page-listings:not(.page-legal) .nav-mobile a {
  color: #0a1f44 !important;
  border-bottom-color: #eef2f7 !important;
}

body.page-home .nav-mobile a.active,
body.page-home:not(.page-legal) .nav-mobile a.active,
body.page-listings .nav-mobile a.active,
body.page-listings:not(.page-legal) .nav-mobile a.active {
  color: #1a56db !important;
}

body.page-home .prod-home-categories,
body.page-home .prod-home-categories--dense,
body.page-home .prod-recent-listings,
body.page-home .prod-recent-listings--dense {
  background: #fff;
}

body.page-home .prod-quick-nav__card,
body.page-home .prod-viral-card,
body.page-home .listing-card-h,
body.page-home .listing-card,
body.page-home .prod-recent-listings .listing-card-h {
  background: #fff;
  border: 1px solid #e6eaf1;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.05);
}

body.page-home .prod-quick-nav__card strong,
body.page-home .listing-card-h__route,
body.page-home .listing-card-h__price,
body.page-home .prod-viral-card strong,
body.page-home .prod-h2,
body.page-home .prod-recent-listings__head h2 {
  color: #0a1f44;
}

body.page-home .prod-quick-nav__icon,
body.page-home .prod-quick-nav__icon--van,
body.page-home .prod-quick-nav__icon--box,
body.page-home .prod-quick-nav__icon--car,
body.page-home .prod-quick-nav__icon--building,
body.page-home .prod-quick-nav__icon--shield,
body.page-home .prod-quick-nav__icon--pin {
  background: #eef3ff !important;
  color: #1a56db !important;
}

body.page-home .listing-card-h--demo,
body.page-home .prod-recent-listings .listing-card-h--demo,
body.page-listings .listing-card-h--demo,
body.page-listings .listing-card--demo {
  background: #fff !important;
  border-color: #e6eaf1 !important;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.05);
}

body.page-home .listing-card-h--demo img,
body.page-home .listing-card--demo img,
body.page-home img[src*='/assets/listings/'],
body.page-listings .listing-card-h--demo img,
body.page-listings .listing-card--demo img,
body.page-listings img[src*='/assets/listings/'] {
  filter: saturate(0.42) contrast(0.96) brightness(1.05);
}

body.page-home .listing-img,
body.page-listings .listing-img,
body.page-home .listing-media,
body.page-listings .listing-media {
  background: #eef2f6 !important;
}

body.page-home .listing-badge--demo,
body.page-home .listing-card-h__media .listing-badge--demo,
body.page-listings .listing-badge--demo,
body.page-listings .listing-card-h__media .listing-badge--demo,
body.page-listings.page-marketplace .listing-badge--demo {
  background: #0a1f44 !important;
  color: #fff !important;
}

/* ── Anunțuri ── */
body.page-listings {
  background: #fff !important;
}

body.page-listings .mp-page-header {
  background: #fff;
  border-bottom: 1px solid #e6eaf1;
}

body.page-listings .mp-page-header h1,
body.page-listings .listing-body h3,
body.page-listings .listing-body h3 a,
body.page-listings .listing-card-h__route,
body.page-listings .listing-card-h__route a,
body.page-listings .listing-card-h__price {
  color: #0a1f44;
}

body.page-listings .site-header,
body.page-listings .site-header.scrolled {
  background: #fff !important;
  border-bottom: 1px solid #e6eaf1 !important;
}

body.page-listings .nav-desktop a.active,
body.page-listings .nav-desktop a[aria-current='page'],
body.page-listings.page-marketplace .nav-desktop a.active,
body.page-production.page-listings .nav-desktop a.active {
  background: #eef3ff !important;
  color: #0a1f44 !important;
}

body.page-listings .mp-filters,
body.page-listings .mp-sidebar,
body.page-listings .listing-card,
body.page-listings .listing-card-h,
body.page-listings .search-bar input,
body.page-listings .mp-search input {
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.04);
}

body.page-listings .filter-chips .chip {
  background: #fff;
  color: #0a1f44;
  border-color: #d7deea;
}

body.page-listings .filter-chips .chip.active {
  background: #0a1f44;
  border-color: #0a1f44;
  color: #fff;
}

body.page-listings .listings-view-toggle button.active {
  background: #eef3ff !important;
  color: #0a1f44 !important;
}

body.page-listings .listing-badge,
body.page-listings .listing-price,
body.page-listings.page-marketplace .listing-price {
  background: rgba(10, 31, 68, 0.88) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(10, 31, 68, 0.16) !important;
}

body.page-listings .listing-chip,
body.page-listings .listing-chip--corridor {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid #e6eaf1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

body.page-listings .listing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
  background: transparent;
  border: 0;
  padding: 0;
}

body.page-home .listing-card-h__type,
body.page-listings .listing-card-h__type {
  background: rgba(255, 255, 255, 0.94);
  color: #0a1f44;
}

body.page-home .prod-kicker,
body.page-listings .mp-breadcrumb a,
body.page-listings .mp-page-header p {
  color: #5b6b86;
}

body.page-listings .feed-empty-illu__lines line {
  stroke: rgba(10, 31, 68, 0.12);
}

body.page-listings .feed-empty-illu__lines circle,
body.page-listings .feed-empty-illu__badge--van,
body.page-listings .feed-empty-illu__hub {
  color: #0a1f44;
  fill: rgba(10, 31, 68, 0.45);
  background: #fff;
  border-color: #e6eaf1;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.06);
}

body.page-listings .feed-empty-illu__badge--parcel,
body.page-listings .feed-empty-illu__badge--truck {
  color: #0a1f44;
  background: #f7f8fb;
  border-color: #e6eaf1;
  box-shadow: none;
}

body.page-listings .feed-empty-illu__hub-icon {
  color: #1a56db;
}

@media (max-width: 640px) {
  body.page-home .prod-hero-search,
  body.page-home .prod-hero-search--convert,
  body.page-home .prod-hero-search--dense,
  body.page-home.page-production .prod-hero-search,
  body.page-home.page-production .prod-hero-search--convert,
  body.page-home.page-production .prod-hero-search--dense {
    height: min(36vh, 260px) !important;
    max-height: min(36vh, 260px) !important;
    min-height: 180px !important;
  }

  body.page-home .prod-hero-search__title {
    overflow-wrap: anywhere;
  }

  body.page-listings .filter-chips .chip {
    min-height: 36px;
  }
}

/* ── Directory: Firme / Transportatori / Pasageri ── */
body.page-directory .site-header,
body.page-business .site-header,
body.page-carriers .site-header,
body.page-passengers .site-header {
  background: #fff !important;
  border-bottom: 1px solid #e6eaf1 !important;
  box-shadow: 0 1px 0 rgba(10, 31, 68, 0.04) !important;
}

body.page-directory .mp-page-header,
body.page-business .mp-page-header,
body.page-carriers .mp-page-header,
body.page-passengers .mp-page-header {
  background: #fff !important;
  border-bottom: 1px solid #e6eaf1;
}

body.page-directory .mp-page-header h1,
body.page-business .mp-page-header h1,
body.page-carriers .mp-page-header h1,
body.page-passengers .mp-page-header h1 {
  color: #0a1f44 !important;
}

body.page-directory .mp-page-header p,
body.page-business .mp-page-header p,
body.page-carriers .mp-page-header p,
body.page-passengers .mp-page-header p,
body.page-directory .mp-breadcrumb,
body.page-business .mp-breadcrumb,
body.page-carriers .mp-breadcrumb,
body.page-passengers .mp-breadcrumb {
  color: #5b6b86 !important;
}

body.page-directory .mp-sidebar__panel,
body.page-directory .mp-filters,
body.page-business .mp-sidebar__panel,
body.page-carriers .mp-sidebar__panel,
body.page-passengers .mp-sidebar__panel {
  background: #fff !important;
  border: 1px solid #e6eaf1 !important;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.05);
}

body.page-directory .dir-card,
body.page-business .dir-card,
body.page-carriers .dir-card,
body.page-passengers .dir-card {
  background: #fff !important;
  border: 1px solid #e6eaf1 !important;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.05);
}

body.page-directory .dir-card__body h3,
body.page-directory .dir-card__meta,
body.page-business .dir-card__body h3,
body.page-carriers .dir-card__body h3,
body.page-passengers .dir-card__body h3 {
  color: #0a1f44;
}

body.page-directory .chip.active,
body.page-business .chip.active,
body.page-carriers .chip.active,
body.page-passengers .chip.active,
body.page-listings .chip.active {
  background: #0a1f44 !important;
  color: #fff !important;
  border-color: #0a1f44 !important;
}

body.page-directory .listings-status,
body.page-business .listings-status,
body.page-carriers .listings-status,
body.page-passengers .listings-status,
body.page-listings .listings-status {
  color: #5b6b86;
}

body.page-directory .plan-highlight,
body.page-business .plan-highlight,
body.page-carriers .plan-highlight {
  background: #f7f8fb !important;
  border: 1px solid #e6eaf1 !important;
  border-radius: 16px;
}
