
/* ABOUT BANNER */
.community-section6 {
    position: relative;
    width: 100%;
    height: 420px;
    background:
        linear-gradient(#00000040, rgba(0,0,0,0.25)),
        url('../images/place.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.community-section6 h2 {
    color: white;
    font-size: 65px;
    font-weight: 700;
    line-height: 1.5;
}


/* PLACES TO VISIT - ANIMATIONS */


/*  BANNER ZOOM ANIMATION */

.community-section6 {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* BACKGROUND ZOOM */

.community-section6::before {
    content: "";

    position: absolute;
    inset: 0;

    background: inherit;

    z-index: -1;

    animation:
        placesBannerZoom 7s ease-out both;
}

@keyframes placesBannerZoom {

    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }

}


/* BANNER HEADING ANIMATION */

.community-section6 h2 {
    animation:
        placesTitleFadeUp 1.2s ease-out both;
}

@keyframes placesTitleFadeUp {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* BREADCRUMB ANIMATION */

.community-section6 .breadcrumb {
    animation:
        placesBreadcrumbFade 1.3s ease-out 0.3s both;
}

@keyframes placesBreadcrumbFade {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* COMMUNITY SCROLL ANIMATION */

.community {
    position: relative;
    overflow: hidden;
}

.community .community-content.places-reveal {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.community .community-content.places-reveal.show-animation {
    opacity: 1;
    transform: translateY(0);
}


/* CONTACT BUTTON ANIMATION */

.community .contact-btn {
    display: inline-block;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}

.community .contact-btn:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}

.community .contact-btn:active {
    transform: scale(0.96);
}


/* RESPONSIVE ANIMATIONS */

@media (max-width: 768px) {

    .community-section6 h2 {
        animation-duration: 1s;
    }

    .community-section6::before {
        animation-duration: 5s;
    }

    .community .community-content.places-reveal {
        transform: translateY(30px);
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .community-section6::before,
    .community-section6 h2,
    .community-section6 .breadcrumb {
        animation: none !important;
    }
    .community .community-content.places-reveal,
    .community .community-content.places-reveal.show-animation {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .community .contact-btn {
        transition: none !important;
    }
}


/* PDF VIEWER SECTION */

.place-pdf-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto 30px;
    padding: 20px;

    background: #808080;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* PDF */

.place-pdf {
    display: block;

    width: 100%;
    max-width: 850px;
    height: 650px;

    border: none;
    background: white;
}

/* DOWNLOAD BUTTON */

.pdf-download {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
    padding: 13px 25px;

    background: #dda66c;
    color: #ffffff;

    text-decoration: none;
    border-radius: 6px;

    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.pdf-download-btn:hover {
    background: #c58a50;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* SCROLL ANIMATION */

.place-reveal {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.place-reveal.show-animation {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .place-pdf-container {
        padding: 10px;
    }

    .place-pdf {
        height: 500px;
    }

    .pdf-download-btn {
        font-size: 13px;
        padding: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .place-reveal,
    .place-reveal.show-animation {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pdf-download-btn {
        transition: none;
    }
}


/* PDF BOOK FLIP ANIMATION */

.place-pdf-container {
    flex-direction: column;
    gap: 15px;
}

.places-book-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.places-book-area {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#placesFlipbook {
    margin: 0 auto;
}

#placesFlipbook .page {
    background: white;
    overflow: hidden;
}

#placesFlipbook .page canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* PAGE ARROWS */

.places-book-arrow {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.places-book-arrow:hover {
    background: #dda66c;
    transform: scale(1.1);
}

.places-book-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

#placesBookStatus {
    color: white;
    font-size: 14px;
    text-align: center;
    font-family: 'Noto Sans Sinhala', sans-serif;
}

/* MOBILE */

@media (max-width: 768px) {
    .places-book-wrapper {
        gap: 5px;
    }

    .places-book-arrow {
        width: 30px;
        height: 36px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .places-book-arrow {
        transition: none;
    }
}


/* PLACES PDF FLIPBOOK */

.place-pdf-container {
    width: 100%;
    padding: 35px 15px;
    background: #f5f5f5;
    text-align: center;
    overflow: hidden;
}

.places-book-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.places-book-area {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

#placesFlipbook {
    margin: 0 auto;
}

.places-book-page {
    background: white;
    overflow: hidden;
}

.places-book-page canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.places-book-arrow {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #202636;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.places-book-arrow:hover {
    background: #dda66c;
}

.places-book-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* TOOLBAR */

.places-book-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
}

.places-book-toolbar button,
.places-book-toolbar a {
    background: transparent;
    border: none;
    color: #202636;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.places-book-toolbar button:hover,
.places-book-toolbar a:hover {
    color: #dda66c;
}

#placesPageCounter {
    font-size: 16px;
    font-weight: 600;
}

#placesBookStatus {
    margin-top: 15px;
    font-size: 14px;
}

.place-pdf-container:fullscreen {
    background: #f5f5f5;
    overflow: auto;
}

/* MOBILE */

@media (max-width: 768px) {
    .place-pdf-container {
        padding: 25px 8px;
    }

    .places-book-wrapper {
        gap: 5px;
    }

    .places-book-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .places-book-toolbar {
        gap: 12px;
    }
}

