/**
 * flugbuchen.de — Map-First Explorer Styles
 * @copyright reDim GmbH | @link https://www.redim.de | @contact team@redim.de
 */

/* ========================================
   1. Map Hero (100vh)
   ======================================== */
.map-hero {
    position: relative;
    width: 100%;
    /* Karte beginnt UNTER der Nav (4rem = 64px) */
    height: calc(100vh - 4rem);
    height: calc(100dvh - 4rem);
    /* Weiße Fläche — Karte "schwebt" auf hellem Grund */
    background: #fff;
    /* visible: Tooltips dürfen über die Kartengrenzen hinausragen */
    overflow: visible;
    /* Über Nav (z-index:100) + Galerie damit Tooltips nie verdeckt werden */
    z-index: 101;
}

/* Mobile: Karte braucht nicht die volle Viewport-Höhe */
@media (max-width: 767px) {
    .map-hero {
        height: auto;
        min-height: 60vh;
        padding-bottom: 2rem;
    }
}

/* Galerie-Section clippt den Map-Overflow von oben */
.dest-gallery {
    position: relative;
    z-index: 1;
}

/* Insets im SVG-Wrapper — leicht nach rechts überlappend.
   Slide-in Animation + kompakte Darstellung bei vielen Insets. */
.map-hero .worldmap-insets {
    position: absolute;
    z-index: 20;
    right: -40px;
    /* Smooth einblenden: startet unsichtbar + leicht nach oben versetzt,
       gleitet nach unten in die finale Position */
    opacity: 0;
    transform: translateY(-12px);
    animation: insets-slide-in 0.4s ease 0.3s forwards;
}

@keyframes insets-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-hero .worldmap-insets {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Nav-Bar: solider Balken, NICHT transparent — klare Trennung */
.has-transparent-nav .site-header {
    position: sticky !important;
    background: var(--color-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Logo + Nav-Links in weißer Schrift auf dunklem Header */
.has-transparent-nav .site-logo {
    color: #fff;
}

.has-transparent-nav .main-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.has-transparent-nav .main-nav a:hover,
.has-transparent-nav .main-nav a.is-active {
    color: #fff;
}

.map-hero__map-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Unsichtbar bis SVG geladen und positioniert ist.
       home-explorer.js setzt .is-ready nach Setup → fade-in */
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Mobile: Karte oben ausrichten statt zentriert — vermeidet Leerraum oben */
@media (max-width: 767px) {
    .map-hero__map-wrap {
        align-items: flex-start;
        padding-top: 8px;
    }
}

.map-hero__map-wrap.is-ready {
    opacity: 1;
}

/* #fb-map-wrap: Positionskontext für die SVG */
.map-hero__map-wrap #fb-map-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-hero__map-wrap #fb-map-wrap svg.worldmap {
    /* Größe wird per JS berechnet (home-explorer.js fixSvgScaling).
       Zentriert per flexbox auf dem Eltern-Container. */
    display: block;
}

/* SVG-Hintergrund-Rect (#F8FAFC) unsichtbar machen — Karte schwebt
   nahtlos auf dem weißen Seitenhintergrund.
   rect ist das 2. Kind (nach <defs>), daher first-of-type */
.map-hero__map-wrap #fb-map-wrap svg.worldmap > rect:first-of-type {
    fill: #fff !important;
    rx: 0 !important;
    ry: 0 !important;
}

/* Country-Farben: Orange komplett durch dunkles Grün ersetzen */
.map-hero .country--highlight,
.map-hero .country--focused {
    fill: #065F46 !important;
}

.map-hero .country--destination:hover {
    fill: #065F46 !important;
}

/* Panel-Shift: sanftes Gleiten statt Sprung */
.map-hero__map-wrap {
    transition: transform 0.4s ease;
}

.map-hero__map-wrap.is-shifted {
    transform: translateX(130px);
}

@media (max-width: 1023px) {
    .map-hero__map-wrap.is-shifted {
        transform: none;
    }
}

/* Resume-Dialog auf Homepage unterdrücken */
.map-hero ~ #fb-resume-dialog,
.has-transparent-nav #fb-resume-dialog {
    display: none !important;
}

