﻿/* Facilities Page Custom Modern Styling & Animations */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

/* Equal Top and Bottom Spacing */
.services-two.facilities-custom-wrapper {
    margin-top: -91px !important;
    padding-top: 65px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

/* Adjust footer spacing on facilities page so bottom gap matches top gap */
body .footer-hotel-dark .hotel-get-touch {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}

/* Flexbox Grid */
@media (min-width: 992px) {
    .services-two .row.display-flex-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .services-two .row.display-flex-row:before,
    .services-two .row.display-flex-row:after {
        display: none !important;
    }
    .services-two .col-md-4.serv-main-sec {
        width: 33.33333333% !important;
        float: left !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services-two .row.display-flex-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .services-two .row.display-flex-row:before,
    .services-two .row.display-flex-row:after {
        display: none !important;
    }
    .services-two .col-sm-6.serv-main-sec {
        width: 50% !important;
        float: left !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

/* Entrance Animation */
@keyframes facilityFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-two .serv-main-sec {
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    opacity: 0;
    animation: facilityFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered entrance delays */
.services-two .serv-main-sec:nth-child(1) { animation-delay: 0.08s; }
.services-two .serv-main-sec:nth-child(2) { animation-delay: 0.16s; }
.services-two .serv-main-sec:nth-child(3) { animation-delay: 0.24s; }
.services-two .serv-main-sec:nth-child(4) { animation-delay: 0.32s; }
.services-two .serv-main-sec:nth-child(5) { animation-delay: 0.40s; }
.services-two .serv-main-sec:nth-child(6) { animation-delay: 0.48s; }
.services-two .serv-main-sec:nth-child(n+7) { animation-delay: 0.54s; }

/* Modern Card Design */
.services-two .service-sec {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Hover Lift Animation */
.services-two .service-sec:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13);
}

/* Image Container & Shine Animation */
.services-two .service-img-wrap {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

.services-two .service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-two .service-sec:hover .service-img-wrap img {
    transform: scale(1.08);
}

/* Light Sheen Sweep Effect on Hover */
.services-two .service-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.services-two .service-sec:hover .service-img-wrap::after {
    left: 130%;
    transition: left 0.75s ease-in-out;
}

/* Detail & Typography */
.services-two .service-sec .detail {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 24px 22px 26px 22px;
    margin: 0 !important;
    text-align: left;
}

.services-two .service-sec .detail h6 {
    margin: 0 0 8px 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    color: #111827;
    height: auto !important;
    display: block !important;
    transition: color 0.3s ease;
}

.services-two .service-sec:hover .detail h6 {
    color: #E9B947;
}

/* Gold Accent Underline Animation */
.services-two .title-line {
    width: 32px;
    height: 2px;
    background-color: #E9B947;
    margin-bottom: 14px;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services-two .service-sec:hover .title-line {
    width: 52px;
}

.services-two .service-sec .detail p {
    margin: 0;
    line-height: 24px;
    font-size: 14px;
    color: #6b7280;
    height: auto !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .sub-banner {
        height: 340px !important;
        min-height: 340px !important;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sub-banner > .container {
        position: relative;
        z-index: 3;
        width: 100%;
    }
    .sub-banner .banner-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    .sub-banner .detail {
        position: relative !important;
        top: auto !important;
        left: auto;
        right: auto;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        z-index: 3;
        text-align: center;
        padding: 0 15px !important;
        box-sizing: border-box;
    }
    .sub-banner .detail h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    }
    .sub-banner .detail span.sub-title-text {
        display: none !important;
    }
    .sub-banner .detail ul {
        display: block !important;
        float: none !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        text-align: center;
        font-size: 11px;
    }
    .sub-banner .detail ul li {
        float: none !important;
        display: inline-block;
        background: none !important;
        padding: 0 5px !important;
        font-size: 11px !important;
    }
    .sub-banner .detail ul li a {
        font-size: 11px !important;
    }
    .services-two.facilities-custom-wrapper {
        margin-top: -50px !important;
        padding-top: 65px !important;
        padding-bottom: 0px !important;
    }
    body .footer-hotel-dark .hotel-get-touch {
        padding-top: 15px !important;
    }
    .services-two .serv-main-sec {
        margin-bottom: 25px !important;
    }
    .services-two .service-img-wrap {
        height: 210px;
    }
    .services-two .service-sec .detail {
        padding: 18px 16px 20px 16px;
    }
}
