/**
 * UrbanWhere v4.1.0 – Styles
 * 
 * Fixes:
 * 1. z-index: 9999
 * 2. Copyright-Styling
 * 3. Smooth Animations (600ms)
 * 4. Aktiver Marker-State
 * 5. Labels ab Zoom 9
 * 
 * @version 4.1.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */

:root {
  /* Projekt-Farben */
  --uw-dunkelgruen: #215437;
  --uw-hellgruen: #97BE0D;
  --uw-pastellgruen: #DAE3A0;
  --uw-asphaltgrau: #646567;
  --uw-anthrazit: #2D2D2D;
  --uw-weiss: #FFFFFF;
  
  /* Semantische Farben */
  --uw-primary: var(--uw-dunkelgruen);
  --uw-secondary: var(--uw-hellgruen);
  --uw-bg: var(--uw-weiss);
  --uw-text: var(--uw-anthrazit);
  --uw-text-muted: var(--uw-asphaltgrau);
  --uw-border: rgba(218, 227, 160, 0.6);
  --uw-success: var(--uw-hellgruen);
  --uw-warning: #E6A800;
  
  /* Typografie */
  --uw-font: "open-sans-semi-condensed", "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --uw-font-size-sm: calc(0.25rem + 12px);
  --uw-font-size-base: calc(0.25rem + 14px);
  --uw-font-size-lg: calc(0.25rem + 18px);
  --uw-font-size-xl: calc(1rem + 8px);
  
  /* Abstände */
  --uw-space-xs: 0.25rem;
  --uw-space-sm: 0.5rem;
  --uw-space-md: 1rem;
  --uw-space-lg: 1.5rem;
  --uw-space-xl: 2rem;
  
  /* Radien */
  --uw-radius-sm: 4px;
  --uw-radius-md: 8px;
  --uw-radius-lg: 12px;
  --uw-radius-xl: 16px;
  --uw-radius-full: 9999px;
  
  /* Schatten */
  --uw-shadow-md: 0 4px 6px rgba(45, 45, 45, 0.1);
  --uw-shadow-lg: 0 10px 25px rgba(45, 45, 45, 0.15);
  --uw-shadow-xl: 0 20px 40px rgba(45, 45, 45, 0.2);
  
  /* Off-Canvas */
  --uw-offcanvas-width: 420px;
  --uw-offcanvas-z: 9999;  /* Punkt 1: Hoher z-index */
  
  /* Punkt 3: Smooth Transitions */
  --uw-transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --uw-transition-fast: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FILTER - Mapbox Control Style
============================================================ */

.uw-filter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.uw-filter__buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mapbox-Style für Filter Toggle Button */
.uw-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--uw-font);
  font-size: var(--uw-font-size-base);
  font-weight: 500;
  color: #333;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  white-space: nowrap;
}

/* Clear Button im Mapbox-Style */
.uw-filter__clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
}

.uw-filter__clear:hover {
  background-color: #f0f0f0;
}

.uw-filter__toggle:hover {
  background-color: #f0f0f0;
}

.uw-filter__toggle--active {
  background: var(--uw-hellgruen);
  color: var(--uw-dunkelgruen);
}

.uw-filter__toggle svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.uw-filter__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--uw-bg);
  border: 1px solid var(--uw-border);
  border-radius: var(--uw-radius-lg);
  box-shadow: var(--uw-shadow-xl);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--uw-transition-fast);
}

.uw-filter__panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.uw-filter__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--uw-space-md) var(--uw-space-lg);
  border-bottom: 1px solid var(--uw-border);
}

.uw-filter__header h3 {
  margin: 0;
  font-size: var(--uw-font-size-lg);
  font-weight: 600;
  color: var(--uw-primary);
}

.uw-filter__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--uw-border);
  border-radius: var(--uw-radius-full);
  cursor: pointer;
  color: var(--uw-text);
  transition: all var(--uw-transition-fast);
}

.uw-filter__close:hover {
  background: var(--uw-primary);
  border-color: var(--uw-primary);
  color: var(--uw-weiss);
}

.uw-filter__content {
  padding: var(--uw-space-lg);
  max-height: 400px;
  overflow-y: auto;
}

