/**
 * Apple 2026 Spatial Map — iPhone Map Mockup.
 */

#ta-create-invite-location.ta-create-spatial-card {
    --glass-bg: rgba(28, 28, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --ai-magenta: #ff2a6d;
    --ai-blue: #05d5ff;
    --ai-purple: #a500ff;
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1.15);
    --ta-create-card-pad: clamp(20px, 3.6vw, 34px);
    --ta-create-left-w: min(230px, 50%);
    --ta-create-phone-w: clamp(84px, 23vw, 104px);

    position: relative;
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 36px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow: visible;
    box-shadow: none;
    pointer-events: auto;
    animation: ta-create-card-rise 0.4s var(--ease-spring) both;
    -webkit-tap-highlight-color: transparent;
}

#ta-create-invite-location.ta-create-spatial-card:nth-child(1) {
    animation-delay: 0s;
}

#ta-create-invite-location.ta-create-spatial-card:focus-visible {
    outline: 2px solid var(--ai-blue);
    outline-offset: 4px;
}

html:not([data-lp-color-scheme='dark']) #ta-create-invite-location.ta-create-spatial-card {
    --glass-bg: rgba(255, 255, 255, 0.64);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #111111;
    --text-secondary: #5f6368;
}

html:not([data-lp-color-scheme='dark']) #ta-create-invite-location .premium-card {
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

#ta-create-invite-location .ambient-glow {
    position: absolute;
    width: 52%;
    height: 68%;
    left: 38%;
    top: 12%;
    background: radial-gradient(circle, rgba(5, 213, 255, 0.15) 0%, rgba(165, 0, 255, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: ta-spatial-pulse-glow 10s ease-in-out infinite alternate;
}

#ta-create-invite-location .premium-card {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 17 / 9;
    box-sizing: border-box;
    padding: var(--ta-create-card-pad);
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

#ta-create-invite-location .content-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    min-height: 100%;
    z-index: 3;
    flex: 0 0 var(--ta-create-left-w);
    max-width: var(--ta-create-left-w);
    min-width: 0;
}

#ta-create-invite-location .content-left__top {
    display: block;
}

#ta-create-invite-location .tag {
    display: inline-block;
    color: #0ea5e9;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 12px;
    -webkit-text-fill-color: currentColor;
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

#ta-create-invite-location .ta-create-invite__title {
    display: block;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.05rem, 3.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin: 0;
    color: var(--text-primary);
}

#ta-create-invite-location .subtitle {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.4;
    font-weight: 400;
}

#ta-create-invite-location .ta-create-invite__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    width: max-content;
    max-width: 100%;
    margin-top: auto;
}

#ta-create-invite-location .ta-create-invite__cta::after {
    content: '→';
    color: #38bdf8;
    transition: transform 0.4s var(--ease-spring);
}

#ta-create-invite-location:hover .ta-create-invite__cta::after,
#ta-create-invite-location:focus-visible .ta-create-invite__cta::after {
    transform: translateX(4px);
}

#ta-create-invite-location .content-right.map-phone-rail {
    position: relative;
    flex: 1 1 calc(100% - var(--ta-create-left-w));
    min-width: 0;
    max-width: calc(100% - var(--ta-create-left-w));
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}

#ta-create-invite-location .iphone-frame,
#ta-create-invite-post .iphone-frame {
    position: relative;
    width: var(--ta-create-phone-w);
    aspect-ratio: 280 / 570;
    background: #000;
    border-radius: clamp(18px, 6vw, 24px);
    padding: clamp(2px, 0.9vw, 4px);
    box-sizing: border-box;
    box-shadow:
        inset 0 0 0 1px #3f3f3f,
        inset 0 0 0 3px #000,
        0 18px 38px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

#ta-create-invite-location .iphone-frame::before,
#ta-create-invite-post .iphone-frame::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 21%;
    width: 2px;
    height: 11%;
    background: #444;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 13% 0 #444;
}

