/* ==========================================================================
   AL-Riaz Pro - Core Luxury Styles & Responsive Engine
   ========================================================================== */
:root {
    --bs-primary: #a62734;
    --bs-primary-rgb: 166, 39, 52;
    --bs-secondary: #222222;
    --bs-secondary-rgb: 34, 34, 34;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    overflow-x: hidden;
}

.r-ff-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.r-ff-sans-serif {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn-primary {
    background-color: #a62734;
    border-color: #a62734;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #8c1e29 !important;
    border-color: #8c1e29 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(166, 39, 52, 0.35);
}

.text-primary {
    color: #a62734 !important;
}

.bg-primary {
    background-color: #a62734 !important;
}

.r-btn-outline-white {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.r-btn-outline-white:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Hero Visual Effects - Vibrant Natural Image (No Dark Overlay)
   ========================================================================== */
.r-hero-wrap {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    background: transparent !important;
}

/* Remove dark overlay tint completely to show original bright photo */
.r-has-overlay-dark::before,
#header::before {
    display: none !important;
    background: transparent !important;
}

/* Top subtle bar gradient just for menu clarity */
.r-top-nav-wrap {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 65%, transparent 100%);
}

/* Slow Ken Burns Zoom Effect on Original Photo */
.r-hero-bg-anim {
    animation: rHeroKenBurns 24s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
    filter: none !important;
    opacity: 1 !important;
}

@keyframes rHeroKenBurns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08) translate(-0.5%, -0.5%);
    }
    100% {
        transform: scale(1.15) translate(0.5%, 0.5%);
    }
}

/* Hero Headline Slide-Up with Crisp Text Shadow */
.r-hero-headline {
    font-size: clamp(1.85rem, 4.2vw + 0.5rem, 3.85rem);
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.95);
    animation: rFadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    letter-spacing: -0.01em;
}

@keyframes rFadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badges Glassmorphic Effect */
.r-hero-badge-item {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50rem;
    padding: 0.55rem 1.25rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.r-hero-badge-item:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
}

.r-hero-badge-item svg {
    color: #ffc107;
    filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.5));
    transition: transform 0.3s ease;
}

.r-hero-badge-item:hover svg {
    transform: scale(1.12);
}

/* ==========================================================================
   Offcanvas Side Navigation Dynamic Menu & Sub-menu Styling
   ========================================================================== */
.r-offcanvas-menu-list {
    position: relative;
    z-index: 5;
}

.r-menu-link {
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: inline-block;
}

.r-menu-link:hover {
    transform: translateX(8px);
    opacity: 0.9;
    color: #ffffff !important;
}

.r-submenu-link {
    transition: all 0.2s ease;
    display: inline-block;
}

.r-submenu-link:hover {
    color: #ffffff !important;
    transform: translateX(5px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.r-menu-toggle {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.r-menu-toggle i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-menu-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

/* ==========================================================================
/* ==========================================================================
   Frameless Luxury Emerald & Gold Amenities Section (6 per row desktop / 2 per row mobile)
   ========================================================================== */
.r-amenities-dark-section {
    background-color: #0c2b23 !important;
    background: radial-gradient(circle at 50% 30%, #0f352b 0%, #081d17 100%) !important;
    position: relative;
    overflow: hidden;
}

.r-amenities-gold-subtitle {
    color: #d4af37 !important;
    letter-spacing: 0.16em;
    font-size: 0.85rem;
    font-weight: 700;
}

.r-amenity-luxury-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 1rem 0.25rem;
    transition: transform 0.35s ease;
    text-decoration: none;
}

.r-amenity-luxury-item:hover {
    transform: translateY(-4px);
}

.r-amenity-gold-ring {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    color: #d4af37;
}

.r-amenity-luxury-item:hover .r-amenity-gold-ring {
    transform: scale(1.08);
    border-color: #f5d77f;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: #f5d77f;
}

.r-amenity-gold-ring svg {
    width: 40px;
    height: 40px;
    color: #d4af37;
    stroke: #d4af37;
    transition: all 0.35s ease;
}

.r-amenity-luxury-item:hover .r-amenity-gold-ring svg {
    color: #f5d77f;
    stroke: #f5d77f;
    transform: scale(1.06);
}

.r-amenity-gold-ring i {
    font-size: 2.2rem;
    color: #d4af37;
    transition: all 0.35s ease;
}

.r-amenity-luxury-item:hover .r-amenity-gold-ring i {
    color: #f5d77f;
    transform: scale(1.05);
}

.r-amenity-gold-ring img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(80%) sepia(35%) saturate(800%) hue-rotate(5deg) brightness(95%) contrast(90%);
    transition: transform 0.35s ease;
}

.r-amenity-luxury-item:hover .r-amenity-gold-ring img {
    transform: scale(1.1);
}

.r-amenity-luxury-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.01em;
    max-width: 155px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .r-amenity-luxury-item {
        padding: 0.85rem 0.25rem;
    }
    .r-amenity-gold-ring {
        width: 72px;
        height: 72px;
        min-width: 72px;
        margin-bottom: 0.65rem;
    }
    .r-amenity-gold-ring svg {
        width: 34px;
        height: 34px;
    }
    .r-amenity-gold-ring i {
        font-size: 1.85rem;
    }
    .r-amenity-luxury-title {
        font-size: 0.92rem;
        max-width: 135px;
    }
}

/* ==========================================================================
   Booking Availability Bar
   ========================================================================== */
#bookingFormWrap {
    z-index: 20;
    position: relative;
}