.uw-filter__group {
  margin-bottom: var(--uw-space-lg);
}

.uw-filter__group:last-child {
  margin-bottom: 0;
}

.uw-filter__group h4 {
  margin: 0 0 var(--uw-space-md) 0;
  font-size: var(--uw-font-size-base);
  font-weight: 600;
  color: var(--uw-text);
}

.uw-filter__option {
  display: flex;
  align-items: center;
  gap: var(--uw-space-sm);
  padding: var(--uw-space-sm) 0;
  cursor: pointer;
  user-select: none;
}

.uw-filter__option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.uw-filter__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--uw-border);
  border-radius: var(--uw-radius-sm);
  transition: all var(--uw-transition-fast);
  flex-shrink: 0;
}

.uw-filter__option input[type="checkbox"]:checked + .uw-filter__checkbox {
  background: var(--uw-hellgruen);
  border-color: var(--uw-dunkelgruen);
}

.uw-filter__option input[type="checkbox"]:checked + .uw-filter__checkbox::after {
  content: '✓';
  color: var(--uw-dunkelgruen);
  font-size: 14px;
  font-weight: bold;
}

.uw-filter__option:hover .uw-filter__checkbox {
  border-color: var(--uw-hellgruen);
}

.uw-filter__rating-item {
  margin-bottom: var(--uw-space-md);
}

.uw-filter__rating-item:last-child {
  margin-bottom: 0;
}

.uw-filter__rating-label {
  display: block;
  font-size: var(--uw-font-size-sm);
  font-weight: 500;
  color: var(--uw-text);
  margin-bottom: var(--uw-space-xs);
}

.uw-filter__rating {
  display: flex;
  gap: var(--uw-space-xs);
}

.uw-filter__star {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--uw-asphaltgrau);
  opacity: 0.3;
  cursor: pointer;
  padding: 0;
  transition: all var(--uw-transition-fast);
}

.uw-filter__star:hover,
.uw-filter__star--active {
  color: var(--uw-hellgruen);
  opacity: 1;
  transform: scale(1.1);
}

.uw-filter__footer {
  padding: var(--uw-space-md) var(--uw-space-lg);
  border-top: 1px solid var(--uw-border);
}

.uw-filter__reset {
  width: 100%;
  padding: var(--uw-space-sm) var(--uw-space-md);
  background: transparent;
  border: 1px solid var(--uw-border);
  border-radius: var(--uw-radius-md);
  font-family: var(--uw-font);
  font-size: var(--uw-font-size-base);
  font-weight: 500;
  color: var(--uw-text);
  cursor: pointer;
  transition: all var(--uw-transition-fast);
}

.uw-filter__reset:hover {
  background: var(--uw-primary);
  border-color: var(--uw-primary);
  color: var(--uw-weiss);
}

/* ============================================================
   KARTEN-CONTAINER
============================================================ */

#urbanwhere-map {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--uw-shadow-lg);
}

@media (max-width: 767px) {
  #urbanwhere-map {
    min-height: 400px;
  }
}

/* ============================================================
   MAPBOX CONTROLS - ERZWINGE SICHTBARKEIT
============================================================ */

/* Fix: Stelle sicher, dass Mapbox Controls immer sichtbar sind,
   auch wenn Theme/Plugin CSS sie überschreibt */

.mapboxgl-ctrl-group,
.mapboxgl-ctrl-group button,
.mapboxgl-ctrl {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

.mapboxgl-ctrl-top-right,
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: auto !important;
}

.mapboxgl-ctrl-top-right {
  top: 10px !important;
  right: 10px !important;
}

.mapboxgl-ctrl-top-left {
  top: 10px !important;
  left: 10px !important;
}

.mapboxgl-ctrl-bottom-right {
  bottom: 10px !important;
  right: 10px !important;
}

.mapboxgl-ctrl-bottom-left {
  bottom: 10px !important;
  left: 10px !important;
}

.mapboxgl-ctrl-group {
  background: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1) !important;
}

