/* RTL Styles for Arabic Language */

/* Preloader Logo Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    text-align: center;
}

.loader-logo img {
    max-width: 200px;
    height: auto;
    animation: fadeInScale 1.5s ease-in-out infinite alternate;
}

@keyframes fadeInScale {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Base RTL Styles */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Ensure sidebar is hidden by default on mobile */
@media (max-width: 991px) {
    .foholic-fixed-sidebar {
        right: -300px !important;
        left: auto !important;
    }
}

/* Image Size Control */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* All Images - Prevent oversized display */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-cover {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Gallery Images - Aesthetic Display */
.gallery_img img,
.photo_gallery img,
.inside-img img,
.swipe_gallery_img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery_img img:hover,
.photo_gallery img:hover {
    transform: scale(1.05);
}

/* Blog Images - Professional Look */
.blog-item img,
.blog-modal-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* About Section Images - Balanced Layout */
.resto-img img,
.food-differs img,
.season_tast img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Specific About Section Controls */
.resto-img .img-fluid {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
    margin: 20px 0;
}

.resto-img {
    margin: 30px 0;
}

.season_tast .img-fluid {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

.food_tasting {
    margin: 40px 0;
}

.food-differs .img-fluid {
    width: 48%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px;
}

.food-differs .float-end {
    margin-left: 10px;
}

.food-differs .top-img {
    margin-bottom: 10px;
}

/* Restaurant text image */
.restaurant-text-img {
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
}

/* Round Text Circle Section */
.theme-btn {
    position: relative;
    display: inline-block;
}

.round-text {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

.round-text img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive Round Text */
@media (max-width: 768px) {
    .round-text {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .round-text {
        width: 100px;
        height: 100px;
    }
    
    .restaurant-text-img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

/* Slider Images - Full Coverage */
.slide-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Header Logo - Clean Display */
.header-logo img,
.mobile_header .logo img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.1);
}

/* Footer Icons - Small & Clean */
.footer-area img {
    max-width: 40px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-area img:hover {
    opacity: 1;
}

/* Modal Images - Centered Display */
.modal-body img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Responsive Image Controls */
@media (max-width: 768px) {
    .gallery_img img,
    .photo_gallery img,
    .inside-img img,
    .swipe_gallery_img img {
        height: 200px;
    }
    
    .blog-item img,
    .blog-modal-img img {
        height: 150px;
    }
    
    .resto-img img,
    .food-differs img,
    .season_tast img {
        max-height: 200px;
    }
    
    .resto-img .img-fluid {
        height: 300px;
    }
    
    .season_tast .img-fluid {
        height: 150px;
    }
    
    .food-differs .img-fluid {
        height: 120px;
    }
    
    .header-logo img,
    .mobile_header .logo img {
        max-width: 120px;
    }
    
    .modal-body img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery_img img,
    .photo_gallery img,
    .inside-img img,
    .swipe_gallery_img img {
        height: 150px;
    }
    
    .blog-item img,
    .blog-modal-img img {
        height: 120px;
    }
    
    .resto-img img,
    .food-differs img,
    .season_tast img {
        max-height: 150px;
    }
    
    .resto-img .img-fluid {
        height: 200px;
    }
    
    .season_tast .img-fluid {
        height: 100px;
    }
    
    .food-differs .img-fluid {
        height: 80px;
        max-width: 45%;
    }
    
    .restaurant-text-img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

/* Apply Tajawal to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.nav-links, .slide_title, .foholic_title, .dark_head,
.foholic_subcontent, .blog-detail, .Blog_sub_name,
.news_sub_detail, .table-detail, .celebrate_title,
.years, .video_title, .date_pick {
    font-family: 'Tajawal', sans-serif !important;
}

/* Content RTL adjustments */
.foholic_content {
    margin-right: 300px;
    margin-left: 0;
    width: calc(100% - 300px);
    position: relative;
    z-index: 1;
}

/* Sidebar RTL adjustments */
.foholic-fixed-sidebar.sidebar-right {
    right: 0;
    left: auto;
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 1000;
    width: 300px;
}

/* Ensure sidebar doesn't cover content */
#main-wrap {
    position: relative;
    width: 100%;
}

/* Navigation RTL */
.navbar-navs {
    padding-right: 0;
    padding-left: 0;
}

.nav-links {
    text-align: right;
}

/* Text alignment */
.text-end {
    text-align: left !important;
}

.text-start {
    text-align: right !important;
}

/* Float adjustments */
.float-end {
    float: left !important;
}

.float-start {
    float: right !important;
}

/* Margin and padding RTL */
.ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

.me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

.ps-3 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

.pe-3 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

/* Bootstrap RTL overrides */
@media (min-width: 992px) {
    .foholic_content {
        margin-right: 300px;
        width: calc(100% - 300px);
    }
    
    .foholic-fixed-sidebar.sidebar-right {
        width: 300px;
    }
}

/* Mobile RTL */
@media (max-width: 991px) {
    .foholic_content {
        margin-right: 0;
        width: 100%;
    }
    
    .foholic-fixed-sidebar {
        right: -300px;
        left: auto;
        width: 300px;
    }
    
    .foholic-fixed-sidebar.sidebar-open {
        right: 0;
        left: auto;
    }
}

/* Form RTL */
.form-control {
    text-align: right;
}

/* Button RTL */
.btn {
    text-align: center;
}

/* Card RTL */
.card {
    text-align: right;
}

/* Table RTL */
.table {
    text-align: right;
}

.table th,
.table td {
    text-align: right;
}

/* List RTL */
ul, ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Blockquote RTL */
blockquote {
    border-right: 4px solid #ddd;
    border-left: none;
    padding-right: 1rem;
    padding-left: 0;
    text-align: right;
}

/* Code RTL */
code {
    direction: ltr;
    text-align: left;
}

/* Slider RTL adjustments */
.swiper-slide {
    direction: rtl;
}

.slide_inn_content {
    text-align: center;
}

/* Team section RTL */
.team-box {
    text-align: center;
}

.hover-icons {
    direction: ltr;
}

/* Features section RTL */
.dish-ic-box {
    text-align: center;
}

/* Menu section RTL */
.menu_nav {
    text-align: center;
}

/* Footer RTL */
.footer {
    text-align: center;
}

/* Tablet responsive styles */
@media (max-width: 991px) {
    .foholic_content {
        margin-right: 0;
        width: 100%;
    }
    
    .foholic-fixed-sidebar {
        right: -300px !important;
        left: auto !important;
        width: 300px !important;
        transform: translateX(0) !important;
        transition: right 0.3s ease !important;
    }
    
    .foholic-fixed-sidebar.sidebar-open {
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
    }
    
    /* Tablet slider adjustments */
    .slide_title {
        font-size: 1.8rem !important;
    }
    
    .slide_inn_content span {
        font-size: 1.3rem !important;
    }
    
    /* Tablet features */
    .dish-ic-box {
        margin-bottom: 25px;
    }
    
    .dish-ic-box h3 {
        font-size: 1.3rem;
    }
    
    .dish-ic-box p {
        font-size: 0.95rem;
    }
    
    /* Tablet about section */
    .foholic_title {
        font-size: 2rem !important;
    }
    
    .foholic_subcontent {
        font-size: 1rem !important;
    }
}

/* Responsive RTL adjustments */
@media (max-width: 768px) {
    .foholic_content {
        margin-right: 0;
        width: 100%;
        padding: 0;
    }
    
    .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .foholic-fixed-sidebar {
        width: 280px !important;
        right: -280px !important;
        left: auto !important;
        transform: translateX(0) !important;
        transition: right 0.3s ease !important;
    }
    
    .foholic-fixed-sidebar.sidebar-open {
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
    }
    
    /* Slider mobile adjustments */
    .slide_title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .slide_inn_content span {
        font-size: 1.2rem !important;
    }
    
    /* Features mobile */
    .dish-ic-box {
        margin-bottom: 30px;
    }
    
    .dish-ic-box h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .dish-ic-box p {
        font-size: 0.9rem;
    }
    
    /* About section mobile */
    .foholic_title {
        font-size: 1.8rem !important;
    }
    
    .foholic_subcontent {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    /* Gallery mobile */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    
    /* Blog mobile */
    .blog-item {
        margin-bottom: 30px;
    }
    
    /* Button mobile */
    .button-light {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Navigation mobile */
    .navbar-navs {
        text-align: center;
    }
    
    .nav-links {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Mobile menu improvements */
    .mobile_header {
        padding: 15px;
        background: rgba(0,0,0,0.9);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    .foholic-menubar {
        margin-left: 15px;
        cursor: pointer;
    }
    
    .menu-ic {
        width: 30px;
        height: 25px;
        position: relative;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
    }
    
    .menu-ic span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    /* Ensure content starts below mobile header */
    .foholic_content {
        padding-top: 80px;
    }
    
    /* Improve mobile navigation */
    .navbar-navs {
        text-align: center;
        padding: 20px 0;
    }
    
    .nav-links {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .nav-links:hover {
        background: rgba(255,255,255,0.1);
        padding-right: 10px;
    }
    
    /* Mobile sidebar improvements */
    .foholic-fixed-sidebar {
        transition: right 0.3s ease;
    }
    
    .sidebar-open {
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .slide_title {
        font-size: 1.2rem !important;
    }
    
    .slide_inn_content span {
        font-size: 1rem !important;
    }
    
    .foholic_title {
        font-size: 1.5rem !important;
    }
    
    .foholic_subcontent {
        font-size: 0.9rem !important;
    }
    
    .button-light {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    /* Small mobile header adjustments */
    .mobile_header {
        padding: 10px;
    }
    
    .foholic_content {
        padding-top: 70px;
    }
    
    /* Features very small mobile */
    .dish-ic-box img {
        max-width: 50px;
        height: auto;
    }
    
    .dish-ic-box h3 {
        font-size: 1.1rem;
    }
    
    .dish-ic-box p {
        font-size: 0.85rem;
    }
    
    /* Small mobile navigation */
    .nav-links {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    /* Small mobile buttons */
    .button-light {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Small mobile slider */
    .slide_inn_content {
        padding: 0 10px;
    }
    
    /* Improve touch targets for mobile */
    .nav-links,
    .button-light,
    .menu-ic {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile social icons */
    .foholic-social-ic {
        margin-top: 20px;
    }
    
    .foholic-social-ic a {
        display: inline-block;
        margin: 0 5px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .foholic-social-ic a:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.1);
    }
}

/* Animation RTL fixes */
.wow {
    direction: rtl;
}

/* Image RTL */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Social icons RTL */
.foholic-social-ic {
    direction: ltr;
    text-align: center;
}

/* Mobile menu RTL */
.mobile_header {
    direction: rtl;
}

/* Timeline RTL */
.timeline-tag {
    direction: rtl;
}

/* Counter RTL */
.fast-counter {
    direction: ltr;
    text-align: center;
}

/* Video section RTL */
.video_title {
    text-align: center;
}

/* Gallery RTL */
.gallery-item {
    text-align: center;
}

/* Blog RTL */
.blog-post {
    text-align: right;
}

/* Contact form RTL */
.contact-form {
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    text-align: right;
}

/* Reservation form RTL */
.reservation-form {
    text-align: right;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    text-align: right;
}

/* Menu items RTL */
.menu-item {
    text-align: right;
}

.menu-price {
    text-align: left;
}

/* Testimonial RTL */
.testimonial {
    text-align: center;
}

.testimonial-content {
    text-align: center;
}

/* Opening hours RTL */
.opening-hours {
    text-align: center;
}

/* Map RTL */
.map-container {
    direction: ltr;
}

/* Newsletter RTL */
.newsletter {
    text-align: center;
}

.newsletter input {
    text-align: center;
}

/* Loading RTL */
.preloader {
    direction: ltr;
}

/* Shape images RTL */
.slider_shape_img1,
.slider_shape_img2 {
    direction: ltr;
}

/* Custom RTL utilities */
.text-rtl {
    text-align: right !important;
}

.text-ltr {
    text-align: left !important;
}

.direction-rtl {
    direction: rtl !important;
}

.direction-ltr {
    direction: ltr !important;
}
