.rph-status {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(0,0,0,.06);
}
.rph-status[data-state="ok"] { background: rgba(24, 160, 88, .12); }
.rph-status[data-state="error"] { background: rgba(220, 53, 69, .12); }
.rph-hidden-field { display: none !important; }
.rph-status[data-state="warn"] { background: rgba(255, 193, 7, .14); }

/* 0.2.3: visible temporary POI confirmation on the Mapbox map. */
.rph-preview-marker { z-index: 9; }
.rph-preview-label { user-select: none; }

/* 0.2.5: explicit hand-off into Treweler's native location picker. */
.rph-action-wrap { margin: -4px 0 14px; }
.rph-action-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #202b3d;
  color: #fff;
}
.rph-action-button:hover { opacity: .92; }
.rph-action-hint { margin-top: 7px; font-size: 12px; line-height: 1.35; opacity: .78; }


/* 0.2.6: instructions stay visible while Treweler hides the submission sidebar. */
.rph-picker-overlay {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 280px;
  max-width: calc(100% - 30px);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 16px rgba(0,0,0,.22);
  text-align: center;
  font: 600 13px/1.35 Arial,sans-serif;
}
.rph-picker-overlay-text { margin-bottom: 8px; }
.rph-picker-cancel {
  border: 0;
  border-radius: 5px;
  padding: 7px 10px;
  cursor: pointer;
  background: #202b3d;
  color: #fff;
  font: 600 12px/1 Arial,sans-serif;
}


/* 0.2.13: route button styling retained; duplicate hits are also positioned on the map. */
.rph-popup-google-raw { display: none !important; }
.rph-popup-route-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 11px 14px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.25;
  background: #0797ad;
  color: #fff !important;
  overflow-wrap: anywhere;
}
.rph-popup-route-button:hover { opacity: .92; }


/* 0.2.15: visual state for the custom /ausflugsziele/ Reise filter buttons.
   Works whether the helper class/state sits on the Gutenberg wrapper or link. */
.rph-filter-active.wp-block-button__link,
.wp-block-button__link.rph-filter-active,
.rph-filter-active .wp-block-button__link,
.wp-block-button.rph-filter-active .wp-block-button__link,
.rp-filter-all.rph-filter-active,
.rp-filter-spanien-2026.rph-filter-active,
.rp-filter-all.rph-filter-active .wp-block-button__link,
.rp-filter-spanien-2026.rph-filter-active .wp-block-button__link {
  background: #0797ad !important;
  border-color: #0797ad !important;
  color: #fff !important;
}
.rph-filter-inactive.wp-block-button__link,
.wp-block-button__link.rph-filter-inactive,
.rph-filter-inactive .wp-block-button__link,
.wp-block-button.rph-filter-inactive .wp-block-button__link,
.rp-filter-all.rph-filter-inactive,
.rp-filter-spanien-2026.rph-filter-inactive,
.rp-filter-all.rph-filter-inactive .wp-block-button__link,
.rp-filter-spanien-2026.rph-filter-inactive .wp-block-button__link {
  background: #fff !important;
  border-color: #0797ad !important;
  color: #0797ad !important;
}

/* 0.2.20: Treweler creates the real Reise filter only after its locator panel
   is opened. Keep that short technical loading phase invisible; JavaScript
   removes this state only after the panel has been collapsed again. */
html.rph-filtering-silent #js-twer-store-locator-panel {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 350px !important;
  max-width: 350px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* 0.2.34: while a POI card is open on a phone, Treweler's mobile locator/filter
   bar is hidden so it cannot cover the card. JavaScript removes these classes
   immediately after the popup closes. */
@media (max-width:700px) {
  html.rph-poi-popup-open #js-twer-store-locator-panel,
  html.rph-poi-popup-open #js-twer-store-locator-panel-btn-open,
  html.rph-poi-popup-open .rph-popup-filter-hidden {
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
}


/* 0.2.35: when a mobile POI card is open, hide Treweler's filter strip and
   floating map controls so the card gets the available viewport. */
@media (max-width:700px) {
  html.rph-poi-popup-open .rph-popup-filter-hidden,
  html.rph-poi-popup-open .rph-popup-map-control-hidden { display:none !important;visibility:hidden !important;pointer-events:none !important; }
}


/* 0.2.41: compact admin shortcut on the Ausflugsziele page.
   Logged-out users see Admin-Anmeldung; administrators see POI-Verwaltung. */
.rph-admin-login-button {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: #0797ad;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.18);
  text-decoration: none !important;
  font: 700 13px/1.1 Arial,sans-serif;
  white-space: nowrap;
}
.rph-admin-login-button:hover,
.rph-admin-login-button:focus {
  opacity: .94;
  color: #fff !important;
  text-decoration: none !important;
}
.rph-admin-login-icon { font-size: 14px; line-height: 1; }

@media (max-width:700px) {
  .rph-admin-login-button {
    top: 10px;
    right: 10px;
    padding: 9px 11px;
    font-size: 12px;
  }
}