.mapboxgl-ctrl-group button {
  width: 29px !important;
  height: 29px !important;
  display: block !important;
  padding: 0 !important;
  outline: none !important;
  border: 0 !important;
  box-sizing: border-box !important;
  background-color: transparent !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.mapboxgl-ctrl-group button:hover {
  background-color: rgba(0,0,0,.05) !important;
}

.mapboxgl-ctrl-icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
}

/* Mapbox Navigation Control Icons - SVG Fallbacks */
.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E") !important;
}

.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 15l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E") !important;
}

.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 3.5c-.75 0-1.5.75-1.5 1.5v1.19A8 8 0 0 0 6.19 13H5c-.75 0-1.5.75-1.5 1.5S4.25 16 5 16h1.19A8 8 0 0 0 13 22.81V24c0 .75.75 1.5 1.5 1.5s1.5-.75 1.5-1.5v-1.19A8 8 0 0 0 22.81 16H24c.75 0 1.5-.75 1.5-1.5S24.75 13 24 13h-1.19A8 8 0 0 0 16 6.19V5c0-.75-.75-1.5-1.5-1.5zm0 6a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E") !important;
}

/* Geolocate Active State */
.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M14.5 3.5c-.75 0-1.5.75-1.5 1.5v1.19A8 8 0 0 0 6.19 13H5c-.75 0-1.5.75-1.5 1.5S4.25 16 5 16h1.19A8 8 0 0 0 13 22.81V24c0 .75.75 1.5 1.5 1.5s1.5-.75 1.5-1.5v-1.19A8 8 0 0 0 22.81 16H24c.75 0 1.5-.75 1.5-1.5S24.75 13 24 13h-1.19A8 8 0 0 0 16 6.19V5c0-.75-.75-1.5-1.5-1.5zm0 6a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E") !important;
}

.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23e55'%3E%3Cpath d='M14.5 3.5c-.75 0-1.5.75-1.5 1.5v1.19A8 8 0 0 0 6.19 13H5c-.75 0-1.5.75-1.5 1.5S4.25 16 5 16h1.19A8 8 0 0 0 13 22.81V24c0 .75.75 1.5 1.5 1.5s1.5-.75 1.5-1.5v-1.19A8 8 0 0 0 22.81 16H24c.75 0 1.5-.75 1.5-1.5S24.75 13 24 13h-1.19A8 8 0 0 0 16 6.19V5c0-.75-.75-1.5-1.5-1.5zm0 6a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E") !important;
}

/* Attribution (Copyright) - sichtbar und kleiner */
.mapboxgl-ctrl-attrib {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  min-height: auto !important;
  line-height: 1.4 !important;
}

/* Attribution Button verstecken (nicht mehr klappbar) */
.mapboxgl-ctrl-attrib-button {
  display: none !important;
}

/* Attribution Inhalt immer sichtbar */
.mapboxgl-ctrl-attrib-inner {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Leere Attribution Container verstecken */
.mapboxgl-ctrl-attrib:empty,
.mapboxgl-ctrl-attrib-inner:empty {
  display: none !important;
}

.mapboxgl-ctrl-attrib a {
  color: rgba(0, 0, 0, 0.75) !important;
  text-decoration: none !important;
  font-size: 10px !important;
}

.mapboxgl-ctrl-attrib a:hover {
  color: rgba(0, 0, 0, 0.9) !important;
  text-decoration: underline !important;
}

/* Mapbox Logo kleiner machen */
.mapboxgl-ctrl-logo {
  display: block !important;
  width: 65px !important;
  height: 20px !important;
  margin: 0 0 -3px -3px !important;
}

/* Scale Control (Distanz-Maßstab) - besser positioniert */
.mapboxgl-ctrl-scale {
  display: block !important;
  visibility: visible !important;
  background-color: rgba(255, 255, 255, 0.75) !important;
  font-size: 10px !important;
  border: 2px solid #333 !important;
  border-top: none !important;
  padding: 0 5px !important;
  color: #333 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  height: auto !important;
}

/* Scale Container fixen */
.mapboxgl-ctrl-bottom-left {
  bottom: 10px !important;
  left: 10px !important;
  align-items: flex-start !important;
}

/* ============================================================
   OFF-CANVAS (Desktop)
============================================================ */

.uw-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--uw-offcanvas-width);
  z-index: var(--uw-offcanvas-z);  /* Punkt 1 */
  pointer-events: none;
  font-family: var(--uw-font);
}