#ta-create-invite-location .iphone-frame::after,
#ta-create-invite-post .iphone-frame::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 27%;
    width: 2px;
    height: 14%;
    background: #444;
    border-radius: 0 2px 2px 0;
}

#ta-create-invite-location .iphone-screen,
#ta-create-invite-post .iphone-screen {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #090a0f;
    border-radius: clamp(16px, 5.5vw, 21px);
    overflow: hidden;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

#ta-create-invite-location .dynamic-island,
#ta-create-invite-post .dynamic-island {
    position: absolute;
    top: 3%;
    left: 50%;
    width: 34%;
    height: 5%;
    transform: translateX(-50%);
    background: #000;
    border-radius: 999px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4%;
    box-sizing: border-box;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

#ta-create-invite-location .dynamic-island::after,
#ta-create-invite-post .dynamic-island::after {
    content: '';
    width: 10%;
    aspect-ratio: 1;
    background: #0b0b12;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1), 0 0 2px rgba(5, 213, 255, 0.3);
}

#ta-create-invite-location .screen-glare,
#ta-create-invite-post .screen-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
    z-index: 90;
    pointer-events: none;
}

#ta-create-invite-location .topo-map {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 30 50 50 T 100 50 M0 70 Q 25 50 50 70 T 100 70 M0 30 Q 25 10 50 30 T 100 30' stroke='rgba(255,255,255,0.06)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 82px 82px;
    animation: ta-map-phone-move 4s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

#ta-create-invite-location .radar-sweep {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(5, 213, 255, 0.15), transparent 60%);
    z-index: 2;
}

#ta-create-invite-location .center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(5, 213, 255, 0) 0%, #fff 20%, #fff 80%, rgba(255, 42, 109, 0) 100%);
    border-radius: 10px;
    box-shadow:
        0 0 8px var(--ai-blue),
        0 0 18px var(--ai-purple),
        0 0 32px var(--ai-magenta);
    z-index: 5;
}

#ta-create-invite-location .screen-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #090a0f 2%, transparent 15%, transparent 85%, #090a0f 98%);
    z-index: 25;
    pointer-events: none;
}

#ta-create-invite-location .car-container {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.8));
}

#ta-create-invite-location .car-icon {
    display: block;
    width: clamp(16px, 5vw, 22px);
    height: clamp(16px, 5vw, 22px);
    fill: #fff;
}

#ta-create-invite-location #taMapPoiLayer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

#ta-create-invite-location .poi-row {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    display: block;
    z-index: 10;
}

#ta-create-invite-location .poi-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: #111;
    border: 2px solid #555;
    border-radius: 50%;
    transition: all 0.4s var(--ease-spring);
    z-index: 15;
    box-sizing: border-box;
}

#ta-create-invite-location .poi-icon {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    background: rgba(40, 40, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: all 0.5s var(--ease-spring);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#ta-create-invite-location .poi-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ta-create-invite-location .poi-icon.left {
    right: calc(50% + 12px);
    transform: translateY(-50%) scale(0.6);
    transform-origin: right center;
}

#ta-create-invite-location .poi-icon.right {
    left: calc(50% + 12px);
    transform: translateY(-50%) scale(0.6);
    transform-origin: left center;
}

#ta-create-invite-location .poi-row.active .poi-dot {
    background: #fff;
    border-color: #fff;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 14px var(--ai-blue), 0 0 26px var(--ai-magenta);
}

#ta-create-invite-location .poi-row.active .poi-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 24px rgba(165, 0, 255, 0.5);
}

/* Video hochladen: Spatial-Glass, kein Hover-Zoom / keine Taschenlampe */
#ta-create-invite-post.ta-create-invite--post {
    --glass-bg: rgba(28, 28, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --ta-create-card-pad: clamp(20px, 3.6vw, 34px);
    --ta-create-left-w: min(230px, 50%);
    --ta-create-phone-w: clamp(84px, 23vw, 104px);

    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    color: var(--text-primary);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: none !important;
    transform-style: flat;
    perspective: none;
    transition:
        box-shadow 0.35s var(--ease-spring),
        border-color 0.35s var(--ease-spring);
}

