/* Place Animation Section */
.place-animation-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--pa-text);
    background: #0a0d09;
    isolation: isolate;
}

.place-animation-section * {
    box-sizing: border-box;
}

.pa-bg,
.pa-bg img,
.pa-overlay {
    position: absolute;
    inset: 0;
}

.pa-bg {
    z-index: 0;
}

.pa-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.72) brightness(.78);
    transform: scale(1.04);
    animation: paBgDrift 16s ease-in-out infinite alternate;
}

.pa-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 44%, rgba(0,0,0,.08), rgba(0,0,0,.62) 68%),
        linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.38) 45%, rgba(0,0,0,.70)),
        var(--pa-overlay);
}

.pa-mist {
    position: absolute;
    z-index: 2;
    inset: auto -20% 0 -20%;
    height: 42%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.18), transparent 65%);
    filter: blur(26px);
    opacity: .45;
    pointer-events: none;
}

.pa-mist-one {
    bottom: 8%;
    animation: paMistMove 18s linear infinite;
}

.pa-mist-two {
    bottom: -6%;
    opacity: .32;
    animation: paMistMove 24s linear infinite reverse;
}

.pa-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(216,181,93,.7) 0 2px, transparent 3px) 8% 75% / 220px 220px,
        radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 2px) 92% 18% / 260px 260px,
        radial-gradient(circle, rgba(216,181,93,.45) 0 1px, transparent 2px) 52% 82% / 180px 180px;
    animation: paTwinkle 4s ease-in-out infinite alternate;
}

.pa-header {
    position: relative;
    z-index: 9;
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    padding: 26px 0;
    display: grid;
    grid-template-columns: 220px 1fr 150px;
    align-items: center;
    gap: 20px;
}

.pa-logo {
    color: var(--pa-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.pa-logo img {
    max-height: 42px;
    max-width: 170px;
    object-fit: contain;
}

.pa-logo-mark {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--pa-accent);
}

.pa-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.pa-nav a,
.pa-socials a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.pa-nav a:hover,
.pa-socials a:hover {
    color: var(--pa-accent);
    transform: translateY(-1px);
}

.pa-socials {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.pa-socials svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.pa-hero {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 95px);
    display: grid;
    place-items: center;
    padding: 40px 20px 80px;
}

.pa-card-stack {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 760px;
    height: 430px;
    transform: translate(-50%, -50%);
    perspective: 1200px;
    z-index: 3;
}

.pa-place-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 230px;
    height: 315px;
    border-radius: var(--pa-radius);
    overflow: hidden;
    transform:
        translate(calc(-50% + var(--pa-x)), calc(-50% + var(--pa-y)))
        rotate(var(--pa-rot))
        scale(var(--pa-scale));
    z-index: var(--pa-z);
    box-shadow: 0 34px 80px rgba(0,0,0,.44);
    border: 1px solid rgba(255,255,255,.18);
    transition: transform .65s cubic-bezier(.2,.9,.2,1), filter .4s ease, opacity .4s ease;
    background: #111;
}

.pa-place-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pa-card-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08) 40%, rgba(0,0,0,.78)),
        radial-gradient(circle at 60% 10%, rgba(255,255,255,.18), transparent 35%);
    z-index: 2;
}

.pa-card-content {
    position: absolute;
    z-index: 3;
    inset: auto 18px 18px;
    color: #fff;
}

.pa-card-badge {
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    margin-bottom: 8px;
}

.pa-card-content h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.04em;
}

.pa-card-location {
    margin: 4px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 800;
}

.pa-card-subtitle {
    margin: 8px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    line-height: 1.35;
}

.pa-card-bottom {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: rgba(255,255,255,.88);
}

.pa-card-bottom span {
    color: var(--pa-accent);
    font-size: 13px;
    font-weight: 900;
}

.pa-card-bottom small {
    font-size: 10px;
}

.pa-card-content a {
    margin-top: 10px;
    display: inline-flex;
    height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.pa-title-block {
    position: relative;
    z-index: 6;
    text-align: center;
    pointer-events: none;
    mix-blend-mode: normal;
}

.pa-eyebrow {
    color: rgba(255,255,255,.78);
    letter-spacing: .42em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.pa-title-block h1 {
    margin: 0;
    color: var(--pa-text);
    font-size: clamp(66px, 8.8vw, 150px);
    line-height: .78;
    letter-spacing: -.075em;
    font-weight: 1000;
    text-shadow: 0 18px 70px rgba(0,0,0,.50);
}

.pa-title-block h1 span {
    display: block;
}

.pa-title-block p {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--pa-muted);
    font-size: 14px;
    line-height: 1.65;
    pointer-events: auto;
}

.pa-primary-btn {
    margin-top: 20px;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 42px;
    padding: 0 24px;
    border-radius: 999px;
    color: #111;
    background: var(--pa-accent);
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 16px 38px rgba(216,181,93,.28);
}

.pa-whatsapp {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 12;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #23d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(35,211,102,.28);
    font-weight: 900;
}

.place-animation-section.is-animated .pa-place-card {
    animation: paCardFloat var(--pa-speed, 6500ms) ease-in-out infinite;
    animation-delay: calc(var(--pa-z) * -450ms);
}

.pa-place-card:hover {
    filter: brightness(1.08);
    transform:
        translate(calc(-50% + var(--pa-x)), calc(-50% + var(--pa-y) - 16px))
        rotate(var(--pa-rot))
        scale(calc(var(--pa-scale) + .05));
}

@keyframes paCardFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -22px;
    }
}

