.vmarket-body {
  background: #ffffff;
  color: #0f172a;
}

.vmarket-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.vmarket-navbar.scrolled {
  border-bottom-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.vmarket-logo {
  height: 20px;
  width: auto;
}

.vmarket-navbar .navbar-brand img {
  height: 20px;
  max-height: 20px;
  width: auto;
}

.vmarket-navbar .nav-link {
  font-weight: 500;
  color: #334155;
  border-radius: 999px;
}

.vmarket-nav {
  gap: 0.35rem;
}

.vmarket-navbar .nav-link.active {
  background: #0f172a;
  color: #fff;
}

.vmarket-navbar .nav-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* No hover effect for links inside theborderbox */
#theborderbox .nav-link:hover,
#theborderbox .nav-link:focus {
  background: transparent;
  color: inherit;
}

.vmarket-main {
  padding-top: 0;
  padding-bottom: 1rem;
  min-height: calc(100vh - 160px);
}

.vmarket-hero {
  position: relative;
  background: #f8fafc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  border-radius: 24px;
  padding: 3rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.vmarket-hero-home {
  padding: 5rem 1.25rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url('/static/img/vmarket/banners/vmarket-home.svg');
  border: none;
}

.vmarket-hero-home h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.vmarket-hero-home .lead {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .vmarket-hero {
    padding: 1.5rem 0.5rem;
    border-radius: 16px;
  }
  .vmarket-hero-home {
    padding: 3rem 1rem;
    min-height: 240px;
  }
  .vmarket-search-card {
    padding: 0.75rem;
  }
}

.vmarket-hero-products {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url('/static/img/vmarket/banners/vmarket-products.svg');
  border: none;
}

.vmarket-hero-services {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url('/static/img/vmarket/banners/vmarket-services.svg');
  border: none;
}

.vmarket-hero-companies {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url('/static/img/vmarket/banners/vmarket-companies.svg');
  border: none;
}

.vmarket-join-hero {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url('/static/img/vmarket/banners/vmarket-join.svg');
  border: none;
}

.vmarket-join-highlight {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.vmarket-join-highlight .text-muted {
  color: #64748b !important;
}

.vmarket-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.vmarket-hero h1,
.vmarket-hero .display-4 {
  color: #ffffff;
}

.vmarket-hero p.lead,
.vmarket-hero .lead,
.vmarket-hero .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.vmarket-section-title {
  font-weight: 600;
  color: #0f172a;
}

.vmarket-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vmarket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.vmarket-card .card-title {
  font-weight: 600;
}

.vmarket-search-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.vmarket-search-card .text-muted {
  color: #64748b !important;
}

.vmarket-search-results {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.vmarket-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 0.75rem;
}

.vmarket-search-item:last-child {
  margin-bottom: 0;
}

.vmarket-search-item-title {
  font-weight: 600;
  color: #0f172a;
}

.vmarket-search-item-sub {
  font-size: 0.85rem;
  color: #64748b;
}

.vmarket-search-empty {
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.vmarket-join-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vmarket-join-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vmarket-join-step-index {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.vmarket-join-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #475569;
}

.vmarket-join-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.vmarket-join-cta {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.75rem 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.vmarket-join-cta-btn {
  background: #FFBF00;
  border-color: #FFBF00;
  color: #000000;
}

.vmarket-join-cta-btn:hover,
.vmarket-join-cta-btn:focus {
  background: #e6ac00;
  border-color: #e6ac00;
  color: #000000;
}

@media (min-width: 768px) {
  .vmarket-join-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vmarket-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vmarket-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vmarket-link-group .btn {
  border-radius: 999px;
}

/* Featured product/service cards */
.vmarket-featured-card {
  display: block;
  text-decoration: none;
  color: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.vmarket-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  text-decoration: none;
}

.vmarket-featured-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.vmarket-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vmarket-featured-card:hover .vmarket-featured-img img {
  transform: scale(1.05);
}

.vmarket-featured-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.vmarket-featured-img-service {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #86efac;
}

.vmarket-featured-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vmarket-featured-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vmarket-featured-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.vmarket-featured-duration {
  font-size: 0.8rem;
  color: #64748b;
}

.vmarket-featured-company {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.vmarket-featured-company-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.vmarket-featured-category {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 575.98px) {
  .vmarket-featured-body {
    padding: 0.65rem 0.75rem;
  }
  .vmarket-featured-name {
    font-size: 0.85rem;
  }
  .vmarket-featured-price {
    font-size: 0.85rem;
  }
}

/* Compact home search section */
.vmarket-home-search-section {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
}

.vmarket-home-search-results {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.75rem;
}

/* Home empty section (when no products/services) */
.vmarket-home-empty-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.5rem 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.95rem;
}

.vmarket-home-empty-section i {
  font-size: 1.25rem;
}

.vmarket-footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

.vmarket-footer .container-fluid {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.vmarket-empty {
  border: 1px dashed #cbd5f5;
  border-radius: 18px;
  padding: 7rem 2.5rem;
  text-align: center;
  background: #fff;
  color: #64748b;
}

.vmarket-empty-tall {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* VMarket Ad Sidebar */
.vmarket-ad {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
}

.vmarket-ad-inner {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 180px;
}

.vmarket-sidebar {
  position: sticky;
  top: 96px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  padding: 1rem;
}

.vmarket-sidebar-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.vmarket-sidebar-list .list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 12px;
  margin-bottom: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: #334155;
}

.vmarket-sidebar-list .list-group-item:last-child {
  margin-bottom: 0;
}

.vmarket-sidebar-list .list-group-item.active {
  background: #0f172a;
  color: #fff;
}

.vmarket-sidebar-list .list-group-item .badge {
  background: #e2e8f0;
  color: #0f172a;
}

.vmarket-sidebar-list .list-group-item.active .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.vmarket-sidebar-empty {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 991.98px) {
  .vmarket-sidebar {
    position: static;
  }
}

.vmarket-map {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  overflow: hidden;
}

.vmarket-map-info {
  min-width: 180px;
  max-width: 240px;
}

.vmarket-map-page {
  min-height: calc(100vh - 72px);
  padding-top: 0px;
}

.vmarket-map-layout {
  display: flex;
  height: calc(100vh - 72px);
}


.vmarket-main .container {
  max-width: 100%;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
.vmarket-map-sidebar {
  width: 320px;
  min-width: 280px;
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.vmarket-map-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vmarket-map-list {
  padding: 0.75rem 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vmarket-map-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vmarket-map-item:hover {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.vmarket-map-item-title {
  font-weight: 600;
  color: #0f172a;
}

.vmarket-map-item-sub {
  font-size: 0.85rem;
  color: #64748b;
}

.vmarket-map-item-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  align-self: flex-start;
  background: #e2e8f0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.vmarket-map-canvas {
  flex: 1;
  padding: 1.5rem;
  background: #f8fafc;
}

/* Map search bar */
.vmarket-map-search {
  margin-top: 0.25rem;
}

.vmarket-map-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vmarket-map-search-icon {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.vmarket-map-search-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.55rem 2.2rem 0.55rem 2.2rem;
  font-size: 0.85rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vmarket-map-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.vmarket-map-search-input::placeholder {
  color: #94a3b8;
}

.vmarket-map-search-clear {
  position: absolute;
  right: 0.5rem;
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.vmarket-map-search-clear:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.vmarket-map-search-status {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  padding-left: 0.25rem;
}

/* Distance badge on company list items */
.vmarket-map-item-distance {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  font-family: inherit;
  margin-top: 4px;
}

.pac-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.pac-item:hover {
  background: #f1f5f9;
}

@media (max-width: 991.98px) {
  .vmarket-map-layout {
    flex-direction: column;
    height: auto;
  }

  .vmarket-map-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .vmarket-map-canvas {
    height: 60vh;
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  #vmarketSidebar,
  #vmarketSidebarOverlay {
    display: none !important;
  }
}