/* Punkt 3: Smooth Backdrop Animation */
.uw-offcanvas__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--uw-transition-fast);
  pointer-events: none;
  will-change: background;
}

.uw-offcanvas--open .uw-offcanvas__backdrop {
  background: rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

/* Punkt 3: Smooth Panel Animation - Slide-in von rechts */
.uw-offcanvas__inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--uw-bg);
  box-shadow: var(--uw-shadow-xl);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

.uw-offcanvas--open .uw-offcanvas__inner {
  transform: translateX(0);
}

/* Close Button */
.uw-offcanvas__close {
  position: absolute;
  top: var(--uw-space-md);
  right: var(--uw-space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--uw-bg);
  border: 1px solid var(--uw-border);
  border-radius: var(--uw-radius-full);
  cursor: pointer;
  color: var(--uw-text);
  z-index: 10;
  transition: all var(--uw-transition-fast);
  box-shadow: var(--uw-shadow-md);
}

.uw-offcanvas__close:hover {
  background: var(--uw-primary);
  color: var(--uw-weiss);
  border-color: var(--uw-primary);
  transform: scale(1.05);
}

/* Content */
.uw-offcanvas__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Image */
.uw-offcanvas__image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--uw-pastellgruen) 0%, rgba(218, 227, 160, 0.5) 100%);
}

.uw-offcanvas__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uw-offcanvas__image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.6;
}

/* Header */
.uw-offcanvas__header {
  padding: var(--uw-space-lg) var(--uw-space-lg) var(--uw-space-sm);
}

.uw-offcanvas__title {
  margin: 0 0 var(--uw-space-sm) 0;
  font-size: var(--uw-font-size-xl);
  font-weight: 600;
  color: var(--uw-primary);
  line-height: 1.3;
}

.uw-offcanvas__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uw-space-sm);
  font-size: var(--uw-font-size-sm);
  color: var(--uw-text-muted);
}

.uw-offcanvas__meta span:empty {
  display: none;
}

.uw-offcanvas__meta span:not(:empty):not(:last-child)::after {
  content: '•';
  margin-left: var(--uw-space-sm);
  color: var(--uw-border);
}

/* Badges */
.uw-offcanvas__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uw-space-xs);
  padding: 0 var(--uw-space-lg) var(--uw-space-md);
}

.uw-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: var(--uw-font-size-sm);
  font-weight: 500;
  border-radius: var(--uw-radius-full);
  background: rgba(218, 227, 160, 0.3);
  color: var(--uw-text-muted);
  border: 1px solid var(--uw-border);
}

.uw-badge--success {
  background: rgba(151, 190, 13, 0.15);
  color: var(--uw-primary);
  border-color: rgba(151, 190, 13, 0.4);
}

.uw-badge--warning {
  background: rgba(230, 168, 0, 0.15);
  color: #8B6914;
  border-color: rgba(230, 168, 0, 0.4);
}

/* Description */
.uw-offcanvas__description {
  margin: 0;
  padding: 0 var(--uw-space-lg) var(--uw-space-md);
  font-size: var(--uw-font-size-base);
  color: var(--uw-text);
  line-height: 1.6;
}

.uw-offcanvas__description:empty {
  display: none;
}

/* Ratings */
.uw-offcanvas__ratings {
  display: flex;
  flex-direction: column;
  gap: var(--uw-space-xs);
  margin: 0 var(--uw-space-lg) var(--uw-space-lg);
  padding: var(--uw-space-md);
  background: rgba(218, 227, 160, 0.2);
  border-radius: var(--uw-radius-md);
  border-left: 4px solid var(--uw-secondary);
}

.uw-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--uw-font-size-sm);
}

.uw-rating__label {
  color: var(--uw-text-muted);
  font-weight: 500;
}

.uw-rating__stars {
  color: var(--uw-secondary);
  letter-spacing: 2px;
}

.uw-rating__empty {
  color: var(--uw-text-muted);
  opacity: 0.5;
}

