/* Per-toilet SEO pages (server-rendered by lib/renderToiletPage.js).
   The smart app banner is mobile-only and slim by design: Google's
   intrusive-interstitial policy penalises large install prompts, and the
   pages' rankings are the whole point. Keep it under ~60px. */

.app-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-primary-light);
  box-shadow: 0 1px 4px rgba(78, 38, 0, 0.15);
}

/* Mobile only — desktop can't act on an install prompt. */
@media (max-width: 768px) {
  .app-banner { display: flex; }
  html.no-app-banner .app-banner { display: none; }
}

.app-banner-close {
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 0.25rem;
  cursor: pointer;
}

.app-banner-icon { border-radius: 8px; }

.app-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: var(--color-text-primary);
}

.app-banner-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.app-banner-get {
  background: var(--color-primary-gradient-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.brand-strip {
  background: var(--color-primary-gradient-deep);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-strip .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffedbe;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-strip img { border-radius: 6px; }

.brand-nav {
  display: flex;
  gap: 1.1rem;
}

.brand-nav a {
  color: #ffedbe;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 237, 190, 0.45);
  text-underline-offset: 3px;
}

.crumbs {
  padding: 0.5rem 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.crumbs a { color: var(--color-primary-deep); }
.crumbs [aria-current="page"] { color: var(--color-text-secondary); font-weight: 600; }

.stars {
  color: #e08a1e;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin: 0.25rem 0 0.75rem;
}

.stars span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: normal;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}

.chip {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-primary-light);
  color: var(--color-text-secondary);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.details {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: #444;
  font-size: .95em;
}

.mini-map {
  position: relative;
  display: block;
  width: 256px;
  max-width: 100%;
  margin: 0.5rem 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-primary-light);
}

.mini-map img { display: block; }

.mini-map-pin {
  position: absolute;
  transform: translate(-50%, -90%);
  font-size: 1.4rem;
  pointer-events: none;
}

.mini-map-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 0.6rem;
  padding: 0 0.3rem;
}

.install-panel {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--color-primary-gradient-deep);
  color: #ffedbe;
}

.install-panel p { margin: 0.25rem 0 0.75rem; font-size: 0.9rem; }

.install-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.store-badge {
  background: #201a12;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.toilet-page blockquote {
  border-left: 3px solid var(--color-primary-light);
  background: var(--color-bg-secondary);
  margin: 0.5rem 0;
  padding: 0.5rem 0.8rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.nearby ul { list-style: none; padding: 0; margin: 0.25rem 0 0; }

.nearby li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--color-primary-light);
}

.nearby a { color: var(--color-primary-deep); }
.nearby span { color: var(--color-text-muted); font-size: 0.85rem; white-space: nowrap; }

.toilet-page .panel { text-align: left; }

.toilet-page h1 { margin: 0.5rem 0 0.15rem; }

.toilet-page .panel > p:first-of-type { margin-top: 0; }

.toilet-page h2 {
  font-size: 1.05rem;
  color: var(--color-primary-deep);
  margin: 1.1rem 0 0.4rem;
  text-align: left;
}
