/* =========================================================
   SYCA Karte – vereinte Modul-CSS
   Basis + Harbor + Popup + Opinion + Lightbox + Dark Mode
   ========================================================= */


/* =========================================================
   1) Kartenrahmen / Grundlayout
   ========================================================= */

#syca-map {
  width: 100%;
  height: clamp(400px, 60vh, 800px);
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 215, 0, 0.08);
}

.syca-map {
  position: relative;
  z-index: 1;
}

#syca-map .leaflet-container {
  background: #1B3546 !important;
  font-family: inherit;
}

/* leichte Abend-Tönung im Light Mode */
#syca-map .leaflet-tile-pane {
  position: relative;
}

#syca-map .leaflet-tile-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(5, 20, 35, 0.38);
  mix-blend-mode: multiply;
}

/* Dark Mode: keine doppelte Abdunklung */
#syca-map.syca-map-dark .leaflet-tile-pane::after {
  display: none;
}


/* =========================================================
   2) Z-Index / Header-Schutz
   ========================================================= */

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  z-index: 1 !important;
}

#header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 9999 !important;
}


/* =========================================================
   3) Leaflet Popup
   ========================================================= */

#syca-map .leaflet-popup-content-wrapper {
  background-color: #1B3546;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#syca-map .leaflet-popup-tip {
  background: #1B3546;
}

#syca-map .leaflet-popup-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Helvetica Neue", sans-serif;
  padding: 2px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#syca-map .leaflet-popup-content strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

#syca-map .popup-count {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

#syca-map .popup-count.has-yachts {
  color: #f5c542;
}

#syca-map .popup-count.no-yachts {
  color: #ffffff;
  font-style: italic;
}

/* Abstand im Popup */
#syca-map .leaflet-popup-content .map-contactlight-btn {
  margin-top: 10px;
}


/* =========================================================
   4) Contactlight Button / Popup Buttons
   ========================================================= */

.contactlight-box.cl-hidden {
  display: none;
}

.map-contactlight-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #f4e04d;
  background: rgba(0,0,0,0.25);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.map-contactlight-btn:hover {
  background: #f4e04d;
  color: #1B3546;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.6);
}

/* Buttons im Leaflet-Popup */
#syca-map .leaflet-popup-content .map-contactlight-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #f4e04d;
  background: rgba(0,0,0,0.25) !important;
  color: #ffffff !important;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

#syca-map .leaflet-popup-content .map-contactlight-btn:hover {
  background: #f4e04d !important;
  color: #1B3546 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.6);
}


/* =========================================================
   5) Harbor Marker
   ========================================================= */

#syca-map .harbor-icon {
  background: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible !important;
}

#syca-map .harbor-marker-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: visible;
}

#syca-map .harbor-icon-inner {
  width: 36px;
  height: 36px;
  background-image: url('/media/images/ux/logos/Schaefer_Yacht_Charter_Logo-KreisRundTransparent.svg');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  filter: brightness(1);
  box-shadow: 0 0 0 rgba(244, 224, 77, 0);
  transition:
    transform 0.18s ease-out,
    filter 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

#syca-map .harbor-icon-grey .harbor-icon-inner {
  filter: grayscale(100%) brightness(0.6) contrast(1.1);
  opacity: 0.85;
}

#syca-map .harbor-icon:hover .harbor-icon-inner {
  transform: scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.65);
}

#syca-map .harbor-icon.harbor-icon-grey:hover .harbor-icon-inner {
  transform: scale(1.04);
  filter: grayscale(90%) brightness(0.8);
  box-shadow: 0 0 6px rgba(244, 224, 77, 0.3);
}


/* =========================================================
   6) Harbor Hover Label
   ========================================================= */

#syca-map .harbor-hover-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  transform-origin: left center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  pointer-events: none;
  user-select: none;

  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(18, 27, 39, 0.88);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.10);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

#syca-map.harbor-hover-enabled .harbor-icon.is-hovered .harbor-hover-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

#syca-map.harbor-touch-labels-enabled .harbor-hover-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

#syca-map .harbor-icon.has-popup-open .harbor-hover-label {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-50%) translateX(-4px) !important;
}

