/**
 * Loop grid cards — shared by bidang / search / alphabet / location / related / infobox.
 * Scoped to .item-tour.iko-card (contractor) and .item-Tender.iko-card (tender), not theme-wide.
 */

/* —— Contractor (Tour loop-grid partials) —— */
.item-tour.iko-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.2s ease;
}

.item-tour.iko-card:hover {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.item-tour.iko-card .thumb-image {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.item-tour.iko-card .thumb-image a {
  display: block;
  line-height: 0;
}

.item-tour.iko-card .thumb-image img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.item-tour.iko-card:hover .thumb-image img {
  transform: scale(1.03);
}

/* Logo area (no stock imagery when missing logo) */
.item-tour.iko-card .thumb-image.iko-card__thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #f8fafc;
}

.item-tour.iko-card .iko-card__thumb-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 0.5rem;
  background: #fff;
}

.bravo-list-tour--blocks .iko-contractor-segment-tabs__nav {
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.bravo-list-tour--blocks .iko-contractor-segment-tabs__nav .nav-link {
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
}

.bravo-list-tour--blocks .iko-contractor-segment-tabs__nav .nav-link:hover {
  color: #1e40af;
  border-color: #e2e8f0 #e2e8f0 transparent;
  background: #f8fafc;
}

.bravo-list-tour--blocks .iko-contractor-segment-tabs__nav .nav-link.active {
  color: #1e40af;
  background: #fff;
  border-color: #e2e8f0 #e2e8f0 #fff;
}

.bravo-list-tour--blocks .iko-contractor-segment-tabs__panes {
  padding-top: 0.25rem;
}

.item-tour.iko-card > .featured {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
  color: #fff;
  border-radius: 6px;
  border: none;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.35);
}

.item-tour.iko-card--contractor .iko-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.125rem 1.125rem;
  gap: 0.4rem;
}

.item-tour.iko-card--contractor .iko-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.item-tour.iko-card--contractor .iko-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.item-tour.iko-card--contractor .iko-card__title a:hover {
  color: #1d4ed8;
}

.item-tour.iko-card .iko-card__meta {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.item-tour.iko-card .iko-card__meta-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #94a3b8;
}

.item-tour.iko-card .iko-card__meta a {
  color: #475569;
  text-decoration: none;
}

.item-tour.iko-card .iko-card__meta a:hover {
  color: #1d4ed8;
}

.item-tour.iko-card .iko-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.item-tour.iko-card .iko-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.item-tour.iko-card .iko-chip:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #1e40af;
}

.item-tour.iko-card .iko-chip__qua {
  margin-left: 0.2rem;
  font-weight: 700;
  opacity: 0.9;
}

.item-tour.iko-card .iko-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.item-tour.iko-card .iko-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: #1e40af;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.item-tour.iko-card .iko-card__cta:hover {
  background: #1e3a8a;
  color: #fff;
  text-decoration: none;
}

/* —— Asosiasi card —— */
.item-tour.iko-card--asosiasi .iko-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.125rem 1.125rem;
  gap: 0.4rem;
}

.item-tour.iko-card--asosiasi .iko-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.item-tour.iko-card--asosiasi .iko-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.item-tour.iko-card--asosiasi .iko-card__title a:hover {
  color: #1d4ed8;
}

/* —— Tender (Tender loop-grid) —— */
.item-Tender.iko-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.2s ease;
}

.item-Tender.iko-card:hover {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.item-Tender.iko-card > .featured {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
  color: #fff;
  border-radius: 6px;
  border: none;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.35);
}

.item-Tender.iko-card--tender .thumb-image {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.item-Tender.iko-card--tender .thumb-image a {
  display: block;
  line-height: 0;
}

.item-Tender.iko-card--tender .thumb-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 14px 16px;
  transition: transform 0.35s ease;
}

.item-Tender.iko-card--tender .iko-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.125rem 1.2rem;
}

.item-Tender.iko-card--tender .iko-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.item-Tender.iko-card--tender .iko-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.item-Tender.iko-card--tender .iko-card__title a:hover {
  color: #0369a1;
}

.item-Tender.iko-card .iko-card__pagu-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 3px;
}

.item-Tender.iko-card .iko-card__pagu-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.4;
}

.item-Tender.iko-card--tender .iko-card__satker {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.item-Tender.iko-card--tender .iko-card__satker i {
  margin-top: 3px;
  flex-shrink: 0;
  color: #94a3b8;
}

.list-item > .row > [class*="col-"] {
  margin-bottom: 1.25rem;
}

/* —— Tender listing: editorial, stats, filters —— */
.iko-tender-editorial {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.iko-tender-editorial__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.iko-tender-editorial__row {
  margin-left: -8px;
  margin-right: -8px;
}

.iko-tender-editorial__row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 14px;
}

.iko-tender-editorial__card {
  height: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.iko-tender-editorial__p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
}

.iko-tender-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
  .iko-tender-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .iko-tender-stats {
    grid-template-columns: 1fr;
  }
}

