.jt_cat_icon_grid_wrap {
    width: 100%;
}

.jt_cat_icon_grid_list {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jt_cat_icon_grid_list--scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
}

.jt_cat_icon_grid_list--scroll::-webkit-scrollbar {
    height: 4px;
}

.jt_cat_icon_grid_list--scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.jt_cat_icon_grid_list--wrap {
    flex-wrap: wrap;
    overflow: visible;
}

.jt_cat_icon_grid_item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.jt_cat_icon_grid_item:hover {
    color: #6b7280;
}

.jt_cat_icon_grid_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jt_cat_icon_grid_icon img,
.jt_cat_icon_grid_icon .jt_cat_icon_grid_icon-el {
    display: block;
    object-fit: contain;
}

.jt_cat_icon_grid_icon .dashicons,
.jt_cat_icon_grid_icon .jt_cat_icon_grid_icon-el.dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jt_cat_icon_grid_label {
    display: block;
    line-height: 1.35;
    word-break: break-word;
}

button.jt_cat_icon_grid_item {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

body.jt-cig-modal-open {
    overflow: hidden;
}

body.jt-cig-modal-open #mob_navigation,
body.jt-cig-modal-open .navi_box,
body.jt-cig-modal-open .site-footer,
body.jt-cig-modal-open #colophon.site-footer,
body.jt-cig-modal-open .elementor-location-footer {
    z-index: 90 !important;
}

body.jt-cig-modal-open .site-footer .elementor-element.elementor-fixed {
    z-index: 90 !important;
}

body.jt-cig-modal-open .jt_cig_modal.is-open {
    z-index: 2147483645 !important;
}

.jt_cig_modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jt_cig_modal.is-open {
    display: flex;
}

.jt_cig_modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.jt_cig_modal_dialog {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    max-height: min(88vh, 900px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jt_cig_modal_close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.jt_cig_modal_close:hover {
    background: #e5e7eb;
}

.jt_cig_modal_body {
    overflow-y: auto;
    padding: 48px 24px 24px;
    -webkit-overflow-scrolling: touch;
}

.jt_cig_modal_section + .jt_cig_modal_section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eef0f3;
}

.jt_cig_modal_section_title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.jt_cig_modal_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.jt_cig_modal_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 8px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
    min-height: 96px;
}

.jt_cig_modal_item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    color: #111827;
}

.jt_cig_modal_item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.jt_cig_modal_item_icon img,
.jt_cig_modal_item_icon .jt_cat_icon_grid_icon-el {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.jt_cig_modal_item_icon .dashicons,
.jt_cig_modal_item_icon .jt_cat_icon_grid_icon-el.dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.jt_cig_modal_item_icon i,
.jt_cig_modal_item_icon svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.jt_cig_modal_item_label {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    word-break: break-word;
}

@media (min-width: 768px) {
    .jt_cig_modal_grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .jt_cig_modal_grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .jt_cig_modal_body {
        padding: 52px 32px 32px;
    }
}

@media (max-width: 767px) {
    .jt_cat_icon_grid_wrap .jt_cat_icon_grid_list,
    .jt_cat_icon_grid_wrap .jt_cat_icon_grid_list--scroll,
    .jt_cat_icon_grid_wrap .jt_cat_icon_grid_list--wrap {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px;
        overflow: visible !important;
        overflow-x: hidden !important;
        flex-wrap: unset;
        padding-bottom: 0;
        -webkit-overflow-scrolling: auto;
        scrollbar-width: auto;
    }

    .jt_cat_icon_grid_wrap .jt_cat_icon_grid_list--scroll::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .jt_cat_icon_grid_wrap .jt_cat_icon_grid_list .jt_cat_icon_grid_item {
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        flex: unset !important;
    }

    .jt_cig_modal {
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 2147483645;
    }

    .jt_cig_modal_dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }

    .jt_cig_modal_body {
        flex: 1;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 48px 12px calc(20px + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
    }

    .jt_cig_modal_section + .jt_cig_modal_section {
        margin-top: 22px;
        padding-top: 18px;
    }

    .jt_cig_modal .jt_cig_modal_grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px;
        overflow: visible !important;
        overflow-x: hidden !important;
        scroll-snap-type: none;
    }

    .jt_cig_modal .jt_cig_modal_grid .jt_cig_modal_item {
        flex: unset !important;
        min-width: 0 !important;
        width: auto !important;
        min-height: 88px;
        padding: 10px 4px;
    }

    .jt_cig_modal .jt_cig_modal_item_label {
        font-size: 11px;
    }
}

/* Jayto Share Widget */
.jt_share_wrap {
    display: inline-block;
}

.jt_share_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: #374151;
    color: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.jt_share_btn:hover {
    background: #1f2937;
}

.jt_share_btn_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jt_share_btn_icon i,
.jt_share_btn_icon svg {
    font-size: inherit;
    width: 1em;
    height: 1em;
}

body.jt-share-modal-open {
    overflow: hidden;
}

body.jt-share-modal-open #mob_navigation,
body.jt-share-modal-open .navi_box,
body.jt-share-modal-open .site-footer,
body.jt-share-modal-open #colophon.site-footer,
body.jt-share-modal-open .elementor-location-footer {
    z-index: 90 !important;
}

.jt_share_modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jt_share_modal.is-open {
    display: flex;
}

.jt_share_modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.jt_share_modal_dialog {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    max-height: min(88vh, 720px);
    background: #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jt_share_modal_close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.jt_share_modal_close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.jt_share_modal_body {
    overflow-y: auto;
    padding: 20px 20px 24px;
    -webkit-overflow-scrolling: touch;
}

.jt_share_modal_title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

.jt_share_modal_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.jt_share_modal_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 6px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    text-align: center;
    min-height: 88px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font: inherit;
}

.jt_share_modal_item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.jt_share_modal_item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.jt_share_modal_item_icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.jt_share_modal_item_label {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
    word-break: break-word;
    color: #d1d5db;
}

@media (min-width: 480px) {
    .jt_share_modal_grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .jt_share_modal {
        padding: 0;
        align-items: flex-end;
        z-index: 2147483645;
    }

    .jt_share_modal_dialog {
        width: 100%;
        max-height: 85dvh;
        border-radius: 16px 16px 0 0;
    }

    .jt_share_modal_body {
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── ویجت میزبان شوید ── */
.jayto-become-host-wrap {
    display: block;
    width: 100%;
}

.jayto-become-host-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(232, 93, 74, 0.35);
    background: linear-gradient(135deg, #e85d4a 0%, #d14a38 100%);
    color: #fff;
}

.jayto-become-host-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 74, 0.45);
}

.jayto-become-host-btn:active {
    transform: translateY(0);
}

.jayto-become-host-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jayto-become-host-btn__text {
    display: inline-block;
}

.jayto-become-host-btn__subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #6b7280;
}
