*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: var(--font-body), Inter, system-ui, sans-serif;
  background-color: var(--poopla-cream);
  color: var(--poopla-ink);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

html.page-scroll,
body.page-scroll,
html.page-hub,
body.page-hub {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
}

body.page-scroll .container,
body.page-hub .container {
  height: auto !important;
  overflow: visible !important;
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 100%;
  padding: 0;
  margin: 0;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.site-header {
  background: var(--poopla-navy) !important;
  color: #fff;
  border-bottom: none;
  min-height: var(--header-height);
  height: auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1001;
  position: relative;
  box-shadow: 0 2px 5px var(--box-shadow-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

html.poopla-shell-desktop .toilet-counter.header-meta {
  justify-content: center;
  align-self: center;
}

html.poopla-shell-desktop .toilet-counter__count {
  margin: 0;
  line-height: 1;
}

html.poopla-shell-desktop .toilet-counter strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  vertical-align: -0.05em;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}

.header-h1 {
  display: block;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.toilet-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-left: 0 !important;
}

.toilet-counter strong {
  font-size: 18px;
}

.site-nav {
  flex: 0 1 auto;
  min-width: 0;
  transition: all 0.3s ease;
}

.site-nav__primary {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.site-nav ul li {
  margin: 0;
  display: flex;
  align-items: center;
}

.site-nav__primary > li > a,
.site-nav-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: 40px;
  line-height: 1.2;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.site-nav__primary > li > a {
  color: #fff !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-nav__primary > li > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.site-nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav-more__btn {
  color: #fff !important;
  background: transparent;
  border: none;
}

.site-nav-more__btn:hover,
.site-nav-more__btn.is-open,
.site-nav-more__btn.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.site-nav-more__panel[hidden] {
  display: none !important;
}

.site-nav-more__panel:not([hidden]) {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: min(300px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow: auto;
  background: var(--poopla-cream, #F9F7EF);
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-floating, 0 16px 40px rgba(8, 45, 74, 0.22));
  z-index: 12050;
  padding: 8px;
}

.site-nav-more__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
  justify-content: flex-start !important;
}

.site-nav-more__list a,
.site-nav-more__list button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  width: 100%;
  text-align: left !important;
  padding: 10px 12px;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent !important;
  color: var(--poopla-navy, #082D4A) !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.site-nav-more__list a i,
.site-nav-more__list button i {
  width: 20px;
  flex-shrink: 0;
  color: var(--poopla-navy, #082D4A) !important;
  text-align: center;
  display: inline-block !important;
}

.site-nav-more__list a:hover,
.site-nav-more__list button:hover,
.site-nav-more__list a.is-active,
.site-nav-more__list a.active {
  background: var(--poopla-sky-pale, #EAF5FF) !important;
  color: var(--poopla-navy, #082D4A) !important;
}

.menu-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  box-shadow: none !important;
  transform: none !important;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 1100px) {
  html.poopla-shell-desktop .toilet-counter {
    display: none;
  }
}

html.poopla-shell-mobile .toilet-counter {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: 11px;
  line-height: 1.25;
  max-width: min(52vw, 200px);
  min-width: 0;
  overflow: hidden;
}

html.poopla-shell-mobile .toilet-counter__count,
html.poopla-shell-mobile .toilet-counter .header-h1 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html.poopla-shell-mobile .toilet-counter .header-h1 {
  margin-top: 1px !important;
}

html.poopla-shell-mobile .toilet-counter strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 768px) {
  .toilet-counter.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-width: min(52vw, 200px);
    min-width: 0;
    overflow: hidden;
  }

  .toilet-counter.header-meta .toilet-counter__count,
  .toilet-counter.header-meta .header-h1 {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .site-header {
    gap: 8px;
    padding: 0.5rem 0.75rem;
  }

  .site-nav__primary {
    gap: 0.15rem;
  }

  .site-nav ul {
    gap: 0.15rem;
  }

  .site-nav ul li a {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    min-height: 36px;
  }

  .site-nav-more__btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    min-height: 36px;
  }

  .site-nav ul li a i {
    margin-right: 0.2rem;
  }

  .site-nav ul li a[href="/app"],
  .site-nav ul li a.poopla-get-app {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.85rem;
    min-height: 36px;
  }

  .poopla-logo__word {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 920px) {
  .site-nav__primary > li > a i,
  .site-nav-more__btn i {
    display: none;
  }

  .site-nav ul li a,
  .site-nav-more__btn {
    padding: 0.4rem 0.45rem;
  }
}

@media (max-width: 768px) {
  .site-nav,
  .menu-toggle {
    display: none !important;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    z-index: 1001;
  }
}

.site-footer {
  width: 100%;
  height: var(--footer-height);
  background-color: var(--poopla-navy);
  color: #fff;
  text-align: center;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer p {
  margin: 0;
  padding: 0 12px;
  color: #fff;
  opacity: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}

.site-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.site-footer__sep {
  opacity: 0.7;
  margin: 0 2px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.nav-link {
  margin-top: 10px;
  display: inline-block;
  background-color: var(--poopla-navy);
  color: #fff !important;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(8, 45, 74, 0.2);
}

.nav-link:hover {
  background-color: var(--poopla-navy-900);
  transform: translateY(-1px);
}

.nav-link i {
  margin-right: 5px;
}

.map-controls {
  position: absolute;
  top: 70px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--poopla-navy);
  color: #fff;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.map-controls button:hover {
  background-color: var(--poopla-navy-900);
  transform: scale(1.05);
}

.mobile-location-pin {
  display: none;
}

#loading-indicator {
  background-color: var(--poopla-navy) !important;
  color: #fff !important;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-weight: 600;
}

#loading-indicator .fa-spinner {
  margin-right: 10px;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.locating {
  animation: pulse 1.5s infinite;
}

.toilet-card .opening-times {
  margin-top: 10px;
  padding: 8px;
  background: rgba(8, 45, 74, 0.08);
  border-radius: 4px;
}

.toilet-card .opening-times h4 {
  margin: 0 0 5px;
  font-size: 14px;
  color: var(--poopla-navy);
}

.toilet-card .opening-times p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--poopla-muted);
}

.facilities i {
  margin-right: 8px;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: 0 -2px 20px var(--box-shadow-color);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 768px) {
  body:not(.page-scroll):not(.page-hub):not(.page-place) .container {
    position: fixed;
    top: var(--poopla-mobile-header-h, 60px);
    bottom: var(--bottom-nav-height, 70px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
  }

  body:not(.page-scroll):not(.page-hub):not(.page-place) .poopla-app-view:not(#map-view) {
    padding-bottom: 16px;
  }

  #map {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .leaflet-container .leaflet-popup-pane {
    z-index: 3500 !important;
  }

  .leaflet-popup-content {
    margin: 15px !important;
    min-width: 0 !important;
    max-width: min(320px, calc(100vw - 32px)) !important;
    box-sizing: border-box;
  }

  .leaflet-popup-content.leaflet-popup-scrolled {
    max-height: min(70vh, 480px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    max-width: min(340px, calc(100vw - 24px)) !important;
  }

  .leaflet-popup-close-button {
    font-size: 24px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    top: 10px !important;
    right: 10px !important;
  }

  .site-footer {
    display: none;
  }

  #geolocation-button {
    display: none !important;
  }
}

.poopla-ad-slot {
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.poopla-ad-clamp--map-overlay {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0.5rem;
  transform: translateX(-50%);
  z-index: 900;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  box-sizing: border-box;
  pointer-events: auto;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.96);
}

.poopla-ad-clamp--map-overlay .poopla-ad-slot {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.poopla-ad-clamp--map-overlay .adsbygoogle,
.poopla-ad-clamp--map-overlay iframe {
  max-width: 100% !important;
  max-height: 100% !important;
}

.poopla-ad-clamp--map-overlay.poopla-ad-slot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--poopla-navy, #082D4A);
  padding: 0.25rem 0.5rem;
  min-height: 0;
}

.dark-mode .poopla-ad-clamp--map-overlay {
  background: rgba(30, 30, 30, 0.96);
}

.dark-mode .poopla-ad-clamp--map-overlay.poopla-ad-slot--placeholder {
  border-color: rgba(167, 226, 46, 0.45);
  color: #A7E22E;
}

body:has(#poopla-toilet-sheet:not([hidden])) .poopla-ad-clamp--map-overlay {
  display: none !important;
}

.poopla-ad-slot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--poopla-navy);
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(8, 45, 74, 0.06),
    rgba(8, 45, 74, 0.06) 8px,
    rgba(8, 45, 74, 0.12) 8px,
    rgba(8, 45, 74, 0.12) 16px
  );
  color: var(--poopla-navy);
  min-height: 90px;
}

