/*
Theme Name: Royal jeans theme
Theme URI: https://webtiyan.ir/
Author: behnam jafari
Author URI: https://webtiyan.ir/
Description: Royal jeans theme
Text Domain: webtiyan
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*================FONTS===============*/
html,body,p,span,a,ul li,ol li,textarea,input,h1,h2,h3,h4,h5,h6{
    font-family: 'peyda', sans-serif;
    speak: none;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/*================FONTS===============*/
/*============GENERAL CLASS==============*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */button,hr,input{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}details,main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}
:root {
    --white:#ffffff;
    --backColor:#E9E6E1;
    --black:#000000;
    --blue:#4069e1;
    --headerHeight:10vh;
    --text-color:#181818;
    --spaceX:5vw;
    --spaceXX: 10vw;
    --spaceXXX: 20vw;
}
p {
    line-height: 1.5;
}
section.wholesaleContainer #map::before {
    display: none !important;
}
.mBox{
    opacity: 0;
    -webkit-transform: translateY(60px);
    -ms-transform: translateY(60px);
    transform: translateY(60px);
    -webkit-transition: opacity .6s cubic-bezier(.215,.61,.355,1),-webkit-transform .6s cubic-bezier(.215,.61,.355,1);
    transition: opacity .6s cubic-bezier(.215,.61,.355,1),-webkit-transform .6s cubic-bezier(.215,.61,.355,1);
    -o-transition: opacity .6s cubic-bezier(.215,.61,.355,1),transform .6s cubic-bezier(.215,.61,.355,1);
    transition: opacity .6s cubic-bezier(.215,.61,.355,1),transform .6s cubic-bezier(.215,.61,.355,1);
    transition: opacity .6s cubic-bezier(.215,.61,.355,1),transform .6s cubic-bezier(.215,.61,.355,1),-webkit-transform .6s cubic-bezier(.215,.61,.355,1);
}
form input:focus-visible,form input:focus {
    outline: none;
}
*, ::after, ::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}
*:focus,*:focus-visible{
    outline: none !important;
}
.gm-style > div {
    position: static;
}
a,a:hover {
    color: inherit;
    text-decoration: none;
}
html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px var(--white);
    box-shadow: inset 0 0 6px var(--white);
}
html::-webkit-scrollbar-thumb {
    background-color: var(--black);
    outline: 1px solid var(--black);
    border-radius: 10px;
}
::-moz-selection {
    background-color: var(--black);
    color: var(--white);
}
::selection {
    background-color: var(--black);
    color: var(--white);
}
body{
    color: var(--black);
    background-color: var(--backColor);
}
hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.h1,
h1 {
    font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
    .h1,
    h1 {
        font-size: 2.5rem;
    }
}
.h2,
h2 {
    font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
    .h2,
    h2 {
        font-size: 2rem;
    }
}
.h3,
h3 {
    font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
    .h3,
    h3 {
        font-size: 1.75rem;
    }
}
.h4,
h4 {
    font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
    .h4,
    h4 {
        font-size: 1.5rem;
    }
}
.h5,
h5 {
    font-size: 1.25rem;
}
.h6,
h6 {
    font-size: 1rem;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
ol,
ul {
    padding-left: 2rem;
}
dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
}
ol ol,
ol ul,
ul ol,
ul ul {
    margin-bottom: 0;
}
.paddingX{
    padding-right: var(--spaceX);
    padding-left: var(--spaceX);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.paddingXL{
    padding-left: var(--spaceX);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.paddingXX{
    padding-right: var(--spaceXX);
    padding-left: var(--spaceXX);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.paddingXXX{
    padding-right: var(--spaceXXX);
    padding-left: var(--spaceXXX);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.paddingXXL{
    padding-left: var(--spaceXX);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
textarea{
    resize: none;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}
.h1,
h1 {
    font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
    .h1,
    h1 {
        font-size: 2.5rem;
    }
}
.h2,
h2 {
    font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
    .h2,
    h2 {
        font-size: 2rem;
    }
}
.h3,
h3 {
    font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
    .h3,
    h3 {
        font-size: 1.75rem;
    }
}
.h4,
h4 {
    font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
    .h4,
    h4 {
        font-size: 1.5rem;
    }
}
.h5,
h5 {
    font-size: 1.25rem;
}
.h6,
h6 {
    font-size: 1rem;
}

*:state(webkit-media-controls-panel) {
    display: none !important;
    -webkit-appearance: none !important;
}

*:state(webkit-media-controls-play-button) {
    display: none !important;
    -webkit-appearance: none !important;
}

*:state(webkit-media-controls-start-playback-button) {
    display: none !important;
    -webkit-appearance: none !important;
}

*:state(webkit-media-controls) {
    display: none !important;
    -webkit-appearance: none !important;
}

*:state(webkit-media-controls-overlay-play-button) {
    display: none !important;
    -webkit-appearance: none !important;
}

*:state(webkit-media-controls-enclosure) {
    display: none !important;
    -webkit-appearance: none !important;
}
#maptest {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh)* 100);
}

#maptest img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.costumeBorder:before {
    content: '';
    position: absolute;
    width: 70%;
    height: 0;
    left: 0;
    top: -10px;
    border: 20px solid var(--white);
    background-color: var(--white);
    border-radius: 0 40px 0 0;
    -webkit-transition: all ease-in-out .4s;
    -o-transition: all ease-in-out .4s;
    transition: all ease-in-out .4s;
    z-index: -1;
}
.costumeBorder.bigBorder:before{
    top: -20px;
    border: 40px solid var(--white);
    border-radius: 0 80px 0 0;
}
.costumeBorder:after {
    content: '';
    position: absolute;
    width: 70%;
    height: 0;
    right: 0;
    bottom: -10px;
    border: 20px solid var(--white);
    background-color: var(--white);
    border-radius: 0 0 0 40px;
    -webkit-transition: all ease-in-out .4s;
    -o-transition: all ease-in-out .4s;
    transition: all ease-in-out .4s;
    z-index: -1;
}
.costumeBorder.bigBorder:after{
    bottom: -20px;
    border: 40px solid var(--white);
    border-radius: 0 0 0 80px;
}
/*============GENERAL CLASS==============*/
/*======DROP DOWN*/
.dropDown-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-gap: 40px;
    row-gap: 20px;
}
.dropDown-container .container__title {
    width: 100%;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 400;
    text-align: center;
}

.dropDown-container .select-dropdown {
    position: relative;
    max-width: 100%;
    display: none;
    width: 100%;
}
.dropDown-container .select-dropdown:first-child ,
.dropDown-container .select-dropdown.appear{
    display: inline-block;
}
.dropDown-container .select-dropdown__button {
    padding: .75rem;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
    text-align: right;
    border: 1px solid var(--black);
    font-size: 1rem;
}
.dropDown-container .select-dropdown__button:focus {
    outline: none;
}
.dropDown-container .select-dropdown__button .zmdi-chevron-down {
    position: absolute;
    left: 10px;
    top: 50%;
    border: solid #6D6E71;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    -webkit-transform: rotate(45deg) translateY(-50%);
    -ms-transform: rotate(45deg) translateY(-50%);
    transform: rotate(45deg) translateY(-50%);
    -webkit-transition: all linear .1s;
    -o-transition: all linear .1s;
    transition: all linear .1s;
}
section.productOrder-form_container .productOrder-form_form .form form .input.dropDown .dropDown-container .select-dropdown__button .zmdi-chevron-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
    padding: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.dropDown-container .select-dropdown__list {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    margin: 0;
    padding: 0;
    background-color: #f6f6f6;
    list-style-type: none;
    opacity: 0;
    pointer-events: none;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    -webkit-transform: scale(1, 0);
    -ms-transform: scale(1, 0);
    transform: scale(1, 0);
    -webkit-transition: all ease-in-out 0.3s;
    -o-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
    z-index: 7;
    border: 1px solid rgba(24, 24, 24, 0.50);
    border-top: none;
}
.dropDown-container .select-dropdown__list.active {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
}
.dropDown-container .select-dropdown__list-item {
    display: block;
    list-style-type: none;
    background-color: #f6f6f6;
    border-top: 1px solid #e6e6e6;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-color);
    -webkit-transition: all ease-in-out 0.3s;
    -o-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
    white-space: pre;
    padding: .5rem;
}
.dropDown-container .select-dropdown__list-item:first-child {
    border-top: none;
}
.dropDown-container .select-dropdown__button.active .zmdi.zmdi-chevron-down {
    -webkit-transform: rotate(-136deg);
    -ms-transform: rotate(-136deg);
    transform: rotate(-136deg);
    top: 14px;
}
.dropDown-container .select-dropdown__list-item:hover {
    background-color: #d6d6d6;
}
/*======DROP DOWN*/
/*============LOADING==============*/
.router-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10000;
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    -ms-transform-origin: left;
    transform-origin: left;
    background-color: var(--black);
}
.router-overlay-first {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9998;
    -webkit-transform-origin: right;
    -ms-transform-origin: right;
    transform-origin: right;
    background-color: var(--black);
}
/*============LOADING==============*/
@media only screen and (max-width: 768px){
    :root {
        --spaceX:20px;
        --spaceXX: 20px;
        --spaceXXX: 20px;
    }
    .costumeBorder:before {
        border: 10px solid var(--white);
        top: -5px;
        border-radius: 0 20px 0 0;
    }

    .costumeBorder:after {
        bottom: -5px;
        border: 10px solid var(--white);
        border-radius: 0 0 0 20px;
    }

    .costumeBorder.bigBorder:before {
        top: -10px;
        border: 20px solid var(--white);
        border-radius: 0 40px 0 0;
    }

    .costumeBorder.bigBorder:after {
        bottom: -10px;
        border: 20px solid var(--white);
        border-radius: 0 0 0 40px;
    }
}
@media only screen and (min-width: 640px) and (max-width: 768px){}
@media only screen and (min-width: 769px) and (max-width: 1199px){
    :root {
        --spaceX:5vw;
        --spaceXX: 10vw;
        --spaceXXX: 10vw;
    }
}
@media only screen and (min-width: 1200px) and (max-width: 1400px){}
@media only screen and (min-width: 1401px) and (max-width: 1600px){}






/* Styles for Simple Agency Template - V2 with new Banner */

/* کانتینر اصلی و فاصله گذاری */
.agency-template-simple .container {
    max-width: 1200px; /* کمی عرض بیشتر برای تطابق با نمونه */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ================================== */
/* استایل‌های بنر جدید         */
/* ================================== */

/* ناحیه کلی بنر برای ایجاد فاصله از بالا و پایین */
.agency-banner-area {
    padding-top: 40px; /* فاصله از هدر سایت */
    padding-bottom: 60px;
}

/* کادر اصلی بنر (جعبه آبی رنگ) */
.banner-outer-wrapper {
    background-color: #0d2c6c; /* رنگ آبی تیره مشابه نمونه */
    /* اگر طرح موجی را به صورت عکس دارید، اینجا اضافه کنید */
    /* background-image: url('path/to/your/wave-pattern.png'); */
    background-size: cover;
    border-radius: 40px; /* گردی بسیار زیاد گوشه‌ها */
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* عنوان صفحه که داخل بنر قرار دارد */
.banner-outer-wrapper .page-title {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* کادر داخلی که عکس را نگه می‌دارد */
.banner-inner-content {
    border-radius: 25px; /* گردی کمتر برای کادر داخلی */
    overflow: hidden; /* این خط باعث می‌شود عکس از کادر بیرون نزند و گوشه‌هایش گرد شود */
}

/* خود عکس شاخص */
.banner-inner-content img {
    display: block; /* حذف فضای خالی زیر عکس */
    width: 100%;
    height: auto;
}

/* ============================================== */
/* استایل یکپارچه برای تمام بخش‌های محتوایی */
/* ============================================== */

/* این کد عرض اصلی تمام بخش‌ها را کنترل می‌کند */
.agency-template-simple .container {
    max-width: 1140px; /* این عرض اصلی سایت است، می‌توانید آن را تغییر دهید */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* فاصله گذاری یکسان برای تمام سکشن‌های محتوایی */
.agency-main-content,
.agency-map-section,
.content-seller-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* حذف محدودیت عرض اضافی که قبلاً روی این بخش اعمال شده بود.
  حالا عرض این بخش توسط .container کنترل می‌شود.
*/
.agency-main-content .entry-content {
    max-width: none;
}
/*
 * استایل دقیق‌تر برای فونت و فاصله خطوط
 */

/* استایل‌دهی مستقیم به پاراگراف‌ها و آیتم‌های لیست داخل دو بخش */
.agency-main-content p,
.agency-main-content li,
.content-seller-section p,
.content-seller-section li {
    font-size: 20px;
    line-height: 1.8;
}

/* تنظیم رنگ پس‌زمینه برای بخش پایینی */
.content-seller-section {
    background-color: #f8f9fa;
}

/* استایل برای اینکه نقشه (iframe) تمام عرض محتوا را بگیرد */
.agency-main-content .entry-content iframe {
    max-width: 100%;
    border: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 15px; /* کمی گردی به نقشه */
}
/* استایل برای بخش نقشه */
.agency-map-section {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* این کد تضمین می‌کند که خود نقشه (که معمولا یک iframe است) 
  تمام عرض کانتینر را پر کرده و ارتفاع مناسبی داشته باشد.
*/
.agency-map-section .container iframe {
    width: 100%;
    height: 450px !important;
    border: 0;
    border-radius: 15px; /* ایجاد گوشه‌های گرد برای زیبایی */
}
/* ============================================== */
/* استایل جدید برای بخش آدرس‌ها (دو ستونه با دکمه) */
/* ============================================== */
/* ============================================== */
/* استایل نهایی و یکپارچه برای بخش لیست آدرس‌ها */
/* ============================================== */



/* ================================================= */
/* کد نهایی و قوی برای چیدمان بخش آدرس‌ها        */
/* ================================================= */

/* بک‌گراند کلی بخش */
.agency-addresses-section {
    background-color: #f8f9fa !important;
    padding: 60px 0 !important;
}

/* استایل ردیف‌ها */
.custom-address-row {
    display: flex !important;
    flex-direction: row !important; /* چیدمان افقی */
    justify-content: flex-start !important; /* شروع از راست */
    align-items: center !important;
    background: #ffffff !important;
    padding: 15px 25px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    direction: rtl !important; /* جهت راست به چپ برای متن فارسی */
}

/* متن آدرس - چسبیده به راست */
.address-text-content {
    font-size: 15px !important;
    color: #333 !important;
    font-weight: 500 !important;
    text-align: right !important;
}

/* محفظه دکمه‌ها - هل دادن به منتهی‌الیه سمت چپ */
.address-action-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-right: auto !important; /* کلیدی‌ترین دستور برای انتقال دکمه‌ها به چپ */
    flex-shrink: 0 !important;
}

/* استایل دکمه‌ها */
.address-action-buttons a {
    padding: 10px 22px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.btn-map-style {
    background-color: #013da5 !important;
}

.btn-insta-style {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

/* واکنشگرایی موبایل */
@media (max-width: 768px) {
    .custom-address-row {
        flex-direction: column !important;
        text-align: center !important;
    }

    .address-text-content {
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .address-action-buttons {
        margin-right: 0 !important; /* حذف فاصله در موبایل */
        width: 100% !important;
        flex-direction: column !important;
    }

    .address-action-buttons a {
        width: 100% !important;
        text-align: center !important;
    }
}
/* ============================================== */
/* استایل بخش گالری پروفایل‌ها                 */
/* ============================================== */

.instagram-profiles-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* چینش گرید برای نمایش کارت‌ها در کنار هم */
.profiles-grid {
    display: grid;
    /* ایجاد ستون‌های واکنشگرا */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px; /* فاصله بین کارت‌ها */
}

/* استایل هر کارت پروفایل */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* استایل عکس پروفایل */
.profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* گرد کردن کامل عکس */
    object-fit: cover; /* جلوگیری از کشیده شدن تصویر */
    margin-bottom: 15px;
    border: 3px solid #f0f0f0;
}

/* استایل نام پروفایل */
.profile-card .profile-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}
/* حذف استایل پیش‌فرض لینک از کارت پروفایل */
a.profile-card-link,
a.profile-card-link:hover {
    text-decoration: none;
    color: inherit; /* ارث‌بری رنگ از والد */
}
/* استایل برای آی‌دی پروفایل */
.profile-card .profile-id {
    font-size: 0.9rem; /* کمی کوچکتر از نام */
    color: #6c757d; /* رنگ خاکستری */
    margin-top: 5px; /* فاصله از نام */
}
/* استایل جدید برای فرم دو ستونه */

/* کانتینر اصلی فرم که کلاس را با شورتکد به آن دادیم */
.your-form-class {
    max-width: 800px; /* می‌توانید عرض کلی فرم را تغییر دهید */
    margin: 0 auto;
}

/* هر ردیف از فرم */
.form-row {
    display: flex;
    flex-wrap: wrap; /* برای واکنشگرایی در موبایل */
    gap: 20px; /* فاصله بین ستون‌ها */
    margin-bottom: 20px; /* فاصله بین ردیف‌ها */
}

/* هر ستون در یک ردیف */
.form-column {
    flex: 1; /* باعث می‌شود ستون‌ها فضای مساوی بگیرند */
    min-width: 200px; /* حداقل عرض برای هر ستون */
}

/* استایل خود فیلدهای ورودی */
.form-column input[type="text"],
.form-column input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    box-sizing: border-box; /* برای محاسبه صحیح عرض */
}

/* استایل دکمه ارسال */
.your-form-class .full-width {
    width: 100%;
    background-color: #013da5;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.your-form-class .full-width:hover {
    background-color: #0056b3;
}
/*
 * استایل برای عنوان بخش فرم
 */
.contact-form-section .section-title {
    text-align: center;  /* وسط چین کردن عنوان */
    margin-bottom: 50px; /* ایجاد فاصله استاندارد از فرم پایینی */
	margin-top: 50px;
}
/*
 * Styling for Section Titles
 */
.section-title {
    text-align: center;  /* Centers the title text */
    margin-bottom: 50px; /* Adds space below the title */
    font-size: 2.5rem;   /* Sets a consistent font size (optional) */
}
/* --- بخش دکمه چشمک زن --- */

.blinking-button-section .container {
    text-align: center; /* دکمه را وسط چین می‌کند */
    padding: 20px 0 60px 0; /* فاصله از بالا و پایین */
}

/* استایل دهی به لینک داخل ویرایشگر برای تبدیل شدن به دکمه */
.blinking-button-section a {
    display: inline-block;
    background-color: #013da5; /* رنگ آبی درخواستی */
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    /* اعمال انیمیشن چشمک زن */
    animation: blinker-animation 2s linear infinite;
    transition: background-color 0.3s ease;
}

/* افکت زیبا هنگام هاور کردن روی دکمه */
.blinking-button-section a:hover {
    background-color: #002a75; /* کمی تیره‌تر شدن هنگام هاور */
    animation-play-state: paused; /* توقف انیمیشن هنگام هاور */
}

/* تعریف انیمیشن چشمک زدن */
@keyframes blinker-animation {
    50% {
        opacity: 0.3;
    }
}
/* =================================================================== */
/* کدهای ریسپانسیو برای نمایش در موبایل (صفحه نمایندگی)      */
/* =================================================================== */

@media (max-width: 768px) {

    /* --- ۱. فونت‌ها (مهم‌ترین بخش) --- */

    /* کوچک کردن اندازه عناوین اصلی بخش‌ها */
    .section-title {
        font-size: 1.8rem; /* کاهش از 2.5rem */
    }

    /* کوچک کردن اندازه فونت محتوای اصلی و فرم */
    .agency-main-content,
    .content-seller-section,
    .agency-addresses-section li,
    .contact-form-section input,
    .contact-form-section textarea {
        font-size: 16px; /* کاهش از 20px */
    }
    
    /* کوچک کردن فونت بنر اصلی */
    .agency-banner .page-title {
        font-size: 2.2rem; /* کاهش از 3rem */
    }
    
    /* کوچک کردن فونت دکمه‌ها و کارت‌ها */
    .agency-addresses-section li a,
    .blinking-button-section a {
        font-size: 16px;
    }
    
    .profile-card .profile-name {
        font-size: 0.9rem;
    }


    /* --- ۲. فاصله‌گذاری‌ها --- */

    /* کاهش فاصله عمودی بین تمام بخش‌ها */
    .agency-banner-area,
    .agency-main-content,
    .clickable-image-section,
    .agency-map-section,
    .agency-addresses-section,
    .instagram-profiles-section,
    .content-seller-section,
    .contact-form-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    /* کاهش فاصله عنوان‌ها از محتوای زیرین */
    .section-title {
        margin-bottom: 30px;
    }

    /* کاهش فاصله بین ستون‌ها در گرید پروفایل‌ها */
    .profiles-grid {
        gap: 20px;
    }

    /* --- ۳. چیدمان و سایر موارد --- */
    
    /* کوچک کردن ارتفاع بنر اصلی */
    .agency-banner {
        min-height: 250px;
    }

    /* اطمینان از تک ستونه شدن فرم */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-column {
        margin-bottom: 20px;
    }
    .form-row .form-column:last-child {
        margin-bottom: 0;
    }

}




/* ============================================== */
/* استایل‌های قالب لیست نمایندگی‌ها       */
/* ============================================== */
/* استایل کلی برای کانتینر در این قالب */
.agencies-list-template .container {
    max-width: 900px; /* عرض محتوا */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* استایل کلی بخش نقشه */
.list-map-section {
    padding-top: 200px; /* Increased from 60px for more space */
    padding-bottom: 60px;
}

/* استایل عنوان */
.list-map-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* استایل خود نقشه */
.list-map-section iframe {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}



/* استایل عنوان بخش */
.list-map-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 600;
}

/* استایل نقشه (iframe) */
.list-map-section iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #e9ecef; /* حاشیه ملایم */
    border-radius: 15px;      /* گوشه‌های گرد */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}




/* --- استایل جدید و بهبود یافته بخش لیست استان‌ها --- */

.agencies-list-section {
    padding-top: 0; /* فاصله بالای بخش اصلی را صفر می‌کنیم */
    padding-bottom: 60px;
}

/* 1. استایل کادر اصلی دربرگیرنده */
.province-list-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-top: -80px; /* نکته کلیدی: کارت را کمی روی نقشه می‌برد */
    position: relative;
    z-index: 10;
}

/* 2. استایل عنوان داخلی لیست */
.list-internal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 30px;
}

/* 3. استایل جدید فیلترها */
.filters-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

#province-filter,
#province-search {
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#province-filter:focus,
#province-search:focus {
    border-color: #013da5;
    box-shadow: 0 0 0 3px rgba(1, 61, 165, 0.1);
    outline: none;
}

/* افزودن آیکون جستجو به فیلد */
#province-search {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23888" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

/* 4. بهینه‌سازی گرید دکمه‌ها */
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* واکنشگرایی بهتر */
    gap: 20px; /* فاصله بیشتر */
}

