/* Frontend dashboard inspired by Airbnb (clean cards, whitespace, sans) */
.itg-dashboard {
  --itg-map-height: 620px;
  --itg-gap: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #111;
}

.itg-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.itg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.itg-filter-btn {
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.itg-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
}

.itg-filter-btn.is-active {
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.itg-mobile-toggle {
  display: none;
  gap: 8px;
}

.itg-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.itg-layout {
  display: grid;
  gap: var(--itg-gap);
  align-items: start;
}

.itg-map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  height: var(--itg-map-height);
  position: sticky;
  top: 12px;
}

.itg-map {
  width: 100%;
  height: 100%;
}

.itg-list-wrap {
  min-width: 0;
}

.itg-status {
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 22px;
  color: #6b6b6b;
}

.itg-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.18);
  border-top-color: rgba(0,0,0,0.55);
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: -2px;
  animation: itgspin .8s linear infinite;
}

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

.itg-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itg-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  cursor: pointer;
}

.itg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.14);
}

.itg-card.is-active {
  border-color: rgba(0,0,0,0.24);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.itg-thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
}

.itg-thumb-empty {
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.4);
  font-size: 26px;
}

.itg-card-body {
  padding: 14px 14px 16px;
}

.itg-card-top {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.itg-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

.itg-icon-svg svg {
  width: 18px;
  height: 18px;
}

.itg-icon-ri i {
  font-size: 18px;
}

.itg-title {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.itg-title a {
  text-decoration: none;
  color: inherit;
}

.itg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.itg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  font-weight: 600;
  font-size: 12px;
  color: #202020;
}

.itg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c5c5c;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
}

.itg-excerpt {
  color: #3a3a3a;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.itg-small {
  color: #6b6b6b;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.itg-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.itg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.10);
  text-decoration: none;
  background: #111;
  color: #fff;
  min-width: 92px;
}

.itg-cta:hover {
  opacity: .92;
}

.itg-cta-ghost {
  background: #fff;
  color: #111;
}

.itg-empty {
  padding: 16px;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 14px;
  color: #6b6b6b;
  font-weight: 700;
}

/* Layout variants */
.itg-dashboard.itg-map-left .itg-layout {
  grid-template-columns: minmax(280px, 44%) 1fr;
}

.itg-dashboard.itg-map-right .itg-layout {
  grid-template-columns: 1fr minmax(280px, 44%);
}

.itg-dashboard.itg-map-right .itg-map-wrap {
  order: 2;
}

.itg-dashboard.itg-map-top .itg-layout {
  grid-template-columns: 1fr;
}

.itg-dashboard.itg-map-top .itg-map-wrap {
  position: relative;
  top: auto;
}

/* Events shortcode grid */
.itg-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.itg-event-card {
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
}

.itg-event-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.itg-event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5c5c5c;
  font-weight: 700;
  margin-bottom: 8px;
}

.itg-event-excerpt {
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.45;
}

/* Mobile */
@media (max-width: 860px) {
  .itg-mobile-toggle {
    display: inline-flex;
  }

  .itg-dashboard.itg-map-left .itg-layout,
  .itg-dashboard.itg-map-right .itg-layout {
    grid-template-columns: 1fr;
  }

  .itg-map-wrap {
    position: relative;
    top: auto;
  }

  .itg-grid {
    grid-template-columns: 1fr;
  }

  .itg-events-grid {
    grid-template-columns: 1fr;
  }

  /* collapsible */
  .itg-dashboard.itg-show-map .itg-map-wrap { display: block; }
  .itg-dashboard.itg-show-map .itg-list-wrap { display: block; }

  .itg-dashboard:not(.itg-show-map) .itg-map-wrap { display: none; }
  .itg-dashboard:not(.itg-show-list) .itg-list-wrap { display: none; }
}
