.floating-select {
    position: relative;
    margin-bottom: 20px;
}

.floating-select select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    appearance: none;
    cursor: pointer;
    color: transparent; /* متن گزینه در ابتدا نامرئی */
    transition: color 0.2s ease;
    
}

.floating-select select:focus,
.floating-select.filled select {
    color: #000; /* متن گزینه وقتی focus یا filled visible بشه */
}

.floating-select label {
    position: absolute;
    top: 41%;
    right: 0px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* لیبل بالا بره وقتی focus یا filled */
.floating-select select:focus + label,
.floating-select.filled label {
    top: -10px;
    right: 0px;
    background-color: white;
}


.floating-select::after {
    content: "\e5c5"; /* کد یونیکد arrow از Material Icons (می‌تونی تغییر بدی اگر کد دیگه‌ای می‌خوای) */
    font-family: 'Material Icons' !important; /* فرض بر اینه که Material Icons لود شده (از Google Fonts یا محلی) */
    font-size: 24px;
    color: #484848;
    position: absolute;
    left: -9px; /* سمت چپ باکس */
    top: 49%;
    transform: translateY(-50%);
    pointer-events: none; /* clickable نباشه */
    transition: .2s ease;
}































.biz-ai-container {
    background: #fff;
    border-radius: 20px;
    padding: 0px;
    border:1px solid #CFCFCF;
    direction: rtl;
    overflow: hidden;
}




/* کانتینر اصلی تب‌ها */
.biz-ai-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* نمایش ۵ ستون در دسکتاپ */
    gap: 0; /* چسبیده به هم طبق عکس */
    list-style: none;
    padding: 0;
    margin: 0;
    
    overflow: hidden;
    background-color: #fff;
}
.biz-tab-item:nth-child(5n) {
    border-left: none;
}

/* هر آیتم تب */
.biz-tab-item {
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل لینک داخل تب */
.biz-tab-item a {
    display: flex;
    flex-direction: row-reverse; /* آیکون سمت راست، متن سمت چپ طبق عکس */
    align-items: center;
    justify-content: start;
    padding: 12px 10px;
    width: 100%;
    text-decoration: none;
    gap: 5px;
}

/* آیکون‌ها */
.lt-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

/* متن تب‌ها */
.tab-label {
    font-size: 13px;
    font-weight: 600;
    color: #353535;
    white-space: nowrap;
}
.label-row .tab-label {
    font-size: 14px;
}
#range-value{
    font-size: 14px;
    font-weight: 600;
    color: #1d1d23;
}

/* حالت موبایل (Responsive) */
@media (max-width: 768px) {
    .biz-ai-tabs {
        grid-template-columns: repeat(2, 1fr); /* نمایش ۲ ستون در موبایل */
    }
    .biz-tab-item:nth-child(2n) {
        border-left: none;
    }
    .biz-tab-item:nth-child(2n+1) {
        border-left: 1px solid #CFCFCF;
    }
}










/* کانتینر اصلی فرم */
.biz-ai-search-body {
    padding: 26px 20px 20px 20px;
    background: #fff;
}

/* ردیف‌های دو ستونه */
.search-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    
}

/* استایل هر فیلد */
.search-field {
    display: flex;
    flex-direction: column;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.2); /* خط زیرین مشابه عکس */
    padding-bottom: 5px;
    height: fit-content;
}




.search-field label {
    font-size: 14px;
    color: #353535;
    font-weight: 600;
}

/* استایل Select و Input */
.search-field select, 
.search-field input[type="text"], 
.search-field textarea {
    border: none !important;
    background: transparent !important;
    padding: 12px 0;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    font-weight: 600;
}

/* استایل مخصوص Range */
.biz-range {
    width: 100%;
    margin-top: 15px;
}

.label-row {
    display: flex;
    margin-top: 15px;
    gap: 3px;
}



.biz-submit-btn:hover {
    background-color: #3f32b5;
    transform: translateY(-2px);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .search-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* ایجاد موقعیت نسبی برای نگهدارنده */
.biz-location-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;
    width: 100%;
}

/* استایل اینپوت لوکیشن */
#biz-location-input {
    width: 100%;
    padding-left: 35px !important; /* ایجاد فضای خالی در سمت چپ برای آیکون */
    border: none !important;
    background: transparent !important;
}

/* چسباندن دکمه به سمت چپ */
#biz-get-location {
    position: absolute;
    left: 0; /* چسبیدن به لبه چپ */
    top: 50%;
    transform: translateY(-50%); /* تراز شدن عمودی در مرکز خط */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* کل نوار اسلایدر */
.ui-slider.ui-widget-content {
    height: 4px;
    background-color: #ededed; /* بخش خالی */
    border: none;
    margin-top: 16px;
    border-radius: 5px;
}

/* بخش پر شده (سمت چپ/راست بر اساس جهت) */
.ui-slider-range.ui-widget-header {
    background-color: #121149; /* بنفش بیزبان */
    border-radius: 5px;
}

