*, *::before, *::after { box-sizing: border-box; }

.salons-archive-wrapper { direction: rtl; font-family: 'Vazirmatn', Tahoma, sans-serif; }

/* Hero */
.salons-hero {
    background: linear-gradient(135deg, #6c3483, #a569bd);
    padding: 60px 20px;
    text-align: center;
}
.salons-search-box {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.salons-search-box input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}
.salons-search-box button {
    padding: 0 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #6c3483;
    font-size: 20px;
}

/* Layout */
.salons-container {
    display: flex;
    gap: 24px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Sidebar */
.salons-filters {
    width: 260px;
    flex-shrink: 0;position: sticky;
    top: 80px;
}
.filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.filter-card h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #6c3483;border-bottom: 2px solid #f0e6f6;
    padding-bottom: 10px;
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group > label:first-child {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;color: #555;
    transition: color .2s;
}
.checkbox-label:hover { color: #6c3483; }
.checkbox-label input { accent-color: #6c3483; width: 16px; height: 16px; }

/* Star filter */
.star-filter { display: flex; flex-direction: column; gap: 6px; }
.star-btn {
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all .2s;
    letter-spacing: 2px;
}
.star-btn:hover, .star-btn.active { background: #f0e6f6; color: #f39c12; }

.btn-reset {
    width: 100%;
    padding: 10px;
    background: #f8f0fc;
    border: 1px solid #d7bde2;
    border-radius: 10px;
    color: #6c3483;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.btn-reset:hover { background: #6c3483; color: #fff; }

/* Main */
.salons-main { flex: 1; min-width: 0; }

/* Toolbar */
.salons-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
#salons-count { color: #888; font-size: 14px; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
#salon-orderby {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;outline: none;
    cursor: pointer;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #888;
    transition: all .2s;
}
.view-btn.active { background: #6c3483; color: #fff; border-color: #6c3483; }

/* Grid */
.salons-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.salons-grid.view-list { display: flex; flex-direction: column; gap: 16px; }

/* Card */
.salon-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s;animation: fadeInUp .4s ease both;
}
.salon-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(108,52,131,.18); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.salon-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    height: 200px;
}
.salon-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.salon-card:hover .salon-card-thumb img { transform: scale(1.06); }
.no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0e6f6, #d7bde2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6c3483;
}

.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(108,52,131,.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

.salon-card-body { padding: 18px; }
.salon-title { margin: 0 0 10px; font-size: 17px; }
.salon-title a { color: #222; text-decoration: none; }
.salon-title a:hover { color: #6c3483; }

/* Stars */
.salon-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 12px; }
.star.full, .star.half { color: #f39c12; }
.star.empty { color: #ddd; }
.score-num { font-size: 13px; color: #888; margin-right: 6px; }

/* Meta */
.salon-meta { list-style: none; padding: 0; margin: 0 0 14px; }
.salon-meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}
.salon-meta li:last-child { border: none; }
.salon-meta .dashicons { color: #6c3483; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.salon-meta a { color: #555; text-decoration: none; }
.salon-meta a:hover { color: #6c3483; }

/* Socials */
.salon-socials { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.salon-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0e6f6;
    color: #6c3483;
    transition: all .2s;
    text-decoration: none;
}
.salon-socials a:hover { background: #6c3483; color: #fff; }
.salon-socials img { border-radius: 50%; }

.btn-view-salon {
    display: block;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #6c3483, #a569bd);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity .2s;
}
.btn-view-salon:hover { opacity: .85; }

/* List view card */
.view-list .salon-card { display: flex; }
.view-list .salon-card-thumb { width: 220px; height: auto; flex-shrink: 0; }
.view-list .salon-card-body { flex: 1; }

/* Loader */
.salons-loader { text-align: center; padding: 40px; }
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0e6f6;
    border-top-color: #6c3483;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Load more */
#load-more-wrap { text-align: center; margin-top: 32px; }
.btn-load-more {
    padding: 14px 48px;
    background: linear-gradient(135deg, #6c3483, #a569bd);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(108,52,131,.3);
}
.btn-load-more:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,52,131,.4); }

/* No results */
.no-results { text-align: center; padding: 80px 20px; color: #aaa; }
.no-results .dashicons { font-size: 64px; display: block; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 900px) {
    .salons-container { flex-direction: column; }
    .salons-filters { width: 100%; position: static; }
    .view-list .salon-card { flex-direction: column; }
    }

@media (max-width: 600px) {
    .salons-grid.view-grid { grid-template-columns: 1fr; }
    .salons-toolbar { flex-direction: column; gap: 10px; align-items: flex-start; }
}


.location-filter-group { display: flex; flex-direction: column; }
.location-search-input { width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; font-size: .9rem; }
.location-search-input:focus { outline: none; border-color: #6a1b9a; }

.location-cities-list { max-height: 380px; overflow-y: auto; }
.location-cities-list::-webkit-scrollbar { width: 5px; }
.location-cities-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.city-group { margin-bottom: 4px; }
.city-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 5px; }
.city-header:hover { background: #f5f5f5; }

.city-label { display: flex; align-items: center; gap: 6px; cursor: pointer; flex: 1; font-weight: 600; font-size: .9rem; }
.area-count { font-size: .75rem; color: #999; font-weight: normal; }

.city-toggle { background: none; border: none; cursor: pointer; font-size: .7rem; padding: 2px 5px; transition: transform .2s; }
.city-toggle[aria-expanded="true"] { transform: rotate(-180deg); }

.city-areas { margin-right: 22px; padding-right: 10px; border-right: 2px solid #eee; }
.area-label { display: flex; align-items: center; gap: 6px; padding: 3px 6px; cursor: pointer; font-size: .85rem; border-radius: 4px; }
.area-label:hover { background: #fafafa; }

.location-no-results { text-align: center; padding: 15px; color: #aaa; font-size: .85rem; }