@media (hover: none), (pointer: coarse) {
  #syca-map:not(.harbor-touch-labels-enabled) .harbor-hover-label {
    display: none !important;
  }
}


/* =========================================================
   7) Opinion Marker
   ========================================================= */

.opinion-marker {
  opacity: 0;
  transform: scale(.88);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

.opinion-marker.is-in {
  opacity: 1;
  transform: scale(1);
}

.opinion-marker.is-out {
  opacity: 0;
  transform: scale(.88);
}

@media (prefers-reduced-motion: reduce) {
  .opinion-marker {
    transition: none;
  }
}

.opinion-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10, 35, 48, .85);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.opinion-icon .glyphicon {
  font-size: 16px;
  top: 0;
}

.opinion-glyph {
  font-size: 16px;
  line-height: 1;
  transform: translateY(1px);
}

.opinion-svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: rgba(255,255,255,.9);
  flex: 0 0 auto;
}

.opinion-icon .opinion-svg {
  width: 18px;
  height: 18px;
}

/* Topic-Farbtendenzen */
.topic-travel       { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(120,180,255,.08); }
.topic-marina       { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(180,220,255,.07); }
.topic-anchorage    { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(140,210,190,.07); }
.topic-provisioning { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(240,220,140,.07); }
.topic-service      { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(220,220,220,.06); }
.topic-restaurants  { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(255,190,160,.07); }
.topic-sights       { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(200,170,255,.07); }
.topic-weather      { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(170,210,255,.07); }
.topic-fees         { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(170,255,200,.06); }
.topic-hazard       { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(255,140,140,.08); }
.topic-info         { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(180,255,255,.06); }
.topic-general      { box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 0 0 999px rgba(255,255,255,.05); }


/* =========================================================
   8) Opinion Dock / Cards / Bilder
   ========================================================= */

.opinion-card {
  --card-bg: rgba(10, 35, 48, .72);
  background: var(--card-bg);
}

.opinion-img-row {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: start;
}

@media (max-width: 560px) {
  .opinion-img-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.opinion-img-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  width: 100%;
}

.opinion-img-btn img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.opinion-img-cap {
  position: relative;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(2 * 1.25em);
}

.opinion-img-cap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.2em;
  background: linear-gradient(
    to bottom,
    rgba(10,35,48,0),
    var(--card-bg)
  );
  pointer-events: none;
}

.opinion-img-more-tile {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  color: rgba(255,255,255,.88);
}

.opinion-img-more-tile:hover {
  background: rgba(255,255,255,.10);
}

.opinion-img-more-plus {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.opinion-img-more-label {
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
}

.opinion-img-rest {
  display: none;
}

.opinion-img-row.is-expanded .opinion-img-rest {
  display: contents;
}

.opinion-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: rgba(255,255,255,.58);
}

.opinion-more-btn {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.opinion-more-btn:hover {
  background: rgba(255,255,255,.10);
}

/* Share-Button im Dock zentrieren */
.opinion-more-btn.opinion-share-btn {
  display: block;
  margin: 10px auto 0;
  width: fit-content;
  max-width: 100%;
}

@supports not (width: fit-content) {
  .opinion-more-btn.opinion-share-btn {
    display: inline-block;
  }

  #opinion-dock {
    text-align: center;
  }

  #opinion-dock .opinion-card {
    text-align: left;
  }
}


/* =========================================================
   9) Lightbox
   ========================================================= */

.syca-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.78);
  z-index: 999999;
}

.syca-lightbox.is-open {
  display: flex;
}

.syca-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  background: rgba(10, 35, 48, .92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
}

.syca-lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.syca-lightbox-close:hover {
  background: rgba(0,0,0,.55);
}

.syca-lightbox-img {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(86vh - 64px);
  object-fit: contain;
}

.syca-lightbox-cap {
  padding: 10px 14px 14px;
  color: rgba(255,255,255,.80);
  font-size: 14px;
  line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}


/* =========================================================
   10) Theme Toggle Button
   ========================================================= */

