/* 
=========== INDEX OF CSS ===========
:: 1.0  Imports of All CSS
:: 2.0  Global CSS
        :: 2.1 Accent colours
        :: 2.2 Viewport sizes
        :: 2.3 Default styles
        :: 2.4 Font size variables
        :: 2.5 Scrollbar Design
:: 3.0  Responsive Font Sizes
:: 4.0  Navigation Bar
:: 5.0  Hero Banner
:: 6.0  Booking Widget
:: 7.0  Introduction
:: 8.0  Room section
        :: 8.1 Room Card
        :: 8.2 Gallery Modal
:: 9.0  Restaurant Carousel
:: 10.0 Activity Cards
:: 11.0 Places of Interest
:: 12.0 Footer

:: 13.0 Policy Page

:: 14.0 Rumah Universiti
        :: 14.1 Logo bar
        :: 14.2 Carousel Banner
====================================
*/

/* 1.0 Imports of All CSS */
@import url(bootstrap.min.css);
@import url(assets/CSS/Remixicons/fonts/remixicon.css);
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,300,0..1,-50..200");
@import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css");
@import url(aos.css);
@import url(fonts.css);

/* 2.0  Global CSS */
:root{
    /* 2.1  Accent colours */
    --primary-color: #252525;
    --secondary-color: #c38b55;
    --bg-color: #F8F0E5;
    --theme-1: #f1e5d5;
    --theme-2: #DAC0A3;
    --theme-3: #D8AE7E;
    --theme-4: #F0F8FF;
    --malaya-blue: rgb(59,49,131);

    /* 2.2  Viewport sizes */
    --tablet-xl: 1200px;
    --tablet-lg: 992px;
    --tablet-md: 768px;
    --phones-sm: 576px;

    /* 2.3  Font size variables */
    --font-size-base: 1rem;
    --font-size-scale: 0.5vw;
    --font-size-1: calc(var(--font-size-base) + var(--font-size-scale) * 2);
    --font-size-2: calc(var(--font-size-base) + var(--font-size-scale) * 1.5);
    --font-size-3: calc(var(--font-size-base) + var(--font-size-scale) * 1);
    --font-size-4: calc(var(--font-size-base) + var(--font-size-scale) * 0.5);
    --font-size-5: calc(var(--font-size-base));
    --font-size-6: calc(var(--font-size-base) - var(--font-size-scale) * 0.5);
    --font-size-7: calc(var(--font-size-base) - var(--font-size-scale) * 1);
}

/* 2.4  Default styles */
*{
    background: transparent;
    transition: 0.18s ease-out;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--bg-color);
}

a{
    text-decoration: none;
    color: inherit;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.section{
    padding: 6vh 0;
}

@media (max-width: 576px) {
    .section{
        padding: 4vh 0;
    }
}

.line{
    content: '';
    background-color: var(--secondary-color);
    height: 0.15rem;
    width: 3rem;
    margin: 0 0.8em;
}

.back-to-top span{
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    background: var(--secondary-color) !important;
    border-radius: 5em;
    padding: 0.6em;
    transition: 0.2s ease-out;
    color: white;
    opacity: 0.5;
}

.back-to-top span:hover{
    transform: translateY(-4px);
    opacity: 1;
}

/* 2.5  Scrollbar Design */
::-webkit-scrollbar {
    display: none;
}

.scroll-element{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    height: 100vh;
}

.progress-container{
    width: 0.8vh;
    height: 100vh;
    background: var(--primary-color);
}

.progress-bar{
    position: relative;
    height: 0%;
    width: 100%;
    background: var(--secondary-color);
}

/* 3.0  Responsive Font Sizes */
.cfs-1{
    font-size: var(--font-size-1);
}

.cfs-2{
    font-size: var(--font-size-2);
}

.cfs-3{
    font-size: var(--font-size-3);
}

.cfs-4{
    font-size: var(--font-size-4);
}

.cfs-5{
    font-size: var(--font-size-5);
}

.cfs-6{
    font-size: var(--font-size-6);
}

.cfs-7{
    font-size: var(--font-size-7);
}

@media (max-width: var(--tablet-xl)) { 
    :root{
        --font-size-base: 0.9rem;
    }
}

@media (max-width: var(--mobile-lg)) {
    :root {
        --font-size-base: 0.8rem;
    }
}

/* 4.0  Navigation Bar */
.navbar, .sticky-navbar{
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    height: 18vh;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transition: background-color 0.4s ease;
}

.navbar.solid {
    background-color: rgba(0, 0, 0, 1); 
}

.sticky-navbar{
    position: sticky;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 1);
}

/* 5.0  Hero Banner */
#HeroCarousel .carousel-item, #RumahCarousel .carousel-item {
    position: relative; 
    height: 100vh !important;
}

#HeroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); 
    z-index: 1; /* Ensure it overlays the image */
    pointer-events: none; /* Allow clicks to pass through */
}

#HeroCarousel .carousel-item img, #RumahCarousel .carousel-item img {
    transition: transform 6s ease-in-out;
    height: 100vh;
    object-fit: cover;
}

