/* ========================= */
/* ساختار کلی صفحه          */
/* ========================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* هدر */
header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    gap: 15px;
    box-sizing: border-box;
    position: relative;
}

/* منوی شهر سمت چپ */
.custom-select-wrapper {
    position: relative;
    width: 90px;
    font-family: 'Vazirmatn', sans-serif;
    margin-right: auto; /* فقط منوی شهر به سمت چپ */
}

.custom-select-selected {
    padding: 5px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    text-align: right;
    direction: rtl;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    top: 110%;
    left: 0;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    font-size: 14px;
}

.custom-select-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: right;
    direction: rtl;
}

.custom-select-item:hover {
    background: #f7c5a7;
    color: #fff;
}

/* دکمه تصاویر سمت راست */
.insta {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    border-radius: 6px;
    text-decoration: none;
    color: #5f6368;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

/* دکمه تصاویر سمت راست */
.explore-map {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    border-radius: 6px;
    text-decoration: none;
    color: #5f6368;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

/* دکمه تصاویر سمت راست */
.explore-text {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    border-radius: 6px;
    text-decoration: none;
    color: #5f6368;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

.explore-text:hover {
    color: #000;
    background-color: rgba(0,0,0,0.05);
}

/* دکمه افزودن بالای چت آنلاین */
.add-circle {
    position: fixed;
    bottom: 70px; /* بالاتر از چت آنلاین */
    right: 30px;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.add-circle svg {
    width: 15px;
    height: 25px;
}

.add-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* دکمه چت آنلاین */
.floating-chat {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #fff;
    color: #333;
    padding: 3px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* پروفایل */
.profile-circle {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: -5px;
}

.profile-circle:hover {
    transform: scale(1.05);
}

.profile-circle svg {
    width: 24px;
    height: 24px;
}

.profile-circle {
    position: relative;
    cursor: pointer;
}

.profile-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 25px; /* گردی بیشتر */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 10px;
    width: 150px; /* عرض کمتر */
    z-index: 1000;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
    border-radius: 8px;
}

.popup-item img {
    width: 35px; /* اندازه یکسان برای همه آیکن‌ها */
    height: 50px;
    object-fit: contain;
    margin-bottom: 3px;
}

.popup-item span {
    font-size: 14px;
    text-align: center;
    color: #333;
}

.popup-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}





/* محتوای اصلی */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 20px 50px;
}

/* عکس صفحه اصلی */
.hero-image {
    width: 400px important;       /* عرض دسکتاپ */
    height: auto important;       /* نسبت تصویر حفظ بشه */
    display: block;     
    margin-bottom: 10px;
}

.logo {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 0px;
}

/* فرم جستجو */
.search-form {
    width: min(750px, 90%);
    position: relative;
    margin: 0 auto 20px;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    padding-left: 50px;
    font-size: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.search-form input::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

.search-form button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-form button svg {
    width: 22px;
    height: 22px;
    opacity: 0.65;
}

.autocomplete-box {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 500px;
    z-index: 9999;
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f2f2f2;
}
/* دسته‌ها */
.category-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.cat-button {
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid #dcdcdc;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cat-button.active,
.cat-button:hover {
    background: #daab96;
    color: #fff;
    border-color: #daab96;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* نتایج جستجو */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
}

.message {
    text-align: right;
    direction: rtl;
    position: absolute; /* اضافه کردن position */
    top: 550px;  /* موقعیت از بالا */
    right: 600px;  /* موقعیت از سمت راست */
    z-index: 100;  /* برای اطمینان از اینکه در بالای دیگر عناصر قرار بگیرد */
}

.not-found {
    text-align: right;
    direction: rtl;
    position: absolute; /* اضافه کردن position */
    top: 550px;  /* موقعیت از بالا */
    right: 600px;  /* موقعیت از سمت راست */
    z-index: 100;  /* برای اطمینان از اینکه در بالای دیگر عناصر قرار بگیرد */
}

/* کارت */
.item-card {
    display: flex;
    flex-direction: row-reverse;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 140px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* تصویر کارت */
.item-image {
    flex: 0 0 20%;
    height: 100%;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* متن کارت */
.item-info {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: right;
}

.item-info p strong {
    font-weight: 600;
    color: #333;
}

.item-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.item-info .description {
    font-size: 13px;
    color: #666;
}

/* لینک جزئیات */
.item-details-link {
    display: none;
}

/* فوتر */
footer {
    width: 100%;
    text-align: center;
    padding: 0;
    background: transparent;
    border-top: none;
    font-weight: bold;
    font-size: 14px;
}



/* تنظیمات تصویر برای دستگاه‌های بزرگتر از 900px */
@media (min-width: 901px) {
    .hero-image {
        width: 500px !important; /* سایز دلخواه */
        height: auto !important; /* ارتفاع خودکار */
    }
}
/* ========================= */
/* نسخه موبایل – بهینه‌شده */
/* ========================= */
@media (max-width: 600px) {
    header {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
        z-index: 2000;
    }

    .custom-select-wrapper {
        width: auto;
    }

    .main-content {
        padding: 0px 15px 40px;
    }

    .hero-image {
        width: 250px;  /* عرض مناسب موبایل */
        height: auto;
        margin-bottom: 5px;
    }
    .logo {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        font-size: 16px;
        padding: 12px 18px;
        padding-left: 45px;
    }

    /* دکمه‌های دسته‌بندی */
    .category-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .cat-button {
        padding: 8px 18px;
        font-size: 13px;
    }

    /* کارت‌ها عمودی */
    .item-card {
        flex-direction: column;
        height: auto;
        border-radius: 16px;
    }

    .item-image {
        width: 100%;
        height: 160px;
    }

    .item-info {
        padding: 15px 12px;
        gap: 6px;
    }

    .item-info p {
        font-size: 13px;
        line-height: 1.5;
    }

    .description {
        font-size: 12px;
        color: #777;
    }

    .search-results {
        gap: 12px;
    }
    .message {
    text-align: right;
    direction: rtl;
    position: absolute; /* اضافه کردن position */
    top: 350px;  /* موقعیت از بالا */
    right: 30px;  /* موقعیت از سمت راست */
    z-index: 100;  /* برای اطمینان از اینکه در بالای دیگر عناصر قرار بگیرد */
    }

    .not-found {
    text-align: right;
    direction: rtl;
    position: absolute; /* اضافه کردن position */
    top: 350px;  /* موقعیت از بالا */
    right: 30px;  /* موقعیت از سمت راست */
    z-index: 100;  /* برای اطمینان از اینکه در بالای دیگر عناصر قرار بگیرد */
    }    
}

/* نسخه تبلت */
@media (min-width: 601px) and (max-width: 900px) {
    .hero-image {
        width: 250px;  /* عرض مناسب تبلت */
        height: auto;
        margin-bottom: 18px;
    }

    .item-card {
        height: 120px;
    }
}

/* نسخه دسکتاپ – در حالت عادی */
@media (min-width: 901px) {
    .hero-image {
        width: 300px;   /* سایز دسکتاپ */
        height: auto;
    }
}

/* ========================= */
/* محتوای مخصوص سئو (Hidden) */
/* ========================= */
.seo-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

