#map {
    height: 370px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* style for home.blade.php */
.location-name {
    text-align: center;
    padding: 0rem;
    margin-bottom: 1rem;
    line-height: 1.5rem;
    height: 3rem;
    overflow: hidden;
}

.location-name h3 {
    text-align: center;
    font-size: 0.8rem;
    text-decoration: none;
    line-height: 1.5rem;
    margin: 0;
}

.location-name h3 strong {
    font-size: 0.8rem;
    display: block;
    text-align: center;
}

.location-wrapper {
    height: 3.2rem;
    justify-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-coordinate {
    padding: 0rem;
    text-align: center;
    margin-bottom: 0.4rem;
}

.location-coordinate-amount {
    font-size: 0.7rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #ff253a;
    padding: 0.4rem 0.2rem 0.2rem 0.4rem;
    margin: 0rem 0.4rem 0rem 0rem;
    border-radius: 0.25rem;
}

/* style for location.blade.php */
.lazyload-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.item {
    flex: 1 1 calc(33.333% - 20px);
    /* Adjust the width of each item */
    margin: 10px;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    flex-grow: 1;
}

.product-name h3,
.product-name p {
    margin: 5px 0;
}

.product-image h3 {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.owl-carousel {
    direction: rtl;
    /* برای نمایش راست به چپ */
}

.item {
    background-color: var(--item-bg-color);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.title,
.executor,
.collaborators,
.status,
.start-date,
.end-date {
    margin: 5px 0;
}

.title {
    font-size: 16px;
    font-weight: bold;
}

.executor,
.collaborators,
.status,
.start-date,
.end-date {
    font-size: 14px;
}

.carousel-link {
    color: inherit;
    text-decoration: none;
}

/* style for search box in header */
/* استایل کلی برای جعبه جستجو */
.search-wrapper {
    display: flex;
    justify-content: center; /* جعبه جستجو را در وسط قرار دهد */
    align-items: center;
    gap: 10px;
    width: 100%;
}

.search-textbox {
    display: flex;
    align-items: center;
    border: 2px solid #ccc; /* مرز ضخیم‌تر برای تمیز بودن ظاهر */
    border-radius: 30px; /* گردی بیشتر برای زیبایی */
    padding: 3px 10px; /* کاهش فضای داخلی */
    background: #fff;
    transition: all 0.3s ease; /* انتقال نرم برای hover و focus */
    width: 100%;
    max-width: 450px; /* حداکثر عرض جعبه جستجو */
    height: 40px; /* ارتفاع ثابت برای جعبه جستجو */
}

.search-textbox:hover,
.search-textbox:focus-within {
    border-color: #007bff; /* تغییر رنگ مرز در هاور یا فوکوس */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); /* سایه ملایم برای جذابیت بیشتر */
}

.search-icon {
    color: #888;
    font-size: 16px; /* اندازه آیکون کمی کوچک‌تر */
    margin-right: 8px; /* فضای بین آیکون و فیلد جستجو */
}

#search {
    flex: 1; /* فیلد جستجو تمام فضای باقیمانده را اشغال کند */
    border: none; /* حذف مرز داخلی */
    outline: none; /* حذف مستطیل ظاهر شونده در زمان فوکوس */
    padding: 5px 0; /* کاهش فضای عمودی */
    font-size: 14px; /* اندازه فونت کوچک‌تر */
    background: transparent; /* پس‌زمینه شفاف برای تمیز بودن ظاهر */
    height: 100%; /* ارتفاع فیلد جستجو را به اندازه جعبه جستجو تنظیم کنید */
}

#search::placeholder {
    text-align: right; /* متن placeholder در ابتدای فیلد نمایش داده شود */
    color: #aaa;
    font-size: 14px; /* اندازه فونت placeholder کوچک‌تر */
}

.advanced-search-btn {
    background: #f8f9fa;
    border: 2px solid #ccc;
    border-radius: 30px;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.advanced-search-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* برای حالت موبایل */
@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .search-textbox {
        max-width: 50%;
    }

    .advanced-search-btn {
        display: none;
    }
}

/* style for Home btn */

.profile-button {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-button:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.fa-home,
.fa-user,
.fa-user-lock {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .profile-button {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .fa-home,
    .fa-user,
    .fa-user-lock {
        font-size: 1.1rem;
    }
}
/* style for search results.blade.php */

.location-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.location-card a {
    text-decoration: none;
    color: inherit;
}

.location-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-title {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.location-coordinates {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-coordinates span {
    display: block;
    font-weight: bold;
    color: #333;
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.favorite-button:hover {
    background: rgba(255, 255, 255, 1);
}

.favorite-button i {
    color: rgba(0, 0, 0, 1);
    font-size: 1.2rem;
}

/* style for details.blade.php in search*/

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* گالری تصاویر */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    height: 200px;
    object-fit: cover;
}

/* جدول گیاهان */
.plants-table {
    width: 100%;
    border-collapse: collapse;
}

.plants-table th {
    background: #3498db;
    color: white;
    padding: 1rem;
}

.plants-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

/* محققین */
.researcher-card {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.researcher-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #3498db;
}

/* منابع تحقیقاتی */
.reference-card {
    border: 4px solid;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.reference-card.completed {
    border-color: #27ae60;
    background: #e8f6ef;
}

.reference-card.ongoing {
    border-color: #f1c40f;
    background: #fcf3cf;
}

/* آفات و بیماری‌ها */
.pest-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.pest-card:hover {
    transform: translateY(-5px);
}

.pest-image {
    height: 200px;
    object-fit: cover;
}

/*  بخش آفات و بیماری در صفحه جزئیات جستجو */
.sub-section-title {
    border-bottom: 2px solid;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.text-danger {
    border-color: #dc3545; /* رنگ قرمز برای عامل */
}

.text-success {
    border-color: #28a745; /* رنگ سبز برای میزبان */
}

.pest-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    background: #fff;
}

.pest-card:hover {
    transform: translateY(-5px);
}

.pest-image {
    height: 200px;
    object-fit: cover;
}

/* style for sidebar filtering in search*/

#sidebar {
    overflow-y: visible !important; /* حذف اسکرول عمودی */
    overflow-x: visible !important; /* حذف اسکرول افقی */
    max-height: none !important; /* حذف محدودیت ارتفاع */
    height: auto; /* ارتفاع پویا */
}
.filter-form {
    position: relative;
    overflow-y: visible !important;
    max-height: none !important;
}

.filter-header {
    background: #f8f9fa;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-header .fa-chevron-down {
    transition: transform 0.3s;
}

.filter-body {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background: #fff;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.jalali-date {
    direction: ltr;
    text-align: right;
}

/* اضافه کردن به فایل CSS موجود */
.filter-body .form-control,
.filter-body .form-select,
.filter-body .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
    border: 1px solid #ced4da;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 1.5;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: calc(1.5em + 0.5rem);
}

/* استایل برای باکس فیلترهای فعال */
.active-filters {
    border: 1px solid #dee2e6;
}

.active-filter {
    padding: 0.4rem 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    display: inline-flex; /* تغییر به flex برای مدیریت بهتر */
    align-items: flex-start; /* تراز بالا به پایین */
    flex-wrap: nowrap; /* جلوگیری از شکستن خط */
    max-width: 100%; /* حداکثر عرض */
    word-break: break-word; /* شکستن کلمات طولانی */
    white-space: normal !important; /* متن در چند خط نمایش داده شود */
    line-height: 1.5; /* افزایش فاصله بین خطوط */
    border-radius: 4px; /* اضافه کردن انحنا برای زیبایی */
    gap: 5px; /* فاصله بین عنوان و مقدار */
}

.btn-close {
    font-size: 0.6rem;
    flex-shrink: 0; /* جلوگیری از کوچک شدن دکمه */
    margin-right: 0;
    margin-left: auto; /* انتقال به سمت راست */
    opacity: 0.8;
}

.active-filter span {
    padding: 2px 0; /* فاصله داخلی عمودی برای متن */
}

/* استایل برای عنوان فیلتر (مثلاً "پوشش گیاهی:") */
.active-filter .filter-label {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap; /* جلوگیری از شکستن خط */
    flex-shrink: 0; /* عدم کوچک شدن */
}

/* استایل برای مقدار فیلتر (مثلاً "بلوط ایرانی") */
.active-filter .filter-value {
    color: #2c3e50;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
}

/* استایل برای select2 */
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px);
    border: 1px solid #ced4da;
}

/* استایل برای تعداد رکوردها */

.small {
    font-size: 0.875em;
}
.text-muted {
    color: #6c757d !important;
}
.pagination-info {
    font-size: calc(12px + (16 - 12) * (100vw - 320px) / (1920 - 320));
    transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
    .pagination-info {
        font-size: 0.9rem;
    }
}

/* taxonomy show for protection-taxonomy */
.card {
    border-radius: 15px;
    overflow: hidden;
}
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



/* footr style */
.footer {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.footer h5 {
    color: #333;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #555;
    text-decoration: none;
}

.footer a:hover {
    color: #007bff;
}

/* آیکون‌های Font Awesome */
.fas {
    margin-right: 10px;
    color: #007bff;
}
