/* Indore bar atlas */
.bar-atlas-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 166, 35, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(0, 212, 170, 0.12), transparent 28rem),
    linear-gradient(180deg, #08090c 0%, #0d1018 45%, #090a0d 100%);
}

.bar-atlas-shell {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 28px) 24px 72px;
}

.bar-atlas-hero,
.bar-workspace,
.single-profile {
  display: grid;
  gap: 18px;
}

.bar-atlas-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.38fr);
}

.bar-hero-copy,
.bar-source-panel,
.bar-filters,
.bar-results,
.bar-profile-panel,
.bar-card,
.bar-metric,
.profile-hero,
.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.34);
}

.bar-hero-copy {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  padding: 32px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(100, 181, 255, 0.09) 44%, rgba(0, 212, 170, 0.1)),
    rgba(255, 255, 255, 0.045);
}

.bar-hero-copy::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 420px;
  height: 320px;
  transform: rotate(-12deg);
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.22), rgba(255, 77, 106, 0.1), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.bar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.bar-hero-copy h1,
.profile-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 3.05rem;
}

.bar-hero-copy p,
.profile-hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(240, 240, 240, 0.76);
  font-size: 1.03rem;
}

.bar-hero-actions,
.profile-actions,
.source-links,
.media-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.bar-source-panel,
.bar-filters,
.bar-results,
.bar-profile-panel,
.profile-panel {
  border-radius: 12px;
  background: rgba(14, 16, 24, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.bar-source-panel,
.bar-filters,
.bar-results,
.bar-profile-panel,
.profile-panel {
  padding: 22px;
}

.bar-source-panel h2,
.bar-results h2,
.bar-profile-panel h2,
.profile-panel h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.bar-source-panel p,
.bar-profile-panel p,
.profile-panel p {
  font-size: 0.92rem;
}

.source-links a,
.media-actions a,
.profile-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.84rem;
}

.source-links a:hover,
.media-actions a:hover,
.profile-link:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-gold);
}

.bar-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.bar-metric {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(14, 18, 29, 0.84);
}

.bar-metric span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-metric strong {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  line-height: 1;
}

.bar-metric small {
  color: rgba(240, 240, 240, 0.58);
}

.bar-workspace {
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  align-items: start;
  margin-top: 34px;
}

.bar-filters,
.bar-profile-panel {
  position: sticky;
  top: calc(var(--nav-height) + 18px);
}

.bar-filter-group {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.bar-filter-group label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-filter-group input,
.bar-filter-group select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
}

.bar-filter-actions {
  display: grid;
  gap: 10px;
}

.bar-filter-group select option {
  background-color: #1f1f31;
  color: #f5f5f7;
}

.bar-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

#bar-count-label {
  color: var(--text-secondary);
  font-weight: 800;
  white-space: nowrap;
}

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

.bar-atlas-shell,
.bar-atlas-hero,
.bar-workspace,
.bar-results,
.bar-filters,
.bar-profile-panel,
.bar-card,
.bar-metric,
.single-profile,
.profile-hero,
.profile-panel {
  min-width: 0;
}

.bar-card {
  overflow: hidden;
  border-radius: 10px;
  background: rgba(15, 17, 27, 0.78);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.bar-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(245, 166, 35, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(0, 212, 170, 0.055)),
    rgba(15, 17, 27, 0.78);
}

.bar-empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.bar-empty-state p {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bar-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bar-empty-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.84rem;
}

.bar-empty-actions a:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-gold);
}

.bar-card:hover,
.bar-card.active {
  transform: translateY(-3px);
  border-color: rgba(245, 166, 35, 0.36);
  background: rgba(25, 29, 44, 0.9);
}

.bar-card-media {
  position: relative;
  height: 154px;
  overflow: hidden;
}

.bar-card-media img,
.profile-gallery img,
.profile-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-card-media::after,
.profile-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.82), transparent 58%);
}

.bar-card-body {
  padding: 16px;
}

.bar-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.bar-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

.bar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bar-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.bar-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bar-card-actions button,
.bar-card-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.bar-card-actions button:hover,
.bar-card-actions a:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-gold);
}

.profile-mini-cover {
  height: 150px;
  overflow: hidden;
  margin: -22px -22px 18px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.profile-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-detail-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.profile-detail-list div {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-detail-list dt {
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-detail-list dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-weight: 700;
}

.single-profile {
  grid-template-columns: minmax(0, 1fr);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 18px;
  padding: 26px;
  border-radius: 12px;
  background: rgba(14, 16, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-hero-media {
  min-height: 330px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-panel {
  padding: 20px;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.profile-gallery img {
  height: 128px;
  border-radius: 8px;
}

.bar-tabbar {
  display: none;
}

@media (max-width: 1160px) {
  .bar-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .bar-profile-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .bar-atlas-hero,
  .bar-workspace {
    grid-template-columns: 1fr;
  }

  .bar-filters {
    position: static;
  }

  .bar-metrics,
  .bar-card-grid,
  .profile-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bar-atlas-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .bar-atlas-shell {
    padding: calc(var(--nav-height) + 16px) 14px 28px;
  }

  .bar-hero-copy,
  .bar-source-panel,
  .bar-filters,
  .bar-results,
  .bar-profile-panel,
  .profile-hero,
  .profile-panel {
    border-radius: 10px;
  }

  .bar-hero-copy {
    min-height: 280px;
    padding: 20px;
  }

  .bar-hero-copy h1,
  .profile-hero h1 {
    font-size: 2rem;
  }

  .bar-hero-copy p,
  .profile-hero p {
    font-size: 0.92rem;
  }

  .bar-hero-actions,
  .profile-actions,
  .source-links,
  .media-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bar-card-grid,
  .profile-gallery {
    grid-template-columns: 1fr;
  }

  .bar-metrics,
  .profile-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-results-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bar-card-media {
    height: 176px;
  }

  .bar-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 995;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(10, 12, 18, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .bar-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    padding: 5px 3px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .bar-tabbar a.active {
    color: #050608;
    background: var(--gradient-cta);
  }

  .bar-tabbar a[href$="planner.html"] {
    font-size: 0;
  }

  .bar-tabbar a[href$="planner.html"]::after {
    content: "Planner";
    font-size: 0.68rem;
    line-height: 1.05;
  }
}

@media (max-width: 520px) {
  .bar-metrics,
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .bar-source-panel,
  .bar-filters,
  .bar-results,
  .bar-profile-panel,
  .profile-panel {
    padding: 16px;
  }

  .bar-tabbar {
    left: 6px;
    right: 6px;
    gap: 3px;
  }

  .bar-tabbar a,
  .bar-tabbar a[href$="planner.html"]::after {
    font-size: 0.62rem;
  }
}