/* Inset-Fenster (Alaska, Hawaii, Kanaren etc.) sichtbar machen */
.map-hero .worldmap-insets {
    z-index: 15;
}

/* Desktop: Kein Scroll, kein Clipping — Insets dürfen über den Rand ragen */
.map-hero .worldmap-insets {
    overflow: visible;
}

/* Ab 5+ Insets: kompakter — Höhe und Gap reduzieren */
.map-hero .worldmap-insets:has(.worldmap-inset:nth-child(5)) {
    gap: 0.2rem;
}

.map-hero .worldmap-insets:has(.worldmap-inset:nth-child(5)) .worldmap-inset {
    width: 100px;
    padding: 0.125rem 0.2rem 0.0625rem;
}

.map-hero .worldmap-insets:has(.worldmap-inset:nth-child(5)) .worldmap-inset-label {
    font-size: 0.4375rem;
    margin-bottom: 0;
}

.map-hero .worldmap-insets:has(.worldmap-inset:nth-child(5)) .worldmap-inset-svg {
    max-height: 40px;
}

.map-hero .worldmap-insets:has(.worldmap-inset:nth-child(5)) .worldmap-inset-pin {
    width: 10px;
    height: 10px;
    font-size: 0.4rem;
}

/* Fallback für Browser ohne :has() */
.map-hero .worldmap-insets.many-insets {
    gap: 0.2rem;
}

.map-hero .worldmap-insets.many-insets .worldmap-inset {
    width: 100px;
    padding: 0.125rem 0.2rem 0.0625rem;
}

.map-hero .worldmap-insets.many-insets .worldmap-inset-label {
    font-size: 0.4375rem;
    margin-bottom: 0;
}

.map-hero .worldmap-insets.many-insets .worldmap-inset-svg {
    max-height: 40px;
}

.map-hero .worldmap-insets.many-insets .worldmap-inset-pin {
    width: 10px;
    height: 10px;
    font-size: 0.4rem;
}