.poopla-ad-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding: 0.75rem;
}

.poopla-ad-slot__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.poopla-ad-slot__label {
  font-size: 0.95rem;
  font-weight: 600;
}

.poopla-ad-slot__key {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0.7;
}

.poopla-list-ad {
  box-sizing: border-box;
  margin: 0 0 12px;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  background: var(--poopla-white, #fff);
  box-shadow: var(--shadow-card, 0 2px 10px rgba(8, 45, 74, 0.08));
}

.poopla-list-ad .poopla-ad-slot {
  max-width: none;
  margin: 0;
  padding: 0;
}

.poopla-list-ad .poopla-ad-slot--placeholder {
  min-height: 90px;
  border-radius: 0;
  border: none;
  border-top: 2px dashed rgba(8, 45, 74, 0.25);
  border-bottom: 2px dashed rgba(8, 45, 74, 0.25);
}

@media (max-width: 768px) {
  .poopla-ad-clamp--map-overlay {
    bottom: 0.35rem;
  }
}

.seo-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poopla-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.poopla-logo__mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.poopla-logo__word {
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.poopla-logo--on-dark .poopla-logo__word {
  color: #fff;
}

.poopla-logo--on-light .poopla-logo__word {
  color: var(--poopla-navy);
}

.site-header {
  background: var(--poopla-navy) !important;
  color: #fff;
  border-bottom: none;
  min-height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
}

.site-header .site-title,
.site-header .site-title a {
  color: #fff !important;
  text-shadow: none !important;
  font-size: inherit !important;
}

.header-meta,
.toilet-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.header-h1 {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

.site-nav__primary > li > a {
  color: #fff !important;
}

.site-nav__primary > li > a.active,
.site-nav__primary > li > a:hover {
  color: var(--poopla-lime) !important;
}

.site-nav .site-nav-more__list a,
.site-nav .site-nav-more__list button,
.site-nav .site-nav-more__list a:hover,
.site-nav .site-nav-more__list a:focus,
.site-nav .site-nav-more__list a.active,
.site-nav .site-nav-more__list a.is-active {
  color: var(--poopla-navy, #082D4A) !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

.poopla-btn-primary,
button.poopla-btn-primary,
#search-button,
.search-pod-actions button:not(.ask-poopla-pod-btn) {
  background: var(--poopla-lime) !important;
  color: var(--poopla-navy) !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-weight: 700;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
}

.poopla-btn-primary:hover,
#search-button:hover {
  background: var(--poopla-lime-dark) !important;
  color: var(--poopla-navy) !important;
}

.poopla-btn-secondary {
  background: transparent;
  color: var(--poopla-navy);
  border: 2px solid var(--poopla-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
}

.poopla-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.poopla-status--open {
  background: rgba(46, 155, 91, 0.15);
  color: var(--poopla-success);
}

.poopla-status--closed {
  background: rgba(217, 83, 79, 0.12);
  color: var(--poopla-danger);
}

.poopla-status--unknown {
  background: var(--poopla-sky-pale);
  color: var(--poopla-muted);
}

.mobile-bottom-nav {
  background: var(--poopla-navy) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: auto;
  min-height: 64px;
}

.mobile-nav-item {
  color: rgba(255, 255, 255, 0.7) !important;
  min-height: 44px;
  flex: 1;
  gap: 4px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--poopla-lime) !important;
}

.mobile-nav-item i {
  font-size: 1.15rem;
}

.mobile-nav-item span {
  font-size: 11px;
  font-weight: 600;
}

.poopla-more-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(8, 45, 74, 0.45);
}

.poopla-more-panel.is-open {
  display: block;
}

.poopla-more-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(85vh, 640px);
  overflow: auto;
  background: var(--poopla-cream);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0));
  box-shadow: var(--shadow-floating);
}

.poopla-more-sheet h2 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  color: var(--poopla-navy);
  font-size: 1.25rem;
}

.poopla-more-sheet .poopla-more-sub {
  margin: 0 0 16px;
  color: var(--poopla-muted);
  font-size: 0.95rem;
}

.poopla-more-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.poopla-more-list a,
.poopla-more-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  min-height: 48px;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--poopla-border);
  color: var(--poopla-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.poopla-more-list a i,
.poopla-more-list button i {
  width: 22px;
  color: var(--poopla-navy);
}

.poopla-more-list .poopla-more-app-link a {
  background: var(--poopla-lime);
  color: var(--poopla-navy) !important;
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-top: 8px;
  font-weight: 800;
}

.poopla-more-list .poopla-more-app-link a i {
  color: var(--poopla-navy);
}

.poopla-more-list .poopla-more-app-link a:hover {
  background: var(--poopla-lime-dark);
}

.poopla-more-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--poopla-navy);
  font-size: 1.25rem;
  cursor: pointer;
}

