/* ═══════════════════════════════════════════════════════
   ALL SALES ADS PAGE — all-sales-ads.css
   ═══════════════════════════════════════════════════════ */

/* ── Hero Section (MAPPED TO VP-HERO) ── */
.sales-page-wrapper {
    background-color: #F9FAFB;
}

/* ── Main Layout (MAPPED TO VP-MAIN) ── */
.vp-main {
    padding-top: 48px;
    padding-bottom: 80px;
}

/* ── Active Filters & Results Bar ───────────────────── */
.sales-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

[dir="rtl"] .sales-filters-bar {
    flex-direction: row-reverse;
}

.sales-filters-bar-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    color: #111827;
}

.sales-filters-bar-clear {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #E8BA00;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

[dir="rtl"] .sales-filters-bar-clear {
    text-align: left;
}

[dir="ltr"] .sales-filters-bar-clear {
    text-align: right;
}

.sales-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.sales-tag {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
}

.sales-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 31px;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    color: #111827;
}

.vp-results-count {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #6B7280;
}

.sales-divider {
    height: 2px;
    background: rgba(107, 114, 128, 0.1);
    margin-bottom: 30px;
}

/* ── Cards List (Left Column) ───────────────────────── */
.sales-list-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ── Single Card ────────────────────────────────────── */
.sales-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sales-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.sales-card-header {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sales-card-tags {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sales-card-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(232, 186, 0, 0.3);
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    white-space: nowrap;
}

.sales-card-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

[dir="ltr"] .sales-card-price-group {
    align-items: flex-start;
}

.sales-card-price-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.sales-card-price {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #111827;
}

.sales-card-currency {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #111827;
    padding-bottom: 4px;
}

.sales-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #6B7280;
}

.sales-card-location i {
    font-size: 20px;
    color: #6B7280;
}

/* Card Body → Details Grid */
.sales-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sales-details-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

[dir="ltr"] .sales-details-row {
    justify-content: flex-start;
}

.sales-detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 90px;
}

[dir="ltr"] .sales-detail-item {
    align-items: flex-start;
}

.sales-detail-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    white-space: nowrap;
}

.sales-detail-value {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-height: 32px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    white-space: nowrap;
}

/* Multi-value detail (like school stages with multiple badges) */
.sales-detail-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

[dir="ltr"] .sales-detail-values {
    align-items: flex-start;
}

.sales-detail-values-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Card Footer → Submit Button */
.sales-card-footer {
    width: 100%;
}

.sales-card-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 46px;
    background: linear-gradient(180deg, #FFFFFF -11.7%, #E8BA00 90.43%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.sales-card-submit:hover {
    transform: translateY(-2px);
    box-shadow: 1px 6px 16px rgba(0, 0, 0, 0.15);
}

/* ── Sidebar (MAPPED TO VP-SIDEBAR) ── */
.vp-sidebar {
    position: sticky;
    top: 100px;
}

.sales-filter-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sales-filter-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #111827;
}

[dir="rtl"] .sales-filter-label {
    text-align: right;
}

[dir="ltr"] .sales-filter-label {
    text-align: left;
}

.sales-filter-select {
    box-sizing: border-box;
    width: 100%;
    height: 65px;
    background: #FCFBFB;
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 15px;
    padding: 0 20px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23111827' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    cursor: pointer;
}

[dir="rtl"] .sales-filter-select:disabled,
[dir="ltr"] .sales-filter-select:disabled {
    background-color: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

[dir="ltr"] .sales-filter-select {
    background-position: calc(100% - 20px) center;
}

.sales-filter-select::placeholder {
    color: #6B7280;
}

.sales-filter-select:focus {
    outline: none;
    border-color: #E8BA00;
}

/* Price Range */
.sales-price-range {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sales-range-slider {
    position: relative;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin: 20px 0;
}

.sales-range-track {
    position: absolute;
    height: 100%;
    background: #E8BA00;
    border-radius: 2px;
    z-index: 1;
}

.sales-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    z-index: 2;
}

#priceMinSlider {
    z-index: 3;
}

#priceMaxSlider {
    z-index: 4;
}

.sales-range-slider,
.sales-range-input {
    direction: ltr;
}

.sales-range-input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #E8BA00;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sales-range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #E8BA00;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sales-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-price-input {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    width: 121px;
    height: 48px;
    border: 1px solid #8B8B8B;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #8B8B8B;
    background: transparent;
}