/* Mobile: Höhen-Scroll erlauben, kein Breiten-Scroll */
@media (max-width: 1023px) {
    .map-hero .worldmap-insets {
        max-height: calc(100% - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Inset-Hover: dunkles Grün statt Orange */
.map-hero .worldmap-inset:hover,
.map-hero .worldmap-inset:focus-visible {
    border-color: #065F46;
    box-shadow: 0 4px 16px rgba(6, 95, 70, 0.2);
}

/* Logo-Badge: unten links relativ zum SVG-Wrapper (wie Breadcrumb oben links) */
.map-hero__logo {
    position: absolute;
    bottom: -8px;
    left: -8px;
    z-index: 12;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(27, 42, 74, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px 8px 8px;
    border-radius: 28px;
    border: 1px solid rgba(27, 42, 74, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.map-hero__logo.is-hidden {
    opacity: 0;
}

.map-hero__logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-hero__logo-placeholder {
    color: #fff;
    font-weight: 800;
    font-size: 11px;
}

.map-hero__claim {
    display: none;
}

.map-hero__subclaim {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Logo-Badge bei Hover auf Karte dezent ausblenden */
.map-hero:hover .map-hero__logo {
    opacity: 0.3;
}

.map-hero:hover .map-hero__logo:hover {
    opacity: 1;
}

.map-hero__scroll {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Scroll-Indicator bei Hover dezent ausblenden */
.map-hero:hover .map-hero__scroll {
    opacity: 0.2;
}

/* Adaptiver Kontrast: Pill mit eigenem Blur-Background, sichtbar auf jedem Hintergrund */
.map-hero__scroll-pill {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(27, 42, 74, 0.3);
    border-radius: 13px;
    margin: 0 auto;
    position: relative;
    background: rgba(27, 42, 74, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.map-hero__scroll-dot {
    width: 4px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: heroScrollBounce 1.8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes heroScrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .map-hero__scroll-dot { animation: none; }
}

/* ========================================
   2. Reisefinder Panel (Desktop)
   ======================================== */
.explorer-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: 260px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0.3s;
    pointer-events: none;
}

.explorer-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0s;
    pointer-events: auto;
}

.explorer-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.explorer-panel__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.explorer-panel__close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
    min-width: 44px;
}

.explorer-panel__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.explorer-panel__progress { padding: 8px 14px; }

.explorer-panel__progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.explorer-panel__progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-secondary), #10B981);
    transition: width 0.3s ease;
}

.explorer-panel__progress-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    display: block;
}

.explorer-panel__body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════════════════════
   Fragenbaum-in-Panel: Dark-Theme Override

   fragenbaum.css definiert helle Styles. Im Explorer-Panel
   wird alles auf dunkles Glassmorphism umgestellt.
   Schriftgrößen angepasst für gute Lesbarkeit im Panel.
   ══════════════════════════════════════════════════════════ */

/* --- Frage-Container --- */
.explorer-panel .fragenbaum__question {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: none !important;
}

/* --- Frage-Nummer (z.B. "FRAGE 3 VON 12") --- */
.explorer-panel .fragenbaum__question-number {
    font-size: 0.5625rem;
    padding: 2px 8px;
    margin-bottom: 8px;
    background: rgba(13, 148, 136, 0.15);
    color: var(--color-secondary);
    border-radius: 9999px;
    display: inline-block;
}

/* --- Frage-Text --- */
.explorer-panel .fragenbaum__question-text {
    font-size: 0.8125rem !important;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 6px !important;
    line-height: 1.4;
}

/* --- Frage-Hinweis (z.B. "Mehrere Antworten möglich") --- */
.explorer-panel .fragenbaum__question-hint {
    font-size: 0.6875rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 10px !important;
    line-height: 1.4;
}

/* --- Antwort-Liste --- */
.explorer-panel .fragenbaum__answers {
    gap: 6px !important;
}

/* --- Antwort-Karte --- */
.explorer-panel .fragenbaum__answer-card {
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    color: #fff !important;
    min-height: 38px !important;
    box-shadow: none !important;
    gap: 8px !important;
    line-height: 1.35;
    transition: border-color 0.15s, background 0.15s !important;
}

.explorer-panel .fragenbaum__answer-card:hover {
    border-color: var(--color-secondary) !important;
    background: rgba(13, 148, 136, 0.1) !important;
}

.explorer-panel .fragenbaum__answer-card.is-selected {
    border-color: var(--color-secondary) !important;
    background: rgba(13, 148, 136, 0.18) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* --- Antwort-Label --- */
.explorer-panel .fragenbaum__answer-label {
    font-size: 0.75rem !important;
    color: #fff !important;
}

/* --- Multi-Choice Checkboxen --- */
.explorer-panel .fragenbaum__checkbox {
    width: 16px !important;
    height: 16px !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
    flex-shrink: 0;
}

.explorer-panel .fragenbaum__answer-card.is-selected .fragenbaum__checkbox {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

/* --- Slider --- */
.explorer-panel .fragenbaum__slider-track {
    background: rgba(255, 255, 255, 0.1) !important;
}

.explorer-panel .fragenbaum__slider-fill {
    background: var(--color-secondary) !important;
}

.explorer-panel .fragenbaum__slider-thumb {
    background: #fff !important;
    border-color: var(--color-secondary) !important;
}

.explorer-panel .fragenbaum__slider-value {
    color: #fff !important;
}

/* --- Freitext --- */
.explorer-panel .fragenbaum__freitext-input,
.explorer-panel textarea {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
}

.explorer-panel .fragenbaum__freitext-input::placeholder,
.explorer-panel textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* --- Autocomplete (Länderwahl) --- */
.explorer-panel .fragenbaum__autocomplete-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 0.75rem !important;
}

.explorer-panel .fragenbaum__autocomplete-dropdown {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.explorer-panel .fragenbaum__autocomplete-item {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem !important;
}

.explorer-panel .fragenbaum__autocomplete-item:hover {
    background: rgba(13, 148, 136, 0.15) !important;
}

/* --- Micro-Rewards / Fun-Facts --- */
.explorer-panel .fragenbaum__micro-reward {
    font-size: 0.6875rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(13, 148, 136, 0.08) !important;
    padding: 6px 10px !important;
    margin-top: 8px;
    border-radius: 6px;
    border-left: 2px solid var(--color-secondary) !important;
}

.explorer-panel .fragenbaum__micro-reward-label {
    color: var(--color-secondary) !important;
}

/* --- Skeleton Loader --- */
.explorer-panel .fragenbaum__skeleton {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px;
}

/* --- Action-Buttons im Panel-Footer --- */
.explorer-panel .fragenbaum__btn-back,
.explorer-panel .fragenbaum__btn-skip {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 36px;
    transition: background 0.15s;
}

.explorer-panel .fragenbaum__btn-back:hover,
.explorer-panel .fragenbaum__btn-skip:hover {
    background: rgba(255, 255, 255, 0.1);
}

.explorer-panel .fragenbaum__results-btn {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 36px;
    transition: background 0.15s;
}

.explorer-panel .fragenbaum__results-btn:hover {
    background: #0B7E73;
}

/* (Fragenbaum-Overrides sind oben im Dark-Theme Block definiert) */

.explorer-panel__footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 8px;
}

.explorer-panel__btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.15s;
}

.explorer-panel__btn--skip {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.explorer-panel__btn--skip:hover { background: rgba(255, 255, 255, 0.1); }

.explorer-panel__btn--next {
    background: var(--color-secondary);
    color: #fff;
}

.explorer-panel__btn--next:hover { background: #0B7E73; }

/* ========================================
   3. Collapsed Button
   ======================================== */
.explorer-collapsed {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 12;
    background: rgba(27, 42, 74, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 42, 74, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, transform 0.15s;
    min-height: 44px;
}

.explorer-collapsed.is-visible { display: flex; }

.explorer-collapsed:hover {
    border-color: var(--color-secondary);
    transform: translateY(-50%) scale(1.05);
}

.explorer-collapsed__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.explorer-collapsed__icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
}

.explorer-collapsed__label {
    font-size: 0.625rem;
    color: var(--color-secondary);
    font-weight: 600;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.08em;
}

/* ========================================
   4. Counter Badge
   ======================================== */
.explorer-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 12;
    background: rgba(27, 42, 74, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 42, 74, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.explorer-counter strong {
    color: var(--color-secondary);
    font-weight: 700;
}

/* ========================================
   4b. Breadcrumb Navigation
   ======================================== */
/* SVG-Wrapper: gleiche Größe wie die SVG, zentriert per Eltern-Flexbox.
   Insets + Breadcrumb + Pin-Tooltips positionieren sich relativ hierzu. */
.explorer-svg-wrapper {
    position: relative;
    display: inline-block;
    /* overflow: visible damit Tooltips oben/unten nicht abgeschnitten werden */
    overflow: visible;
}

.explorer-breadcrumb {
    /* Relativ zum SVG-Wrapper — sitzt an der oberen linken Kante der Karte */
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(27, 42, 74, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(27, 42, 74, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.625rem;
}

.explorer-breadcrumb__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.explorer-breadcrumb__link:hover {
    color: #fff;
}

.explorer-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.explorer-breadcrumb__current {
    color: #fff;
    font-weight: 600;
}

/* Separator + leere Spans ausblenden wenn kein Land gewählt */
.explorer-breadcrumb__current:empty {
    display: none;
}

.explorer-breadcrumb__current:empty + .explorer-breadcrumb__sep {
    display: none;
}

/* Ersten Separator verstecken wenn Country leer ist */
#fb-breadcrumb-sep1:has(+ .explorer-breadcrumb__current:empty) {
    display: none;
}

/* ========================================
   5. Mobile Bottom-Sheet
   ======================================== */
@media (max-width: 1023px) {
    .explorer-panel { display: none; }

    .explorer-collapsed {
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 10px 16px;
    }

    .explorer-collapsed:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .explorer-collapsed__label {
        writing-mode: horizontal-tb;
    }
}

.explorer-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    max-height: 45vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.explorer-sheet.is-open { transform: translateY(0); }

.explorer-sheet__handle {
    padding: 8px 0 4px;
    flex-shrink: 0;
}

.explorer-sheet__handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto;
}

.explorer-sheet__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    min-height: 44px;
    min-width: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explorer-sheet__close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.explorer-sheet__content {
    flex: 1;
    padding: 8px 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   6. Destinations Galerie
   ======================================== */
.dest-gallery {
    padding: 4rem 0;
    background: var(--color-bg);
}

.dest-gallery__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.dest-gallery__personal {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    display: none;
}

.dest-gallery__personal.is-visible { display: block; }

.dest-gallery__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.dest-gallery__hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.dest-gallery__hero-slide {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    position: relative;
    background: var(--color-primary);
}

@media (max-width: 767px) {
    .dest-gallery__hero-slide {
        aspect-ratio: 16 / 9;
    }
}

.dest-gallery__hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(13, 148, 136, 0.2) 100%);
}

.dest-gallery__hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.dest-gallery__hero-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dest-gallery__hero-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    max-width: 500px;
}

.dest-gallery__hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-cta);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    min-height: 44px;
    transition: background 0.15s;
}

.dest-gallery__hero-cta:hover {
    background: var(--color-cta-hover, #EA580C);
    color: #fff;
}

.dest-gallery__hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}

.dest-gallery__hero-nav:hover { background: rgba(0, 0, 0, 0.6); }
.dest-gallery__hero-nav--prev { left: 2rem; }
.dest-gallery__hero-nav--next { right: 2rem; }

.dest-gallery__grid {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .dest-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .dest-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

.dest-gallery__card {
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s, transform 0.15s;
}

.dest-gallery__card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.dest-gallery__card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dest-gallery__card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--color-primary);
}

.dest-gallery__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-gallery__card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(13, 148, 136, 0.15) 100%);
}