.uw-star {
  font-size: 14px;
}

.uw-star--full {
  color: var(--uw-secondary);
}

.uw-star--half {
  color: var(--uw-secondary);
  opacity: 0.6;
}

.uw-star--empty {
  color: var(--uw-asphaltgrau);
  opacity: 0.3;
}

/* Footer */
.uw-offcanvas__footer {
  padding: var(--uw-space-md) var(--uw-space-lg) var(--uw-space-xl);
  margin-top: auto;
  border-top: 1px solid var(--uw-border);
  background: var(--uw-bg);
}

.uw-offcanvas__link {
  display: inline-flex;
  align-items: center;
  gap: var(--uw-space-sm);
  padding: var(--uw-space-sm) var(--uw-space-lg);
  font-size: var(--uw-font-size-base);
  font-weight: 600;
  color: var(--uw-weiss);
  background: var(--uw-primary);
  border-radius: var(--uw-radius-md);
  text-decoration: none;
  transition: all var(--uw-transition-fast);
}

.uw-offcanvas__link:hover {
  background: var(--uw-secondary);
  color: var(--uw-primary);
  transform: translateX(4px);
}

.uw-offcanvas__link svg {
  transition: transform var(--uw-transition-fast);
}

.uw-offcanvas__link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   BOTTOM-SHEET (Mobile)
============================================================ */

.uw-bottomsheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75vh;
  background: var(--uw-bg);
  border-radius: var(--uw-radius-xl) var(--uw-radius-xl) 0 0;
  box-shadow: 0 -10px 40px rgba(45, 45, 45, 0.25);
  transform: translateY(100%);
  transition: transform var(--uw-transition);
  z-index: var(--uw-offcanvas-z);
  overflow: hidden;
  font-family: var(--uw-font);
  will-change: transform;
}

.uw-bottomsheet--open {
  transform: translateY(0);
}

.uw-bottomsheet__handle {
  width: 48px;
  height: 5px;
  margin: 12px auto 8px;
  background: var(--uw-border);
  border-radius: var(--uw-radius-full);
}

.uw-bottomsheet__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--uw-bg);
  border: 1px solid var(--uw-border);
  border-radius: var(--uw-radius-full);
  cursor: pointer;
  color: var(--uw-text);
  z-index: 10;
  transition: all var(--uw-transition-fast);
}

.uw-bottomsheet__close:hover {
  background: var(--uw-primary);
  color: var(--uw-weiss);
}

.uw-bottomsheet__content {
  padding: 0 0 var(--uw-space-xl);
  max-height: calc(75vh - 50px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Image Anpassung */
.uw-bottomsheet .uw-offcanvas__image {
  height: 180px;
}

/* Body-Lock */
body.uw-offcanvas-active,
body.uw-bottomsheet-active {
  overflow: hidden;
}

/* Backdrop für Mobile */
body.uw-bottomsheet-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: calc(var(--uw-offcanvas-z) - 1);
  animation: fadeInBackdrop var(--uw-transition) forwards;
}

@keyframes fadeInBackdrop {
  to {
    background: rgba(0, 0, 0, 0.35);
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 767px) {
  .uw-offcanvas {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .uw-bottomsheet {
    display: none !important;
  }
}

/* Kleine Bildschirme */
@media (max-width: 480px) {
  .uw-offcanvas__badges {
    gap: var(--uw-space-xs);
  }
  
  .uw-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .uw-offcanvas__ratings {
    margin: 0 var(--uw-space-md) var(--uw-space-md);
  }
  
  .uw-offcanvas__header,
  .uw-offcanvas__badges,
  .uw-offcanvas__description,
  .uw-offcanvas__footer {
    padding-left: var(--uw-space-md);
    padding-right: var(--uw-space-md);
  }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.uw-offcanvas__close:focus,
.uw-bottomsheet__close:focus,
.uw-offcanvas__link:focus {
  outline: 2px solid var(--uw-secondary);
  outline-offset: 2px;
}

/* ============================================================
   PRINT
============================================================ */

@media print {
  .uw-offcanvas,
  .uw-bottomsheet,
  .mapboxgl-ctrl-group {
    display: none !important;
  }
}