/* استایل خود دکمه‌ها (بدون تغییر) */
.province-button {
    display: block;
    background-color: #013da5;
    color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.province-button:hover {
    background-color: #002a75;
    transform: translateY(-3px);
}

/* --- واکنشگرایی برای موبایل --- */
@media (max-width: 768px) {
    .province-list-wrapper {
        padding: 25px;
        margin-top: -60px;
    }
    .filters-container {
        flex-direction: column;
    }
    #province-filter,
    #province-search {
        width: 100%;
    }
}


/* --- گرید دکمه‌های استان --- */
.province-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 ستون در دسکتاپ */
    gap: 15px;
}

/* استایل هر دکمه */
.province-button {
    display: block;
    background-color: #013da5;
    color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.province-button:hover {
    background-color: #002a75;
    transform: translateY(-3px);
}


/* --- واکنشگرایی برای موبایل و تبلت --- */
@media (max-width: 992px) {
    .province-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 ستون در تبلت */
    }
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
    }
    .province-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 ستون در موبایل بزرگ */
    }
}

@media (max-width: 576px) {
    .province-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ستون در موبایل کوچک */
    }
}
/* کد نهایی برای مخفی کردن آیتم‌های اضافی لیست */
.agency-template-simple .agency-addresses-section .address-list li.is-hidden {
    display: none !important;
}