.r-booking-card {
    transition: box-shadow 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.r-bf-cell {
    transition: background-color 0.2s ease;
}

.r-bf-cell:hover {
    background-color: #fafafa;
}

/* ==========================================================================
   Gallery Items & Hover Transitions
   ========================================================================== */
.r-gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 4px;
}

.r-gallery-item img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.r-gallery-item:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   Real Estate Projects Showcase Cards
   ========================================================================== */
.r-project-img-wrap {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #f5f5f5;
}

.r-project-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.r-project-img-wrap:hover .r-project-img {
    transform: scale(1.04);
}

.r-project-title {
    transition: color 0.25s ease;
}

.r-project-title:hover {
    color: #a62734 !important;
}

/* ==========================================================================
   Inner Pages & Full-Width Media Image Presentation
   ========================================================================== */
.r-page-header {
    background: linear-gradient(135deg, #1a1e21 0%, #0d1117 100%);
    border-bottom: 3px solid #d4af37;
}

.r-page-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.r-payment-plan-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.r-payment-plan-card {
    transition: box-shadow 0.35s ease;
}

.r-payment-plan-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
}

.r-payment-plan-lightbox {
    cursor: zoom-in;
    background-color: #f8f9fa;
}

.r-payment-plan-img {
    transition: transform 0.4s ease;
}

.r-payment-plan-lightbox:hover .r-payment-plan-img {
    transform: scale(1.01);
}

/* ==========================================================================
   Floating Vertical Side Navigation (#innerNav)
   ========================================================================== */
#innerNav {
    position: fixed !important;
    left: 1.5rem;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    z-index: 1040 !important;
    display: none;
}

@media (min-width: 992px) {
    #innerNav {
        display: block !important;
    }
}

#innerNav .nav-pills {
    position: relative;
    padding-left: 0;
    margin: 0;
}

#innerNav .nav-pills::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    z-index: 1;
    transition: background-color 0.35s ease;
}

#innerNav.is-dark .nav-pills::before {
    background-color: rgba(255, 255, 255, 0.4);
}

#innerNav:not(.is-dark) .nav-pills::before {
    background-color: rgba(0, 0, 0, 0.25);
}

#innerNav .nav-link {
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.45rem 0 0.45rem 1.75rem !important;
    position: relative;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

#innerNav.is-dark .nav-link {
    color: #ffffff !important;
}

#innerNav:not(.is-dark) .nav-link {
    color: #222222 !important;
}

#innerNav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #555;
    background-color: #fff;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#innerNav.is-dark .nav-link::before {
    border-color: #fff;
    background-color: #1a1a1a;
}

#innerNav:not(.is-dark) .nav-link::before {
    border-color: #444;
    background-color: #ffffff;
}