.syca-map-theme-toggle {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  z-index: 1200;

  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10, 35, 48, .90);
  color: #f3cf72;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 14px 28px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.04);

  backdrop-filter: blur(6px);
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity .65s ease,
    transform .65s ease,
    background .22s ease,
    color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.syca-map-theme-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.syca-map-theme-toggle:hover {
  background: rgba(12, 42, 58, .96);
  color: #ffdf8a;
  border-color: rgba(243, 207, 114, .24);
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    0 0 18px rgba(243,207,114,.14),
    inset 0 0 0 1px rgba(243,207,114,.08);
}

.syca-map-theme-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(243,207,114,.18),
    0 16px 34px rgba(0,0,0,.34);
}

.syca-map-theme-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}


/* =========================================================
   11) Dark Mode – Karte / Popup / Harbor / Opinion
   ========================================================= */

#syca-map.syca-map-dark {
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    0 0 0 1px rgba(243,207,114,.05) inset;
}

#syca-map.syca-map-dark .leaflet-container {
  background: #081018 !important;
}

/* Zoom-Buttons */
#syca-map.syca-map-dark .leaflet-control-zoom a {
  background: rgba(10, 35, 48, .92);
  color: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.10);
}

#syca-map.syca-map-dark .leaflet-control-zoom a:hover {
  background: rgba(14, 46, 63, .96);
  color: #ffdf8a;
}

/* Attribution */
#syca-map.syca-map-dark .leaflet-control-attribution {
  background: rgba(10, 35, 48, .55);
  color: rgba(255,255,255,.52);
}

/* Hover Label */
#syca-map.syca-map-dark .harbor-hover-label {
  background: rgba(10, 35, 48, .94);
  color: rgba(255,255,255,.94);
  box-shadow:
    0 10px 28px rgba(0,0,0,.28),
    0 0 18px rgba(243,207,114,.10),
    inset 0 0 0 1px rgba(243,207,114,.10);
}

/* Popup */
#syca-map.syca-map-dark .leaflet-popup-content-wrapper {
  background: rgba(10, 35, 48, .96);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(243,207,114,.14);
  box-shadow:
    0 20px 44px rgba(0,0,0,.42),
    0 0 22px rgba(243,207,114,.10),
    inset 0 0 0 1px rgba(255,255,255,.03);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

#syca-map.syca-map-dark .leaflet-popup-content-wrapper:hover {
  border-color: rgba(243,207,114,.24);
  box-shadow:
    0 22px 48px rgba(0,0,0,.46),
    0 0 30px rgba(243,207,114,.16),
    inset 0 0 0 1px rgba(243,207,114,.05);
}

#syca-map.syca-map-dark .leaflet-popup-tip {
  background: rgba(10, 35, 48, .96);
  box-shadow: 0 0 14px rgba(243,207,114,.08);
}

#syca-map.syca-map-dark .leaflet-popup-content strong {
  color: #fff4cf;
}

#syca-map.syca-map-dark .popup-count {
  color: rgba(255,255,255,.78);
}

#syca-map.syca-map-dark .harbor-popup-btn {
  border-color: rgba(243,207,114,.26);
  background: rgba(243,207,114,.05);
  color: #f6d67d;
}

#syca-map.syca-map-dark .harbor-popup-btn:hover {
  background: rgba(243,207,114,.11);
  box-shadow: 0 0 16px rgba(243,207,114,.14);
}

/* Opinion Marker */
#syca-map.syca-map-dark .opinion-icon {
  border-color: rgba(243,207,114,.16);
  box-shadow:
    0 10px 20px rgba(0,0,0,.25),
    0 0 14px rgba(243,207,114,.12);
}

#syca-map.syca-map-dark .opinion-marker:hover .opinion-icon {
  box-shadow:
    0 10px 20px rgba(0,0,0,.25),
    0 0 22px rgba(243,207,114,.18);
}

/* Opinion Dock */
#opinion-dock.syca-dark .opinion-card {
  --card-bg: rgba(10, 35, 48, .88);
  background: var(--card-bg);
  border-color: rgba(243,207,114,.12);
  box-shadow:
    0 14px 34px rgba(0,0,0,.34),
    0 0 22px rgba(243,207,114,.08),
    inset 0 0 0 1px rgba(255,255,255,.03);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