.iko-tender-stat-item {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.iko-tender-stat-item__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.35;
}

.iko-tender-stat-item__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0369a1;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.iko-tender-stat-item__value--sm {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.iko-tender-filters {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.iko-tender-filters__row {
  margin-left: -8px;
  margin-right: -8px;
}

.iko-tender-filters__row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 12px;
}

.iko-tender-filters__row--second {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .iko-tender-filters__row--second {
    align-items: flex-end;
  }
}

.iko-tender-filters__actions--col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 992px) {
  .iko-tender-filters__actions--col {
    padding-bottom: 1px;
  }
}

@media (max-width: 991px) {
  .iko-tender-filters__actions--col {
    margin-top: 4px;
  }
}

/* Legacy: grid layout bila masih dipakai di tempat lain */
.iko-tender-filters__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

@media (min-width: 992px) {
  .iko-tender-filters__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.iko-tender-filters__field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.iko-tender-filters__field--span2 {
  grid-column: span 2;
}

@media (max-width: 575px) {
  .iko-tender-filters__field--span2 {
    grid-column: span 1;
  }
}

.iko-tender-filters__hps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.iko-tender-filters__hps-row .form-control {
  flex: 1;
  min-width: 120px;
}

.iko-tender-filters__sep {
  color: #94a3b8;
  font-weight: 600;
}

.iko-tender-filters__actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* —— Tender category layer (hero, SBU chips, trend, cross-links) —— */
.iko-cat-hero {
  margin: 0 0 1.25rem;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.iko-cat-hero__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.iko-cat-hero__highlight {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  border-left: 4px solid #0369a1;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #1e3a5f;
  line-height: 1.55;
}

.iko-cat-hero__p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.72;
  color: #334155;
}

.iko-cat-hero__p:last-child {
  margin-bottom: 0;
}

.iko-cat-sbu-chips {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.iko-cat-sbu-chips__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 10px;
}

.iko-cat-sbu-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

a.iko-cat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

a.iko-cat-chip:hover {
  border-color: #0369a1;
  color: #0369a1;
}

a.iko-cat-chip.is-active {
  border-color: #0369a1;
  background: #e0f2fe;
  color: #0c4a6e;
}

.iko-cat-chip__code {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.iko-cat-chip__name {
  font-size: 0.68rem;
  color: #64748b;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.iko-cat-chip.is-active .iko-cat-chip__name {
  color: #0c4a6e;
}

.iko-cat-trend {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.iko-cat-trend__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.iko-cat-trend__note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.iko-cat-trend__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 120px;
  padding-top: 4px;
}

.iko-cat-trend__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.iko-cat-trend__bar-wrap {
  width: 100%;
  max-width: 48px;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
}

.iko-cat-trend__bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38bdf8 0%, #0369a1 100%);
  min-height: 6px;
}

.iko-cat-trend__val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
}

.iko-cat-trend__lbl {
  font-size: 0.65rem;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.iko-cat-cross {
  margin: 1.5rem 0 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 45%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.iko-cat-cross__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #14532d;
}

.iko-cat-cross__intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.55;
}

.iko-cat-cross__list {
  margin: 0;
  padding-left: 1.15rem;
  color: #14532d;
}

.iko-cat-cross__list li {
  margin-bottom: 0.45rem;
}

.iko-cat-cross__list a {
  font-weight: 600;
  color: #047857;
  text-decoration: none;
}

.iko-cat-cross__list a:hover {
  text-decoration: underline;
}

.iko-cat-cross__meta {
  font-weight: 500;
  color: #64748b;
  font-size: 0.82rem;
}

.item-Tender.iko-card--tender .iko-card__tender-insights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.item-Tender.iko-card--tender .iko-card__tender-insights li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iko-card__tender-insights-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-size: 0.62rem;
}

.iko-card__tender-insights-value {
  color: #0f172a;
  font-weight: 600;
}

.iko-card__tender-insights-code {
  color: #0369a1;
  font-weight: 700;
}

.item-Tender.iko-card--tender .iko-card__deadline {
  font-size: 0.75rem;
  color: #475569;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
}

.iko-card__deadline-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.iko-card__deadline-value {
  display: block;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .item-tour.iko-card .thumb-image img {
    aspect-ratio: 16 / 11;
  }

  .iko-cat-hero {
    padding: 1.1rem 1rem;
  }

  .iko-cat-hero__title {
    font-size: 1.05rem;
  }

  .iko-cat-trend__chart {
    min-height: 100px;
    gap: 4px;
  }

  .iko-cat-trend__bar-wrap {
    height: 76px;
    max-width: 36px;
  }

  .iko-cat-trend__bar {
    max-width: 28px;
  }

  .iko-cat-trend__lbl {
    font-size: 0.6rem;
  }

  a.iko-cat-chip {
    padding: 7px 10px;
    font-size: 0.72rem;
  }
}