/* استایل برای کانتینر دکمه */
.load-more-wrapper {
    text-align: center;
    padding-top: 30px;
}

/* استایل دکمه جدید "ادامه لیست" */
#load-more-addresses {
    background-color: #013da5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#load-more-addresses:hover {
    background-color: #0056b3;
}



/* --- استایل برای ایجاد اسکرول داخلی در لیست استان‌ها --- */

.province-grid {
    max-height: 400px; /* حداکثر ارتفاع برای کادر دکمه‌ها (می‌توانید تغییر دهید) */
    overflow-y: auto; /* فعال کردن اسکرول عمودی فقط در صورت نیاز */
    padding-left: 15px; /* ایجاد فاصله برای نوار اسکرول */
    padding-bottom: 10px; /* ایجاد فاصله در انتهای لیست */
}

/* (اختیاری) استایل برای زیباتر کردن نوار اسکرول */
.province-grid::-webkit-scrollbar {
    width: 8px;
}

.province-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.province-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.province-grid::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}




/* مثال برای کلاس گرید در blogWrapper */
.blogWrapper.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ستون هم اندازه */
    gap: 30px; /* فاصله بین آیتم‌ها */
}

/* واکنشگرا */
@media (max-width: 1024px) {
    .blogWrapper.grid-3-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .blogWrapper.grid-3-columns {
        grid-template-columns: 1fr;
    }
}




