.view-company .app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.view-company .right-panel,
.view-company #premium-slot,
.view-company #featured-products-slot {
  display: none;
}

.view-company .main-content {
  padding: 14px 14px 22px;
}

.view-company .topbar {
  margin-bottom: 14px;
}

.view-company #topbar-slot .search-box {
  display: none;
}

.view-company #topbar-slot {
  justify-content: flex-end;
}

.company-view {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 680px;
}

/* ── Top bar: search + filters spanning full width ── */
.company-top-bar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 11, 22, 0.88);
  padding: 14px 16px;
}

/* Top-bar columns mirror body columns: list width | map width */
.company-search-row {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

/* Filter button row – spans the map column, controls dropdown centering */
.company-filter-row {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: left;
  align-items: center;
  margin-top: 14px;
}

/* Static so absolute menus anchor to .company-filter-row, not the button */
.company-filter-row .filter-field {
  position: static;
  flex: 0 0 220px;
}

.company-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.company-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.company-search-box input::placeholder {
  color: #8b92a7;
}

.company-filter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 26px;
}

.company-filter-meta .active-filter-chips {
  flex: 1;
  margin: 0;
}

.company-result-count {
  margin: 0;
  color: #b6bfd8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── 2-column body: list + map ── */
.company-body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.company-results {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 11, 22, 0.88);
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Filter fields ── */
.filter-field {
  position: relative;
}

.filter-select {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #e8edff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-select:hover,
.filter-field.open .filter-select {
  border-color: rgba(122, 162, 255, 0.5);
  background: rgba(77, 116, 255, 0.08);
}

.filter-select strong {
  color: #9db4ff;
  font-size: 11px;
  font-weight: 800;
}

/* Industry dropdown – wider, 2-column options */
#industry-filter-menu {
  width: min(540px, calc(100vw - 32px));
}

#industry-filter-field.open #industry-filter-menu {
  grid-template-columns: 1fr 1fr;
}

/* Standard dropdown – wider for standard image thumbs */
#standard-filter-menu {
  width: min(400px, calc(100vw - 32px));
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: none;
  max-height: 300px;
  max-width: calc(100vw - 32px);
  overflow: auto;
  border: 1px solid rgba(138, 160, 240, 0.35);
  border-radius: 14px;
  background: rgba(10, 14, 27, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  padding: 8px;
}

.filter-field.open .filter-menu {
  display: grid;
  gap: 3px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #d6def6;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.filter-option:hover {
  background: rgba(122, 162, 255, 0.14);
}

.filter-option input {
  margin: 0;
  flex-shrink: 0;
  accent-color: #6f96ff;
}

/* Horizontal rectangle placeholder for standard logo images */
.standard-img-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 34px;
  border-radius: 6px;
  border: 1px dashed rgba(122, 162, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(77, 116, 255, 0.12), rgba(10, 14, 27, 0.55));
  position: relative;
  overflow: hidden;
}

.standard-img-thumb::after {
  content: "IMG";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(122, 162, 255, 0.5);
}

/* Small icon still used inside company cards */
.standard-icon {
  display: none!important;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(122, 162, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #d8e3ff;
  background: radial-gradient(circle at 35% 30%, #5a84ff, #283e82 70%);
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(122, 162, 255, 0.35);
  background: rgba(77, 116, 255, 0.16);
  color: #dce5ff;
  font-size: 11px;
  font-weight: 700;
}

.active-chip button {
  border: 0;
  background: transparent;
  color: #dce5ff;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  line-height: 1;
}

.company-list {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.company-result-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.company-result-card .card-tags {
  margin-bottom: 6px;
}

.company-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.company-result-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.company-title-row {
  display: inline-flex;
  align-items: top;
  gap: 7px;
}

.company-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #eaf0ff;
  border: 1px solid rgba(122, 162, 255, 0.45);
  background: radial-gradient(circle at 35% 30%, #4f78ff, #1f2f68 70%);
}

.company-logo.has-image {
  padding: 3px;
  background: #ffffff;
}

.company-logo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.company-thumb-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.company-thumb-row.multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-thumb-row img {
  width: 100%;
  aspect-ratio: 1/1;
  /* height: 72px; */
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.standard-badge-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.standard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(123, 202, 192, 0.35);
  background: rgba(65, 180, 166, 0.12);
  color: #d8f6f1;
  font-size: 11px;
  font-weight: 700;
}

.standard-badge .standard-icon {
  width: 15px;
  height: 15px;
  font-size: 8px;
}

.company-empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #b8c1da;
  font-size: 13px;
}

.company-map-panel {
  display: flex;
  flex-direction: column;
}

.company-map-shell {
  max-height: 80vh;
  overflow: hidden;
}

.view-company .vietnam-map {
  inset: 18px;
}

@media (max-width: 1200px) {
  .company-search-row {
    grid-template-columns: 1fr;
  }

  .company-body {
    grid-template-columns: 1fr;
  }

  .company-results {
    max-height: 360px;
  }

}

@media (max-width: 720px) {
  .company-search-row {
    grid-template-columns: 1fr;
  }

  .company-results {
    max-height: 420px;
  }

  /* .company-thumb-row img {
    height: 64px;
  } */

  #industry-filter-menu,
  #standard-filter-menu {
    min-width: unset;
    left: 0;
    right: 0;
  }

  #industry-filter-field.open #industry-filter-menu {
    grid-template-columns: 1fr;
  }
}

.sub-title{
  margin-top: 1.5em;
}