.poopla-app-view {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 500;
  background: var(--poopla-cream);
  overflow: auto;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0));
}

.poopla-app-view.is-active {
  display: block;
}

#map-view.poopla-app-view {
  display: block;
  background: transparent;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  z-index: 0;
}

#map-view.poopla-app-view.is-active {
  visibility: visible;
  z-index: 500;
}

#map-view.is-active #map,
#map-view.is-active .map-controls,
#map-view.is-active .mobile-location-pin,
#map-view.is-active #search-container,
#map-view.is-active .poopla-ad-clamp {
  pointer-events: auto;
}

#map-view.is-active .poopla-map-chrome {
  pointer-events: none;
}

.poopla-toilet-card {
  background: var(--poopla-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.poopla-toilet-card__media {
  flex: 0 0 88px;
  width: 88px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--poopla-sky-pale, #EAF5FF);
  align-self: stretch;
  position: relative;
  cursor: pointer;
}

.poopla-toilet-card__media img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  display: block;
}

.poopla-toilet-card__photo-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(8, 45, 74, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poopla-toilet-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.poopla-toilet-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.poopla-toilet-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--poopla-navy);
  min-width: 0;
  flex: 1;
}

.poopla-toilet-card .meta {
  color: var(--poopla-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.poopla-amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.poopla-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--poopla-ink);
  background: var(--poopla-sky-pale);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.poopla-amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--poopla-sky-pale, #EAF5FF);
  color: var(--poopla-navy, #082D4A);
  font-size: 0.95rem;
  cursor: pointer;
  font: inherit;
}

.poopla-amenity-icon.is-active,
.poopla-amenity-icon:focus-visible {
  border-color: var(--poopla-lime, #A7E22E);
  background: color-mix(in srgb, var(--poopla-lime, #A7E22E) 28%, var(--poopla-sky-pale, #EAF5FF));
  outline: none;
}

.poopla-amenity-row--icons {
  position: relative;
  align-items: center;
}

.poopla-amenity-hint {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--poopla-navy, #082D4A);
  line-height: 1.3;
}

.poopla-amenity-hint[hidden] {
  display: none !important;
}

.poopla-toilet-sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-height, 70px);
  z-index: 11000;
  max-height: calc(100vh - var(--poopla-mobile-header-h, 60px) - var(--bottom-nav-height, 70px) - 8px);
  max-height: calc(100dvh - var(--poopla-mobile-header-h, 60px) - var(--bottom-nav-height, 70px) - 8px);
  overflow: auto;
  background: var(--poopla-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-floating);
  padding: 10px 16px 20px;
  color: var(--poopla-ink);
  -webkit-overflow-scrolling: touch;
}

.poopla-toilet-sheet.is-open {
  display: block;
  animation: poopla-sheet-in 180ms ease-out;
}

.poopla-toilet-sheet.is-peek {
  max-height: none;
  overflow: visible;
}

/* Clip expanded content in peek so drag-up can grow it open */
.poopla-toilet-sheet.is-peek [data-sheet-expanded] {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.poopla-toilet-sheet.is-peek [data-sheet-amenities-expanded] {
  display: none !important;
}

.poopla-toilet-sheet.is-expanded [data-sheet-amenities-peek] {
  display: none !important;
}

.poopla-toilet-sheet.is-expanded [data-sheet-expanded] {
  max-height: none;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

.poopla-toilet-sheet.is-dragging-expand {
  overflow: hidden;
}

.poopla-toilet-sheet.is-expanded .poopla-sheet-swipe-cue {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.poopla-toilet-sheet.is-dragging,
.poopla-toilet-sheet.is-dismissing {
  animation: none !important;
  will-change: transform, opacity;
}

@keyframes poopla-sheet-in {
  from { transform: translateY(12px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}

.poopla-toilet-sheet__grab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 8px;
  padding: 2px 12px 4px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.poopla-toilet-sheet.is-dragging .poopla-toilet-sheet__grab {
  cursor: grabbing;
}

.poopla-toilet-sheet__handle {
  width: 44px;
  height: 5px;
  background: color-mix(in srgb, var(--poopla-navy, #082D4A) 28%, var(--poopla-border, #DCE6EC));
  border-radius: 999px;
  margin: 0;
  position: relative;
  flex-shrink: 0;
}

.poopla-toilet-sheet__handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 36px;
}

.poopla-toilet-sheet.is-dragging .poopla-toilet-sheet__handle {
  background: color-mix(in srgb, var(--poopla-navy) 45%, var(--poopla-border));
}

.poopla-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.poopla-sheet-kicker {
  display: none !important;
}

.poopla-sheet-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--poopla-navy);
  font-size: 1.25rem;
  line-height: 1.25;
}

.poopla-sheet-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.poopla-sheet-icon-btn,
.poopla-sheet-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--poopla-cream);
  color: var(--poopla-navy);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poopla-sheet-more {
  position: absolute;
  top: 58px;
  right: 10px;
  z-index: 5;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: var(--poopla-white, #fff);
  border: 1px solid var(--poopla-border, #DCE6EC);
  box-shadow: var(--shadow-floating, 0 12px 28px rgba(8, 45, 74, 0.16));
}

.poopla-sheet-more[hidden] {
  display: none !important;
}

.poopla-sheet-more__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--poopla-navy, #082D4A);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.poopla-sheet-more__item:hover,
.poopla-sheet-more__item:focus-visible {
  background: var(--poopla-sky-pale, #EAF5FF);
  outline: none;
}

.poopla-sheet-more__meta {
  margin: 4px 6px 2px;
  padding: 8px 6px 4px;
  border-top: 1px solid var(--poopla-border, #DCE6EC);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poopla-muted, #647789);
  letter-spacing: 0.01em;
}

.poopla-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 10px 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--poopla-muted, #647789);
}

.poopla-sheet-meta__sep {
  color: color-mix(in srgb, var(--poopla-muted, #647789) 70%, transparent);
}

.poopla-sheet-meta__rating {
  color: var(--poopla-navy, #082D4A);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.poopla-sheet-meta__rating .fa-star {
  color: #E8A317;
  font-size: 0.85em;
}

.poopla-sheet-meta__rating.is-empty {
  color: var(--poopla-muted, #647789);
  font-weight: 600;
}

.poopla-sheet-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 4px;
}

.poopla-sheet-swipe-cue {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--poopla-navy, #082D4A);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: grab;
  max-height: 22px;
  opacity: 0.7;
  pointer-events: auto;
  white-space: nowrap;
}

/* Stay visible for the whole peek — survives detail reloads */
.poopla-toilet-sheet.is-peek .poopla-sheet-swipe-cue {
  display: inline-flex;
}

.poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-sheet-swipe-cue {
  opacity: 1;
  animation: poopla-swipe-cue-intro 1.6s ease;
}

.poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-toilet-sheet__handle {
  animation: poopla-handle-nudge 1.6s ease;
}

.poopla-sheet-swipe-cue i {
  font-size: 0.72rem;
  color: var(--poopla-navy, #082D4A);
}

.poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-sheet-swipe-cue i {
  animation: poopla-swipe-chevron 0.8s ease-in-out 2;
}

@keyframes poopla-swipe-cue-intro {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes poopla-swipe-chevron {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes poopla-handle-nudge {
  0%, 100% { transform: translateY(0); }
  16% { transform: translateY(-4px); }
  32% { transform: translateY(0); }
  48% { transform: translateY(-3px); }
  64% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-sheet-swipe-cue,
  .poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-toilet-sheet__handle,
  .poopla-toilet-sheet.is-peek.is-swipe-cue .poopla-sheet-swipe-cue i {
    animation: none !important;
  }

  .poopla-toilet-sheet.is-peek .poopla-sheet-swipe-cue {
    opacity: 0.85;
  }
}

.poopla-sheet-expanded {
  margin-top: 12px;
}

.poopla-sheet-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border-radius: 12px;
  background: var(--poopla-cream, #F9F7EF);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.poopla-sheet-tabs__btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--poopla-muted, #647789);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.poopla-sheet-tabs__btn.is-active {
  background: var(--poopla-white, #fff);
  color: var(--poopla-navy, #082D4A);
  box-shadow: 0 1px 3px rgba(8, 45, 74, 0.08);
}

.poopla-sheet-tabpanel[hidden] {
  display: none !important;
}

.poopla-sheet-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  max-width: 100%;
}

.poopla-sheet-strip__tile {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--poopla-sky-pale, #EAF5FF);
  aspect-ratio: 1;
  cursor: pointer;
  line-height: 0;
}

.poopla-sheet-strip__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poopla-sheet-strip__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 45, 74, 0.62);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px;
  text-align: center;
}

.poopla-sheet-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.poopla-sheet-photos-grid__item {
  display: block;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--poopla-sky-pale, #EAF5FF);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  line-height: 0;
}

.poopla-sheet-photos-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poopla-sheet-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.poopla-sheet-footer-row .poopla-sheet-id {
  margin: 0;
}

.poopla-sheet-reviews__loading,
.poopla-sheet-reviews__empty {
  margin: 8px 0 12px;
  color: var(--poopla-muted, #647789);
  font-size: 0.92rem;
}

.poopla-sheet-reviews__summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}

.poopla-sheet-reviews__score {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--poopla-navy, #082D4A);
  line-height: 1;
}

.poopla-sheet-reviews__count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--poopla-muted, #647789);
}

.poopla-review-card {
  padding: 12px 0;
  border-top: 1px solid var(--poopla-border, #DCE6EC);
}

.poopla-review-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--poopla-muted, #647789);
}

.poopla-review-card__top strong {
  color: var(--poopla-navy, #082D4A);
}

.poopla-review-card__quote {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--poopla-ink, #10202D);
}

.poopla-sheet-reviews__rate {
  width: 100%;
  margin-top: 12px;
}

.poopla-sponsor-strip {
  margin: 8px 0 4px;
}

.poopla-sponsor-strip[hidden] {
  display: none !important;
}

.poopla-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--poopla-navy) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--poopla-navy) 18%, transparent);
  color: var(--poopla-navy);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.2;
}

.poopla-sponsor-badge .sponsored-label {
  color: var(--poopla-navy);
}

.poopla-sponsor-badge__count {
  color: var(--poopla-muted);
  font-weight: 700;
}

.poopla-sponsor-badge:hover,
.poopla-sponsor-badge:focus-visible {
  background: color-mix(in srgb, var(--poopla-lime) 28%, transparent);
  border-color: var(--poopla-lime);
  outline: none;
}

.poopla-sheet-photo {
  margin: 12px 0 4px;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  background: var(--poopla-sky-pale, #EAF5FF);
  border: 1px solid var(--poopla-border, #DCE6EC);
}

.poopla-sheet-photo__hero {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  line-height: 0;
  text-align: left;
}

.poopla-sheet-photo__hero img {
  display: block;
  width: 100%;
  max-height: 148px;
  object-fit: cover;
}

.poopla-sheet-photo__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(8, 45, 74, 0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.poopla-sheet-photo__credit {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--poopla-muted, #647789);
  line-height: 1.3;
}

.poopla-sheet-photo__thumbs {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.poopla-sheet-photo__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--poopla-cream, #F9F7EF);
  cursor: pointer;
}

.poopla-sheet-photo__thumb.is-active,
.poopla-sheet-photo__thumb:focus-visible {
  border-color: var(--poopla-lime, #A7E22E);
  outline: none;
}

.poopla-sheet-photo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poopla-sheet-distance {
  margin: 2px 0 0;
  color: var(--poopla-navy, #082D4A);
  font-size: 0.95rem;
  font-weight: 700;
}

.poopla-toilet-sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.poopla-toilet-sheet__actions--primary {
  margin-top: 14px;
  margin-bottom: 4px;
}

.poopla-toilet-sheet__actions .poopla-btn-primary {
  flex: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.poopla-sheet-block {
  margin: 14px 0 0;
}

.poopla-sheet-block h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--poopla-muted);
}

.poopla-sheet-block p {
  margin: 0;
  white-space: pre-line;
  font-size: 0.95rem;
  color: var(--poopla-ink);
}

.poopla-sheet-hours {
  margin: 10px 0 0;
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: var(--radius-sm, 12px);
  background: var(--poopla-cream, #F9F7EF);
  overflow: hidden;
}

.poopla-sheet-hours--empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.poopla-sheet-hours > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  box-sizing: border-box;
}

.poopla-sheet-hours > summary::-webkit-details-marker {
  display: none;
}

.poopla-sheet-hours__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--poopla-navy, #082D4A);
}

.poopla-sheet-hours__hint {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--poopla-muted, #647789);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poopla-sheet-hours__chevron {
  color: var(--poopla-navy, #082D4A);
  font-size: 0.75rem;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.poopla-sheet-hours[open] > summary .poopla-sheet-hours__chevron {
  transform: rotate(90deg);
}

.poopla-sheet-hours__body {
  margin: 0;
  padding: 0 12px 12px;
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--poopla-ink, #10202D);
  border-top: 1px solid var(--poopla-border, #DCE6EC);
  padding-top: 10px;
}

.poopla-sheet-trust {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--poopla-success);
  font-weight: 600;
}

.poopla-sheet-rating {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--poopla-border);
}

.poopla-sheet-rating__line {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--poopla-ink);
  margin-bottom: 8px;
}

.poopla-sheet-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poopla-sheet-secondary--footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--poopla-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  align-items: stretch;
}

.poopla-sheet-secondary--footer .poopla-text-btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
}

.poopla-sheet-secondary--footer .poopla-text-btn:hover,
.poopla-sheet-secondary--footer .poopla-text-btn:focus-visible {
  background: var(--poopla-sky-pale, #EAF5FF);
}

.poopla-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--poopla-navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.poopla-sheet-id {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--poopla-muted);
}

.poopla-btn-secondary.poopla-toggle-save[aria-pressed="true"] i,
#poopla-sheet-save[aria-pressed="true"] i {
  color: var(--poopla-danger);
}

.poopla-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: rgba(8, 45, 74, 0.55);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.poopla-modal-panel {
  display: flex;
  flex-direction: column;
  background: var(--poopla-white, #fff);
  border-radius: var(--radius-md, 16px);
  width: 100%;
  max-width: min(520px, 100%);
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  overflow: hidden;
  box-shadow: var(--shadow-floating, 0 14px 40px rgba(8, 45, 74, 0.16));
  box-sizing: border-box;
}

.poopla-modal-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--poopla-border, #DCE6EC);
  flex-shrink: 0;
}

.poopla-modal-panel__title {
  color: var(--poopla-navy, #082D4A);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.poopla-modal-panel__head .poopla-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--poopla-muted, #647789);
  padding: 0 4px;
  flex-shrink: 0;
}

.poopla-modal-panel__body {
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
}

.poopla-modal-panel__foot {
  padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--poopla-border, #DCE6EC);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .poopla-modal-overlay {
    align-items: flex-end;
    padding: max(10px, env(safe-area-inset-top, 0px)) 8px 0;
  }

  .poopla-modal-panel {
    margin: 0;
    max-width: 100%;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 10px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 10px);
    border-radius: 16px 16px 0 0;
  }

  .poopla-modal-panel__foot {
    padding-bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }
}

.poopla-modal-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
}

.poopla-modal-btn--ghost {
  background: #f5f5f5;
  color: #666;
}

.poopla-modal-btn--primary {
  background: var(--poopla-lime, #A7E22E);
  color: var(--poopla-navy, #082D4A);
}

.poopla-file {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.poopla-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poopla-file__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--poopla-lime, #A7E22E);
  color: var(--poopla-navy, #082D4A);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.poopla-file__btn:hover {
  background: var(--poopla-lime-dark, #96cb29);
}

.poopla-file__input:focus-visible + .poopla-file__btn {
  outline: 3px solid rgba(167, 226, 46, 0.55);
  outline-offset: 2px;
}

.poopla-file__names {
  margin: 0;
  font-size: 0.85rem;
  color: var(--poopla-muted, #647789);
  line-height: 1.35;
  word-break: break-word;
}

.poopla-file__names.is-empty {
  font-style: italic;
}

.poopla-suggest-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.poopla-suggest-label {
  display: block;
  font-weight: 700;
  color: var(--poopla-navy, #082D4A);
  margin-bottom: 6px;
}

.poopla-suggest-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--poopla-navy, #082D4A);
  cursor: pointer;
}

.poopla-suggest-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid var(--poopla-border, #DCE6EC);
  border-radius: 10px;
  font: inherit;
  min-width: 0;
}

textarea.poopla-suggest-input {
  resize: vertical;
}

.poopla-suggest-hours {
  margin-top: 10px;
  padding: 10px;
  border: 2px solid var(--poopla-border, #DCE6EC);
  border-radius: 10px;
  min-width: 0;
  overflow-x: hidden;
}

.poopla-suggest-hours__head,
.poopla-suggest-hours__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
}

.poopla-suggest-hours__head {
  font-weight: 700;
  color: var(--poopla-muted, #647789);
  font-size: 0.8rem;
}

.poopla-suggest-hours__day {
  color: var(--poopla-ink, #10202D);
  font-size: 0.9rem;
  font-weight: 600;
}

.poopla-suggest-hours .poopla-suggest-input {
  padding: 8px 6px;
  font-size: 16px;
}

.poopla-suggest-hint {
  margin: 4px 0 0;
  color: var(--poopla-muted, #647789);
  font-size: 12px;
}

.poopla-suggest-facilities {
  padding: 12px;
  border: 2px solid var(--poopla-border, #DCE6EC);
  border-radius: 10px;
}

.poopla-suggest-facilities__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 420px) {
  .poopla-suggest-facilities__row {
    grid-template-columns: 1fr 1fr;
  }
}

.poopla-suggest-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--poopla-border, #DCE6EC);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  min-width: 0;
}

.poopla-suggest-chip:has(input:checked) {
  border-color: var(--poopla-navy, #082D4A);
  background: var(--poopla-sky-pale, #EAF5FF);
}

.poopla-suggest-chip input {
  width: 20px;
  height: 20px;
  accent-color: var(--poopla-navy, #082D4A);
  flex-shrink: 0;
}

.poopla-suggest-id {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--poopla-muted, #647789);
}

.poopla-suggest-id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--poopla-navy, #082D4A);
}

.poopla-suggest-msg {
  padding: 10px 12px;
  border-radius: 10px;
}

.poopla-suggest-msg[hidden] {
  display: none !important;
}

.poopla-map-chrome {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 100%;
  touch-action: manipulation;
}

.poopla-map-chrome *,
.mobile-location-pin,
.mobile-location-pin * {
  touch-action: manipulation;
}

.poopla-map-chrome > * {
  pointer-events: auto;
}

.poopla-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.poopla-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--poopla-border);
  background: var(--poopla-white);
  color: var(--poopla-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.poopla-filters-toggle[aria-expanded="true"] {
  background: var(--poopla-navy);
  color: #fff;
  border-color: var(--poopla-navy);
}

.poopla-filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--poopla-lime);
  color: var(--poopla-navy);
  font-size: 11px;
  font-weight: 800;
}

.poopla-filters-count:not(.is-visible) {
  display: none !important;
}

.poopla-filters-toggle,
button.poopla-filters-toggle {
  background: var(--poopla-white) !important;
  color: var(--poopla-navy) !important;
  border: 1px solid var(--poopla-border) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 6px 12px !important;
  min-height: 36px !important;
  transform: none !important;
}

.poopla-filters-toggle[aria-expanded="true"],
button.poopla-filters-toggle[aria-expanded="true"] {
  background: var(--poopla-navy) !important;
  color: #fff !important;
  border-color: var(--poopla-navy) !important;
}

.poopla-filter-chip,
button.poopla-filter-chip {
  background: var(--poopla-white) !important;
  color: var(--poopla-ink) !important;
  border: 1px solid var(--poopla-border) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 6px 12px !important;
  min-height: 36px !important;
  transform: none !important;
}

.poopla-filter-chip.is-active,
button.poopla-filter-chip.is-active {
  background: var(--poopla-lime) !important;
  color: var(--poopla-navy) !important;
  border-color: var(--poopla-lime) !important;
}

.poopla-desktop-views {
  display: none;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: fit-content;
}

.poopla-desktop-views button {
  appearance: none;
  border: none !important;
  background: transparent !important;
  color: var(--poopla-muted) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px !important;
  min-height: 0 !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}

.poopla-desktop-views button.is-active {
  background: var(--poopla-navy) !important;
  color: #fff !important;
}

.poopla-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.poopla-search-row input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0 !important;
  border-radius: var(--radius-md);
  border: 2px solid var(--poopla-border);
  padding: 0 14px;
  font-size: 16px;
  background: var(--poopla-white);
  color: var(--poopla-ink);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.poopla-search-row .ask-poopla-pod-btn,
.poopla-search-row button.ask-poopla-pod-btn.poopla-btn-secondary {
  flex: 0 0 auto;
  align-self: stretch;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0 !important;
  padding: 0 12px !important;
  gap: 6px;
  box-sizing: border-box;
  box-shadow: var(--shadow-card);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poopla-search-row .ask-poopla-pod-btn .ask-poopla-ai-badge {
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1;
  border-radius: 4px;
}

.poopla-search-submit {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: var(--radius-md);
  background: var(--poopla-lime) !important;
  color: var(--poopla-navy) !important;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-sizing: border-box;
}

.poopla-search-submit:hover {
  background: var(--poopla-lime-dark) !important;
  color: var(--poopla-navy) !important;
}

.poopla-filter-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.poopla-filter-chips.is-open {
  display: flex;
}

.poopla-filter-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--poopla-border);
  background: var(--poopla-white);
  color: var(--poopla-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.poopla-filter-chip:focus-visible,
.poopla-filters-toggle:focus-visible {
  outline: 3px solid var(--poopla-sky);
  outline-offset: 2px;
}

.poopla-nearest-cta {
  align-self: flex-start;
  box-shadow: var(--shadow-card);
}

.poopla-view-header {
  margin-bottom: 16px;
}

.poopla-view-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  color: var(--poopla-navy);
  font-size: 1.35rem;
}

.poopla-view-hint {
  margin: 0;
  color: var(--poopla-muted);
  font-size: 0.95rem;
}

.poopla-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 16px;
  background: var(--poopla-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--poopla-muted);
  margin: 8px 0;
}

.poopla-empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--poopla-sky-pale);
  color: var(--poopla-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.poopla-empty__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--poopla-navy);
  font-size: 1.05rem;
}

.poopla-empty__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.poopla-toilet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.poopla-toilet-card__actions .poopla-open-sheet {
  flex: 1 1 100%;
  order: -1;
}

.poopla-toilet-card__actions .poopla-view-on-map {
  flex: 1 1 auto;
  min-width: 0;
}

.poopla-toilet-card__actions .poopla-toggle-save {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-modal,
#reviews-modal.poopla-modal-overlay {
  background: rgba(8, 45, 74, 0.55) !important;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.rating-modal-content,
#reviews-modal .poopla-modal-panel {
  background: var(--poopla-white, #fff) !important;
  border-radius: var(--radius-md, 16px) !important;
  box-shadow: var(--shadow-floating, 0 14px 40px rgba(8, 45, 74, 0.16)) !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  margin: auto !important;
  overflow: hidden !important;
}

#reviews-modal .poopla-modal-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .rating-modal,
  #reviews-modal.poopla-modal-overlay {
    align-items: flex-end !important;
    padding: max(10px, env(safe-area-inset-top, 0px)) 8px 0 !important;
  }

  .rating-modal-content,
  #reviews-modal .poopla-modal-panel {
    margin: 0 !important;
    max-width: 100% !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 10px) !important;
    border-radius: 16px 16px 0 0 !important;
  }
}

.rating-modal-header {
  border-bottom: 1px solid var(--poopla-border, #DCE6EC) !important;
  padding: 14px 16px !important;
}

.rating-modal-header h3 {
  color: var(--poopla-navy, #082D4A) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.rating-modal-close {
  color: var(--poopla-muted, #647789) !important;
}

.rating-category label {
  color: var(--poopla-navy, #082D4A) !important;
  font-weight: 700 !important;
}

.rating-category textarea {
  border: 2px solid var(--poopla-border, #DCE6EC) !important;
  border-radius: var(--radius-md, 16px) !important;
  font-size: 16px !important;
}

.rating-category textarea:focus {
  border-color: var(--poopla-navy, #082D4A) !important;
}

.star-rating .star.active,
.star-rating .star:hover {
  color: var(--poopla-navy, #082D4A) !important;
}

.rating-modal-actions {
  border-top: 1px solid var(--poopla-border, #DCE6EC) !important;
}

.rating-modal .btn-cancel {
  background: var(--poopla-sky-pale, #EAF5FF) !important;
  color: var(--poopla-navy, #082D4A) !important;
  border-radius: var(--radius-pill, 999px) !important;
  font-weight: 700 !important;
}

.rating-modal .btn-submit {
  background: var(--poopla-lime, #A7E22E) !important;
  color: var(--poopla-navy, #082D4A) !important;
  border-radius: var(--radius-pill, 999px) !important;
  font-weight: 700 !important;
  transform: none !important;
}

#reviews-modal .poopla-reviews-summary {
  text-align: center;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--poopla-sky-pale, #EAF5FF);
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: var(--radius-md, 16px);
}

#reviews-modal .poopla-reviews-summary__score {
  font-size: 1.75rem;
  color: var(--poopla-navy, #082D4A);
  font-weight: 800;
}

#reviews-modal .poopla-review-card {
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: var(--radius-md, 16px);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--poopla-cream, #F9F7EF);
}

#reviews-modal .poopla-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#reviews-modal .poopla-review-photo {
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

#reviews-modal .poopla-review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poopla-skeleton {
  background: linear-gradient(90deg, #e8eef2 0%, #f5f8fa 50%, #e8eef2 100%);
  background-size: 200% 100%;
  animation: poopla-skel 1.2s ease-in-out infinite;
  border-radius: var(--radius-md);
  height: 96px;
  margin-bottom: 12px;
}

@keyframes poopla-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#search-container[aria-hidden="true"],
#map-view #search-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.site-nav ul li a[href="/app"],
.site-nav ul li a.poopla-get-app {
  background: var(--poopla-lime) !important;
  color: var(--poopla-navy) !important;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem !important;
  min-height: 40px;
  font-weight: 700;
}
.site-nav ul li a[href="/app"]:hover,
.site-nav ul li a[href="/app"].active,
.site-nav ul li a.poopla-get-app:hover,
.site-nav ul li a.poopla-get-app.active {
  background: var(--poopla-lime-dark) !important;
  color: var(--poopla-navy) !important;
}

.poopla-get-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.poopla-get-app-store {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}

.poopla-get-app-store:hover {
  transform: translateY(-2px);
}

.poopla-get-app-store img {
  height: 54px;
  width: auto;
  max-width: 180px;
}

.poopla-pin {
  background: transparent !important;
  border: none !important;
}

.poopla-pin img {
  display: block;
  position: relative;
  z-index: 1;
  width: 32px;
  height: 42px;
  filter: drop-shadow(0 2px 4px rgba(8, 45, 74, 0.25));
}

.poopla-pin__halo {
  display: none;
}

.poopla-pin--selected {
  z-index: 600 !important;
}

.poopla-pin--selected img {
  width: 40px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(8, 45, 74, 0.4));
  transform-origin: bottom center;
  animation: poopla-pin-pop 0.28s ease-out;
}

.poopla-pin--selected .poopla-pin__halo {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(167, 226, 46, 0.45);
  z-index: 0;
  pointer-events: none;
  animation: poopla-pin-halo 1.6s ease-out infinite;
}

@keyframes poopla-pin-pop {
  from { transform: scale(0.86); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes poopla-pin-halo {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .poopla-pin--selected img,
  .poopla-pin--selected .poopla-pin__halo {
    animation: none;
  }
}

[hidden] {
  display: none !important;
}

.poopla-btn-primary:focus-visible,
.poopla-btn-secondary:focus-visible,
.poopla-filter-chip:focus-visible,
.poopla-filters-toggle:focus-visible,
.poopla-search-submit:focus-visible,
.poopla-nearest-cta:focus-visible,
.mobile-nav-item:focus-visible,
.poopla-desktop-views button:focus-visible,
.site-nav ul li a:focus-visible,
.poopla-search-row input:focus-visible {
  outline: 3px solid var(--poopla-sky);
  outline-offset: 2px;
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-location-pin {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .map-controls {
    display: none !important;
  }

  .poopla-desktop-views {
    display: inline-flex;
  }

  .poopla-map-chrome {
    top: 16px;
    left: 16px;
    right: auto;
    width: min(360px, calc(100vw - 96px));
    max-width: 360px;
  }

  .poopla-app-view:not(#map-view).is-active {
    display: block;
    background: rgba(249, 247, 239, 0.98);
  }

  .poopla-search-row input[type="text"] {
    font-size: 15px;
    height: 42px;
    min-height: 42px;
  }

  .poopla-search-row .ask-poopla-pod-btn,
  .poopla-search-row button.ask-poopla-pod-btn.poopla-btn-secondary {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 10px !important;
  }

  .poopla-search-submit {
    width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }

  .poopla-filter-chip {
    font-size: 12px;
    padding: 5px 10px;
    min-height: 32px;
  }

  #map .leaflet-top.leaflet-left {
    left: auto;
    right: 16px;
  }

  #map .leaflet-top.leaflet-left .leaflet-control {
    margin-right: 0;
  }

  .poopla-toilet-sheet {
    left: auto;
    right: 24px;
    bottom: calc(var(--footer-height, 50px) + 16px);
    width: 400px;
    max-height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 50px) - 32px);
    border-radius: var(--radius-lg);
  }

  .poopla-toilet-sheet .poopla-sheet-swipe-cue {
    display: none !important;
  }

  .poopla-toilet-sheet__grab {
    cursor: default;
    touch-action: auto;
  }

  .poopla-toilet-sheet.is-peek [data-sheet-expanded] {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    pointer-events: auto !important;
  }

  .poopla-toilet-sheet.is-peek [data-sheet-amenities-expanded] {
    display: flex !important;
  }

  .poopla-toilet-sheet.is-peek [data-sheet-amenities-peek] {
    display: none !important;
  }

  .poopla-more-sheet {
    left: auto;
    right: 24px;
    bottom: calc(var(--footer-height, 50px) + 16px);
    width: 360px;
    border-radius: var(--radius-lg);
    max-height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 50px) - 32px);
  }

  body:not(.page-scroll):not(.page-hub) .container {
    height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 50px));
  }

  body:not(.page-scroll):not(.page-hub) #map {
    height: 100%;
  }

  .poopla-app-view:not(#map-view) {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 40vw);
    bottom: 0;
    left: auto;
    border-left: 1px solid var(--poopla-border);
    z-index: 900;
  }
}

@media (max-width: 768px) {
  .poopla-map-chrome {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }

  .poopla-search-row {
    flex-wrap: nowrap;
  }

  .poopla-search-row input[type="text"] {
    font-size: 16px;
    height: 44px;
    min-height: 44px;
  }

  .poopla-nearest-cta {
    position: absolute;
    left: 0;
    right: 56px;
    bottom: 0;
    width: auto;
    margin: 0;
    align-self: stretch;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    z-index: 2;
  }

  body:has(#poopla-toilet-sheet:not([hidden])) .poopla-nearest-cta {
    visibility: hidden;
    pointer-events: none;
  }

  @media (max-width: 380px) {
    .poopla-search-row .ask-poopla-pod-btn > span:not(.ask-poopla-ai-badge) {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .poopla-search-row .ask-poopla-pod-btn {
      width: 44px;
      min-width: 44px;
      padding: 0 !important;
    }
  }

  .poopla-filter-chips {
    max-height: 28vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #map .mobile-location-pin {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
  }

  #map .mobile-location-pin button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--poopla-navy) !important;
    border: 1px solid rgba(8, 45, 74, 0.15) !important;
    box-shadow: var(--shadow-card) !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
  }

  #map .leaflet-control-zoom {
    display: none !important;
  }

  #map .leaflet-bottom.leaflet-right,
  #map .leaflet-control-attribution {
    z-index: 450 !important;
    pointer-events: none;
  }

  #map .leaflet-control-attribution a {
    pointer-events: auto;
  }

  .map-controls {
    display: none !important;
  }

  .leaflet-touch .leaflet-bar a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 18px !important;
  }
}

body.page-place {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
  position: static !important;
}
html.page-place {
  overflow: auto !important;
  height: auto !important;
}
body.page-place:not(.is-map-focus) .container {
  position: fixed !important;
  top: var(--header-height, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  height: auto !important;
  margin: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  overflow: hidden !important;
}
body.page-place:not(.is-map-focus) .container #map {
  height: 100% !important;
  min-height: 0 !important;
}
body.page-place #list-view,
body.page-place #saved-view {
  position: absolute;
  inset: 0;
}
@media (min-width: 769px) {
  body.page-place #list-view,
  body.page-place #saved-view {
    left: auto;
    width: min(420px, 40vw);
  }
}

body.page-place.is-map-focus {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}
html.page-place:has(body.is-map-focus) {
  overflow: hidden !important;
  height: 100% !important;
}
body.page-place.is-map-focus .place-seo-panel,
body.page-place.is-map-focus .site-footer {
  display: none !important;
}
body.page-place.is-map-focus .container {
  position: fixed !important;
  top: var(--header-height, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  height: auto !important;
  margin: 0 !important;
  z-index: 40;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.page-place.is-map-focus #map-view,
body.page-place.is-map-focus #map-view.is-active {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
}
body.page-place.is-map-focus #map {
  height: 100% !important;
  min-height: 0 !important;
}
body.page-place.is-map-focus .poopla-place-back-list {
  display: inline-flex !important;
}
.poopla-place-back-list {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid var(--poopla-border, #DCE6EC);
  border-radius: 999px;
  background: #fff;
  color: var(--poopla-navy, #082D4A);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(8,45,74,0.08));
}
@media (max-width: 768px) {
  body.page-place:not(.is-map-focus) .container,
  body.page-place.is-map-focus .container {
    top: var(--poopla-mobile-header-h, 60px);
    bottom: var(--bottom-nav-height, 70px);
  }

  body.page-hub .hub-panel,
  body.page-place .place-seo-panel {
    padding-top: calc(var(--poopla-mobile-header-h, 60px) + 0.85rem);
    padding-bottom: calc(var(--bottom-nav-height, 70px) + 1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

html.poopla-shell-mobile body.page-hub .hub-panel,
html.poopla-shell-mobile body.page-place .place-seo-panel {
  padding-top: calc(var(--poopla-mobile-header-h, 60px) + 0.85rem);
  padding-bottom: calc(var(--bottom-nav-height, 70px) + 1.5rem + env(safe-area-inset-bottom, 0px));
}

body.page-scroll .container {
  padding-bottom: calc(var(--footer-height, 50px) + 24px);
}
@media (max-width: 768px) {
  body.page-scroll .container {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 24px);
  }
}

.poopla-toilet-sheet a.poopla-btn-primary.nav-link,
.poopla-toilet-sheet a.nav-link.poopla-btn-primary {
  background: var(--poopla-lime) !important;
  color: var(--poopla-navy) !important;
  border: none !important;
  box-shadow: var(--shadow-card);
}

html.poopla-shell-mobile .site-nav,
html.poopla-shell-mobile .menu-toggle,
html.poopla-shell-mobile .poopla-desktop-views,
html.poopla-shell-mobile .map-controls,
html.poopla-shell-mobile #map .leaflet-control-zoom,
html.poopla-shell-mobile .site-footer {
  display: none !important;
}

html.poopla-shell-mobile .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  z-index: 1001 !important;
}

html.poopla-shell-mobile .mobile-bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  height: auto !important;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

html.poopla-shell-mobile body:not(.page-scroll):not(.page-hub):not(.page-place) .container {
  position: fixed !important;
  top: var(--poopla-mobile-header-h, 60px) !important;
  bottom: var(--bottom-nav-height, 70px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

html.poopla-shell-mobile body:not(.page-scroll):not(.page-hub):not(.page-place) .poopla-app-view:not(#map-view) {
  padding-bottom: 16px !important;
}

html.poopla-shell-mobile #map {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

html.poopla-shell-mobile .poopla-map-chrome {
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 12px !important;
  width: auto !important;
  max-width: none !important;
}

html.poopla-shell-mobile .poopla-nearest-cta {
  position: absolute !important;
  left: 0 !important;
  right: 56px !important;
  bottom: 0 !important;
  width: auto !important;
  margin: 0 !important;
  align-self: stretch !important;
  justify-content: center !important;
  min-height: 48px !important;
  z-index: 2 !important;
}

html.poopla-shell-mobile #map .mobile-location-pin {
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 1001 !important;
}

html.poopla-shell-mobile #map .mobile-location-pin button {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--poopla-navy) !important;
  border: 1px solid rgba(8, 45, 74, 0.15) !important;
  box-shadow: var(--shadow-card) !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

html.poopla-shell-mobile #map .leaflet-bottom.leaflet-right,
html.poopla-shell-mobile #map .leaflet-control-attribution {
  z-index: 450 !important;
  pointer-events: none;
}

html.poopla-shell-mobile #map .leaflet-control-attribution a {
  pointer-events: auto;
}

html.poopla-shell-desktop .mobile-bottom-nav,
html.poopla-shell-desktop .mobile-location-pin {
  display: none !important;
}

html.poopla-shell-desktop body:not(.page-scroll):not(.page-hub):not(.page-place) .container {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 50px)) !important;
  margin: 0 !important;
}


.poopla-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: rgba(8, 45, 74, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.poopla-photo-lightbox__chrome {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.poopla-photo-lightbox__close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}

.poopla-photo-lightbox__counter {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-pill, 999px);
}

.poopla-photo-lightbox__stage {
  max-width: min(960px, 100%);
  max-height: calc(100dvh - 120px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poopla-photo-lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-floating, 0 14px 40px rgba(8, 45, 74, 0.16));
  background: #000;
}

.poopla-photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--poopla-lime, #A7E22E);
  color: var(--poopla-navy, #082D4A);
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.poopla-photo-lightbox__nav--prev { left: 10px; }
.poopla-photo-lightbox__nav--next { right: 10px; }

.poopla-photo-lightbox__credit {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
}
