/********** Template CSS — TWA Palace Hotel **********/
:root {
    --bs-primary: #c8a45c;
    --bs-primary-rgb: 200, 164, 92;
    --bs-secondary: #1a1a1a;
    --bs-light: #F6F1E8;
    --bs-dark: #1a1a1a;
    --bs-white: #ffffff;
}


/*** Back to Top ***/
.back-to-top {
    position: fixed !important;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(200, 164, 92, 0.4);
}


/*** 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;
}


/*** Spacing Utilities ***/
.mt-6 { margin-top: 6rem; }
.mb-6 { margin-bottom: 6rem; }
.my-6 { margin-top: 6rem; margin-bottom: 6rem; }
.pt-6 { padding-top: 6rem; }
.pb-6 { padding-bottom: 6rem; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Buttons ***/
.btn {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary {
    position: relative;
    font-family: 'Yeseva One', serif;
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
    letter-spacing: 1px;
    overflow: hidden;
}

.btn-primary:hover {
    background: #b8943f !important;
    border-color: #b8943f !important;
    color: var(--bs-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 164, 92, 0.35);
}

.btn-dark {
    position: relative;
    font-family: 'Yeseva One', serif;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--bs-dark);
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 4px;
}


/*** Global Colors ***/
.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }
.text-white { color: #fff !important; }


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: all 0.5s ease;
    background: rgba(26, 26, 26, 0.7);
    padding: 10px 0;
}

.navbar.bg-dark {
    background: rgba(26, 26, 26, 0.95) !important;
}

.navbar .navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 35px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar {
        background: rgba(26, 26, 26, 0.95) !important;
        padding: 8px 0;
    }
    
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
        font-size: 14px;
    }

    .navbar .navbar-nav .nav-link::after {
        bottom: 5px;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 10px;
    }

    .navbar .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 25px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.5);
    z-index: 1;
}

.carousel-caption .display-1 {
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-caption p {
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: all 0.3s ease;
}

#header-carousel:hover .carousel-control-prev,
#header-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 50%;
    border-radius: 50%;
    background-color: rgba(200, 164, 92, 0.3);
}

@media (min-width: 1200px) {
    .carousel-caption .display-1 {
        font-size: 5.5rem;
    }
}

@media (max-width: 992px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-caption .display-1 {
        font-size: 2.8rem;
    }

    .carousel-caption p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 500px;
    }

    .carousel-caption .display-1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem !important;
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}


/*** Page Banner ***/
.page-banner {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
}

.page-banner .display-3 {
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .page-banner {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
    }
    
    .page-banner .display-3 {
        font-size: 2.2rem;
    }
}


/*** Fact Counter ***/
.fact-counter {
    background: linear-gradient(rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.75)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.fact-counter .display-5 {
    font-weight: 700;
}

@media (max-width: 768px) {
    .fact-counter .display-5 {
        font-size: 2rem;
    }
}


/*** Room Items ***/
.room-item {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.room-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary);
    transform: translateY(-5px);
}

.room-item .room-detail img {
    transition: all 0.5s ease;
    border-radius: 6px;
}

.room-item:hover .room-detail img {
    transform: scale(1.05);
}

.room-item .room-detail .position-absolute {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 4px;
}

@media (max-width: 576px) {
    .room-item {
        flex-direction: column;
    }
    
    .room-item .bg-light.rounded {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around;
        padding: 12px 10px !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    .room-item .bg-light.rounded .bg-primary {
        display: none;
    }
}


/*** Service Items ***/
.service-item {
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.service-item:hover {
    border-color: var(--bs-primary);
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-primary);
    border-radius: 8px;
    z-index: 1;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
    border-radius: 8px;
}

.service-item:hover::after {
    width: 0;
    left: auto;
    right: 0;
    border-radius: 0 8px 8px 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 3;
}

.service-item:hover * {
    color: var(--bs-dark) !important;
}


/*** Feature Section ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }
    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Blog Items ***/
.blog-item {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.blog-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary);
    transform: translateY(-3px);
}

.blog-item .blog-img {
    position: relative;
    margin-bottom: 3.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.blog-item .blog-img img {
    transition: all 0.5s ease;
}

.blog-item:hover .blog-img img {
    transform: scale(1.08);
}

.blog-item .blog-meta {
    position: absolute;
    left: 0;
    bottom: -35px;
    width: 100%;
    height: 70px;
    z-index: 1;
}


/*** Contact Section ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }
    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    border-top: 3px solid var(--bs-primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #cccccc;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.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(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 5px;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a {
    color: var(--bs-primary);
    text-decoration: none;
}

.footer .copyright a:hover {
    color: #ffffff;
}


/*** Form Controls ***/
.form-control {
    border: 1px solid #ddd;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(200, 164, 92, 0.1);
    outline: none;
}

.form-floating label {
    color: #999;
}


/*** WhatsApp Float ***/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: floatPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    color: #fff;
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.55);
}

@keyframes floatPulse {
    0% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 45px rgba(37, 211, 102, 0.65); }
    100% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}


/*** Breadcrumb ***/
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #d4b36a;
}


/*** Gallery Images ***/
.gallery-img {
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/*** Links ***/
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b8943f;
}


/*** Typography ***/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
}

body {
    font-family: 'Jost', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*** Section Headers ***/
.display-4 {
    font-size: 2.8rem;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}


/*** Smooth Scroll ***/
html {
    scroll-behavior: smooth;
}


/*** Selection Color ***/
::selection {
    background: var(--bs-primary);
    color: var(--bs-dark);
}

::-moz-selection {
    background: var(--bs-primary);
    color: var(--bs-dark);
}


/*** Gallery Card ***/
.gallery-card {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 164, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: var(--bs-dark);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content i {
    display: block;
    font-size: 2.5rem;
}

.gallery-overlay-content span {
    font-family: 'Yeseva One', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/*** Lightbox Modal ***/
.modal-fullscreen .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}