/* HANIHO Guide — Apple-clean dark design */

.guide-wrap {
  background: var(--bg, #000);
  color: var(--text, #fff);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hero */
.guide-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--bg, #000);
}
.guide-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--bg, #000) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  pointer-events: none;
}
.guide-hero-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.guide-hero-bottom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}
.guide-hero-bottom h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.1;
}
.guide-hero-bottom .guide-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px 0;
}
.guide-hero-bottom .guide-quote {
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Pills */
.guide-back-pill {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text, #fff);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.guide-attr-pill {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  text-decoration: none;
}

/* Vibe tags */
.guide-vibes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.guide-vibe-tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Live status dot (Entdecken grid) */
.discover-city-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.discover-city-status.hot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.discover-city-status.active { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.discover-city-status.quiet { background: #22c55e; }
.discover-city-activity { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.45); }
.discover-city-activity span { white-space: nowrap; }

/* Live strip (Stadt-Hero) */
.guide-live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 16px 20px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.guide-live-status {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.guide-live-status.hot { background: rgba(239,68,68,0.15); color: #fca5a5; }
.guide-live-status.active { background: rgba(245,158,11,0.15); color: #fcd34d; }
.guide-live-status.quiet { background: rgba(34,197,94,0.15); color: #86efac; }
.guide-live-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.guide-live-counts span { white-space: nowrap; }

/* Category chips */
.guide-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 20px 0;
  scrollbar-width: none;
}
.guide-chips::-webkit-scrollbar { display: none; }
.guide-chip {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.guide-chip:hover, .guide-chip.active {
  background: rgba(255,255,255,0.12);
  color: var(--text, #fff);
}

/* Sections */
.guide-section {
  padding: 24px 20px 0;
}
.guide-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.guide-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #fff);
}
.guide-section-count {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* Horizontal scroll cards (Spots) */
.guide-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.guide-hscroll::-webkit-scrollbar { display: none; }

.guide-spot-card {
  flex-shrink: 0;
  width: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.guide-spot-img {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--surface, #111);
}
.guide-spot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.guide-spot-img .guide-spot-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 2;
}
.guide-spot-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.guide-spot-body {
  padding: 14px;
}
.guide-spot-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text, #fff);
}
.guide-spot-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-spot-card {
  position: relative;
}
.guide-spot-card .guide-route-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}

/* Story section */
.guide-story-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text, #fff);
  line-height: 1.2;
}
.guide-story-text {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0 0 20px 0;
}
.guide-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.guide-stat {
  padding: 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.guide-stat:last-child { border-right: none; }
.guide-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #fff);
  margin-bottom: 4px;
}
.guide-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Tips list (Apple Settings style) */
.guide-tips-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.guide-tip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.guide-tip-item:last-child { border-bottom: none; }
.guide-tip-item:hover { background: rgba(255,255,255,0.03); }
.guide-tip-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.guide-tip-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}
.guide-tip-content {
  flex: 1;
  min-width: 0;
}
.guide-tip-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #fff);
  margin: 0 0 2px 0;
}
.guide-tip-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-tip-arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.2);
  font-size: 16px;
}

