/* استایل‌های سیستم جستجو سره‌بین */

/* ریست و تنظیمات کلی */
.sareh-bin-search-container * {
    box-sizing: border-box;
}

/* نتایج جستجو */
.search-results-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-header h3 {
    color: #2c5f8d;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
}

.search-results-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* گرید ویلاها */
.villas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* کارت ویلا */
.villa-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.villa-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* تصویر ویلا */
.villa-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.villa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.villa-card:hover .villa-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* نشان‌ها */
.villa-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.badge.facility {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

/* محتوای کارت */
.villa-content {
    padding: 20px;
}

.villa-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.villa-location {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* مشخصات ویلا */
.villa-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.spec {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* خلاصه ویلا */
.villa-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* فوتر کارت */
.villa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* قیمت */
.villa-price {
    flex-grow: 1;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #2c5f8d;
}

.per-night {
    font-size: 12px;
    color: #999;
    margin-right: 4px;
}

.price-call {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: bold;
}

/* دکمه‌های عملیات */
.villa-actions {
    display: flex;
    gap: 8px;
}

.btn-view,
.btn-reserve {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-view:hover {
    background: #e9ecef;
    color: #333;
}

.btn-reserve {
    background: linear-gradient(135deg, #2c5f8d, #1e4a6f);
    color: white;
}

.btn-reserve:hover {
    background: linear-gradient(135deg, #1e4a6f, #2c5f8d);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

/* حالت بدون نتیجه */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-results h3 {
    color: #2c5f8d;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* پیام‌ها */
.search-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}

.search-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.search-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .villas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .villa-card {
        margin: 0 10px;
    }
    
    .villa-image {
        height: 200px;
    }
    
    .villa-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .villa-actions {
        justify-content: space-between;
    }
    
    .btn-view,
    .btn-reserve {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }
    
    .villa-specs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sareh-bin-search-container {
        padding: 15px;
    }
    
    .villa-content {
        padding: 15px;
    }
    
    .search-results-header h3 {
        font-size: 20px;
    }
    
    .villa-title {
        font-size: 16px;
    }
    
    .villa-badges {
        top: 8px;
        right: 8px;
    }
}

/* انیمیشن‌های اضافی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.villa-card {
    animation: fadeInUp 0.5s ease;
}

.villa-card:nth-child(even) {
    animation-delay: 0.1s;
}

.villa-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Loading اضافی */
.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* دکمه ریست */
.reset-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.reset-filters:hover {
    background: #5a6268;
}

/* بهبود کیفیت تصاویر */
.villa-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}