@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize;
    box-sizing: border-box;
    transition: all .3s ease;
    text-decoration: none;
}
.home-box{
    color:#000
}
.bar:hover{
    color: #000;
}
.text{
    color:white;
}
:root  {
    --dark-green: #112a34;
    --green-color: #004047;
    --white-color: #fffefe;
    --page-bg: #f7f0e4;
    /* Municipality template palette */
    --template-dark: #1a1410;
    --template-dark-alt: #2c2416;
    --template-yellow: #ffd700;
    --template-yellow-bright: #ffeb3b;
    --template-text-dark: #1a1a1a;
    --template-text-navy: #1a237e;
    --template-text-muted: #5c6b7a;
    --template-accent: #c6e600;
}

::selection {
    background: var(--template-dark);
    color: var(--white-color);
}

html {
    font-size: 90%;
    background: var(--page-bg);
}

body {
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize;
    box-sizing: border-box;
    transition: all .3s ease;
    text-decoration: none;
    background-color: #f7f0e4;
    margin: 0;
    padding: 0;
}

section {
    padding: 0 8rem;
    width: 100%;
}

.label {
    font-size: 1.1rem;
    color: var(--template-text-navy);
    text-transform: uppercase;
    font-weight: 500;
    
}

.heading {
    font-size: 3rem;
    margin-top: 1rem;
}

section.home {
    padding: 0;
    width: 100%;
    height: auto;
}

/* site header - municipality template */
.site-header {
    width: 100%;
    position: static;
}

.top-bar {
    background: var(--template-dark);
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 4rem;
    font-size: 0.78rem;
    text-transform: none;
}

.top-bar-left {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-transform: none;
}

.top-bar-right a {
    color: var(--white-color);
    font-weight: 400;
    text-transform: capitalize;
}

.top-bar-right a:hover {
    color: var(--template-accent);
}

.live-datetime {
    color: var(--template-accent);
    font-weight: 500;
    white-space: nowrap;
}

.brand-header {
    background: var(--white-color);
    padding: 1rem 4rem;
    border-bottom: 1px solid #e8e8e8;
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0;
    width: 100%;
}

.brand-logo-link {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 50%;
}

.brand-logo-link:focus-visible,
.municipality-link:focus-visible {
    outline: 3px solid var(--template-yellow);
    outline-offset: 3px;
}

.brand-logo {
    height: 72px;
    width: auto;
}

