/*!
Theme Name: Kinsley Child
Theme URI: https://bslthemes.site/kinsley/
Author: beshleyua
Author URI: https://themeforest.net/user/beshleyua
Description: Kinsley - Hotel WordPress Theme
Version: 1.0.0
License: General Public License
License URI: http://www.gnu.org/licenses/gpl.html
Template: kinsley
Text Domain: kinsley-child
Tags: full-width-template, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, theme-options
*/

/* ===== Arabic Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] p, html[dir="rtl"] a, html[dir="rtl"] li,
html[dir="rtl"] span, html[dir="rtl"] label,
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] button,
html[dir="rtl"] .knsl-menu nav ul li a,
html[dir="rtl"] a.knsl-btn, html[dir="rtl"] .knsl-btn {
    font-family: 'Noto Naskh Arabic', serif !important;
}

/* ===== Basic RTL text alignment ===== */
html[dir="rtl"] p,
html[dir="rtl"] li {
    text-align: right;
}

/* ===== Fix date input icon position for RTL ===== */
html[dir="rtl"] .knsl-book-form .mphb_sc_search-form > p.mphb_sc_search-check-in-date:before,
html[dir="rtl"] .knsl-book-form .mphb_sc_search-form > p.mphb_sc_search-check-out-date:before,
html[dir="rtl"] .knsl-book-form .mphb-booking-form > p.mphb-check-in-date-wrapper:before,
html[dir="rtl"] .knsl-book-form .mphb-booking-form > p.mphb-check-out-date-wrapper:before {
    right: auto !important;
    left: 20px !important;
}

html[dir="rtl"] .knsl-book-form input[type="text"].mphb-datepick {
    padding-right: 15px !important;
    padding-left: 40px !important;
}

/* ===== Fix contact info alignment in RTL ===== */
html[dir="rtl"] .knsl-icon-box p,
html[dir="rtl"] .knsl-icon-box span,
html[dir="rtl"] .knsl-icon-box a {
    text-align: center !important;
    direction: ltr !important;
}

html[dir="rtl"] .knsl-icon-box {
    text-align: center !important;
}

/* Fix phone and email direction */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"] {
    direction: ltr !important;
    display: inline-block !important;
    text-align: center !important;
}

/* ===== Fix Quote Section RTL ===== */
html[dir="rtl"] .knsl-quote-with-author .row.align-items-center {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .knsl-quote-with-author blockquote {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[dir="rtl"] .knsl-quote-with-author blockquote:before {
    right: 15px !important;
    left: auto !important;
}

html[dir="rtl"] .knsl-quote-with-author blockquote:after {
    left: 30px !important;
    right: auto !important;
}

html[dir="rtl"] .knsl-quote-with-author .knsl-quote-bottom {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    padding-right: 100px !important;
    padding-left: 30px !important;
}

html[dir="rtl"] .knsl-quote-with-author .knsl-quote-bottom:before {
    right: 30px !important;
    left: auto !important;
}

html[dir="rtl"] .knsl-quote-with-author .knsl-quote-bottom > div {
    text-align: right !important;
}

html[dir="rtl"] .knsl-quote-with-author .knsl-signature {
    margin-right: 0 !important;
    margin-left: 30px !important;
}

html[dir="rtl"] .knsl-quote-with-author .knsl-photo-frame {
    padding-right: 10% !important;
    padding-left: 0 !important;
}

/* ===== Fix Features Grid - 3 columns for both languages ===== */
.col-lg-3:has(.knsl-icon-box) {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
}

/* Fix Arabic specifically — override Bootstrap RTL float */
html[dir="rtl"] .col-lg-3:has(.knsl-icon-box) {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    float: none !important;
    width: 33.333% !important;
}

html[dir="rtl"] .row:has(.knsl-icon-box) {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}


/* ===== Fix Footer RTL Layout ===== */
html[dir="rtl"] .footer .knsl-footer .row,
html[dir="rtl"] .hf-type-footer .row {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .footer .knsl-footer .knsl-footer-about,
html[dir="rtl"] .hf-type-footer .knsl-footer-about {
    text-align: right !important;
}

html[dir="rtl"] .footer .knsl-footer .knsl-footer-menu,
html[dir="rtl"] .hf-type-footer .knsl-footer-menu {
    text-align: right !important;
}

html[dir="rtl"] .footer .knsl-footer .knsl-footer-menu li,
html[dir="rtl"] .hf-type-footer .knsl-footer-menu li {
    text-align: right !important;
}

html[dir="rtl"] .footer .knsl-footer .footer-insta,
html[dir="rtl"] .hf-type-footer .footer-insta {
    float: left !important;
}

/* Fix social icons */
html[dir="rtl"] .knsl-footer-social {
    direction: ltr !important;
    display: flex !important;
    justify-content: flex-start !important;
}

/* Fix copyright */
html[dir="rtl"] .footer .knsl-copyright,
html[dir="rtl"] .hf-type-footer .knsl-copyright {
    text-align: center !important;
}