#innerNav .nav-link.active {
    background-color: transparent !important;
    font-weight: 800 !important;
}

#innerNav.is-dark .nav-link.active {
    color: #ffffff !important;
}

#innerNav:not(.is-dark) .nav-link.active {
    color: #a62734 !important;
}

#innerNav .nav-link.active::before {
    border-color: #a62734 !important;
    background-color: #a62734 !important;
    box-shadow: 0 0 0 4px rgba(166, 39, 52, 0.25);
    transform: translateY(-50%) scale(1.15);
}

/* ==========================================================================
   Mobile Responsive Engine & Spacing Optimizations
   ========================================================================== */
@media (max-width: 991.98px) {
    #header.r-hero-wrap {
        min-height: 560px !important;
        padding-top: 1rem;
        padding-bottom: 2.5rem !important;
    }

    #header h1.r-hero-headline {
        margin-bottom: 1.75rem !important;
    }

    #bookingFormWrap {
        margin-top: 1rem !important;
        padding: 0 0.75rem;
    }

    #bookingFormWrap .card {
        border-radius: 8px !important;
        margin-top: 0 !important;
    }

    .r-bf-cell {
        border-bottom: 1px solid #eef0f2;
        border-right: none !important;
        padding: 1rem 1.25rem !important;
    }

    #guestsMenu button {
        border-bottom: 1px solid #eef0f2;
        padding: 1rem 1.25rem !important;
    }

    #bookForm button[type="submit"] {
        min-height: 56px !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }

    #about {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #about h2 {
        font-size: 2rem !important;
    }

    #rooms {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #rooms .nav-tabs {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
        -webkit-overflow-scrolling: touch;
    }

    #offers {
        flex-direction: column !important;
    }

    #offers .col-lg-6 {
        width: 100% !important;
        padding: 2.5rem 1.25rem !important;
    }

    #subscription {
        padding: 3rem 1rem !important;
    }

    #gallery .r-gallery-item img {
        height: 180px !important;
    }

    #gallery .col-12.col-lg-6 .h-100 img {
        min-height: 240px !important;
    }
}

@media (max-width: 575.98px) {
    #header.r-hero-wrap {
        min-height: 500px !important;
    }

    .r-hero-badge-item {
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .r-menu-icon {
        width: 24px;
    }

    #about .col-12.col-sm-6 {
        margin-bottom: 2rem;
    }

    #rooms .tab-pane img {
        height: 240px !important;
    }
}

/* ==========================================================================
   Ramada Real Estate Theme Layout & Interactive Components
   ========================================================================== */
.r-resort-tab-nav .nav-link {
    transition: all 0.3s ease;
    border-left: 4px solid transparent !important;
}

.r-resort-tab-nav .nav-link:hover {
    background-color: #f8f9fa !important;
    transform: translateX(4px);
}

.r-resort-tab-nav .nav-link.active {
    border-left: 4px solid #d11242 !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.r-ramada-img-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-zoom-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-ramada-img-card:hover .r-zoom-img {
    transform: scale(1.04);
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}


/* Hide Top Bar completely */
.top-header, .top-bar, .top_bar, .tf-top-bar { display: none !important; }

/* Single Property Full-Width Gallery Slider */
.flat-slider-detail-v1, .flat-location.flat-slider-detail-v1 {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}
.flat-slider-detail-v1 .tf-sw-location {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.flat-slider-detail-v1 .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
}
.flat-slider-detail-v1 .box-imgage-detail {
    width: 100% !important;
    height: 560px !important;
    max-height: 70vh !important;
    overflow: hidden !important;
}
.flat-slider-detail-v1 .box-imgage-detail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Mobile Header & Logo Matching Ramada Design */
@media (max-width: 767.98px) {
    #topHeader {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%) !important;
    }
    #topHeader .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .r-header-logo {
        max-height: 55px !important;
        max-width: 220px !important;
    }
    .r-header-brand-text {
        font-size: 1.6rem !important;
        letter-spacing: 0.08em !important;
    }
    #header_video {
        min-height: 340px !important;
        height: 50vh !important;
        max-height: 480px !important;
    }
}
