/* ============================================================
   DESTINATIONS PAGE STYLES
   ============================================================ */

.page-destinations .page-header {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(5.5rem, 8vw, 7rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    max-height: 480px;
    overflow: hidden;
    border-radius: 0;
    background: var(--gradient-sunset);
    box-shadow: 0 28px 60px rgba(230, 57, 70, 0.18);
}

/* Video background */
.page-header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: saturate(1.1) contrast(1.04) brightness(0.88);
}

.page-header-video.is-playing {
    opacity: 1;
    transition: none;
}

/* Video overlay — warm vignette + readability gradient (Mosaic) */
.page-header-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(31,16,25,0) 30%, rgba(31,16,25,0.5) 100%),
        linear-gradient(180deg, rgba(31,16,25,0.32) 0%, rgba(230,57,70,0.10) 30%, rgba(247,44,123,0.10) 60%, rgba(31,16,25,0.66) 90%, rgba(31,16,25,0.86) 100%),
        linear-gradient(90deg, rgba(31,16,25,0.56) 0%, rgba(155,93,229,0.10) 50%, rgba(31,16,25,0.06) 100%);
    pointer-events: none;
}

/* Particles container */
.page-header-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.page-header-particles .hero-particle {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

/* Hide static bg images when video plays */
.page-header.has-video::before {
    opacity: 0 !important;
    transition: opacity 2s ease;
}

.page-destinations .page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 16, 25, 0.82) 0%, rgba(230, 57, 70, 0.42) 36%, rgba(247, 44, 123, 0.20) 62%, rgba(155, 93, 229, 0.10) 100%),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
        url('/uploads/pagtour/boulevard9.png') right 2.5rem top 1.25rem / 18rem auto no-repeat,
        url('/uploads/pagtour/plaza10.png') right 17rem bottom 1.25rem / 15rem auto no-repeat,
        url('/uploads/pagtour/rotunda5v.png') right 0.75rem bottom 1rem / 15rem auto no-repeat;
    opacity: 1;
}

.page-destinations .page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
    background-size: 22px 22px;
    opacity: 0.34;
    mix-blend-mode: screen;
    pointer-events: none;
}

.page-destinations .page-header .container {
    position: relative;
    z-index: 1;
}

.page-destinations .page-header-copy {
    position: relative;
    max-width: min(44rem, 100%);
    padding: 1.25rem 0 1.5rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.page-destinations .page-header-copy::before {
    display: none !important;
}

.page-destinations .page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.1rem;
    margin-bottom: 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.98);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.page-destinations .page-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.35rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: none;
    color: #ffffff;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 24px 48px rgba(0, 0, 0, 0.3);
}

.page-destinations .page-title span {
    display: block;
    color: #ffd29a;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 24px 48px rgba(0, 0, 0, 0.3);
}

.page-destinations .page-subtitle {
    max-width: 38rem;
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-destinations .page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.page-destinations .page-tags span {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.page-destinations .card-image img {
    transform: scale(1.01);
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(1.08) contrast(1.03);
}

.page-destinations .card:hover .card-image img {
    transform: scale(1.06);
    filter: saturate(1.14) contrast(1.06);
}

.upload-hero-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 8px;
    opacity: 0.4;
}
.upload-hero-btn:hover {
    background: rgba(0,0,0,0.7);
    opacity: 1;
    transform: scale(1.15);
}
.upload-hero-btn.uploading {
    background: #22c55e;
    opacity: 1;
    animation: pulse-upload 1s infinite;
}
@keyframes pulse-upload {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 900px) {
    .page-destinations .page-header::before {
        background:
            linear-gradient(180deg, rgba(31, 16, 25, 0.78) 0%, rgba(230, 57, 70, 0.46) 46%, rgba(155, 93, 229, 0.18) 100%),
            radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
            url('/uploads/pagtour/asenso-banner.jpg') center center / cover no-repeat;
    }

    .page-destinations .page-header-copy::before {
        display: none;
    }
}