#opinion-dock.syca-dark .opinion-card:hover {
  border-color: rgba(243,207,114,.22);
  box-shadow:
    0 16px 40px rgba(0,0,0,.40),
    0 0 30px rgba(243,207,114,.14),
    inset 0 0 0 1px rgba(243,207,114,.04);
  transform: translateY(-1px);
}

#opinion-dock.syca-dark .opinion-card-title,
#opinion-dock.syca-dark .opinion-preview,
#opinion-dock.syca-dark .opinion-full,
#opinion-dock.syca-dark .opinion-meta,
#opinion-dock.syca-dark .opinion-foot,
#opinion-dock.syca-dark .opinion-img-cap {
  color: rgba(255,255,255,.88);
}

#opinion-dock.syca-dark .opinion-foot {
  border-top-color: rgba(243,207,114,.10);
  color: rgba(255,255,255,.60);
}

#opinion-dock.syca-dark .opinion-topic-badge {
  background: rgba(243,207,114,.07);
  border-color: rgba(243,207,114,.14);
  color: #f7d781;
  box-shadow: 0 0 10px rgba(243,207,114,.10);
}

#opinion-dock.syca-dark .opinion-more-btn,
#opinion-dock.syca-dark .opinion-card-close,
#opinion-dock.syca-dark .opinion-img-more-tile {
  background: rgba(255,255,255,.05);
  border-color: rgba(243,207,114,.14);
  color: rgba(255,255,255,.88);
}

#opinion-dock.syca-dark .opinion-more-btn:hover,
#opinion-dock.syca-dark .opinion-card-close:hover,
#opinion-dock.syca-dark .opinion-img-more-tile:hover {
  background: rgba(243,207,114,.10);
  color: #fff2c5;
  box-shadow: 0 0 18px rgba(243,207,114,.14);
}

#opinion-dock.syca-dark .opinion-img-btn {
  border-color: rgba(243,207,114,.10);
  box-shadow:
    0 10px 18px rgba(0,0,0,.24),
    0 0 14px rgba(243,207,114,.06);
}

#opinion-dock.syca-dark .opinion-img-btn:hover {
  box-shadow:
    0 14px 24px rgba(0,0,0,.28),
    0 0 18px rgba(243,207,114,.10);
}

/* Lightbox im Dark Mode */
.syca-lightbox.syca-dark .syca-lightbox-inner {
  background: rgba(10, 35, 48, .96);
  border-color: rgba(243,207,114,.14);
  box-shadow:
    0 30px 80px rgba(0,0,0,.58),
    0 0 24px rgba(243,207,114,.10);
}

.syca-lightbox.syca-dark .syca-lightbox-close {
  border-color: rgba(243,207,114,.16);
  color: rgba(255,255,255,.94);
}

.syca-lightbox.syca-dark .syca-lightbox-close:hover {
  background: rgba(243,207,114,.10);
}

.syca-lightbox.syca-dark .syca-lightbox-cap {
  border-top-color: rgba(243,207,114,.10);
  color: rgba(255,255,255,.82);
}


/* =========================================================
   12) Responsive
   ========================================================= */

@media (max-width: 768px) {
  .syca-map-theme-toggle {
    left: 12px;
    width: 42px;
    height: 42px;
  }

  .syca-map-theme-toggle svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 560px) {
  .opinion-img-more-tile {
    height: 120px;
  }
}


/* =========================================================
   13) Map Search (V1) – Suchfeld oben + Chips dazwischen
   ========================================================= */

#syca-map-shell {
  width: 80%;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  clear: both;
  float: none !important;
  position: relative;
}

#syca-map-shell,
#syca-map-shell * {
  box-sizing: border-box;
}

#syca-map-shell > * {
  float: none !important;
  clear: none !important;
  max-width: 100%;
}

/* feste Reihenfolge */
.syca-map-searchbar { order: 1; }
.syca-map-suggestions { order: 2; }
#syca-map { order: 3; }

/* Karte im Shell */
#syca-map-shell #syca-map {
  width: 100%;
  margin: 0;
  display: block;
}