[dir="rtl"] .sales-price-input {
    text-align: right;
    direction: ltr;
}

[dir="ltr"] .sales-price-input {
    text-align: left;
}

.sales-price-input:focus {
    outline: none;
    border-color: #E8BA00;
    color: #111827;
}

.sales-price-dash {
    width: 8px;
    height: 1px;
    background: #8B8B8B;
    border-radius: 1px;
}

/* Filter Buttons */
.sales-filters-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sales-filter-btn-apply {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 60px;
    background: linear-gradient(178.83deg, #FFFFFF -36.69%, #E8BA00 99.01%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1), inset 4px 4px 15px rgba(232, 186, 0, 0.3);
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.sales-filter-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 1px 6px 14px rgba(0, 0, 0, 0.14), inset 4px 4px 15px rgba(232, 186, 0, 0.3);
}

.sales-filter-btn-clear {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    border: 1px solid #E8BA00;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.sales-filter-btn-clear:hover {
    background: #faf6e6;
}

/* ── Pagination ─────────────────────────────────────── */
.sales-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
}

.sales-pagination nav {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.sales-pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sales-pagination-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 30px;
    height: 41px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.sales-pagination-page.active,
.sales-pagination-page:hover {
    border-color: rgba(232, 186, 0, 0.45);
    color: #E8BA00;
}

.sales-pagination-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.sales-pagination-nav:hover {
    color: #E8BA00;
}

.sales-pagination-nav i {
    font-size: 14px;
}

/* ── Empty State ────────────────────────────────────── */
.sales-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #6B7280;
}

/* ── Terms & Conditions Modal Styles ────────────────── */
.tc-modal-dialog {
    max-width: 530px;
}

.tc-modal-content {
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border-top: none;
    padding: 50px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tc-modal-icon {
    width: 134px;
    height: 134px;
    margin-bottom: 30px;
}

.tc-modal-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 30px;
    color: #111827;
    margin-bottom: 20px;
}

.tc-modal-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tc-modal-link {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
}

.tc-modal-link:hover {
    color: #E8BA00;
}

.tc-modal-link-icon {
    width: 20px;
    height: 20px;
}

.tc-modal-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.tc-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 150px;
    height: 46px;
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-modal-btn-cancel {
    background: #FFFFFF;
    border: 1px solid #E8BA00;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.tc-modal-btn-cancel:hover {
    background: #faf6e6;
}

.tc-modal-btn-accept {
    background: linear-gradient(180deg, #FFFFFF -11.7%, #E8BA00 90.43%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    width: 198px;
}

.tc-modal-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 1px 6px 14px rgba(0, 0, 0, 0.14);
}

/* ── Token Confirmation Modal Styles ────────────────── */
.token-modal-dialog {
    max-width: 500px;
}

.token-modal-content {
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border-top: none;
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.token-modal-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px;
    margin-bottom: 10px;
}

.token-modal-img {
    width: 260px;
    height: auto;
}

.token-modal-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    margin-bottom: 8px;
    max-width: 425px;
}

.token-modal-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-top: 25px;
}

.token-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 150px;
    height: 46px;
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.token-modal-btn-cancel {
    background: #FFFFFF;
    border: 1px solid #E8BA00;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.token-modal-btn-cancel:hover {
    background: #faf6e6;
}

.token-modal-btn-confirm {
    background: linear-gradient(183.06deg, #FFFFFF -10.89%, #E8BA00 97.46%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.token-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 1px 6px 14px rgba(0, 0, 0, 0.14);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .sales-main {
        flex-direction: column !important;
    }

    .sales-filters-col {
        width: 100%;
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .sales-hero-title {
        font-size: 32px;
        line-height: 40px;
    }

    .sales-hero-subtitle {
        font-size: 22px;
        line-height: 28px;
    }

    .sales-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-end;
    }

    [dir="ltr"] .sales-card-header {
        align-items: flex-start;
    }

    .sales-details-row {
        gap: 20px;
    }

    .sales-filters-panel {
        padding: 25px 20px;
    }

    .sales-card-price {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .sales-hero-title {
        font-size: 26px;
        line-height: 34px;
    }

    .sales-hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .tc-modal-btn-accept {
        width: 150px;
    }
}