/* دکمه اسلایدر (Handle) */
.ui-slider-handle.ui-state-default {
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 1px solid #d1d1d1;
    border-radius: 50% !important;
    top: -8px !important; /* تراز کردن دایره روی خط */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    outline: none !important;
}

/* حذف حاشیه آبی هنگام فوکوس */
.ui-slider-handle:focus {
    outline: none;
}

#biz-radius-slider{
    border: none !important;
}



.icon-locat{
    position: absolute;
    left: 0;
    font-size: 21px;
    color: #484848;
    cursor: pointer;
    opacity: 1;
    transition: opacity .15s ease;
    padding:0px 5px 3px 5px !important;
}
.icon-locat:hover{
    opacity: .7;
}






.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
































/* کانتینر اصلی */
.biz-submit-container {
    text-align: center;
    margin-top: 30px;
}

.biz-submit-btn i {
    margin: 0px 8px;
}

.biz-submit-btn {
    position: relative;
    padding: 14px 40px;
    width: 47%;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    outline: none;
    z-index: 0; /* برای مدیریت لایه‌های پشت دکمه */
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* لایه درخشش پشتی (همیشه فعال) */
.biz-submit-btn:before {
    content: '';
    background: linear-gradient(45deg, #d84f72, #f56a4e, #ff9500, #bfff00, #2cb67d, #00aaff, #4d96ff, #8a73d6, #d84f72);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(0px); /* شدت درخشش */
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 1; /* همیشه رنگی و نمایان باشد */
    border-radius: 100px;
    transition: opacity .3s ease-in-out;
}
.biz-submit-btn:hover:before {
    opacity: 1; /* هاله نوری را در هاور نمایش می‌دهد */
    filter: blur(1px); /* شدت درخشش */
}
/* حالت Hover */
.biz-submit-btn:hover {
    background: #ffffff !important; /* پس‌زمینه سفید می‌شود */
    color: #333 !important; /* متن مشکی می‌شود */
    
}

/* لایه سفید داخلی برای اینکه متن مشکی روی سفید خوانده شود */
/* این لایه در حالت عادی شفاف است و در هاور سفید می‌شود */
.biz-submit-btn:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    left: 0;
    top: 0;
    border-radius: 100px;
    transition: background 0.4s;
}

.biz-submit-btn:hover:after {
    background: #ffffff; /* پر شدن داخل دکمه با سفید */
}

/* انیمیشن چرخش رنگ‌ها */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* حالت لودینگ */
.biz-submit-btn.is-loading {
    animation: glowing 2s linear infinite;
    filter: brightness(1.1);
    cursor: wait;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .biz-submit-btn {
        width: 100%;
    }
}













/* ۱. استایل دکمه تب AI وقتی غیرفعال است (فقط رنگی بدون سایه) */
#biz-ai-tabs-container {
    background: white;
    color: #353535;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-active-mode #biz-ai-tabs-container {
    
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: geminiGradient 10s ease infinite;
    
    /* سایه رنگی دور دکمه */
    box-shadow: 0 0 10px rgba(231, 60, 126, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    
}


/* ۲. وقتی کل کانتینر در حالت AI قرار می‌گیرد (درخشش کل باکس) */
.e-n-tabs.ai-active-mode .e-n-tabs-content {
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.4) !important;
    /* ایجاد بردر گرادیان متحرک برای کل باکس */
    transition: all 0.5s ease;
}




/* انیمیشن اصلی رنگ‌ها */
@keyframes geminiGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}















/* تنظیم موقعیت کانتینر برای شناور بودن اجزا */
.biz-location-wrapper {
    position: relative;
    margin-top: 11px; /* کمی فاصله از بالا برای اینکه لیبل وقتی بالا میره جا داشته باشه */
}

/* استایل اولیه لیبل (وقتی وسط اینپوت قرار داره) */
.biz-location-wrapper label {
    position: absolute;
    right: 0; /* چون فارسی است راست‌چین میکنیم */
    top: 37%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none; /* این خط باعث میشه کلیک روی متن، اینپوت رو فعال کنه */
    font-size: 14px;
    font-weight: 600 !important;
    background-color: transparent; 
}

/* تغییراتی روی اینپوت برای اینکه متن تایپ شده با لیبل تداخل نداشته باشه */
#biz-location-input {
    padding-top: 10px !important; /* فضا دادن برای متن تایپ شده */
    padding-bottom: 10px !important;
}

/* ---- جادوی اصلی (انیمیشن بالا رفتن) ---- */

/* ۱. وقتی روی اینپوت کلیک شده (Focus) */
/* ۲. یا وقتی متنی داخلش هست و placeholder نمایش داده نمیشه */
#biz-location-input:focus ~ label,
#biz-location-input:not(:placeholder-shown) ~ label {
    top: -10px; /* رفتن به بالا */
    height: auto;
}




























@media (max-width: 767px) {
    .search-grid-row .floating-select:first-of-type {
        margin-bottom: 5px !important;
    }
}