html:not([data-lp-color-scheme='dark']) #ta-create-invite-post.ta-create-invite--post {
    --glass-bg: rgba(255, 255, 255, 0.64);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #111111;
    --text-secondary: #5f6368;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

#ta-create-invite-post.ta-create-invite--post:hover,
#ta-create-invite-post.ta-create-invite--post:focus-visible {
    transform: none !important;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

html:not([data-lp-color-scheme='dark']) #ta-create-invite-post.ta-create-invite--post:hover,
html:not([data-lp-color-scheme='dark']) #ta-create-invite-post.ta-create-invite--post:focus-visible {
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

#ta-create-invite-post .ta-create-invite__ambient {
    display: none !important;
}

#ta-create-invite-post .ta-create-invite__inner {
    align-items: center;
    gap: 12px;
    aspect-ratio: 17 / 9;
    padding: var(--ta-create-card-pad);
}

#ta-create-invite-post .ta-create-invite__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    min-height: 100%;
    flex: 0 0 var(--ta-create-left-w);
    width: auto;
    max-width: var(--ta-create-left-w);
    padding-right: 0;
}

#ta-create-invite-post .ta-create-invite__visual {
    flex: 1 1 calc(100% - var(--ta-create-left-w));
    width: auto;
    min-width: 0;
    max-width: calc(100% - var(--ta-create-left-w));
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#ta-create-invite-post .ta-create-invite__title {
    color: var(--text-primary);
}

#ta-create-invite-post .subtitle {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.4;
    font-weight: 400;
}

#ta-create-invite-post .ta-create-invite__cta {
    color: var(--text-secondary);
    margin-top: auto;
}

#ta-create-invite-post .ta-create-invite__cta::after {
    color: #c9ae7a;
}

#ta-create-invite-post:hover .ta-create-invite__cta::after,
#ta-create-invite-post:focus-visible .ta-create-invite__cta::after {
    transform: none;
}

#ta-create-invite-post .ta-create-invite__video {
    width: var(--ta-create-phone-w);
    height: auto;
    max-height: none;
    padding: clamp(2px, 0.9vw, 4px);
    border-radius: clamp(18px, 6vw, 24px);
    background: #000;
    transform: none !important;
    transition: box-shadow 0.45s var(--ease-spring);
}

#ta-create-invite-post .ta-create-invite__video-screen {
    background: #090a0f;
}

/* Handy / Touch: Display-Effekte im Video-Mockup */
#ta-create-invite-post .ta-create-invite__video-gradient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(0deg, #111 0%, #bc9c6e 50%, #e8cbb0 100%);
    background-size: 100% 200%;
    animation: ta-create-luxury-gradient 5s infinite ease-in-out;
}

#ta-create-invite-post .ta-create-invite__video-progress {
    animation: ta-create-video-progress 4s infinite linear;
}

/* Desktop mit Maus: kein Zoom/Tilt beim Hover */
@media (hover: hover) and (pointer: fine) {
    #ta-create-invite-post:hover .ta-create-invite__video,
    #ta-create-invite-post:focus-visible .ta-create-invite__video {
        transform: none !important;
    }
}

html[data-lp-color-scheme='dark'] #ta-create-invite-post.ta-create-invite--post,
html:not([data-lp-color-scheme='dark']) #ta-create-invite-post.ta-create-invite--post {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.ta-create-invite--post .ta-create-invite__tag.ta-create-invite__tag--gradient,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera) .ta-location-photo-card__tag--camera {
    display: block;
    background: linear-gradient(90deg, #05d5ff, #ff2a6d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 12px;
}

