/********** Template CSS **********/
:root {
    --primary: #2EB872;
    --light:   #F3F4F5;
    --dark:    #282F34;
    --white:   #FFFFFF;
    --border:  #E5E7EB;
    --muted:   #6B7280;

    --transition: .5s ease;
    --radius-sm: 4px;
    --radius-md: 8px;

    --section-py: 3rem;
    --container-px: 1rem;
}

@media (min-width: 768px) {
    :root {
        --section-py: 4rem;
        --container-px: 1.5rem;
    }
}

@media (min-width: 992px) {
    :root {
        --section-py: 5rem;
    }
}


/*** Base & Accessibility ***/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.navbar .nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
}

@media (min-width: 768px) {
    .back-to-top {
        right: 45px;
        bottom: 45px;
    }
}


/*** Buttons ***/
.btn {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn.btn-primary,
.btn.btn-secondary {
    color: var(--white);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square    { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }


/*** Topbar (hidden on mobile, visible on tablet+) ***/
.topbar {
    display: none;                     /* mobile-first: hidden */
    position: relative;
    z-index: 1040;
    width: 100%;
    overflow: visible;
    height: 40px;
}

@media (min-width: 992px) {
    .topbar {
        display: block;                /* shown from lg up */
    }
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.topbar-info,
.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

/* Row inside the topbar — Bootstrap .row already handles layout;
   we only adjust vertical padding and alignment here */
.topbar > .row {
    min-height: 44px;                  /* consistent bar height */
    align-items: center;
}

.topbar-contact:hover {
    color: var(--primary);
}

/* Social icons — always a horizontal row, vertically centered */
.topbar .social-icons {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    width: max-content;
    white-space: nowrap;
}

.topbar .social-icons a.btn-sm-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.topbar .social-icons a.btn-sm-square i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
}

.topbar .social-icons a.btn-sm-square:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: var(--transition);
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: var(--transition);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        border-top: 1px solid var(--border);
        padding-top: 8px;
    }
}

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 30px;
        padding: 25px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }
}


/*** Header / Hero ***/
.header-bg {
    background:
        linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
    min-height: 320px;
}

@media (min-width: 992px) {
    .header-bg {
        min-height: 100%;
    }
}

.header-bg h1 {
    font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
    line-height: 1.15;
}

/* Play button */
.btn-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none;
    padding: 18px 20px 20px 28px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.btn-play:hover::after {
    transform: translateX(-50%) translateY(-50%) scale(1.08);
}

.btn-play::before,
.btn-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 100%;
}

.btn-play::before {
    z-index: 0;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play::after {
    z-index: 1;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

/* Video modal */
.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
    width: calc(100% - 2rem);
}

.modal-video .modal-body {
    position: relative;
    padding: 0;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--white);
    background: #000;
    opacity: 1;
}

/* Hero carousel controls */
.header-carousel .owl-nav {
    position: absolute;
    width: 160px;
    height: 40px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-carousel .owl-nav {
        width: 200px;
        bottom: 30px;
    }
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--white);
    font-size: 22px;
    transition: var(--transition);
    cursor: pointer;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: var(--white);
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Image Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 300px;
}

@media (min-width: 768px) {
    .img-border {
        min-height: 400px;
    }
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 2rem;
    bottom: 2rem;
    border: 5px solid var(--primary);
}

.img-border img {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    object-fit: cover;
}

@media (min-width: 768px) {
    .img-border::before {
        right: 3rem;
        bottom: 3rem;
    }

    .img-border img {
        top: 3rem;
        left: 3rem;
        width: calc(100% - 3rem);
        height: calc(100% - 3rem);
    }
}


/*** Facts & Visiting Hours ***/
.facts {
    background:
        linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.visiting-hours {
    background:
        linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.visiting-hours .list-group-item {
    display: flex;
    justify-content: space-between;
    color: var(--light);
    background: rgba(0, 0, 0, .15);
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table {
    color: var(--light);
    background: rgba(0, 0, 0, .15);
}

.visiting-hours .table td {
    padding: .5rem 1rem;
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table tr:last-child td {
    border: none;
}


/*** Animal (Accommodation cards) ***/
.animal-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.animal-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--transition);
}

.animal-item:hover img {
    transform: scale(1.05);
}

.animal-item .animal-text {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.animal-item:hover .animal-text,
.animal-item:focus-visible .animal-text {
    opacity: 1;
}

/* Always show text overlay on touch devices */
@media (hover: none) {
    .animal-item .animal-text {
        opacity: 1;
        padding-bottom: 1.5rem;
    }
}


/*** Membership (Accommodation package cards) ***/
.membership-item {
    position: relative;
    padding: 45px 30px;
    color: var(--white);
    background: rgba(0, 0, 0, .7);
    overflow: hidden;
}

.membership-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.membership-item .display-1 {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    line-height: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel::before,
.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    height: 100%;
    width: 0;
    z-index: 1;
    pointer-events: none;
}

.testimonial-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonial-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.9);
    transition: var(--transition);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: var(--transition);
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 250px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
    pointer-events: auto;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Services Grid — Center icon + heading + body text (grid items only) ***/
#camp-services .row.gy-5 > [class*="col-"] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#camp-services .row.gy-5 > [class*="col-"] > img {
    display: block;
    margin: 0 auto 1rem auto;
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}

#camp-services .row.gy-5 > [class*="col-"] > h3 {
    text-align: center;
}

#camp-services .row.gy-5 > [class*="col-"] > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 32ch;
}


/*** Footer ***/
.footer {
    background:
        linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid var(--white);
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--white);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: var(--light);
    transition: var(--transition);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/*** Generic responsive typography ***/
h1, .h1 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
h2, .h2 { font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem); }

section[id] {
    scroll-margin-top: 80px;
}




/* Suite card button — reset button styles */
.animal-item.suite-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: block;
    font: inherit;
    color: inherit;
}

.animal-item.suite-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Suite modal image height on mobile */
@media (max-width: 767.98px) {
    #suiteModal .modal-body img {
        min-height: 240px;
        max-height: 320px;
        object-fit: cover;
    }
}

/* Rate table — compact, tight borders */
#suiteModalRatesWrap table {
    border-color: var(--border);
}
#suiteModalRatesWrap table td,
#suiteModalRatesWrap table th {
    padding: .35rem .5rem;
    border-color: var(--border);
    vertical-align: middle;
}