/* plaYces landing / home gate */
*,*::before,*::after{box-sizing:border-box}
body.home-gate{
    --home-bg:#f7f7f8;
    --home-ink:#1f2430;
    --home-muted:#667086;
    --home-accent:#026e56;
    --home-btn-dark:#1e2128;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    background:var(--home-bg);
    color:var(--home-ink);
    overflow:hidden;
    position:relative;
    margin:0;
    font-family:'Gabarito',system-ui,sans-serif;
}

.home-gate__hero{
    position:relative;
    z-index:3;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:clamp(1.5rem,5vw,3rem) clamp(1.25rem,4vw,2.5rem) clamp(1rem,3vw,2rem);
    min-height:min(52vh,520px);
}

.home-gate__logo.gate-brand{
    font-size:clamp(2.6rem,8vw,4.2rem);
    margin-bottom:0.55rem;
    color:var(--home-ink);
    cursor:default;
}
.home-gate__logo.gate-brand .logo__y-pin{
    filter:drop-shadow(0 0 14px rgba(2,110,86,0.24));
}
.home-gate__logo.gate-brand .logo__y-pin .cls-0,
.home-gate__logo.gate-brand .logo__y-pin path{
    fill:var(--home-accent);
}

.home-gate__tagline{
    margin:0 0 0.85rem;
    font-family:'Gabarito',system-ui,sans-serif;
    font-size:0.78rem;
    font-weight:600;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--home-muted);
}

.home-gate__desc{
    margin:0 auto 1.75rem;
    max-width:28rem;
    font-family:'Gabarito',system-ui,sans-serif;
    font-size:clamp(0.95rem,2.4vw,1.08rem);
    line-height:1.55;
    color:#4a5366;
}

.home-gate__actions{
    display:flex;
    flex-wrap:wrap;
    gap:0.65rem;
    justify-content:center;
    align-items:center;
}

.home-gate__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:9.5rem;
    padding:0.72rem 1.35rem;
    border-radius:10px;
    font-family:'Gabarito',system-ui,sans-serif;
    font-size:0.88rem;
    font-weight:600;
    letter-spacing:0.03em;
    text-decoration:none;
    cursor:pointer;
    border:none;
    transition:background 0.15s ease,transform 0.15s ease,box-shadow 0.15s ease,color 0.15s ease;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}
.home-gate__btn--primary{
    background:var(--home-accent);
    color:#fff;
    box-shadow:0 8px 20px rgba(2,110,86,0.28);
}
.home-gate__btn--primary:hover{
    background:#015a47;
}
.home-gate__btn--secondary{
    background:#fff;
    color:var(--home-ink);
    box-shadow:0 6px 16px rgba(30,33,40,0.1);
}
.home-gate__btn--secondary:hover{
    background:#fdfbf7;
    box-shadow:0 8px 18px rgba(30,33,40,0.14);
}
.home-gate__btn:active{
    transform:translateY(1px) scale(0.98);
}

/* Bottom map stage */
.home-gate__map-stage{
    position:relative;
    flex:0 0 clamp(240px,50vh,520px);
    width:100%;
    overflow:hidden;
    border-top:1px solid rgba(26,32,45,0.08);
}

.home-gate__map-blur{
    position:absolute;
    inset:0;
    filter:blur(4px) saturate(0.68);
    transform:scale(1.04);
    transform-origin:center center;
    pointer-events:none;
}
.home-gate__map-blur .leaflet-container{
    width:100%;
    height:100%;
    background:#e8e4dc;
}
.home-gate__map-blur #home-map{
    width:100%;
    height:100%;
}

.home-gate__map-fade{
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:linear-gradient(
        180deg,
        var(--home-bg) 0%,
        rgba(247,247,248,0.92) 12%,
        rgba(247,247,248,0.35) 32%,
        rgba(247,247,248,0.08) 55%,
        transparent 72%
    );
}

.home-gate__map-pins{
    position:absolute;
    inset:0;
    z-index:4;
    pointer-events:none;
    overflow:hidden;
}

