.ar-font {
    font-family: "Fustat", sans-serif !important;
    line-height: 1;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-500 {
    font-weight: 600 !important;
}

.country_code_addon .input-group-text {
    padding: 0;
    margin: 0;
}

.country_code_addon .input-group-text select {
    width: 110px !important;
    height: 55px;
}

.tg-checkout-form-input .input-group input {
    width: calc(100% - 120px);
}

.payment-option {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    /*padding: 16px 20px;*/
    padding: 8px 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ffffff;
    position: relative;
}

.payment-option:hover {
    border-color: #000000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.payment-option.selected {
    border-color: #000000;
    border-width: 2px;
    background-color: #ffffff;
}

.payment-option input[type="radio"] {
    display: none !important;
}

.payment-option label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 400;
}

.payment-option .payment_icon {
    /*width: 28px !important;
    height: 18px !important;*/

    width: auto !important;
    height: 25px !important;

    object-fit: contain;
}

/* Remove custom indicators - border selection only */
.payment-option::after {
    display: none;
}


.radio-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-buttons input[type="radio"] {
    display: none;
}

.radio-buttons .radio-btn {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* -----------------------------
   User sidebar and mobile nav
   Small icons, compact spacing, mobile-first enhancements
   ----------------------------- */

.sidebar {
    display: block;
}

.sidebar .sidebar-menu {
    list-style: none;
    padding: 8px 6px;
    margin: 0;
}

.dashboard-nav-item {
    margin-bottom: 6px;
}

.dashboard-nav-item>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.dashboard-nav-item>a svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.dashboard-nav-item.active>a {
    background: rgba(179, 143, 75, 0.08);
    color: #b38f4b;
}

/* Mobile bottom nav: hidden on desktop */
.mobile-user-nav {
    display: none;
}

@media (max-width: 767px) {

    /* hide desktop sidebar on small screens to save space */
    .sidebar {
        display: none;
    }

    .mobile-user-nav {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        height: 56px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        align-items: center;
        justify-content: space-around;
        z-index: 9999;
        padding: 6px 8px;
        gap: 6px;
    }

    .mobile-user-nav .mobile-nav-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        color: #555;
        text-decoration: none;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .mobile-user-nav .mobile-nav-item svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
    }

    .mobile-user-nav .mobile-nav-item.active {
        background: linear-gradient(135deg, #f8f3ea, #fff9f2);
        color: #b38f4b;
        box-shadow: 0 6px 16px rgba(179, 143, 75, 0.14);
    }

}

/* Ensure any inline SVG icons across these user pages are constrained to very small size */
.profile-content-card svg,
.player-enhanced svg,
.profile-sidebar svg,
.tg-team-details-contact-info svg,
.profile-header svg,
.profile-referral-title svg {
    width: 16px !important;
    height: 16px !important;
}

/* Profile content card styling */
.profile-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-header h2 {
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.profile-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

.profile-info-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.profile-referral-code {
    background: linear-gradient(135deg, #f8f3ea, #fff9f2);
    border: 2px dashed #b38f4b;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b38f4b;
}


/* Hover effect */
.radio-buttons .radio-btn:hover {
    background: #f5f5f5;
}

/* Active (checked) state */
.radio-buttons input[type="radio"]:checked+.radio-btn {
    background-color: var(--tg-theme-primary);
    color: white;
    border-color: var(--tg-theme-primary);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* ================================================
   MOBILE INSTAGRAM STORY SLIDER (MOBILE ONLY)
   Full-screen vertical story experience for rooms
   ================================================ */

.mobile-story-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
}

.story-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.story-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.story-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.1) 60%,
            rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.story-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.story-header {
    padding-top: 8px;
}

.story-progress-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.progress-bar-item {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-item.filled::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 3px;
}

.progress-bar-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    animation: progressFill 4s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.story-footer {
    padding-bottom: 20px;
}

.story-room-name {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.story-room-price {
    display: inline-block;
    background: linear-gradient(135deg, #b38f4b 0%, #d4af6a 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(179, 143, 75, 0.4);
}

.story-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.story-btn-view:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #000;
}

.story-btn-view svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.story-btn-view:hover svg {
    transform: translateX(3px);
}

.story-nav-dots {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.story-nav-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-nav-dots .dot.active {
    background: #b38f4b;
    transform: scale(1.3);
}

/* Tablet and above - hide story slider, show grid */
@media (min-width: 768px) {
    .mobile-story-slider {
        display: none !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .mobile-story-slider {
        height: 75vh;
        border-radius: 20px;
    }

    .story-room-name {
        font-size: 22px;
    }

    .story-room-price {
        font-size: 14px;
        padding: 6px 14px;
    }

    .story-btn-view {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .story-room-name,
[dir="rtl"] .story-room-price,
[dir="rtl"] .story-btn-view {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .story-btn-view {
    flex-direction: row-reverse;
}

[dir="rtl"] .story-btn-view:hover svg {
    transform: translateX(-3px);
}

[dir="rtl"] .story-footer {
    text-align: right;
}

html[lang="ar"] .story-room-name,
html[lang="ar"] .story-room-price,
html[lang="ar"] .story-btn-view {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .story-btn-view {
    flex-direction: row-reverse;
}

html[lang="ar"] .story-btn-view:hover svg {
    transform: translateX(-3px);
}

html[lang="ar"] .story-footer {
    text-align: right;
}

@font-face {
    font-family: 'saudi_riyal';
    src: url('../fonts/saudi-riyal/saudi_riyal.woff2') format('woff2'),
        url('../fonts/saudi-riyal/saudi_riyal.woff') format('woff'),
        url('../fonts/saudi-riyal/saudi_riyal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.icon-saudi_riyal::before {
    content: "\e900";
    font-family: 'saudi_riyal' !important;
    font-size: inherit;
    color: inherit;
}

[dir="rtl"] #order_summary_section .table th{
    width: 100%;
}



/*.tg-section-subtitle::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 80px;
    background: url('../img/gazelle.png') no-repeat center;
    background-size: contain;
    margin-right: 5px;
    vertical-align: middle;
    margin-top:-60px;
}*/

.bg-pattern {
    background: url('../img/emblem_full.png') repeat center center;
    background-size: auto 250px;
    background-attachment: fixed;
}

.bg-pattern::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95); /* your opacity layer */
    pointer-events: none;
    z-index: 0;
}


.tg-listing-card-item .tg-listing-card-gallery{
    border-radius: 12px;
}

[dir="rtl"] .mfp-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .mfp-title {
    text-align: right;
}



[dir="rtl"] .mfp-arrow-left {
    left: auto;
    right: 0;
}

[dir="rtl"] .mfp-arrow-right {
    right: auto;
    left: 0;
}

[dir="rtl"] .mfp-arrow-right:before, [dir="rtl"] .mfp-arrow-right:after, [dir="rtl"] .mfp-arrow-left:before, [dir="rtl"] .mfp-arrow-left:after  {
    transform: scaleX(-1);
}

/*[dir="rtl"] .mfp-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .mfp-arrow-left {
    right: 10px !important;
    left: auto !important;
}

[dir="rtl"] .mfp-arrow-right {
    left: 10px !important;
    right: auto !important;
}*/

[dir="rtl"] .mfp-iframe-holder .mfp-close, [dir="rtl"] .mfp-image-holder .mfp-close{

    right: unset;
    padding-right: unset;
    left: -6px;
    text-align: left;
    padding-left: 6px;
}

[dir="rtl"] .mfp-counter{
    right: unset;
    left: 0;
}

.gallery-list .tg-listing-card-item .tg-listing-card-gallery .popup-image img{
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.gallery-list .tg-listing-card-item:hover .tg-listing-card-gallery img {
    transform: scale(1.1);
}

.tgmenu__navbar-wrap ul li a.menu-small, .navigation li ul li > a.menu-small{
    font-size: 12px !important;
}

.tg-filter-list ul li:not(:last-child) {
    margin-bottom: 10px;
}



.price-slider-container .slider {
    width: 100%;
    height: 12px;
    background: #ddd;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

.price-slider-container .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #b38f4b;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.price-slider-container .slider::-webkit-slider-thumb:hover {
    background-color: #b38f4b;
}

.price-slider-container .price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}

.price-slider-container .price-values span {
    font-weight: bold;
}

.price-slider-container .price-values #current-price {
    color: #b38f4b;
}


#error_agree_terms{
    color: red;
    font-size:14px;
}

.flatpickr-calendar {
    z-index: 999999 !important;
}

.payment-price{
    color: #b38f4b;
    font-size:35px;
    font-weight: bold;
}


.tg-l-sli {
    position: relative;
    overflow: hidden;
}

.tg-l-sli img,
.tg-l-sli video {
    width: 100%;
    height: 300px; /* set desired fixed height */
    object-fit: cover; /* ensures uniform cropping */
    display: block;
}

.error, .help-block{
    color: red;
    font-size: 14px;
}

.booking-search-wrapper{
    padding: 20px 30px;
}

/* Fullscreen overlay */
.my-page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Loader animation */
.myPageLoader {
    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#fff 90%,#0000);
    background:
            var(--_g) 0%   50%,
            var(--_g) 50%  50%,
            var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: myLoaderAnim 1s infinite linear;
}

@keyframes myLoaderAnim {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}

#booking_form .c-select{
    height: 45px;
    line-height: 45px;
    border-radius: var(--bs-border-radius);
}

.input-group .input-group-text.has-input .nice-select{
    border-top-left-radius: var(--bs-border-radius);;
    border-bottom-left-radius: var(--bs-border-radius);;
}

[dir="rtl"] .input-group .input-group-text.has-input .nice-select{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

.tg-tour-about-tickets-quantity .nice-select .list {
    width: 100%;
    height: 170px;
    overflow-y: auto;
}


.tg-checkout-form-input .textarea.booking_notes {
    height: 100px;
}

.animal-directory-section .tg-chose-content{
    z-index: 99;
    position: relative;
}

#operated_by_masnadksa{
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    #operated_by_masnadksa{
        margin-bottom: 120px;
    }
}

#startScanner{
    /*width: 25px;*/
    padding: 8px 20px;
}

#closeScanner{
    padding: 9px 15px;
    /*background:#cc0000;*/
    color:#fff;
    border:none;
    border-radius:5px;
    font-size: 14px;
}

#qrFileInputBtn{
    padding: 2px 13px;
    background: var(--tg-theme-primary);
    color:#fff;
    border:none;
    border-radius:5px;
    font-size: 14px;
}

.tg-checkout-form-input .input-group input.has_qr_code {
    width: calc(100% - 57px) !important;
}

#scanner-container{
    /*margin-top:20px;*/
    display: inline-block;
    border: 1px solid #cdc7c7;
    padding: 5px;
}

/*
html[lang="en"] .addon-qr_code{
    border-left: 0;
}

html[lang="ar"] .addon-qr_code{
    border-right: 0;
}*/