/* Typ-basierte Platzhalter-Gradienten — kräftig, mit dunkler Mitte für Textlesbarkeit */
.dest-gallery__hero-placeholder[data-typ="Strand"],
.dest-gallery__card-placeholder[data-typ="Strand"] { background: linear-gradient(135deg, #0C4A6E, #0891B2 60%, #0E7490); }

.dest-gallery__hero-placeholder[data-typ="Insel"],
.dest-gallery__hero-placeholder[data-typ*="Insel"],
.dest-gallery__card-placeholder[data-typ="Insel"],
.dest-gallery__card-placeholder[data-typ*="Insel"] { background: linear-gradient(135deg, #164E63, #0E7490 60%, #0891B2); }

.dest-gallery__hero-placeholder[data-typ*="Kueste"],
.dest-gallery__card-placeholder[data-typ*="Kueste"] { background: linear-gradient(135deg, #134E4A, #155E75 60%, #0891B2); }

.dest-gallery__hero-placeholder[data-typ="Stadt"],
.dest-gallery__hero-placeholder[data-typ^="Stadt"],
.dest-gallery__card-placeholder[data-typ="Stadt"],
.dest-gallery__card-placeholder[data-typ^="Stadt"] { background: linear-gradient(135deg, #0F172A, #1E3A8A 55%, #1E40AF); }

.dest-gallery__hero-placeholder[data-typ="Natur"],
.dest-gallery__hero-placeholder[data-typ="Bergregion"],
.dest-gallery__card-placeholder[data-typ="Natur"],
.dest-gallery__card-placeholder[data-typ="Bergregion"] { background: linear-gradient(135deg, #064E3B, #166534 55%, #15803D); }

.dest-gallery__hero-placeholder[data-typ="Region"],
.dest-gallery__hero-placeholder[data-typ="Land"],
.dest-gallery__card-placeholder[data-typ="Region"],
.dest-gallery__card-placeholder[data-typ="Land"] { background: linear-gradient(135deg, #78350F, #B45309 55%, #C2410C); }

.dest-gallery__card-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.8125rem;
    font-weight: 700;
}

.dest-gallery__card-body { padding: 0.75rem 1rem; }

.dest-gallery__card-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.125rem;
}

.dest-gallery__card-country {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.dest-gallery__footer {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    text-align: center;
}

/* ========================================
   7. Schnellziele Kategorien
   ======================================== */
.quick-categories {
    padding: 3rem 0;
    background: var(--color-bg-alt);
}

.quick-categories__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

.quick-categories__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

.quick-categories__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .quick-categories__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .quick-categories__grid { grid-template-columns: repeat(6, 1fr); }
}

.quick-categories__tile {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background: var(--color-primary);
    transition: transform 0.15s;
}

.quick-categories__tile:hover { transform: translateY(-2px); }

.quick-categories__tile.is-highlighted {
    box-shadow: 0 0 0 2px var(--color-secondary), 0 0 16px rgba(13, 148, 136, 0.2);
}

.quick-categories__tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Kategorie-basierte Gradienten (Schnellziele-Kacheln) */
.quick-categories__tile[data-category="strand"] { background: linear-gradient(135deg, #0891B2, #06B6D4); }
.quick-categories__tile[data-category="abenteuer"] { background: linear-gradient(135deg, #166534, #34D399); }
.quick-categories__tile[data-category="kultur"] { background: linear-gradient(135deg, #B45309, #F59E0B); }
.quick-categories__tile[data-category="party"] { background: linear-gradient(135deg, #9D174D, #EC4899); }
.quick-categories__tile[data-category="budget"] { background: linear-gradient(135deg, #0F766E, #2DD4BF); }
.quick-categories__tile[data-category="romantik"] { background: linear-gradient(135deg, #9F1239, #FB7185); }

.quick-categories__tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.6));
}

.quick-categories__tile-label {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   8. So funktioniert's (kompakt)
   ======================================== */
.explorer-hiw {
    padding: 3rem 0;
    background: var(--color-bg);
}

.explorer-hiw__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.explorer-hiw__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.explorer-hiw__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .explorer-hiw__grid { grid-template-columns: repeat(3, 1fr); }
}

.explorer-hiw__step {
    text-align: center;
    padding: 1.5rem;
}

.explorer-hiw__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.explorer-hiw__step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.explorer-hiw__step-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   9. Trust (kompakt)
   ======================================== */
.explorer-trust {
    padding: 2.5rem 0;
    background: var(--color-bg-alt);
}

.explorer-trust__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .explorer-trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.explorer-trust__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.explorer-trust__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-secondary);
}

.explorer-trust__icon svg {
    width: 100%;
    height: 100%;
}

.explorer-trust__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

/* ========================================
   10. Deals / Preisalarm
   ======================================== */
.explorer-deals {
    padding: 3rem 0;
    background: var(--color-bg);
}

.explorer-deals__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.explorer-deals__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.explorer-deals__cta {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.explorer-deals__cta-inner {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--color-border);
    text-align: center;
}

.explorer-deals__cta-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* ========================================
   Pin-Tooltip Overrides (Homepage)
   Breiter, mit Bild-Platzhalter, voller Text
   ======================================== */

/* Tooltip: 25% kleiner als Original (240→180 min, 320→240 max) */
.map-hero .worldmap-pin-tooltip {
    max-width: 240px;
    min-width: 180px;
    padding: 0;
    overflow: hidden;
}

/* Bild-Platzhalter (von home-explorer.js per MutationObserver injiziert) */
.map-hero .worldmap-pin-tooltip-image {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.map-hero .worldmap-pin-tooltip-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Typ-basierte Gradient-Platzhalter (Pin-Tooltip) — konsistent mit Galerie-Cards */
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Stadt"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ^="Stadt"] { background: linear-gradient(135deg, #0F172A, #1E3A8A 55%, #1E40AF); }

.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Insel"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Insel"] { background: linear-gradient(135deg, #164E63, #0E7490 60%, #0891B2); }

.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Strand"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Strand"] { background: linear-gradient(135deg, #0C4A6E, #0891B2 60%, #0E7490); }

/* Kueste — legacy Schreibweise in DB ohne Umlaut */
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Kueste"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Kueste"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Küste"] { background: linear-gradient(135deg, #134E4A, #155E75 60%, #0891B2); }

.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Natur"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Bergregion"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Natur"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ*="Berg"] { background: linear-gradient(135deg, #064E3B, #166534 55%, #15803D); }

.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Region"],
.map-hero .worldmap-pin-tooltip-image-placeholder[data-typ="Land"] { background: linear-gradient(135deg, #78350F, #B45309 55%, #C2410C); }

/* Stadtname als Overlay-Balken über dem Bild */
.map-hero .worldmap-pin-tooltip-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 42, 74, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.625rem;
    font-weight: 700;
    margin: 0;
    border-radius: 0;
    z-index: 1;
}

/* Typ-Label */
.map-hero .worldmap-pin-tooltip-typ {
    padding: 6px 10px 0;
    font-size: 0.5rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Beschreibung — voller Text, kein Abschneiden */
.map-hero .worldmap-pin-tooltip-desc {
    font-size: 0.5625rem;
    line-height: 1.35;
    padding: 3px 10px;
    color: var(--color-text);
}

/* Flugzeit */
.map-hero .worldmap-pin-tooltip-flight {
    padding: 3px 10px 8px;
    font-size: 0.5rem;
}

/* Pin-Tooltip über Insets */
.map-hero .worldmap-pin-tooltip {
    z-index: 30 !important;
}

/* Arrow anpassen für padding:0 Tooltip */
.map-hero .worldmap-pin-tooltip-arrow {
    z-index: 2;
}

/* ========================================
   Länder-Tooltip Redesign (Homepage)
   Bild-Platzhalter + Name-Overlay + Count
   ======================================== */

/* Länder-Tooltip: worldmap.js hängt ihn an document.body (nicht in .map-hero).
   opacity:0 verhindert Plaintext-Aufblitzen. data-enhanced → fade-in. */
.has-transparent-nav .worldmap-tooltip {
    opacity: 0 !important;
    transition: opacity 0.15s ease !important;
}

.has-transparent-nav .worldmap-tooltip[data-enhanced] {
    opacity: 1 !important;
}

/* Bild-Platzhalter (Gradient als Fallback, echtes Bild überlagert) */
.country-tooltip-image {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.country-tooltip-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Region-basierte Gradienten */
.country-tooltip-gradient--europa   { background: linear-gradient(135deg, #1E3A5F, #3B82F6); }
.country-tooltip-gradient--asien    { background: linear-gradient(135deg, #0E7490, #22D3EE); }
.country-tooltip-gradient--afrika   { background: linear-gradient(135deg, #92400E, #FBBF24); }
.country-tooltip-gradient--amerika  { background: linear-gradient(135deg, #065F46, #34D399); }
.country-tooltip-gradient--ozeanien { background: linear-gradient(135deg, #4338CA, #818CF8); }
.country-tooltip-gradient--default  { background: linear-gradient(135deg, #334155, #64748B); }

/* Ländername als Overlay-Balken */
.country-tooltip-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(27, 42, 74, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 10px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.country-tooltip-flag {
    font-size: 0.875rem;
    margin-right: 2px;
}

/* Info-Bereich unter dem Bild */
.country-tooltip-info {
    padding: 6px 10px 8px;
}

.country-tooltip-count {
    font-size: 0.6875rem;
    color: var(--color-secondary);
    font-weight: 600;
}