#ta-create-invite-post .ta-create-invite__info,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera) .ta-create-invite__info {
    position: relative;
    z-index: 3;
}

@keyframes ta-spatial-pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes ta-map-phone-move {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(82px);
    }
}

@media (max-width: 680px) {
    #ta-create-invite-location.ta-create-spatial-card,
    #ta-create-invite-post.ta-create-invite--post {
        --ta-create-card-pad: clamp(16px, 4.4vw, 20px);
        --ta-create-left-w: min(225px, 63%);
        --ta-create-phone-w: clamp(72px, 19.5vw, 86px);
    }

    #ta-create-invite-location .premium-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--ta-create-card-pad);
        gap: 10px;
        min-height: 0;
        aspect-ratio: 17 / 9;
    }

    #ta-create-invite-location .content-left {
        flex: 0 0 var(--ta-create-left-w);
        max-width: var(--ta-create-left-w);
        width: auto;
        min-height: 100%;
    }

    #ta-create-invite-location .content-right.map-phone-rail {
        flex: 1 1 calc(100% - var(--ta-create-left-w));
        width: auto;
        max-width: calc(100% - var(--ta-create-left-w));
        min-height: 0;
    }

    #ta-create-invite-post .ta-create-invite__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        aspect-ratio: 17 / 9;
        padding: var(--ta-create-card-pad);
    }

    #ta-create-invite-post .ta-create-invite__info {
        flex: 0 0 var(--ta-create-left-w);
        max-width: var(--ta-create-left-w);
        width: auto;
        min-height: 100%;
    }

    #ta-create-invite-post .ta-create-invite__visual {
        flex: 1 1 calc(100% - var(--ta-create-left-w));
        width: auto;
        max-width: calc(100% - var(--ta-create-left-w));
        min-height: 0;
    }
}

@media (max-width: 480px) {
    #ta-create-invite-location.ta-create-spatial-card,
    #ta-create-invite-post.ta-create-invite--post {
        --ta-create-card-pad: clamp(14px, 4vw, 18px);
        --ta-create-left-w: min(220px, 64%);
        --ta-create-phone-w: clamp(70px, 18.8vw, 82px);
    }

    #ta-create-invite-location .premium-card {
        padding: var(--ta-create-card-pad);
        gap: 8px;
    }

    #ta-create-invite-post .ta-create-invite__inner {
        padding: var(--ta-create-card-pad);
        gap: 8px;
    }

    #ta-create-invite-location .subtitle {
        font-size: 0.82rem;
        line-height: 1.28;
        margin-top: 8px;
    }

    #ta-create-invite-post .subtitle {
        font-size: 0.82rem;
        line-height: 1.28;
        margin-top: 8px;
    }

    #ta-create-invite-location .tag,
    #ta-create-invite-post .ta-create-invite__tag {
        margin-bottom: 8px;
    }

    #ta-create-invite-location .content-left,
    #ta-create-invite-post .ta-create-invite__info {
        gap: 8px;
    }
}

/* Foto-Auswahl Karte 2 — gleiche Video-Glass-Karte wie Plus */
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .ta-create-invite__video,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .ta-create-invite__video-gradient,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .ta-create-invite__video-play,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .ta-create-invite__video-bar,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .dynamic-island,
:is(#ta-member-listing-dropzone-camera, #ta-post-wizard-pick-camera).ta-create-invite--post .screen-glare {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #ta-create-invite-location .ambient-glow {
        animation: none !important;
    }

    #ta-create-invite-location .topo-map {
        animation: none !important;
    }

    #ta-create-invite-location .poi-row,
    #ta-create-invite-location .poi-icon,
    #ta-create-invite-location .poi-dot {
        transition: none !important;
    }

    #ta-create-invite-post .ta-create-invite__video-gradient,
    #ta-create-invite-post .ta-create-invite__video-progress {
        animation: none !important;
    }
}