.municipality-link {
    margin-left: auto;
    padding: 0.75rem 1.1rem;
    border-radius: 6px;
    background: var(--template-yellow);
    color: var(--template-text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.municipality-link:hover {
    background: #f7d74a;
    transform: translateY(-1px);
}

.brand-text h1 {
    color: var(--template-text-navy);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.brand-text p {
    color: var(--template-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.site-header .main-nav {
    width: 100%;
    height: 52px;
    background: var(--template-yellow);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    border-radius: 0;
    border: 3px solid var(--template-dark);
    border-left: 0;
    border-right: 0;
}

.site-header .main-nav .bar {
    display: none;
    font-size: 1.35rem;
    color: var(--template-text-dark);
    cursor: pointer;
    position: absolute;
    left: 1.5rem;
}

.site-header .main-nav .menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.site-header .main-nav .menu ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
}

.site-header .main-nav .menu ul li a {
    color: var(--template-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
    border-radius: 8px 8px 0 0;
    display: inline-block;
    transition: all 0.2s ease;
}

.site-header .main-nav .menu ul li a#home {
    background: var(--template-yellow);
    color: var(--template-text-dark);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    margin-bottom: 0;
}

.site-header .main-nav .menu ul li a:hover {
    color: var(--template-text-navy);
}

.site-header .main-nav .menu ul li a#home:hover {
    color: var(--template-text-dark);
    background: #f7d74a;
}

.site-header .main-nav .menu .close {
    display: none;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(rgba(10, 16, 24, 0.25), rgba(10, 16, 24, 0.42));
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s ease;
    transform: scale(1.08);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.08) brightness(0.78);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.hero-content h2 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-content p {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.hero-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.home .home-box {
    position: relative;
    width: 100%;
    height: 56vh;
    min-height: 260px;
    max-height: 470px;
    overflow: hidden;
    background: #f4efe6;
    padding: 0;
    border-radius: 0;
}

@keyframes hero-photo-pan {
    0% {
        transform: scale(1.0) translateX(0);
        filter: saturate(1.05) brightness(0.95);
    }
    100% {
        transform: scale(1.07) translateX(0.4%);
        filter: saturate(1.2) brightness(1.05);
    }
}

.home .home-box nav {
    width: 100%;
    height: 65px;
    background: var(--template-yellow);
    backdrop-filter: blur(1px);
    border-radius: .7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 10;
    position: relative;
}

.home .home-box nav .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home .home-box nav .logo .bar {
    font-size: 1.35rem;
    color: var(--white-color);
    cursor: pointer;
    display: none;
}

.home .home-box nav .logo .bar:hover {
    color: var(--green-color);
}

.home .home-box nav .logo h3 {
    color: var(--white-color);
    font-weight: 400;
}

.home .home-box nav .logo .pagbilao-logo {
    height: 48px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

.home .home-box nav .logo h1 {
    color: var(--template-text-navy);
}

.home .home-box nav .menu .close {
    display: none;
}

.home .home-box nav .menu ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.home .home-box nav .menu ul li a {
    color: var(--template-text-dark);
    font-weight: 400;
}

.home .home-box nav .menu ul li a:hover {
    color: rgba(0, 0, 0, 0.7);
}

.home .home-box nav .signup-login {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.home .home-box nav .signup-login a {
    color: var(--white-color);
    padding: .3rem 1rem;
    border-radius: 2rem;
}

.home .home-box nav .signup-login a:last-child {
    background: var(--green-color);
    padding: .3rem 1rem;
    border-radius: 2rem;
}

.home .home-box nav .signup-login a:hover {
    color: rgba(0, 0, 0, 0.7);
}

.home .home-box nav .signup-login a:last-child:hover {
    color: var(--white-color);
    background: #000000;
}

.home .home-box .content {
    width: 100%;
    height: calc(100% - 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translate(0, -65px);
}

.home .home-box .content h5 {
    text-transform: uppercase;
    color: var(--white-color);
    font-size: .9rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.home .home-box .content h1 {
    font-size: 4rem;
    max-width: 50rem;
    color: var(--white-color);
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home .home-box .content p {
    color: #000000;
    font-weight: 300;
    max-width: 40rem;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.home .home-box .content .search {
    width: 100%;
    max-width: 38rem;
    height: 45px;
    background: var(--white-color);
    border-radius: 3rem;
    display: flex;
    align-items: center;
    padding: .3rem;
}

.home .home-box .content .search i {
    color: rgba(0,0,0,.5);
    margin: 0 .6rem;
}
.search{
    background: none;
}
.home .home-box .content .search input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 400;
}

.home .home-box .content .search button {
    height: 100%;
    padding: 0 1rem;
    border-radius: inherit;
    background: var(--green-color);
    border: none;
    outline: none;
    color: var(--white-color);
    font-weight: 400;
    cursor: pointer;
}

.home .home-box .content .search button:hover {
    background: #000000;
}

.home .home-box .content h5, .home .home-box .content h1, .home .home-box .content p, .home .home-box .content .search {
    transform: translate(0, 100px);
    opacity: 0;
}


/* travel section starts here  */

.travel {
    background: rgba(26, 20, 16, 0.92);
    padding-top: 4rem;
    padding-bottom: 4rem;
    box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(26, 20, 16, 0.33);
    border-radius: 32px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.travel .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding:  5rem 0;
}

.travel .container .box {
    padding: 0 1rem;
    text-align: center;
    max-width: 30rem;
    transform: translate(0, 100px);
    opacity: 0;
    position: relative;
    cursor: pointer;
}

.travel .container .box img {
    height: 10rem;
    border-radius: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.travel .container .box:hover img {
    transform: scale(1.07);
    box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(255, 215, 0, 0.6);
    z-index: 2;
}

.travel .container .box h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
    margin-top: 2rem;
    font-weight: 600;
    color: #fff;
}

.travel .container .box p {
    color: #fff;
}

/*up styles for Natural section */
.travel .container .box.box1 {
    position: relative;
}

.travel .container .box .heading {
    position: relative;
}

.natural-popup,
.immovable-popup,
.cultural-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 20, 16, 0.92);
    border-radius: 14px;
    box-shadow: 0 0 32px 0 rgba(255, 215, 0, 0.8), 0 0 0 8px rgba(255, 215, 0, 0.33);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    padding: 1.5rem;
    text-align: center;
    animation: none;
}

.natural-popup.show,
.immovable-popup.show,
.cultural-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.natural-popup h3,
.immovable-popup h3,
.cultural-popup h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.natural-popup p,
.immovable-popup p,
.cultural-popup p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #fff;
}

.natural-popup,
.natural-popup *,
.immovable-popup,
.immovable-popup *,
.cultural-popup,
.cultural-popup * {
    color: #fff !important;
}

@keyframes popup-fade {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* travel section ends here  */

/* destination section starts here  */
.destinations {
    background: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.destinations .container {
    width: 100%;
}

.destinations .container .container-box {
    background: var(--template-dark-alt);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 8px rgba(26, 20, 16, 0.33);
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    position: relative;
}

.destinations .container .container-box .content a {
    color: var(--template-accent);
    font-weight: bold;
    text-decoration: underline;
}

.destinations .container .container-box .content a:hover {
    color: #fff;
}

.destinations .container .container-box .heading img {
    box-shadow: 0 8px 32px 0 #8B5C2Acc, 0 0 0 4px #8B5C2A55;
    border-radius: 14px;
}

.destinations .container .container-box .content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.home > div li h3 {
    color: #000;
}
.gallery .box {
    height: 23rem;
    flex-grow: 1;
    overflow: hidden;
    border-radius: .8rem;
    position: relative;
}

.gallery .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery .box .text {
    position: absolute;
    bottom: 0;
    padding: 1.5rem 2rem;
    left: 0;
    z-index: 1;
}

.gallery .box .text h2 {
    font-size: 1.4rem;
    color: var(--white-color);
    font-weight: 500;
}
.label{
    color: #000;
}
.text h2{
    color: #000;
}
.container-box h2{
    color: #000;
}
.destinations .container .container-box .heading,
.destinations .container .container-box .content {
    transform: translate(-200px);
    opacity: 0;
}

.destinations .gallery .box {
    transform: translate(0, 100px);
    opacity: 0;
}
/* destination section ends here  */
.content strong{

     font-size: 1.5rem  ;



}
.label {

    font-size: 2rem;
}


/* featured section starts here  */

.featured {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.featured .gallery .box:first-child {
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem;
}

.featured .gallery .box:first-child h2 {
    margin-bottom: .5rem;
}

.featured .gallery .box:first-child p {
    margin-bottom: .5rem;
    color:  #000000;
}

.featured .gallery .box:first-child a {
    position: absolute;
    bottom: 2rem;
    padding: .4rem 1rem;
    color: var(--white-color);
    background: var(--green-color);
    border-radius: 3rem;
    font-size: .9rem;
    font-weight: 400;
}

.featured .gallery .box:first-child a:hover {
    background: #000000;
}

.featured .gallery .box:first-child .image {
    width: 40%;
    position: absolute;
    bottom: -1rem;
    right: 2rem;
}

.featured .gallery .box .content {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem 2rem;
}

.featured .gallery .box .content h2 {
    font-weight: 500;
    color: var(--white-color);
}

.featured .gallery .box .content p {
    font-size: .9rem;
    color: #000000;
}
.content{

    text-align: justify;
    font-size: 1rem;
}
.featured .gallery .box .content .review-and-idr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured .gallery .box .content .review-and-idr .review {
    font-size: .9rem;
    color: #000000;
}

.featured .gallery .box .content .review-and-idr .review i {
    color: #000000;
}

.featured .gallery .box .content .review-and-idr p {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--white-color);
}

.featured .gallery .box {
    transform: translate(0, 100px);
    opacity: 0;
}
/* featured section ends here  */

/* feedback section starts here  */
.feedback {
    background: url("section-background.jpg");
    background-position: center;
    background-size: cover;
    margin-top: 6rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.feedback .container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.feedback .container h4 {
    color: rgb(255 255 255/90%);
}

.feedback .container h2 {
    max-width: 40rem;
    color: var(--white-color);
    text-align: center;
}

.feedback .container p {
    color: #6a6767;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}

.feedback .voices {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.feedback .voices .voice {
    flex: 1 0 320px;
    background: var(--white-color);
    padding: 2rem;
    border-radius: .7rem;
}

.feedback .voices .voice .profile {
    display: flex;
    align-items: center;
}

.feedback .voices .voice .profile img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 2rem;
}

.feedback .voices .voice .profile .detail {
    margin-left: 1rem;
}

.feedback .voices .voice .profile .detail li {
    list-style: none;
}

.feedback .voices .voice .profile .detail li:first-child {
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
}

.feedback .voices .voice p {
    margin-top: 1rem;
}

.feedback .container .label,
.feedback .container .heading,
.feedback .container .paragraph {
    transform: translate(0, 10px);
    opacity: 0;
}

.feedback .voices .voice {
    transform: translate(0, 100px);
    opacity: 0;
}
/* feedback section ends here  */

/* article section starts here  */

.article {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 5rem;
}

.article .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.article .container .latest-article,
.article .container .more-article {
    width: 100%;
    flex:  1 0 350px;
}

.article .container .latest-article img {
    width: 100%;
    height: 28rem;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;
}

.article .container .latest-article p {
    margin: .8rem 0;
    color: #666;
}

.article .container .latest-article h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.article .container .latest-article .author {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.article .container .latest-article .author img {
    width: 30px;
    height: 30px;
    border-radius: 3rem;
}

.article .container .latest-article .author p {
    font-size: .9rem;
}

.article .container .more-article {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.article .container .more-article .box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.article .container .more-article .box img {
    width: 135px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: .5rem;
}

.article .container .more-article .text h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.article .container .more-article .text li {
    margin-top: .3rem;
    list-style: none;
    color: #666;
}

.article .label, .article .heading {
    opacity: 0;
}

.article .latest-article, .article .more-article .box {
    animation: slideUp 1s ease-in-out;
}

.article .latest-article, .article .more-article .box {
    transform: translate(-200px, 0);
    opacity: 0;
    transition: all .4s ease-out;
}
/* article section ends here  */

/* footer section starts here  */

footer {
    background: transparent;
    padding: 0;
}

footer .footer {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

    .footer-yellow .footer .container {
        width: 500vw !important;
        max-width: 1200px !important;
        margin: 1rem auto !important;
        background: var(--template-dark) !important;
        border-radius: 2rem !important;
        box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(26, 20, 16, 0.33) !important;
        box-sizing: border-box !important;
        padding: 3rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }


footer .footer .container h1 {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
}

footer .footer .container h2,
footer .footer .container h4 {
    color: var(--template-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

footer .footer .container .detail h2,
footer .footer .container .detail h4 {
    color: #fff;
    font-weight: 400;
    font-size: inherit;
}

footer .footer .container a,
footer .footer .container li,
footer .footer .container p,
footer .footer .container span {
    color: #fff;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
}

footer .footer .container li {
    list-style: none;
    margin-bottom: 0.5rem;
}

footer .footer .container a {
    text-decoration: none;
}

footer .footer .container a:hover {
    color: var(--template-accent);
    text-decoration: underline;
}

footer .footer .container .social a,
footer .footer .container .social i {
    color: #fff;
    font-size: 1.75rem;
}

footer .footer .container .social a:hover,
footer .footer .container .social a:hover i {
    color: var(--template-accent);
}

footer .footer .copyright {
    background: var(--template-dark-alt);
    color: #fff;
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin: 2rem auto 0 auto;
    border-radius: 0.5rem;
    max-width: 80vw;
    font-size: 0.9rem;
    font-weight: 400;
    border: 4px solid #fff;
    box-shadow: 0 4px 24px 0 rgba(26, 20, 16, 0.53);
}

footer .footer .copyright a {
    color: #fff;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    text-decoration: underline;
}

footer .footer .copyright a:hover {
    color: var(--template-accent);
}

@media (max-width: 1020px) {
    html {
        font-size: 85%;
    }

    section {
        padding: 0 4rem;
    }

    footer .footer {
        padding: 3rem 4rem;
    }
}

@media (max-width: 910px) {
    .top-bar {
        padding: 0.45rem 2rem;
        font-size: 0.72rem;
    }

    .brand-header {
        padding: 0.85rem 2rem;
    }

    .site-header .main-nav {
        padding: 0 2rem;
        justify-content: flex-end;
    }

    .home .home-box nav {
        padding: 0 2rem;
    }

    .home .home-box nav .menu ul {
        gap: 1.5rem;
    }

    .destinations .container .container-box {
        gap: 2rem;
        align-items: center;
    }

    footer .footer .container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {

    .heading {
        font-size: 2rem;
    }

    .top-bar {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1rem;
    }

    .brand-inner {
        flex-direction: column;
        text-align: center;
    }

    .municipality-link {
        margin-left: 0;
        width: min(100%, 320px);
    }

    .brand-logo {
        height: 56px;
    }

    .brand-text h1 {
        font-size: 1.35rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }

    .site-header .main-nav {
        justify-content: flex-start;
        height: auto;
        min-height: 52px;
    }

    .site-header .main-nav .bar {
        display: block;
    }

    .site-header .main-nav .menu {
        position: absolute;
        top: -200%;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--template-dark);
        padding: 2rem;
        text-align: left;
    }

    .site-header .main-nav .menu.active {
        top: 100%;
    }

    .site-header .main-nav .menu .close {
        position: absolute;
        top: 1.2rem;
        right: 2rem;
        font-size: 1.5rem;
        color: var(--white-color);
        display: block;
    }

    .site-header .main-nav .menu .close:hover {
        color: var(--template-accent);
    }

    .site-header .main-nav .menu ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .site-header .main-nav .menu ul li a {
        color: var(--white-color);
    }

    .site-header .main-nav .menu ul li a:hover {
        color: var(--template-accent);
    }

    .home .home-box nav .menu {
        position: absolute;
        top: -200%;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--dark-green);
        padding: 2rem;
        text-align: center;
    }

    .home .home-box nav .logo .bar {
        display: block;
    }

    .home .home-box nav .menu.active {
        top: 100%;
        border-bottom-left-radius: .7rem;
        border-bottom-right-radius: .7rem;
    }

    .home .home-box nav .menu .close {
        position: absolute;
        top: 1.2rem;
        right: 2rem;
        font-size: 1.5rem;
        color: var(--white-color);
        display: block;
    }

    .home .home-box nav .menu .close:hover {
        color: var(--green-color);
    }

    .home .home-box nav .menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .home .home-box nav .menu ul:hover li a {
        color: rgb(255 255 255/40%);
    }

    .home .home-box nav .menu ul li a:hover {
        color: var(--white-color);
    }

    .home .home-box .content {
        padding: 2rem;
    }

    .travel .container {
        flex-direction: column;
        padding: 4rem 0;
        gap: 4rem;
    }

    .travel .container .box img {
        height: 6rem;
    }

    .destinations .container .container-box .content {
        font-size: 1rem;
    }

    .feedback .container p {
        font-size: .9rem;
    }
    .destinations .container .container-box {
        flex-direction: column;
        align-items: flex-start;
    }

    footer .footer .container {
        flex-direction: column;
    }
    .article .container .latest-article,
    .article .container .more-article {
        width: 100%;
        flex: 1 0 250px;
    }

    .article .container .more-article .box img {
        width: 100px;
        height: 85px;
    }

    .article .container .more-article .text h3 {
        font-size: 1.1rem;
    }

    .destinations .container .container-box {
        align-items: center !important;
        text-align: center;
    }
    .destinations .container .container-box .heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .img-container-5x5 {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .feedback-section > div {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .feedback-section > div > div:first-child {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .feedback-section > div > div:first-child p,
    .feedback-section > div > div:first-child h2 {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .feedback-heading {
        width: 100%;
        text-align: center;
    }
    .feedback-description {
        width: 100%;
        text-align: center;
        padding: 0 1.5rem;
        flex: 1 0 250px;
    }

    .article .container .more-article .box img {
        width: 100px;
        height: 85px;
    }

    .article .container .more-article .text h3 {
        font-size: 1.1rem;
    }

    .cultural-properties-heading,
    .cultural-properties-card {
        width: 100% !important;
        max-width: 95vw !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: block !important;
    }

    .copyright {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }
    .copyright a {
        display: inline-block;
        margin: 0.2rem 0.5rem;
    }

    .footer .about-us {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer .about-us h4,
    .footer .about-us h2,
    .footer .about-us li,
    .footer .about-us a {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 750px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }
  .footer-yellow {
    width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    background: var(--template-yellow) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-yellow .footer .container {
    width: 95vw !important;
    max-width: 500px !important;
    margin: 2rem auto !important;
    background: var(--template-dark) !important;
    border-radius: 2rem !important;
    box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(26, 20, 16, 0.33) !important;
    box-sizing: border-box !important;
    padding: 2rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-yellow .footer .container .detail {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-yellow .footer .container .detail h1 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.02em !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (min-width: 1025px) {
  .footer-yellow .footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-yellow .footer .container > * {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .footer-yellow .footer .container .about-us {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
}

/* CSS styles for the comment section */
.comment-section {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

#commentInput {
    width: 100%;
    margin-top: 10px;
    padding: 5px;
}

button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--template-dark);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* CSS styles for the comment section */
.comments-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    position: relative; /* Add position relative to create a reference for absolute positioning */
}

.delete-btn {
    position: relative;
    top: 0;
    right: 0;
    background-color: #dc3545; /* Red color for delete button */
    color: #fff;
    border: none;
    border-radius: 0 5px 0 5px; /* Rounded border on the left side */
    padding: 5px;
    cursor: pointer;
}
/* styles.css */
.login-container {
    width: 300px;
    margin: 100px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: var(--template-dark);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--template-dark);
}

#video-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20%;
}

video{
    display: block;
    max-width: 50%;
    height: auto;
    border: 5px solid blue;
    cursor: pointer;
    border-radius: 1px;
    padding: 0%;

    
}

.no-bg-home {
    padding: 0 !important;
    height: auto !important;
}
.home-box.no-bg {
    background: none !important;
    height: auto !important;
    min-height: unset !important;
    padding: 0.5rem 0 !important;
}

.pagbilao-logo-main {
    display: block;
    margin: 0 auto 12px auto;
    height: 90px;
    width: auto;
}

.contain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 4rem;
}

.contain .box {
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .contain {
    flex-direction: column;
    align-items: center;
  }
}

.footer-blue-bar {
    width: 100%;
    height: 0;
    background: transparent;
    display: none;
}

.footer-yellow {
    background: transparent;
    width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
}
.footer-yellow .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    background: transparent;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detail h1 {
    text-align: center;
    width: 100%;
}
.footer-yellow .container {
    width: 95%;
    max-width: 500px;
    margin: 2rem auto;
    align-items: center;
}
.footer-yellow .footer{
    align-items: center;
}

body,
.destinations,
.feedback-section,
.yellow-section-mobile,
.yellow-section-mobile .cream-card {
  background: var(--page-bg) !important;
  color: var(--template-dark) !important;
}

.footer-yellow,
.footer-yellow .footer,
.footer-yellow .container,
.footer-yellow .about-us,
.footer-yellow .detail {
  background: transparent !important;
  color: #fff !important;
}

.blue-content-box {
  background: var(--template-dark);
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 18px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px 0 #0002;
}
.blue-content-box, .blue-content-box * {
  color: #fff !important;
}

.directory-table-wrap,
.directory-table-wrap *,
.directory-table-wrap table,
.directory-table-wrap thead,
.directory-table-wrap tbody,
.directory-table-wrap tr,
.directory-table-wrap th,
.directory-table-wrap td,
.directory-table-wrap h3 {
  color: #111 !important;
  background-color: transparent !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111 !important;
}

.directory-table-wrap table,
.directory-table-wrap td {
  background: #f3f3f3 !important;
}

.directory-table-wrap th {
  background: #f2d64a !important;
}

.directory-table-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  background: #f7f0e4;
}

.directory-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: #5a4b18 !important;
  color: white   !important;
  border: 3px solid #f2d64a;
  border-radius: 30px;
  padding: 1.15rem 1.4rem 1.15rem 1.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  margin: 0 0 1rem;
  box-shadow: none;
}

.directory-table-wrap {
  background: #fff;
  border-radius: 0;
}

.directory-toggle-btn span {
  flex: 1 1 auto;
  min-width: 0;
  color: #ffffff !important;
  text-align: left;
}

.directory-toggle-btn .toggle-indicator {
  color: #1b120c !important;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  margin-left: auto;
  padding-left: 1rem;
  flex: 0 0 auto;
}

.directory-toggle-btn:hover {
  background: #2a1e0e;
}

.directory-table-wrap table {
  display: none;
}

.directory-table-wrap.directory-open table {
  display: table;
}

.blue-content-box a {
  font-weight: bold;
  text-decoration: underline;
}
.blue-content-box a:hover {
  color: #ffffff !important;

}

.contain.first-row,
.contain.second-row-staggered {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contain.second-row-staggered {
  margin-top: 2.5rem;
}

.contain.second-row-staggered .box4 {
  margin-right: 7rem;
}
.contain.second-row-staggered .box5 {
  margin-left: 7rem;
}

.box {
  width: 350px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box .popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--template-dark);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(255, 215, 0, 0.6);
  padding: 2rem 2.5rem;
  min-width: 260px;
  min-height: 120px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.box .popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cultural-properties-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}
.cultural-properties-card .contain {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
@media (max-width: 767px) {
  .cultural-properties-card {
    min-height: 60vh;
  }
}

.photo-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-block .popup {
  display: none !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  background: var(--template-dark);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  width: 240px;
  height: 180px;
  min-width: unset;
  min-height: unset;
  box-shadow: 0 8px 32px 0 #2228, 0 0 0 8px rgba(255, 215, 0, 0.33);
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.photo-block .popup.show {
  display: block !important;
}

.photo-block img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 0.5rem;
}

.photo-label {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

.travel-photo-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photo-row {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 3.5rem;
}
.row-bottom {
  margin-top: -1.5rem;
}
.row-bottom .photo-block {
  margin-left: 10rem;
  margin-right: 10rem;
}
.row-bottom .photo-block:first-child {
  margin-left: 9rem;
  margin-right: 2.5rem;
}
.row-bottom .photo-block:last-child {
  margin-left: 2.5rem;
  margin-right: 9rem;
}
@media (max-width: 1200px) {
  .photo-row {
    gap: 2.5rem;
  }
  .row-bottom .photo-block {
    margin-left: 5rem;
    margin-right: 5rem;
  }
  .row-bottom .photo-block:first-child {
    margin-left: 3rem;
    margin-right: 1rem;
  }
  .row-bottom .photo-block:last-child {
    margin-left: 1rem;
    margin-right: 3rem;
  }
}
@media (max-width: 900px) {
  .photo-row {
    gap: 1.5rem;
  }
  .row-bottom .photo-block {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}
@media (max-width: 767px) {
  .travel-photo-grid, .photo-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
  }
  .row-bottom, .row-top {
    margin: 0;
  }
  .photo-block {
    margin: 2rem 0 !important;
  }
}

.container-box {
  position: relative;
  background: #f7f0e4 !important;
  border: 6px solid #f2d64a !important;
  box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.12), 0 0 0 8px rgba(242, 214, 74, 0.12) !important;
  color: #1a1410 !important;
}

.destinations .container-box,
.destinations .container-box .heading,
.destinations .container-box .content,
.destinations .container-box .content p,
.destinations .container-box .content a,
.destinations .container-box .photo-label,
.destinations .container-box .mobile-description,
.destinations .container-box .mobile-full-description,
.destinations .container-box .popup-content,
.destinations .container-box .popup-story,
.destinations .container-box .popup-content h3,
.destinations .container-box .popup-content strong,
.destinations .container-box .see-more-popup-content,
.destinations .container-box .see-more-popup-content h4,
.destinations .container-box .see-more-popup-content p,
.destinations .blue-content-box,
.destinations .blue-content-box *,
.destinations .blue-content-box h3 {
  color: #ffffff !important;
}

.container-box .heading,
.container-box .content,
.container-box .content p,
.container-box .content a,
.container-box .photo-label,
.container-box .mobile-description,
.container-box .mobile-full-description,
.container-box .popup-content,
.container-box .popup-story,
.container-box .popup-content h3,
.container-box .popup-content strong,
.container-box .see-more-popup-content,
.container-box .see-more-popup-content h4,
.container-box .see-more-popup-content p {
  color: #1a1410 !important;
}

.place-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #1a1410;
  border: 6px solid #f2d64a;
  box-shadow: 0 0 32px 0 rgba(242, 214, 74, 0.25), 0 0 0 8px rgba(242, 214, 74, 0.12);
  color: #fff;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.96);
}
.place-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.see-more-close-btn {
  border: 1.5px solid #f2d64a !important;
  color: #1a1410 !important;
  background: #f7f0e4 !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-yellow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}


.detail h1 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  width: 100%;
  display: block;
}

@media (max-width: 500px) {
  .home .home-box {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .logo.bars {
    justify-content: center !important;
    margin: 0 auto !important;
    width: 95vw !important;
    max-width: 400px !important;
    padding: 0.5rem 0 !important;
  }
  .logo.bars img.pagbilao-logo {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: auto;
  }
  .logo.bars h1 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0 0.5rem;
  }
  .destinations {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    margin: 0 auto;
    padding: 1rem;
  }
  .destinations .container {
    width: 95vw;
    max-width: 400px;
    margin: 0 auto;
  }
  .destinations .container .container-box {
    margin: 0 auto;
    text-align: center;
  }
  .blue-content-box p {
    text-align: center !important;
    margin: 0 auto !important;
  }
  .blue-content-box {
    text-align: center !important;
  }
  .yellow-section-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--template-yellow);
    width: 100vw;
    min-width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 2.5rem 0;
    box-sizing: border-box;
  }
  .cream-card {
    background: var(--template-dark);
    border-radius: 2rem;
    max-width: 380px;
    width: 90vw;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(26, 20, 16, 0.8), 0 0 0 4px rgba(26, 20, 16, 0.33);
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
  }
  .cream-card .fa-facebook-square {
    color: #fff;
    font-size: 1.75rem;
  }
  footer {
    display: none !important;
  }
}

/* Keep the footer centered at narrow tablet widths (501px-767px). */
@media (min-width: 501px) and (max-width: 900px) {
  footer,
  .footer-yellow,
  .footer-yellow .footer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-yellow {
    padding: 1.25rem !important;
  }

  .footer-yellow .footer {
    padding: 0 !important;
  }

  .footer-yellow .footer .container {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 2.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.75rem;
    text-align: center !important;
  }

  .footer-yellow .footer .container > *,
  .footer-yellow .footer .detail,
  .footer-yellow .footer .about-us {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-yellow .footer .container h1,
  .footer-yellow .footer .container h2,
  .footer-yellow .footer .container h4,
  .footer-yellow .footer .container p,
  .footer-yellow .footer .container li,
  .footer-yellow .footer .container a {
    width: 100%;
    text-align: center !important;
  }

  footer .footer .copyright {
    width: min(calc(100% - 2.5rem), 620px) !important;
    max-width: 620px !important;
    margin: 1rem auto 0 !important;
  }
}

/* Desktop footer: three-column information layout, retaining existing colors. */
@media (min-width: 901px) {
  .footer-yellow .footer {
    width: 100%;
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem) 0 !important;
  }

  .footer-yellow .footer .container {
    width: min(100%, 1200px) !important;
    max-width: 1200px !important;
    margin: 1rem auto !important;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    justify-content: stretch !important;
    gap: clamp(2rem, 5vw, 5rem) !important;
    text-align: left !important;
  }

  .footer-yellow .footer .container > .detail,
  .footer-yellow .footer .container > .about-us {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .footer-yellow .footer .container h1,
  .footer-yellow .footer .container h2,
  .footer-yellow .footer .container h4,
  .footer-yellow .footer .container p,
  .footer-yellow .footer .container li,
  .footer-yellow .footer .container a {
    width: auto !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .footer-yellow .footer .container h1,
  .footer-yellow .footer .container h2,
  .footer-yellow .footer .container h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }

  .footer-yellow .footer .container .social {
    margin-top: 0.75rem;
  }

  footer .footer .copyright {
    width: min(calc(100% - 3rem), 1200px) !important;
    max-width: 1200px !important;
    margin: 0 auto 1.5rem !important;
  }
}

/* Directory accordion labels and expand icons */
.destinations .directory-table-wrap .directory-toggle-btn,
.destinations .directory-table-wrap .directory-toggle-btn span,
.destinations .directory-table-wrap .directory-toggle-btn .toggle-indicator {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Destinations page return-home control */
.destinations-home-link {
  width: min(calc(100% - 2rem), 1200px);
  margin: 1.5rem auto 0;
}

.destinations-home-link a {
  width: max-content;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 2px solid var(--template-yellow);
  border-radius: 999px;
  background: var(--template-dark);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.destinations-home-link a:hover,
.destinations-home-link a:focus-visible {
  background: var(--template-yellow);
  color: var(--template-dark);
  outline: none;
}

.category-home-link {
  display: none;
}

@media (max-width: 500px) {
  .destinations-home-link {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .category-home-link {
    width: 100%;
    padding: 0.85rem 1rem 0;
    display: flex;
    justify-content: center;
  }

  .category-home-link a {
    min-width: 120px;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 2px solid var(--template-yellow);
    border-radius: 999px;
    background: var(--template-dark);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  }
}

/* Floating back-to-top button */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2000;
  width: 48px !important;
  height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--template-yellow);
  border-radius: 50%;
  background: var(--template-dark) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--template-yellow) !important;
  color: var(--template-dark) !important;
  -webkit-text-fill-color: var(--template-dark) !important;
  outline: 3px solid rgba(255, 215, 0, 0.35);
  outline-offset: 3px;
}

@media (max-width: 500px) {
  .back-to-top {
    width: 44px !important;
    height: 44px;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (min-width: 501px) {
  .yellow-section-mobile {
    display: none !important;
  }
}

.copyright-box {
  background: var(--template-dark);
  color: #fff;
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  border-radius: 1.2rem;
  text-align: center;
  margin: 1.5rem auto 0 auto;
  font-size: 0.9rem;
  font-weight: 400;
  max-width: 95vw;
  box-shadow: 0 4px 24px 0 rgba(26, 20, 16, 0.53);
}
.copyright-box a {
  color: #fff;
  text-decoration: underline;
  margin: 0 0.5rem;
  font-weight: 400;
  display: inline-block;
}
.copyright-box a:hover {
  color: var(--template-accent);
}
@media (max-width: 500px) {
  .copyright-box {
    font-size: 0.97rem;
    padding: 0.9rem 0.3rem 0.6rem 0.3rem;
    border-radius: 0.9rem;
  }
}

/* Responsive layout safeguards shared by every page */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1000;
}

.site-header .main-nav .menu {
  z-index: 1001;
}

.home .home-box {
  min-height: clamp(340px, 56vw, 680px);
}

.hero-content {
  width: min(92%, 850px);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.hero-content h2,
.hero-title {
  font-size: clamp(2rem, 6vw, 4.8rem);
  overflow-wrap: anywhere;
}

.main-section-title,
.heading {
  font-size: clamp(1.75rem, 4.5vw, 3rem) !important;
  line-height: 1.15;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.directory-callout > div,
.feedback-section > div,
footer .container {
  width: min(100%, 1120px);
  margin-inline: auto;
}

table {
  max-width: 100%;
}

@media (max-width: 1024px) {
  section {
    padding-inline: clamp(1.25rem, 5vw, 4rem);
  }

  .top-bar,
  .brand-header,
  .site-header .main-nav {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .destinations .container .container-box {
    width: 100%;
  }

  .pagbilao-logo-main {
    width: min(280px, 70vw) !important;
  }

  .photo-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  section {
    padding-inline: 1rem;
  }

  .top-bar-right a {
    display: none;
  }

  .brand-header {
    padding-block: 0.7rem;
  }

  .brand-inner {
    flex-direction: row;
    justify-content: center;
  }

  .brand-logo {
    height: 48px;
    flex: 0 0 auto;
  }

  .brand-text {
    min-width: 0;
    text-align: left;
  }

  .brand-text h1 {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .brand-text p {
    font-size: 0.68rem;
  }

  .site-header .main-nav .menu {
    position: absolute;
    top: 100%;
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
  }

  .site-header .main-nav .menu.active {
    top: 100%;
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .main-nav .menu ul,
  .home .home-box nav .menu ul {
    width: 100%;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
  }

  .site-header .main-nav .menu ul li,
  .home .home-box nav .menu ul li {
    width: 100%;
    text-align: center;
  }

  .site-header .main-nav .menu ul li a,
  .home .home-box nav .menu ul li a {
    display: inline-flex;
    justify-content: center;
    min-width: 120px;
    text-align: center;
  }

  .home .home-box {
    min-height: clamp(320px, 78vw, 500px);
  }

  .destinations .container .container-box {
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
  }

  .destinations .container .container-box > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .travel .container {
    padding-block: 2rem;
  }

  .travel-photo-grid .photo-row {
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100%;
  }

  .photo-block {
    width: min(100%, 360px);
    margin: 0 !important;
  }

  .photo-block img,
  .photo-block .popup {
    width: 100%;
    max-width: 360px;
  }

  .photo-block img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .directory-callout {
    padding: 2rem 1rem !important;
  }

  .directory-callout > div {
    gap: 1rem !important;
  }

  .directory-callout > div > div {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    align-items: center !important;
    text-align: center;
  }

  .feedback-section > div > div,
  footer .container > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .feedback-section button,
  footer button {
    max-width: 100% !important;
  }

  .container-box {
    border-width: 3px !important;
    box-shadow: 0 5px 18px rgba(26, 20, 16, 0.14) !important;
  }

  /* Directory tables remain readable by scrolling within their card. */
  .directory-section,
  .directory-table,
  .table-wrapper,
  .directory-table-wrap,
  .container-box > div {
    max-width: 100%;
  }

  .directory-table-wrap {
    width: 100%;
    overflow-x: hidden !important;
    scrollbar-width: thin;
  }

  .container-box table {
    width: 100% !important;
    min-width: 0;
    table-layout: fixed;
    font-size: clamp(0.58rem, 2.35vw, 0.78rem) !important;
  }

  .directory-table-wrap th,
  .directory-table-wrap td {
    padding: clamp(0.3rem, 1.5vw, 0.55rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
    vertical-align: top;
  }

  .container-box:has(table) > div,
  .container-box:has(table) > section {
    overflow-x: hidden;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 82%;
  }

  .top-bar-left {
    font-size: 0.68rem;
  }

  .live-datetime {
    font-size: 0.68rem;
  }

  .brand-logo {
    height: 42px;
  }

  .hero-content {
    padding-inline: 0.75rem;
  }
}

/* Use one readable footer at every screen size (the mobile card duplicated it). */
.yellow-section-mobile {
  display: none !important;
}

@media (max-width: 500px) {
  footer {
    display: block !important;
    width: 100%;
  }

  .footer-yellow {
    width: 100% !important;
    min-width: 0 !important;
    padding: 1rem !important;
  }

  .footer-yellow .footer {
    width: 100%;
    padding: 0 !important;
  }

  .footer-yellow .footer .container {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 2rem 1.25rem !important;
    gap: 1.75rem !important;
    border-radius: 1.25rem !important;
  }

  footer .footer .container h1 {
    font-size: 1.45rem;
    margin: 0 0 0.75rem !important;
  }

  footer .footer .container h2,
  footer .footer .container h4 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  footer .footer .container a,
  footer .footer .container li,
  footer .footer .container p,
  footer .footer .container span {
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  footer .footer .copyright {
    width: calc(100% - 2rem);
    max-width: 420px;
    margin: 1rem auto 0;
    padding: 1rem 0.75rem;
    border-width: 2px;
    font-size: 0.82rem;
  }

  footer .footer .copyright a {
    margin: 0.35rem 0.45rem 0;
  }
}