body.page-template-link {
    background-color: #000; /* پس‌زمینه سیاه */
    color: #fff;
    font-family: 'Tahoma', sans-serif; /* یا فونت دلخواه */
}

.linktree-custom-page {
        background-color: #000;
        min-height: 100vh;
        width: 100%;
        display: flex;
        justify-content: center;
        color: #fff;
    }

.link-tree-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.logo {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.links-wrapper {
    margin-top: 30px;
}

.link-card {
    display: block;
    background-color: #fff; /* دکمه‌های سفید */
    color: #000;
    text-decoration: none;
    border-radius: 15px; /* گوشه‌های گرد */
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.link-card:hover {
    transform: scale(1.02);
}

.title {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.title:hover {
    color: #112D91;
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}
















/* --- تنظیمات عمومی (مشترک) --- */
body.home header, 
body.home nav.menu {
    position: relative !important;
    background-color: #000;
    width: 100%;
    z-index: 50;
}

/* تنظیمات نگهدارنده اسلایدر در دسکتاپ */
#heroSectionContainer {
    position: relative;
    width: 100%;
    height: 800px !important; /* ارتفاع دسکتاپ */
    overflow: hidden;
    margin-top: 0;
}

#heroSectionContainer .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* --- اصلاح دکمه زیر اسلایدر (رفع تداخل) --- */
.after-hero-cta {
    background-color: #fff;
    padding: 30px 0; /* فاصله داخلی */
    margin-bottom: 50px; /* این خط تداخل با بخش بعدی را حل می‌کند */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- تنظیمات مخصوص موبایل (کارت شناور) --- */
@media screen and (max-width: 768px) {
    #heroSectionContainer {
        /* 1. تنظیم عرض و فاصله از چپ و راست */
        width: 92% !important; /* عرض 92 درصد (8 درصد فضای خالی برای چپ و راست) */
        margin-left: auto !important;
        margin-right: auto !important;
        
        /* 2. تنظیم فاصله از بالا و پایین */
        margin-top: 0px !important;
        margin-bottom: 0px !important; /* فاصله تا دکمه پایین */

        /* 3. تنظیم ارتفاع اتوماتیک و نسبت تصویر */
        height: auto !important; 
        min-height: unset !important;
      /*  aspect-ratio: 4/3;*/ /* نسبت تصویر استاندارد (می‌توانید 1/1 هم بگذارید اگر مربعی می‌خواهید) */
        
        /* 4. زیبایی ظاهری (گوشه‌های گرد) */
        border-radius: 15px !important; /* گرد کردن گوشه‌ها */
        overflow: hidden; /* برای اینکه عکس از گوشه‌های گرد بیرون نزند */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* سایه ملایم برای برجسته شدن */
    }
    
    /* اطمینان از اینکه عکس داخل کادر گرد قرار می‌گیرد */
    #heroSectionContainer .swiper-slide img,
    #heroSectionContainer picture img {
        border-radius: 10px !important;
    }

    /* تنظیم فاصله دکمه پایین که نچسبد به اسلایدر */
    .after-hero-cta {
        margin-top: 0; /* چون خود اسلایدر margin-bottom دارد */
        padding-top: 10px;
        background-color: transparent; /* اگر می‌خواهید زمینه دکمه سفید نباشد */
        box-shadow: none; /* حذف سایه باکس دکمه */
    }
}













/* کانتینر اصلی */
.video-gallery-wrapper {
    background-color: #0f0f0f; /* رنگ پس‌زمینه تیره مثل یوتیوب */
    color: #fff;
    padding: 20px;
    direction: rtl; /* راست‌چین */
}

.yt-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- پلیر اصلی (چپ/راست) --- */
.yt-main-player {
    flex: 3; /* 75% فضا */
    min-width: 300px;
}

.video-frame {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

.video-info {
    padding: 20px 0;
}

.video-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.video-info p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* --- لیست پخش (سایدبار) --- */
.yt-playlist-sidebar {
    flex: 1; /* 25% فضا */
    min-width: 300px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    height: fit-content;
    max-height: 800px;
    overflow-y: auto; /* اسکرول خوردن لیست */
}

.playlist-header h3 {
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    font-size: 18px;
}

/* آیتم‌های لیست */
.playlist-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.playlist-item:hover {
    background-color: #333;
}

.playlist-item.active {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

.playlist-item .thumb {
    width: 120px;
    height: 68px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item .info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #f1f1f1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item .info .duration {
    font-size: 12px;
    color: #aaa;
}

/* آیکون پخش روی تصویر */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.playlist-item:hover .play-icon {
    opacity: 1;
}

/* --- ریسپانسیو (موبایل) --- */
@media screen and (max-width: 992px) {
    .yt-container {
        flex-direction: column; /* زیر هم قرار گرفتن */
    }
    
    .yt-playlist-sidebar {
        max-height: none; /* برداشتن محدودیت ارتفاع در موبایل */
    }
}








/* ۱. استایل بدنه نقشه (کوچک و گرد) */
#nd-map {
    width: 85% !important;
    max-width: 950px;
    height: 500px !important;
    margin: 40px auto !important;
    border-radius: 40px; /* ردیوس زیاد مطابق عکس */
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    border: 8px solid #fff;
}

/* ۲. تنظیمات پاپ آپ */
.nd-custom-popup .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    width: 300px !important;
}

.nd-popup-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.nd-popup-content {
    padding: 20px;
    text-align: center;
    direction: rtl;
}

.nd-popup-content h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    font-weight: bold;
}