/* Suchbox */
.syca-map-searchbar {
  display: block;
  width: min(100%, 480px);
  max-width: 100%;
  margin: 0 auto 14px auto;
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(10, 35, 48, .72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
}

.syca-map-search-label {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.syca-map-search-input {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  outline: none;
  font-size: 14px;
  line-height: 1.2;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.syca-map-search-input:focus {
  border-color: rgba(243,207,114,.28);
  box-shadow: 0 0 0 3px rgba(243,207,114,.14);
  background: rgba(0,0,0,.26);
}

/* Chips-Zone */
.syca-map-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px 0;
  padding: 0;
  float: none !important;
  clear: none !important;
  position: relative;
}

.syca-map-suggestions.has-suggestions {
  min-height: 44px;
}

/* Chip */
.syca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 35, 48, .62);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  white-space: nowrap;
  position: relative;
  overflow: visible;
}

.syca-chip-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .16s ease, transform .14s ease;
}

.syca-chip-main:hover {
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.syca-chip-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(243,207,114,.18);
  background: rgba(0,0,0,.22);
  color: rgba(243,207,114,.92);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background .16s ease, transform .14s ease, box-shadow .16s ease;
}

.syca-chip-info:hover {
  background: rgba(243,207,114,.10);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(243,207,114,.12);
}

/* Darkmode Search UI */
#syca-map-shell:has(#syca-map.syca-map-dark) .syca-map-searchbar {
  background: rgba(10, 35, 48, .86);
  border-color: rgba(243,207,114,.12);
  box-shadow:
    0 12px 28px rgba(0,0,0,.26),
    0 0 18px rgba(243,207,114,.06);
}

#syca-map-shell:has(#syca-map.syca-map-dark) .syca-map-search-label {
  color: rgba(255,255,255,.82);
}

#syca-map-shell:has(#syca-map.syca-map-dark) .syca-map-search-input {
  border-color: rgba(243,207,114,.14);
  background: rgba(0,0,0,.24);
}

#syca-map-shell:has(#syca-map.syca-map-dark) .syca-chip {
  background: rgba(10, 35, 48, .78);
  border-color: rgba(243,207,114,.12);
  box-shadow:
    0 10px 20px rgba(0,0,0,.20),
    0 0 16px rgba(243,207,114,.06);
}

#syca-map-shell:has(#syca-map.syca-map-dark) .syca-chip-info {
  border-color: rgba(243,207,114,.24);
  color: #f6d67d;
}

/* =========================================================
   14) Harbor Highlight (Suche)
   - is-search-hit: dauerhaft (solange Match)
   - is-search-ping: kurzer Impuls (bei Klick / Info)
   ========================================================= */

#syca-map .harbor-icon.is-search-hit .harbor-icon-inner {
  transform: scale(1.06);
  filter: brightness(1.18);
  box-shadow: 0 0 12px rgba(244, 224, 77, 0.55);
}

#syca-map.syca-map-dark .harbor-icon.is-search-hit .harbor-icon-inner {
  filter: brightness(1.05);
  box-shadow: 0 0 14px rgba(243,207,114,.18);
}

@keyframes sycaHarborPing {
  0%   { transform: scale(1.00); box-shadow: 0 0 0 rgba(244,224,77,0.00); }
  35%  { transform: scale(1.10); box-shadow: 0 0 18px rgba(244,224,77,0.70); }
  100% { transform: scale(1.03); box-shadow: 0 0 10px rgba(244,224,77,0.35); }
}

#syca-map .harbor-icon.is-search-ping .harbor-icon-inner {
  animation: sycaHarborPing 650ms ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
  #syca-map .harbor-icon.is-search-ping .harbor-icon-inner {
    animation: none;
  }
}

/* =========================================================
   15) Mobile Feinschliff Search
   ========================================================= */

@media (max-width: 768px) {
  #syca-map-shell {
    width: min(92%, 920px);
  }

  .syca-map-searchbar {
    padding: 12px 13px;
  }
}

@media (max-width: 560px) {

  .syca-chip-main {
    font-size: 12.5px;
    padding: 4px 9px;
  }

  .syca-chip-info {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}