#HeroCarousel .carousel-item.active img, #RumahCarousel .carousel-item.active img {
    animation: enlarge 6s forwards;
}

@keyframes enlarge {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1); 
    }
}

.carousel-caption {
    position: absolute;
    top: 60%;
    left: 33%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* 6.0  Booking Widget */
.widget{
    position: sticky;
    top: 1.5vh;
    z-index: 1000;
}

@media (max-width: 576px) {
    .widget{
        position: static;
    }
}

/* 7.0  Introduction */
.facs{
    width: 70vw;
}

.facs-icon{
    color: #32CD32;
    justify-self: center;
}

.gallery{
    overflow-x: hidden;
}

.image-row {
    display: flex;
    height: 30vh; 
    width: 100vw; 
    gap: 5px;
}

.image-row img {
    flex: 1; 
    object-fit: cover; 
    height: 100%; 
}

.image-row::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1200px) {
    .image-row {
        overflow-x: auto;
        white-space: nowrap;
    }

    .image-row img {
        flex: none; 
        width: 40vw;
    }
}

@media (max-width: 992px) {
    .image-row img{
        width: 60vw;
    }

    .facs{
        width: 90vw;
    }
}

@media (max-width: 576px) {
    .facs{
        width: 50vw;
    }

    .image-row img {
        width: 80vw;
    }
}

/* 8.0  Room Section */
/* 8.1  Room card */
.split-view{
    display: flex;
    width: 100%;
    gap: 1em;
}

@media (max-width: 576px) {
    .split-view{
        display: block;
    }
}

.left-pane, .right-pane{
    flex: 1;
    overflow-y: auto;
}

.room-card{
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    width: 100%;
    height: auto;
    border: solid 0.15em var(--secondary-color);
}

.room-card img{
    transition: transform 200ms ease-in-out;
}

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

.room-frame{
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 30vh;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.room-frame::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;;
}

.room-frame img{
    position: relative;
    width: 100%;
}

@media (max-width: 576px) {
    .room-frame{
        height: 15vh;
        width: 100%;
    }

    .room-frame img{
        width: 100%;
    }
}

.room-frame span{
    position: absolute;
    bottom: 0.8em;
    left: 0.8em;
    z-index: 2;
    color: var(--theme-4);
}

.room-desc{
    display: none;
    padding: 1.8em;
    animation: fadeIn;
    animation-duration: 1200ms;
}

.room-card .expanded .room-desc{
    display: block;
}