.nd-popup-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ۳. سیستم دکمه‌بندی شبکه ای */
.nd-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستونه */
    gap: 10px;
}

.nd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* ۴. رنگ‌بندی دکمه‌ها مطابق عکس */

/* دکمه مسیریابی (آبی تیره) */
.btn-route {
    background: #1e429f;
}

/* دکمه اینستاگرام (گرادینت معروف) */
.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* دکمه بله (سبز بله) */
.btn-bale {
    background: #2ca153;
}

/* دکمه تماس (رنگ مکمل یا آبی روشن) */
.btn-call {
    background: #0ea5e9;
}

.nd-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* حذف حاشیه‌های اضافی Leaflet */
.leaflet-popup-content { margin: 0 !important; width: 300px !important; }









.nd-wrapper { display: flex; gap: 20px; flex-wrap: wrap; }
#nd-map { flex: 3; height: 600px; border-radius: 20px; }
#nd-side-list { flex: 1; min-width: 250px; background: #f9f9f9; padding: 15px; border-radius: 20px; max-height: 600px; overflow-y: auto; }
.nd-list-item { padding: 10px; border-bottom: 1px solid #ddd; cursor: pointer; transition: 0.3s; }
.nd-list-item:hover { background: #eee; }
.nd-controls { margin-bottom: 15px; display: flex; gap: 10px; }
#nd-city-filter { padding: 10px; border-radius: 10px; border: 1px solid #ccc; font-family: inherit; }
.nd-btn-nearest { background: #013DA5; color: #fff; border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; }



.nd-wrapper {
  display:flex;
  gap:20px;
  align-items:stretch; /* ✳ باعث هم‌ارتفاع شدن می‌شود */
}

#nd-map {
  flex:3;
  height:600px;
  border-radius:20px;
}

#nd-side-list {
  flex:1;
  background:#f9f9f9;
  padding:10px;
  border-radius:20px;
  max-height:600px;
  overflow-y:auto; /* ✳ اسکرول عمودی لوکیشن‌ها */
}



.dealer-popup {
  direction: rtl;
  width: 280px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  overflow: hidden;
  font-family: inherit;
}

.dealer-popup img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.dealer-popup h3 {
  margin: 10px 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.dealer-popup p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px;
}

.popup-buttons .btn {
  flex: 1;
  min-width: 45%;
  padding: 6px 0;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.btn-bale { background: #00A859; }
.btn-route { background: #013DA5; }
.btn-call { background: #1DA1F2; }




/* Desktop default */
.nd-wrapper {
  display: flex;
}
.nd-wrapper-mobile {
  display: none;
}

/* Mobile */
@media(max-width:768px){
  .nd-wrapper {
    display:none;
  }
  .nd-wrapper-mobile {
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:0 10px;
    width:100%;
  }
}













/* Leaflet popup wrapper */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12) !important;
}

/* Card */
.dealer-popup-card {
    direction: rtl;
    text-align: right;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    font-family: inherit;
}

/* Top image */
.dealer-popup-card__image {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f2f2f2;
}

/* Body */
.dealer-popup-card__body {
    padding: 10px 12px 12px;
}

/* Title */
.dealer-popup-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #222;
}

/* Text */
.dealer-popup-card__text {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.7;
    color: #666;
    text-align: right;
}

.dealer-popup-card__phone {
    color: #555;
    font-weight: 500;
}

/* Buttons grid */
.dealer-popup-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}

/* Base button */
.dealer-popup-card__btn {
    appearance: none;
    border: 0;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    box-sizing: border-box;
}

.dealer-popup-card__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Colors matching screenshot */
.dealer-popup-card__btn--bale {
    background: #27c46b;
}

.dealer-popup-card__btn--instagram {
    background: #e4438b;
}

.dealer-popup-card__btn--call {
    background: #39b5ff;
}

.dealer-popup-card__btn--route {
    background: #0e4db7;
}

/* Prevent theme interference */
.dealer-popup-card *,
.dealer-popup-card *::before,
.dealer-popup-card *::after {
    box-sizing: border-box;
}

/* Mobile */
@media (max-width: 768px) {
    .leaflet-popup-content {
        width: 240px !important;
    }

    .dealer-popup-card__image {
        height: 110px;
    }

    .dealer-popup-card__title {
        font-size: 14px;
    }
}























.rj-container{width:min(1100px,92%);margin-inline:auto}
.rj-sec{padding:24px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.rj-sec__title{font-size:20px;margin:0 0 16px}

.rj-landing-hero{background-size:cover;background-position:center}
.rj-landing-hero__overlay{background:rgba(0,0,0,.35);padding:48px 0}
.rj-landing-hero__title{color:#fff;margin:0 0 12px;font-size:34px}
.rj-landing-hero__summary, .rj-landing-hero__meta{color:#fff}

.rj-grid{display:grid;gap:16px}
.rj-grid--products,.rj-grid--shops,.rj-grid--posts{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){
  .rj-grid--products,.rj-grid--shops,.rj-grid--posts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  .rj-grid--products,.rj-grid--shops,.rj-grid--posts{grid-template-columns:1fr}
}
.rj-card{display:block;border:1px solid rgba(0,0,0,.08);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;background:#fff}
.rj-card img{width:100%;height:auto;display:block}
.rj-card__title{padding:12px;font-weight:600}
.rj-wysiwyg :is(h2,h3){margin-top:24px}





























/* ============================= */
/* Royal Jeans Footer */
/* ============================= */

.royal-footer {
  width: 100%;
  background: #efede9;
  padding: 24px 16px;
  direction: rtl;
  box-sizing: border-box;
  overflow: hidden;
}

.royal-footer *,
.royal-footer *::before,
.royal-footer *::after {
  box-sizing: border-box;
}

.royal-footer__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.royal-footer__card {
  width: 100%;
  background: #efede9;
  border-radius: 28px;
  padding: 48px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: center;
}

/* ============================= */
/* Headline */
/* ============================= */

.royal-footer__headline {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.royal-footer__title {
  margin: 0;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0e0e0e;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.royal-footer__subtitle {
  margin: 0;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  text-align: center;
}

/* ============================= */
/* Navigation */
/* ============================= */

.royal-footer__nav {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 38px;
  align-items: center;
  justify-items: center;
  direction: rtl;
}

.royal-footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #0e0e0e;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.royal-footer__nav a:hover {
  opacity: 0.58;
  transform: translateY(-1px);
}

/* ============================= */
/* Brand Logo */
/* ============================= */

.royal-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.royal-footer__brand img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.95;
}

/* ============================= */
/* Social Icons */
/* ============================= */

.royal-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: ltr;
}

.royal-footer__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.royal-footer__socials a:hover {
  opacity: 0.58;
  transform: translateY(-2px);
}

.royal-footer__socials img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* ============================= */
/* Copyright */
/* ============================= */

.royal-footer__copyright {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.72);
  text-align: center;
}

/* ============================= */
/* Tablet */
/* ============================= */

@media (max-width: 991px) {
  .royal-footer {
    padding: 20px 14px;
  }

  .royal-footer__card {
    padding: 40px 24px 32px;
    gap: 30px;
    border-radius: 24px;
  }

  .royal-footer__title {
    font-size: clamp(32px, 8vw, 56px);
  }

  .royal-footer__subtitle {
    font-size: 19px;
  }

  .royal-footer__nav {
    max-width: 620px;
    gap: 16px 26px;
  }

  .royal-footer__nav a {
    font-size: 18px;
  }

  .royal-footer__brand img {
    height: 50px;
  }
}

/* ============================= */
/* Mobile */
/* ============================= */

@media (max-width: 767px) {
  .royal-footer {
    padding: 16px 12px 18px;
  }

  .royal-footer__container {
    max-width: 100%;
  }

  .royal-footer__card {
    border-radius: 24px;
    padding: 34px 18px 28px;
    gap: 26px;
    align-items: center;
    text-align: center;
  }

  .royal-footer__headline {
    gap: 10px;
  }

  .royal-footer__title {
    font-size: clamp(28px, 10.8vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    white-space: normal;
    max-width: 100%;
  }

  .royal-footer__subtitle {
    font-size: 16px;
    line-height: 1.75;
  }

  .royal-footer__nav {
    max-width: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .royal-footer__nav a {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 800;
  }

  .royal-footer__brand img {
    height: 44px;
    max-width: 180px;
  }

  .royal-footer__socials {
    gap: 14px;
    flex-wrap: wrap;
  }

  .royal-footer__socials a {
    width: 32px;
    height: 32px;
  }

  .royal-footer__socials img {
    width: 22px;
    height: 22px;
  }

  .royal-footer__copyright {
    font-size: 14px;
  }
}

/* ============================= */
/* Small Mobile */
/* ============================= */

@media (max-width: 430px) {
  .royal-footer {
    padding: 14px 10px 16px;
  }

  .royal-footer__card {
    padding: 30px 14px 26px;
    gap: 24px;
    border-radius: 22px;
  }

  .royal-footer__title {
    font-size: clamp(26px, 11vw, 36px);
    letter-spacing: -0.052em;
  }

  .royal-footer__subtitle {
    font-size: 15px;
  }

  .royal-footer__nav {
    width: 100%;
    max-width: 310px;
    gap: 12px 12px;
  }

  .royal-footer__nav a {
    font-size: 16px;
  }

  .royal-footer__brand img {
    height: 40px;
  }

  .royal-footer__socials {
    gap: 12px;
  }

  .royal-footer__socials a {
    width: 30px;
    height: 30px;
  }

  .royal-footer__socials img {
    width: 21px;
    height: 21px;
  }
}

/* ============================= */
/* Very Small Mobile */
/* ============================= */

@media (max-width: 360px) {
  .royal-footer__title {
    font-size: 25px;
  }

  .royal-footer__nav a {
    font-size: 15px;
  }

  .royal-footer__nav {
    gap: 10px;
  }
}





.royal-footer__brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.royal-footer__logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}
