/*
//  Created by Mohammad Rabi on 05/06/2026.
//  Copyright © 2026 Horizon Stay. All rights reserved.
*/

/* ========================================= */
/* ARABIC TYPOGRAPHY & OVERRIDES (rtl.css)   */
/* ========================================= */

/* 1. Apply Tajawal Font Globally */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, select {
    font-family: 'Tajawal', sans-serif !important;
}

/* Make bold text pop beautifully */
b, strong, .hero-title, .section-title, .trust-title {
    font-weight: 700 !important;
}

/* ARABIC TYPOGRAPHY FIX - Kills all letter-spacing to prevent broken cursive connections */
* {
    letter-spacing: normal !important;
}

/* ========================================= */
/* ARABIC OVERRIDES (rtl.css)                */
/* ========================================= */

/* 1. Global Text Alignment */
body {
    text-align: right;
}

/* Helper: Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 5px;
    font-weight: 700;
    text-transform: none;
}

/* 2. Flip Section Headers */
.section-header {
    text-align: right !important; /* Overrides the hardcoded English alignment */
    border-left: none;
    border-right: 3px solid rgba(237, 66, 100, 0.5);
    padding-left: 0;
    padding-right: 25px;
}

/* 3. Fix the Hero Search Bar Inputs */
.search-input-group::after {
    right: auto;
    left: 20px;
}

.hero-select {
    padding-right: 0;
    padding-left: 35px;
}

.section-title span {
    padding-top: 10px;
}

/* ========================================= */
/* HEADER NAVIGATION BAR SPACING             */
/* ========================================= */

/* 4. Dropdown Text, Chevron, & Red Bar Alignment */
.location-item {
    text-align: right !important;
}

.location-item.active {
    border-left: none !important;
    border-right: 3px solid var(--grad-start) !important;
    background: rgba(237, 66, 100, 0.05) !important;
}

.chevron-icon {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.ota-title { font-size: 1.1rem;  }

/* ========================================= */
/* DESKTOP HEADER (Min-width: 941px)        */
/* ========================================= */
@media (min-width: 941px) {
    
    /* Location Dropdown - Separator on left */
    #location-dropdown {
        border-right: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-right: 0 !important;
        margin-left: 10px !important;
        padding-right: 0 !important;
        padding-left: 25px !important;
    }

    /* Language Dropdown - No separators, snaps to left */
    #lang-dropdown {
        border-left: none !important;
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 10px !important;
    }

    .nav-link { padding-bottom: 0px; }

    /* Pushes the hover/active bar further down to clear Arabic letter drops */
    #main-header .nav-link {
        padding-bottom: 0px !important; 
    }

    /* If your bar is built using an animated pseudo-element, this forces it lower */
    #main-header .nav-link::after {
        bottom: -3px !important; 
    }
}

/* ========================================= */
/* MOBILE MENU (Max-width: 940px)           */
/* ========================================= */
@media (max-width: 940px) {
    
    /* Slide menu from the left instead of right */
    .main-nav {
        right: auto !important;
        left: -100% !important;
        align-items: flex-start !important;
        transition: left 0.3s cubic-bezier(0.885, 0.885, 0.32, 0.885) !important;
    }
    
    .main-nav.menu-open {
        left: 0 !important;
        right: auto !important;
    }

    /* Clean up borders and padding for ALL dropdowns on mobile */
    .custom-location-dropdown,
    #location-dropdown,
    #lang-dropdown {
        border-left: none !important;
        border-right: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 20px !important;
    }

    header {
        padding-left: 10px !important;
        padding-right: 15px !important;
    }
}

/* ========================================= */
/* REVIEW STARS GRADIENT FLIP                */
/* ========================================= */
.stars {
    /* Keep 90deg, but swap the End and Start variables to force the mirror! */
    background-image: linear-gradient(0deg, var(--grad-start), var(--grad-end)) !important;
}

/* ========================================= */
/* HERO SEARCH BAR PADDING FLIP              */
/* ========================================= */

/* Desktop: 25px on the Right (Icon), 8px on the Left (Button) */
.hero-search-bar {
    padding: 8px 25px 8px 8px !important;
}

/* Mobile Override */
@media (max-width: 768px) {
    .hero-search-bar {
        padding: 8px 25px 8px 8px !important;
    }
}


/* ========================================= */
/* MOBILE MENU: VERTICAL BAR FLIP (::AFTER)  */
/* ========================================= */

@media (max-width: 940px) {
    /* Targets the custom gradient bar and moves it to the right */
    .nav-link.active::after,
    .nav-link:hover::after {
        left: auto !important;  /* Releases it from the left side */
        right: 0 !important;    /* Pins it to the right side */
    }
}


/* ========================================= */
/* HERO CUSTOM DROPDOWN (ARABIC)             */
/* ========================================= */
.hero-option {
    text-align: right !important;
}

/* Arabic Active State Override (flips the bar) */
.hero-option.active {
    border-left: none;
    border-right: 3px solid var(--grad-start);
}


/* ========================================= */
/* LEGAL PAGES (POLICIES, TERMS, PRIVACY)    */
/* ========================================= */

.policy-section,
.legal-content,
.legal-content p,
.legal-content h3,
.policy-heading {
    text-align: right !important;
}

/* If your separator line is pinned to the left, this moves it to the right */
.legal-content .separator {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Target lists inside your main content container */
.container ul, 
.container ol {
    padding-left: 0 !important; /* Reset the English left padding */
    padding-right: 40px !important; /* Apply the shift to the right side */
}

/* ========================================= */
/* CONTACT PAGE ARABIC ALIGNMENT             */
/* ========================================= */

/* Aligns the Contact Cards text to the right */
.card-text,
.card-text h4,
.card-text p {
    text-align: right !important;
}

/* Aligns the Form Labels, Inputs, and Textarea to the right */
.contact-form label,
.contact-form input,
.contact-form textarea {
    text-align: right !important;
}

.contact-form input[type="email"] {
    direction: ltr !important;
    text-align: right !important; 
}

a[href^="tel:"] .card-text p {
    direction: ltr !important;
    text-align: right !important;
}

/* ========================================= */
/* OUR STORY PAGE ALIGNMENT                  */
/* ========================================= */

.about-text-block,
.mv-card,
.value-card,
.ultimate-goal p {
    text-align: right !important;
}

.value-card .value-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    /* This manually pushes the numbers down! */
    padding-top: 7px !important; 
    padding-bottom: 0px !important;
}

/* ========================================= */
/* HOSTS PAGE ARABIC ALIGNMENT               */
/* ========================================= */

.host-info,
.host-info h3,
.host-info h4,
.host-bio {
    text-align: right !important;
}

.hero-search-btn {
    padding-top: 17px !important; 
    padding-bottom: 11px !important;
}

/* Mobile Adjustment */
@media (max-width: 940px) {
    .hero-search-btn {
        padding-top: 14px !important; 
        padding-bottom: 10px !important;
    }
}

/* =========================================
   ARABIC HERO BUTTON VERTICAL ALIGNMENT
   ========================================= */
.btn-hero-explore {
    padding-top: 20px !important; 
    padding-bottom: 12px !important;
}

@media (max-width: 1020px) {
    .btn-hero-explore {
        padding-top: 17px !important; 
        padding-bottom: 11px !important;
    }
}