@keyframes paBgDrift {
    from { transform: scale(1.04) translate3d(-1%, 0, 0); }
    to { transform: scale(1.10) translate3d(1%, -1%, 0); }
}

@keyframes paMistMove {
    from { transform: translateX(-10%); }
    to { transform: translateX(10%); }
}

@keyframes paTwinkle {
    from { opacity: .35; }
    to { opacity: .85; }
}

@media(max-width: 980px) {
    .pa-header {
        width: calc(100% - 34px);
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 20px 0;
    }

    .pa-nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .pa-card-stack {
        width: 100%;
        transform: translate(-50%, -50%) scale(.78);
    }

    .pa-title-block h1 {
        font-size: clamp(58px, 16vw, 112px);
    }
}

@media(max-width: 640px) {
    .place-animation-section {
        min-height: 820px;
    }

    .pa-hero {
        min-height: 720px;
        padding-bottom: 90px;
    }

    .pa-card-stack {
        top: 48%;
        transform: translate(-50%, -50%) scale(.58);
    }

    .pa-title-block h1 {
        font-size: 60px;
    }

    .pa-title-block p {
        padding: 0 20px;
    }

    .pa-socials {
        display: none;
    }
}


/* Final fix: Place Animation section without header/logo/social navigation */
.place-animation-section .pa-header,
.place-animation-section .pa-logo,
.place-animation-section .pa-nav,
.place-animation-section .pa-socials {
    display: none !important;
}

.place-animation-section .pa-hero {
    min-height: 100vh !important;
    padding-top: 60px !important;
}

.place-animation-section .pa-card-stack {
    top: 49% !important;
}

@media(max-width: 640px) {
    .place-animation-section .pa-hero {
        min-height: 820px !important;
        padding-top: 40px !important;
    }
}


/* Final fix: add clear spacing between animated place cards */
.place-animation-section {
    --pa-card-gap: 205px;
}

.place-animation-section .pa-card-stack {
    width: min(1080px, 96vw) !important;
    height: 500px !important;
}

.place-animation-section .pa-place-card {
    transform:
        translate(calc(-50% + (var(--pa-x) * 1.22)), calc(-50% + var(--pa-y)))
        rotate(var(--pa-rot))
        scale(var(--pa-scale)) !important;
}

.place-animation-section .pa-place-card:hover {
    transform:
        translate(calc(-50% + (var(--pa-x) * 1.22)), calc(-50% + var(--pa-y) - 16px))
        rotate(var(--pa-rot))
        scale(calc(var(--pa-scale) + .05)) !important;
}

@media(max-width: 980px) {
    .place-animation-section .pa-card-stack {
        width: 100% !important;
        transform: translate(-50%, -50%) scale(.72) !important;
    }

    .place-animation-section .pa-place-card {
        transform:
            translate(calc(-50% + (var(--pa-x) * 1.12)), calc(-50% + var(--pa-y)))
            rotate(var(--pa-rot))
            scale(var(--pa-scale)) !important;
    }

    .place-animation-section .pa-place-card:hover {
        transform:
            translate(calc(-50% + (var(--pa-x) * 1.12)), calc(-50% + var(--pa-y) - 16px))
            rotate(var(--pa-rot))
            scale(calc(var(--pa-scale) + .05)) !important;
    }
}

@media(max-width: 640px) {
    .place-animation-section .pa-card-stack {
        transform: translate(-50%, -50%) scale(.52) !important;
    }
}


/* Final fix: make animated place cards slightly bigger */
.place-animation-section .pa-card-stack {
    width: min(1180px, 98vw) !important;
    height: 560px !important;
}

.place-animation-section .pa-place-card {
    width: 270px !important;
    height: 370px !important;
}

.place-animation-section .pa-card-content {
    inset: auto 20px 20px !important;
}

.place-animation-section .pa-card-content h3 {
    font-size: 28px !important;
}

.place-animation-section .pa-card-location {
    font-size: 13px !important;
}

.place-animation-section .pa-card-subtitle {
    font-size: 12px !important;
    line-height: 1.38 !important;
}

.place-animation-section .pa-card-bottom span {
    font-size: 14px !important;
}

.place-animation-section .pa-card-bottom small {
    font-size: 11px !important;
}

.place-animation-section .pa-card-content a {
    height: 31px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
}

@media(max-width: 980px) {
    .place-animation-section .pa-card-stack {
        width: 100% !important;
        height: 520px !important;
        transform: translate(-50%, -50%) scale(.68) !important;
    }

    .place-animation-section .pa-place-card {
        width: 270px !important;
        height: 370px !important;
    }
}

@media(max-width: 640px) {
    .place-animation-section .pa-card-stack {
        height: 500px !important;
        transform: translate(-50%, -50%) scale(.48) !important;
    }

    .place-animation-section .pa-place-card {
        width: 270px !important;
        height: 370px !important;
    }
}