.label, .gallery-btn{
    position: relative;
    border: solid 0.15em var(--secondary-color);
    border-radius: 0.4rem;
    padding: 0.2em 0.4em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

@media (max-width: 576px) {
    .label{
        margin-bottom: 0.6em;
    }
}

.gallery-btn{
    color: #fff;
    background: var(--secondary-color);
    border: none;
    padding: 0.6em 0.9em;
    box-shadow: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-btn:hover{
    transform: translateY(-0.3rem);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.features{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.features .material-symbols-outlined, .hotel-info .material-symbols-outlined, .hotel-info i, .policy-title i, .privacy-link i{
    color: var(--secondary-color);
}

/* 8.2  Gallery modal */
.modal-header, .modal-footer, .modal-body {
    border: none;
}

.modal-content{
    background: var(--bg-color) !important;
    border: solid 0.25rem var(--secondary-color);
}

.room-gallery{
    position: relative;
    width: 100%;
    height: 30vh;
    margin: 1.5rem 0 0 0;
    border: solid 0.2rem var(--secondary-color);
}

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

/* 9.0  Restaurant Carousel */
.dining{
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .dining{
        margin-top: 1.2rem;
    }
}

.dining .carousel{
    height: auto;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 12px 40px rgba(0, 0, 0, 0.2); 
}

.carousel-item {
    transition: opacity 0.5s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-item-next .food-desc,
.carousel-item-prev .food-desc,
.carousel-item.active .food-desc {
    transition: opacity 0.5s ease-in-out;
}

.carousel-item-next .food-desc,
.carousel-item-prev .food-desc {
    opacity: 0;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 85%;
    width: auto;
    height: 5vh;
    color: #000 !important;
}

.carousel-control-prev:hover, .carousel-control-next:hover{
    color: var(--secondary-color) !important;
}

.carousel-control-prev {
    left: 5%; 
}

.carousel-control-next {
    right: 89%; 
}

@media (max-width: 576px) {
    .carousel-control-prev, .carousel-control-next{
        top: 92%;
    }

    .carousel-control-prev {
        left: 9%; 
    }

    .carousel-control-next {
        right: 74%; 
    }
}

.food-desc{
    position: relative;
    height: 100%;
    width: 40%;
    padding: 7vh 9vh;
}

@media (max-width: 576px) {
    .food-desc{
        padding: 3vh 5vh;
        height: 22rem;
    }
}

.food-desc .playfair-reg{
    text-align: justify;
}

.food-frame{
    position: relative;
    height: 65vh;
    width: 60%;
}

@media (max-width: 576px) {
    .food-frame, .food-desc{
        width: 100%;
    }

    .food-frame{
        height: 30vh;
    }
}

.food-frame img{
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* 10.0  Places of Interest */
.shop-card{
    position: relative;
    width: 100%;
    height: 40vh;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 12px 40px rgba(0, 0, 0, 0.2);
}

.shop-card:not(:first-of-type){
    margin-top: 3rem;
}

.shop-imgs{
    position: relative;
    height: 100%;
    width: 60%;
    display: flex;
}

.shop-frame{
    position: relative;
    height: 100%;
    width: calc(100% / 3);
}

.shop-frame img{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-frame::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 7%;
    background: linear-gradient(to left, rgba(0,0,0,0.6), rgba(0,0,0,0));
    z-index: 1;
}

.shop-desc{
    position: relative;
    width: 40%;
    height: 100%;
    text-align: center;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
}

.shop-desc span{
    margin-top: 0.8rem;
}

@media (max-width: 576px) {
    .shop-card{
        display: block;
        height: 60vh;
    }

    .shop-imgs, .shop-desc{
        width: 100%;
    }

    .shop-imgs{
        height: 40%;
    }

    .shop-desc{
        height: 60%;
        padding: 0 1rem;
    }
}

/* 11.0  Places of Interest */
.place-card{
    border: solid 0.15em var(--secondary-color);
    position: relative;
    width: 100%;
    height: 30vh;
    overflow: hidden;
}

.place-card img{
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.place-card::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 1;
}

.place-card .place-desc{
    position: absolute;
    bottom: 7%;
    left: 7%;
    right: 7%;
    transform: translateY(-25%);
    color: #fff;
    z-index: 2;
}

@media (max-width: 576px) {
    .place-card{
        height: 25vh;
    }
}

/* 12.0  Footer */
footer{
    background-color: var(--primary-color);
    color: #fff;
}

.footer-logo img{
    width: 12rem;
}

@media (max-width: 576px) {
    .footer-logo img{
        width: 6rem;
        justify-content: center;
    }
}

.policy{
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: #484848;
    color: var(--secondary-color);
    border-radius: 0.5rem;
    margin-top: 0.4rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.policy:hover{
    background: var(--secondary-color);
    color: #fff;
}

/* 13.0  Policy Page */
.policy-banner{
    position: relative;
    width: 100vw;
    height: 20vh;
}

.policy-banner img{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.policy-banner::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
}

.policy-banner div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
}

.policy-section{
    padding: 6vh 0 0 0;
}

.policy-container{
    margin: 0 20rem;
    text-align: justify;
}

@media (max-width: 576px) {
    .policy-container{
        margin: 0 2rem;
    }
}

.policy-title, .privacy-link{
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.6em;
}

.privacy-link{
    margin-bottom: 0;
    gap: 0.8em;
}

.privacy-link span{
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.privacy-link span:hover{
    color: #0000EE;
    transform: translateX(0.5rem);
}

ol.poppins-medium {
    list-style-position: outside; 
    padding-left: 2rem; 
}

ol.poppins-medium li {
    margin-bottom: 0.7rem; 
}

.policy-section ul{
    margin-top: 0.5rem;
}

.policy-section ul li{
    margin-bottom: 0;
}

/* 14.0  Rumah Universiti */
.r-section{
    padding: 6vh 0 6vh 0;
}

.title-line{
    content: '';
    height: 0.15rem;
    width: 12vw;
    background-color: var(--secondary-color);
    margin: 0 0 0 1em;
}

/* 14.1  Logo Bar */
.logobar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    height: 10vh;
    background: var(--theme-4);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.logobar.appear{
    opacity: 1;
}

.logobar img{
    height: 1em;
    width: auto;
}

.logo-title{
    font-size: 3.4em;
    color: var(--malaya-blue);
}

/* 14.2  Carousel Banner */
.headbar{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: 100%;
    height: 35vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 2;
}

.headbar span{
    font-family: "Stigma", serif;
    display: block;
    color: white;
}

.rumah-banner{
    position: relative;
    width: 100vw;
    height: 100vh;
}

.rumah-banner img{
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#RumahCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

.banner-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 6em;
    text-align: center;
    z-index: 2;
}

.brands{
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    gap: 3em;
}

.brands img{
    height: 12vh;
    width: auto;
}

.line-70{
    display: flex;
    content: '';
    justify-self: center;
    background-color: var(--secondary-color);
    height: 0.2rem;
    width: 70vw;
    margin: 3em 0;
}

.ru-room{
    display: flex;
    position: relative;
    height: 80vh;
    width: 30vw;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 4rem;
}

.ru-room img{
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery-item{
    position: relative;
    flex-grow: 1;
    height: 40vh;
}

.ru-gallery{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: solid 0.3rem var(--theme-3);
}

.ru-gallery img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.map-frame{
    position: relative;
    width: 40vw;
    height: 60vh;
    flex-shrink: 0;
    border: solid 0.3rem var(--theme-3);
    border-radius: 2rem;
}