.home-gate__pin{
    position:absolute;
    display:flex;
    flex-direction:column;
    align-items:center;
    width:0;
    height:0;
    opacity:0;
    transform:scale(0.55);
    animation:home-pin-in 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

.home-gate__pin-chip{
    position:absolute;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:10px;
    background:linear-gradient(180deg,#fdfbf7,#f3ece2);
    color:#9a7350;
    box-shadow:0 6px 14px rgba(30,33,40,0.16),0 0 0 1px rgba(255,255,255,0.85) inset;
}
.home-gate__pin-chip i{
    font-size:0.82rem;
    line-height:1;
}

.home-gate__pin-tail{
    position:absolute;
    bottom:2px;
    left:50%;
    width:10px;
    height:10px;
    margin-left:-5px;
    background:linear-gradient(180deg,#f3ece2,#ebe0d4);
    transform:rotate(45deg);
    box-shadow:2px 2px 4px rgba(30,33,40,0.12);
    border-radius:0 0 2px 0;
}

.home-gate__pin--visited .home-gate__pin-chip{
    box-shadow:
        0 0 0 2px rgba(245,200,74,0.95),
        0 6px 14px rgba(30,33,40,0.16),
        0 0 0 1px rgba(255,255,255,0.85) inset;
}
.home-gate__pin--visited .home-gate__pin-chip i{
    color:#026e56;
}

.home-gate__pin--coffee .home-gate__pin-chip i{color:#8b5a3c}
.home-gate__pin--food .home-gate__pin-chip i{color:#9a7350}
.home-gate__pin--must-see .home-gate__pin-chip i{color:#b8860b}
.home-gate__pin--bar .home-gate__pin-chip i{color:#7a5c8a}
.home-gate__pin--nature .home-gate__pin-chip i{color:#3d7a52}
.home-gate__pin--culture .home-gate__pin-chip i{color:#5a6278}

@keyframes home-pin-in{
    to{
        opacity:1;
        transform:scale(1);
    }
}

/* Login modal */
.home-gate__overlay{
    position:fixed;
    inset:0;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:1.25rem;
    background:rgba(22,26,34,0.42);
    opacity:0;
    visibility:hidden;
    transition:opacity 0.22s ease,visibility 0.22s ease;
}
.home-gate__overlay.is-open{
    opacity:1;
    visibility:visible;
}

.home-gate__login-panel{
    width:min(100%,22rem);
    padding:1.75rem 1.5rem 1.5rem;
    border-radius:16px;
    background:linear-gradient(180deg,#fdfbf7,#f7f2ea);
    box-shadow:0 18px 48px rgba(30,33,40,0.22);
    transform:translateY(12px) scale(0.98);
    transition:transform 0.22s ease;
}
.home-gate__overlay.is-open .home-gate__login-panel{
    transform:translateY(0) scale(1);
}

.home-gate__login-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.75rem;
    margin-bottom:1.1rem;
}
.home-gate__login-title{
    margin:0;
    font-family:'Gabarito',system-ui,sans-serif;
    font-size:1.05rem;
    font-weight:700;
    color:var(--home-ink);
}
.home-gate__login-close{
    width:34px;
    height:34px;
    border:none;
    border-radius:9px;
    background:#f6f2ec;
    color:#526070;
    font-size:1.25rem;
    line-height:1;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(30,33,40,0.08);
}
.home-gate__login-close:hover{color:#2a3242}

.home-gate__login-panel .gate form{
    max-width:none;
    margin:0;
}
.home-gate__login-panel .gate p{
    margin-bottom:1rem;
    font-size:0.72rem;
}
.home-gate__login-foot{
    margin-top:1rem;
    font-size:0.78rem;
    color:var(--home-muted);
    text-align:center;
}
.home-gate__login-foot a{
    color:var(--home-accent);
    text-decoration:none;
    font-weight:600;
}
.home-gate__login-foot a:hover{text-decoration:underline}

body.home-gate--login-open{
    overflow:hidden;
}

@media (max-width:768px){
    body.home-gate{
        min-height:100svh;
        overflow-x:hidden;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }

    .home-gate__hero{
        flex:0 0 auto;
        min-height:0;
        justify-content:flex-start;
        padding:
            calc(1.15rem + env(safe-area-inset-top,0px))
            1.15rem
            1rem;
    }

    .home-gate__logo.gate-brand{
        font-size:clamp(2.35rem,11vw,3.1rem);
        margin-bottom:0.45rem;
    }

    .home-gate__tagline{
        margin-bottom:0.65rem;
        font-size:0.72rem;
        letter-spacing:0.12em;
    }

    .home-gate__desc{
        margin-bottom:1.15rem;
        font-size:0.92rem;
        line-height:1.5;
        max-width:22rem;
    }

    .home-gate__actions{
        width:100%;
        max-width:20rem;
        flex-direction:column;
        gap:0.55rem;
    }

    .home-gate__btn{
        width:100%;
        min-width:0;
        min-height:48px;
        padding:0.78rem 1.2rem;
        font-size:0.92rem;
    }

    .home-gate__map-stage{
        flex:1 1 auto;
        min-height:max(220px,38svh);
        max-height:46svh;
    }

    .home-gate__map-blur{
        filter:blur(2.5px) saturate(0.78);
        transform:scale(1.02);
    }

    .home-gate__map-pins{
        filter:blur(0.8px);
    }

    .home-gate__map-fade{
        background:linear-gradient(
            180deg,
            var(--home-bg) 0%,
            rgba(247,247,248,0.88) 10%,
            rgba(247,247,248,0.32) 28%,
            rgba(247,247,248,0.06) 50%,
            transparent 68%
        );
    }

    .home-gate__pin-chip{
        width:28px;
        height:28px;
        border-radius:9px;
    }
    .home-gate__pin-chip i{
        font-size:0.74rem;
    }

    .home-gate__overlay{
        align-items:center;
        justify-content:center;
        padding:
            max(1rem, env(safe-area-inset-top, 0px))
            max(1rem, env(safe-area-inset-right, 0px))
            max(1rem, env(safe-area-inset-bottom, 0px))
            max(1rem, env(safe-area-inset-left, 0px));
    }

    .home-gate__login-panel{
        width:min(100%,22rem);
        max-width:none;
        border-radius:16px;
        padding:1.35rem 1.15rem 1.25rem;
        transform:translateY(12px) scale(0.98);
    }
    .home-gate__overlay.is-open .home-gate__login-panel{
        transform:translateY(0) scale(1);
    }

    .home-gate__login-panel .gate input{
        font-size:16px;
    }

    .home-gate__login-panel .gate button{
        min-height:48px;
        font-size:0.92rem;
    }
}

@media (min-width:769px){
    .home-gate__hero{
        min-height:min(50vh,560px);
    }
    .home-gate__map-stage{
        flex-basis:50vh;
    }
}
