/* DSGVO consent banner, privacy center & gated external media placeholders */

:root[data-theme="dark"] {
  --rr-consent-surface: rgba(23, 23, 23, 0.6);
  --rr-consent-border: rgba(255, 255, 255, 0.1);
  --rr-consent-heading: #fafafa;
  --rr-consent-text: #a3a3a3;
  --rr-consent-muted: #737373;
  --rr-consent-toggle-bg: rgba(255, 255, 255, 0.04);
  --rr-consent-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}
:root[data-theme="light"] {
  --rr-consent-surface: rgba(255, 255, 255, 0.88);
  --rr-consent-border: rgba(0, 0, 0, 0.1);
  --rr-consent-heading: #171717;
  --rr-consent-text: #52525b;
  --rr-consent-muted: #71717a;
  --rr-consent-toggle-bg: rgba(0, 0, 0, 0.03);
  --rr-consent-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Bottom banner (first visit) ── */
#rr-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0 1rem 1rem;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#rr-consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
body.rr-consent-banner-open {
  padding-bottom: 0.5rem;
}

/* ── Privacy center panel ── */
#rr-consent-settings {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0 1rem 1rem;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#rr-consent-settings.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Shared card (matches contact section) ── */
.rr-consent-card {
  max-width: 42rem;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid var(--rr-consent-border);
  background: var(--rr-consent-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--rr-consent-shadow);
  font-family: var(--font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
  overflow: hidden;
}
.rr-consent-card--settings {
  max-width: 32rem;
}
.rr-consent-card__accent {
  height: 3px;
  background: linear-gradient(90deg, #14629f 0%, #3a8db5 50%, #14629f 100%);
}
.rr-consent-card__body {
  padding: 1.25rem 1.5rem 1.375rem;
}

.rr-consent-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.rr-consent-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.25rem 0 0;
  padding: 0;
  border: 1px solid var(--rr-consent-border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--rr-consent-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rr-consent-close:hover {
  color: #14629f;
  border-color: rgba(20, 98, 159, 0.35);
  background: rgba(20, 98, 159, 0.06);
}

.rr-consent-title {
  font-family: var(--font-headline, "Montserrat", ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rr-consent-heading);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.rr-consent-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--rr-consent-text);
  margin: 0;
}
.rr-consent-text a {
  color: #14629f;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rr-consent-text a:hover {
  color: #105080;
}

.rr-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.rr-consent-actions--settings {
  margin-top: 1.125rem;
}
.rr-consent-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5625rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.rr-consent-btn:active {
  transform: scale(0.98);
}
.rr-consent-btn--accept {
  background: #14629f;
  color: #fff;
}
.rr-consent-btn--accept:hover {
  background: #105080;
}
.rr-consent-btn--reject {
  background: transparent;
  border-color: var(--rr-consent-border);
  color: var(--rr-consent-heading);
}
.rr-consent-btn--reject:hover {
  border-color: #14629f;
  color: #14629f;
}
.rr-consent-btn--save {
  background: rgba(20, 98, 159, 0.12);
  border-color: rgba(20, 98, 159, 0.25);
  color: #14629f;
  margin-left: auto;
}
.rr-consent-btn--save:hover {
  background: rgba(20, 98, 159, 0.2);
}

/* ── Toggle switches ── */
.rr-consent-toggles {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rr-consent-toggle {
  border-radius: 0.75rem;
  border: 1px solid var(--rr-consent-border);
  background: var(--rr-consent-toggle-bg);
}
.rr-consent-toggle__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.rr-consent-toggle__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.rr-consent-toggle__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rr-consent-heading);
}
.rr-consent-toggle__desc {
  font-size: 0.75rem;
  color: var(--rr-consent-muted);
  line-height: 1.4;
}
.rr-consent-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rr-consent-toggle__switch {
  flex-shrink: 0;
  position: relative;
  width: 2.5rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: rgba(120, 120, 128, 0.32);
  transition: background 0.2s ease;
}
.rr-consent-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.rr-consent-toggle__input:checked + .rr-consent-toggle__switch {
  background: #14629f;
}
.rr-consent-toggle__input:checked + .rr-consent-toggle__switch::after {
  transform: translateX(1.125rem);
}
.rr-consent-toggle__input:focus-visible + .rr-consent-toggle__switch {
  outline: 2px solid #14629f;
  outline-offset: 2px;
}

/* ── Privacy center trigger (bottom-left) ── */
.rr-privacy-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.875rem;
  border: 1px solid var(--rr-consent-border);
  background: var(--rr-consent-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #14629f;
  cursor: pointer;
  box-shadow: var(--rr-consent-shadow);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rr-privacy-btn:hover {
  transform: scale(1.05);
  color: #105080;
  border-color: rgba(20, 98, 159, 0.35);
}
.rr-privacy-btn:focus-visible {
  outline: 2px solid #14629f;
  outline-offset: 2px;
}
.rr-privacy-btn__icon {
  width: 1.375rem;
  height: 1.375rem;
}
body.rr-consent-banner-open .rr-privacy-btn,
body.rr-consent-settings-open .rr-privacy-btn {
  bottom: calc(1.25rem + 0.5rem);
}

@media (min-width: 640px) {
  #rr-consent-banner,
  #rr-consent-settings {
    padding: 0 1.5rem 1.5rem;
  }
  .rr-consent-card__body {
    padding: 1.375rem 1.75rem 1.5rem;
  }
}

/* ── Map placeholder ── */
.rr-map-placeholder {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 23, 0.4);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .rr-map-placeholder {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}
.rr-map-placeholder__icon {
  width: 3rem;
  height: 3rem;
  color: #14629f;
  opacity: 0.7;
}
.rr-map-placeholder__address {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rr-text-muted, #a1a1aa);
}
.rr-map-placeholder__address strong {
  display: block;
  font-family: var(--font-headline, "Montserrat", ui-sans-serif, system-ui, sans-serif);
  font-weight: 700;
  color: var(--rr-heading, #fff);
  margin-bottom: 0.25rem;
}
[data-theme="light"] .rr-map-placeholder__address strong {
  color: #171717;
}
.rr-map-placeholder__link {
  font-size: 0.8125rem;
  color: #3a8db5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rr-map-placeholder__link:hover {
  color: #14629f;
}

.rr-map-external-link-wrap {
  margin: 0;
  padding: 0.75rem 1rem 0.25rem;
  text-align: center;
}
.rr-map-external-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3a8db5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.rr-map-external-link:hover {
  color: #14629f;
}
[data-theme="light"] .rr-map-external-link {
  color: #14629f;
}
[data-theme="light"] .rr-map-external-link:hover {
  color: #105080;
}

/* ── Shared in-place load button ── */
.rr-content-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #14629f;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.rr-content-load-btn:hover {
  background: #105080;
  transform: scale(1.03);
}
.rr-content-load-btn:focus-visible {
  outline: 2px solid #3a8db5;
  outline-offset: 2px;
}
.rr-map-placeholder .rr-content-load-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: 0.75rem;
}

.rr-content-load-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  max-width: 16rem;
}
.rr-content-load-hint {
  margin: 0;
  font-size: 0.625rem;
  line-height: 1.45;
  text-align: center;
  color: var(--rr-text-subtle, #71717a);
  opacity: 0.85;
}
[data-theme="light"] .rr-content-load-hint {
  color: var(--rr-text-subtle, #71717a);
}
.rr-map-placeholder .rr-content-load-wrap {
  max-width: 18rem;
}
.listing-img-placeholder .rr-content-load-wrap {
  max-width: 14rem;
}
.listing-img-placeholder .rr-content-load-hint {
  font-size: 0.5625rem;
}

/* ── Listing image placeholder ── */
.listing-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 100%;
  width: 100%;
  padding: 1.25rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  color: var(--rr-text-muted, #a1a1aa);
  font-size: 0.75rem;
  line-height: 1.4;
}
[data-theme="light"] .listing-img-placeholder {
  background: rgba(0, 0, 0, 0.06);
  color: #71717a;
}

/* ── External leave confirmation dialog ── */
.rr-external-leave,
dialog.rr-external-leave {
  position: fixed;
  inset: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.rr-external-leave.is-visible,
dialog.rr-external-leave.is-visible,
dialog.rr-external-leave[open] {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.rr-external-leave[hidden],
dialog.rr-external-leave:not([open]):not(.is-visible) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.rr-external-leave-open {
  overflow: hidden;
}
/* Native dialog top-layer backdrop is unused; dimming comes from __backdrop. */
.rr-external-leave::backdrop {
  background: transparent;
}
.rr-external-leave__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rr-external-leave__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--rr-consent-border);
  background: var(--rr-consent-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--rr-consent-shadow);
}
.rr-external-leave__title {
  margin: 0 0 0.875rem;
  font-family: var(--font-headline, "Montserrat", ui-sans-serif, system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--rr-consent-heading);
}
.rr-external-leave__text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--rr-consent-text);
}
.rr-external-leave__provider {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rr-consent-muted);
}
.rr-external-leave__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.rr-external-leave__actions .rr-consent-btn {
  min-width: 0;
  width: 100%;
  text-align: center;
  line-height: 1.35;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