/* Community posts */
.guide-community-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guide-community-item:last-child { border-bottom: none; }
.guide-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.guide-community-body {
  flex: 1;
  min-width: 0;
}
.guide-community-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.guide-community-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* CTA */
.guide-cta {
  padding: 32px 20px 40px;
  text-align: center;
}
.guide-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px 0;
}
.guide-cta-btn {
  display: inline-block;
  background: var(--text, #fff);
  color: var(--bg, #000);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.guide-cta-btn:hover { opacity: 0.85; }
.guide-cta-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 12px;
}

/* SVG fallback hero */
.guide-hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scrollbar hide for wrap */
.guide-wrap {
  scrollbar-width: none;
}
.guide-wrap::-webkit-scrollbar { display: none; }

/* ── Community Sidebar (right panel) ── */

/* Make parent chain pass height constraints so posts can scroll */
#rightPanelContext:has(.community-sidebar-wrap) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
#rightPanelContext:has(.community-sidebar-wrap) .sidebar-scroll-area {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.community-sidebar-wrap {
  background: var(--bg, #000);
  color: var(--text, #fff);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.community-sidebar-header {
  padding: 0 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.community-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #fff);
}
.community-sidebar-posts {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.community-sidebar-posts::-webkit-scrollbar { display: none; }

.community-sidebar-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.community-sidebar-post:last-child { border-bottom: none; }

.community-sidebar-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.community-sidebar-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.community-sidebar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.community-sidebar-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.community-sidebar-time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
.community-sidebar-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-sidebar-reply-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 0 0;
  font-family: inherit;
}
.community-sidebar-reply-btn:hover {
  color: rgba(255,255,255,0.5);
}

.community-sidebar-input-wrap {
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.community-sidebar-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text, #fff);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.community-sidebar-input::placeholder {
  color: rgba(255,255,255,0.25);
}
.community-sidebar-input:focus {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.community-sidebar-wrap {
  background: var(--bg, #000);
  color: var(--text, #fff);
  padding: 12px 16px;
  overflow: hidden;
}
.guide-source-label {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  font-weight: 600;
}
.community-login-banner {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fca5a5;
  text-align: center;
  margin-bottom: 8px;
}
.community-login-banner a {
  color: var(--text, #fff);
  text-decoration: underline;
  font-weight: 700;
}
/* REMOVED: was nuking all backgrounds in rightPanelContext */
.community-sidebar-name{color:rgba(255,255,255,.65)!important}
.community-sidebar-time{color:rgba(255,255,255,.25)!important}
.community-sidebar-text{color:rgba(255,255,255,.5)!important}
.community-sidebar-avatar{background:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.6)!important}
.community-sidebar-input{background:rgba(255,255,255,.06)!important;color:#fff!important;border-color:rgba(255,255,255,.1)!important}
.community-login-banner{background:rgba(239,68,68,.15)!important;color:#fca5a5!important}
.community-login-banner a{color:#fff!important}
.guide-map-pin {
  margin-left: auto;
  font-size: 20px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}
.guide-map-pin:hover { opacity: 1; }

/* ── Mobile Responsive ── */
@media (max-width: 980px) {
  /* Hero: shorter on mobile, prevent text overlap */
  .guide-hero { height: 220px; }
  .guide-hero-bottom { left: 16px; right: 16px; bottom: 14px; }
  .guide-hero-bottom h1 { font-size: 22px; }
  .guide-hero-bottom .guide-subtitle { font-size: 12px; }
  .guide-hero-bottom .guide-quote { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .guide-hero-top { top: 12px; left: 12px; right: 12px; }

  /* Live strip: compact */
  .guide-live-strip { margin: 12px 12px 0; padding: 10px 12px; gap: 8px; }
  .guide-live-status { font-size: 12px; padding: 3px 10px; }
  .guide-live-counts { gap: 8px; font-size: 11px; }

  /* Sections: tighter padding */
  .guide-section { padding: 16px 12px 0; }
  .guide-section-title { font-size: 17px; }

  /* Spot cards: smaller on mobile, ensure scroll works */
  .guide-hscroll { padding-left: 12px; padding-right: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .guide-spot-card { width: 200px; min-width: 200px; scroll-snap-align: start; }
  .guide-spot-img { height: 130px; }
  .guide-spot-body { padding: 10px; }
  .guide-spot-body h3 { font-size: 14px; }
  .guide-spot-body p { font-size: 12px; }

  /* Tip items: prevent text overflow */
  .guide-tip-item { padding: 12px; gap: 10px; }
  .guide-tip-content h4 { font-size: 14px; white-space: normal; overflow-wrap: break-word; }
  .guide-tip-content p { white-space: normal; overflow-wrap: break-word; text-overflow: clip; }
  .guide-tip-thumb { width: 44px; height: 44px; }
  .guide-tip-icon { width: 36px; height: 36px; font-size: 17px; }

  /* Stats grid */
  .guide-stats-grid { gap: 8px; }
  .guide-stat-value { font-size: 14px; }

  /* Community items */
  .guide-community-item { padding: 10px 12px; }

  /* CTA */
  .guide-cta { padding: 24px 12px 32px; }

  /* Story */
  .guide-story-title { font-size: 18px; }
  .guide-story-text { font-size: 13px; }

  /* Guide wrap: bottom padding for mobile nav bar */
  .guide-wrap { padding-bottom: 64px; }

  /* Today overview: tighter grid */
  .today-place-card { padding: 12px !important; }

  /* Vereine: responsive chips */
  .guide-verein-chips { gap: 6px; }
  .guide-verein-chip { font-size: 11px; padding: 5px 10px; }
  .guide-verein-item { padding: 10px 12px; gap: 10px; }
  .guide-verein-icon { width: 36px; height: 36px; font-size: 18px; }
}

/* ── Vereine & Sport ── */
.guide-verein-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.guide-verein-chip {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.guide-verein-chip:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.guide-verein-chip--active {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
  color: #c4b5fd;
}
.guide-verein-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}

/* Initial nur 3 Items zeigen */
.guide-verein-list--collapsed .guide-verein-item:nth-child(n+4) {
  display: none;
}

.guide-verein-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--accent, #3b82f6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.guide-verein-more:hover {
  background: rgba(59,130,246,0.06);
}
.guide-verein-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.guide-verein-item:last-child { border-bottom: none; }
.guide-verein-item:hover { background: rgba(255,255,255,0.03); }
.guide-verein-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.guide-verein-body {
  flex: 1;
  min-width: 0;
}
.guide-verein-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-verein-name a:hover {
  text-decoration: underline;
}
.guide-verein-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.guide-verein-dist {
  color: rgba(139,92,246,0.7);
  font-weight: 600;
}
.guide-verein-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.guide-verein-map-btn,
.guide-verein-web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.guide-verein-map-btn:hover,
.guide-verein-web-btn:hover {
  background: rgba(255,255,255,0.12);
}
.guide-verein-attribution {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}
.guide-verein-attribution a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.guide-verein-attribution a:hover {
  text-decoration: underline;
}
