﻿
    *, *::before, *::after { box-sizing: border-box; }
    html, body { overflow-x: hidden; margin: 0; padding: 0; }
    .row { --bs-gutter-x: 0; }

    /* Range */
    .range-wrapper { padding-top: 20px; height: 50px; }
    #rangeLabel { position:absolute; top:100%; transform:translateX(-50%); white-space:nowrap; pointer-events:none; font-weight:500; }

    /* Cards + Ads */
    .ad-card { height: 320px; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s; }
    .ad-card img { width:100%; height:100%; object-fit:cover; transition: transform .35s, filter .35s; }
    .ad-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
    .ad-card:hover img { transform: scale(1.03); filter: saturate(1.05); }
    .ads-list { display: grid; row-gap: 1rem; }
    .ads-sticky { position: sticky; top: 72px; z-index: 5; }
    @media (min-width: 992px) { .col-12.col-lg-4 { padding-left: 20px; } }

    @media (min-width: 992px) {
      .col-12.col-lg-8 { flex: 0 0 80%; max-width: 80%; }
      .col-12.col-lg-4 { flex: 0 0 20%; max-width: 20%; }
    }

    .book-btn:hover { background:#fff !important; color:#0d6efd !important; border:1px solid #0d6efd !important; }

    /* Footer */
    footer { background:#025f85; width:100%; min-height:60vh; padding:40px 5vw; color:#fff; }
    #cardsPagination .page-item .page-link{
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
}
#cardsPagination .page-item.active .page-link{
  background:#0d6efd; color:#fff; border-color:#0d6efd;
}
   #cardsPagination .pagination {
  gap: 6px; /* فاصله بین آیتم‌ها */
}

#cardsPagination .page-item .page-link {
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
  margin: 0 2px; /* فاصله افقی کوچک */
}

#cardsPagination .page-item.active .page-link {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
} 

/* Mobile responsive styles */
@media (max-width:767px){
  .hii { display: none !important; }

  /* Mobile dropdown improvements */
  
}

/* Filter Card Styles */
.filter-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
}

.filter-card .form-select {
    transition: all 0.3s ease;
}

.filter-card .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

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

/* Save Button Styles */
.btn-primary {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced search experience */
.search-container {
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.filter-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Quick action buttons for new users */
.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.quick-action-btn:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.quick-action-btn i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.quick-action-btn:hover i {
    color: #0d6efd;
}

