/* Optimize Bootstrap Icons font loading for FCP */
@font-face {
    font-family: "bootstrap-icons";
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2?a3d548325a77cecf70b5ee6fa17c60fb") format("woff2"),
        url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff?a3d548325a77cecf70b5ee6fa17c60fb") format("woff");
}

:root {
    --primary-color: #4DA1A9;

    /* Ocean Teal */
    --secondary-color: #F6F4F0;
    /* Light Sand */
    --accent-color: #2E5077;
    /* Deep Blue */
    --text-color: #333333;
    /* Dark Grey */
    --light-bg: #FFFFFF;
    /* Pure White */
    --hover-color: #79D7BE;
    /* Lighter Teal */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--accent-color);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    will-change: transform;
}

.btn-primary-custom:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 161, 169, 0.4);
}

.section-padding {
    padding: 80px 0;
}

/* Navbar Customization */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--accent-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.whatsapp-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.25rem !important;
    /* Matches fs-4 icon size */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-nav-link:hover {
    transform: scale(1.15) translateY(-2px);
    background-color: #128C7E;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    min-height: 120vh;
    padding-top: 160px;
    padding-bottom: 60px;
    background: linear-gradient(rgba(46, 80, 119, 0.3), rgba(46, 80, 119, 0.3)), url('/assets/images/bg/tea-garden-road.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    margin-top: -76px;
    /* Offset navbar height */
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-content h1 {
    font-size: 5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    /* Override default h1 color */
}

.hero-content h2 {
    color: #f8f9fa;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Rooms Section */
.room-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    background: white;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.room-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.room-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img-wrapper img {
    transform: scale(1.1);
}

.room-details {
    padding: 25px;
}

.room-price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.room-features-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 15px;
}

.room-features-list .material-symbols-outlined {
    font-size: 1.15rem;
    vertical-align: middle;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.rating-stars {
    color: #FFC107;
    margin-bottom: 15px;
}

/* Gallery */
.gallery-img {
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: filter 0.3s ease;
    will-change: filter;
}

.gallery-img:hover {
    filter: brightness(0.9);
}

/* Footer will be added next, prep styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light-bg) !important;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-brand a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-brand a:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

.footer-links-two-column {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style: none;
    padding-left: 0;
}

.footer-links-two-column li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.partner-logo {
    max-height: 22px;
    margin-bottom: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.822);
    border: 1px solid rgba(106, 104, 104, 0);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    height: 30px;
    width: 80%;
    margin-bottom: 12px;
}

.partner-link-box:hover {
    background-color: rgba(238, 233, 233, 0.71);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-link-box:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Hero Scroll Animation */
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.wheel {
    width: 2px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 45%;
    transform: translateX(-50%);
    animation: mouse-scroll 1.6s ease-out infinite;
}

@keyframes mouse-scroll {
    0% {
        top: 8px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

.image-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* Matches gallery-img border-radius */
    cursor: pointer;
}

.image-overlay-container .gallery-img {
    display: block;
    width: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 80, 119, 0.75);
    /* --accent-color with transparency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    border-radius: 15px;
}

.image-overlay-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay-text {
    color: white;
    font-size: calc(1.325rem + .9vw);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-align: center;
    /* background-color: var(--primary-color); */
    padding: 3px 12px;
    border-radius: 5px;
    margin: 0 0 5px 0;
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
}

.image-overlay-divider {
    width: calc(100% - 35px);
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px 2px 12px 2px;
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
    transition-delay: 0.05s;
}

.image-overlay-desc {
    color: #f8f9fa;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
    transition-delay: 0.1s;
}

.image-overlay-container:hover .image-overlay-text,
.image-overlay-container:hover .image-overlay-divider,
.image-overlay-container:hover .image-overlay-desc {
    transform: translateY(0);
}

/* Amenities Section */
.amenity-card {
    background: white;
    padding: 1px 5px 5px 5px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* .amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(77, 161, 169, 0.15);
} */

.amenity-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* .amenity-card:hover .amenity-icon {
    transform: scale(1.1);
} */

.amenity-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.amenity-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.map-container {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    right: 30px;
    bottom: 140px;
    /* Positioned above the Book Now button (85px + 45px icon + 10px spacing) */
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Icon on the right, text flows from left */
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
}

.whatsapp-floating.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.whatsapp-floating:hover {
    width: 175px;
    /* Increased to avoid overlap */
    background-color: #128C7E;
    /* Darker WA Green */
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding-left: 20px;
}

.whatsapp-text {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.whatsapp-floating:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
    margin-right: 8px;
    /* Safe gap from icon */
}

.whatsapp-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.whatsapp-floating:hover .whatsapp-icon {
    transform: scale(1.1);
}

/* Floating Book Now Button */
.book-now-floating {
    position: fixed;
    right: 30px;
    bottom: 85px;
    /* Positioned above the Go To Top button (30px + 45px icon + 10px spacing) */
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Icon on the right, text flows from left */
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
}

.book-now-floating.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.book-now-floating:hover {
    width: 165px;
    /* Increased to avoid overlap */
    /* Expand to show text */
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding-left: 20px;
}

.book-now-text {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.book-now-floating:hover .book-now-text {
    opacity: 1;
    transform: translateX(0);
    margin-right: 8px;
    /* Safe gap from icon */
}

.book-now-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.book-now-floating:hover .book-now-icon {
    transform: scale(1.1);
}

/* Go To Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.back-to-top:hover {
    background-color: #128C7E;
    color: white;
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    animation: bounce-up 2s infinite;
}

@keyframes bounce-up {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Carousel Controls & Indicators */
.scrolling-carousel .carousel-inner {
    padding: 15px 0;
}

.scrolling-carousel .carousel-control-prev,
.scrolling-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.scrolling-carousel .carousel-control-prev {
    left: -20px;
}

.scrolling-carousel .carousel-control-next {
    right: -20px;
}

.scrolling-carousel .carousel-control-prev-icon,
.scrolling-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
}

.scrolling-carousel .carousel-control-prev:hover,
.scrolling-carousel .carousel-control-next:hover {
    background-color: var(--hover-color);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

@media (max-width: 768px) {
    .scrolling-carousel .carousel-control-prev {
        left: 5px;
    }

    .scrolling-carousel .carousel-control-next {
        right: 5px;
    }
}

.scrolling-carousel .carousel-indicators {
    bottom: -40px;
}

.scrolling-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Thumbnail Indicators */
.thumb-indicators {
    bottom: -70px !important;
}

.thumb-indicators [data-bs-target] {
    width: 60px;
    height: 45px;
    text-indent: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 0;
    margin: 0 5px;
    background: none;
}

.thumb-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.thumb-indicators [data-bs-target].active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Lightbox Modal Styles */
.lightbox-modal .modal-content {
    background-color: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-modal .modal-body img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 15px;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(77, 161, 169, 0.5);
    /* 50% transparent --primary-color */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

@media (max-width: 576px) {
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Zoom Transition for Modal */
.lightbox-modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.show .modal-dialog {
    transform: scale(1);
}

@media (min-width: 750px) {
    .lightbox-modal .modal-dialog.modal-xl {
        max-width: 850px;
    }
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1070;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.lightbox-prev i,
.lightbox-next i {
    font-size: 20px;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--hover-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-image-trigger {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.lightbox-image-trigger:hover {
    transform: scale(1.02);
}

/* Video Play Overlay */
.video-preview-container {
    position: relative;
    cursor: pointer;
    background-color: #000;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.video-play-overlay i {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.video-preview-container:hover .video-play-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.video-preview-container:hover .video-play-overlay i {
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 768px) {
    .video-play-overlay i {
        font-size: 4rem;
    }
}