/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --pv-primary: #132033;
    --pv-primary-light: #23324a;
    --pv-accent: #d6ab76;
    --pv-text: #445065;
    --pv-text-light: #6c7a91;
    --pv-text-lighter: #8b97a8;
    --pv-border: #e6e9ef;
    --pv-border-light: #f0f2f5;
    --pv-bg: #fff;
    --pv-bg-light: #f8fafc;
    --pv-bg-lighter: #fbfbfb;
    
    /* Spacing */
    --pv-spacing-xs: 6px;
    --pv-spacing-sm: 8px;
    --pv-spacing-md: 12px;
    --pv-spacing-lg: 16px;
    --pv-spacing-xl: 18px;
    --pv-spacing-2xl: 28px;
    --pv-spacing-3xl: 30px;
    
    /* Border Radius */
    --pv-radius-sm: 6px;
    --pv-radius-md: 8px;
    --pv-radius-lg: 10px;
    --pv-radius-xl: 12px;
    --pv-radius-2xl: 14px;
    
    /* Shadows */
    --pv-shadow-sm: 0 6px 18px rgba(15, 21, 33, 0.04);
    --pv-shadow-md: 0 8px 30px rgba(15, 21, 33, 0.04);
    
    /* Transitions */
    --pv-transition: all 0.3s ease;
}

/* ==========================================================================
   Font Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* ==========================================================================
   Base & Layout
   ========================================================================== */
.pv-wrapper {
    display: flex;
    gap: var(--pv-spacing-2xl);
    padding: var(--pv-spacing-3xl) 20px;
    font-family: "Cairo", sans-serif;
    box-sizing: border-box;
}

.pv-sidebar {
    width: 20%;
    min-width: 300px;
}
/* عرض فلاتر السايدبار في عمودين */
.pv-checkbox-grid {
    display: grid !important;
   /* grid-template-columns: repeat(2, 1fr) !important; */
    gap: 10px 10px !important;
    align-items: start;
}

/* ضبط شكل كل عنصر داخل عمود */
.pv-checkbox-grid .pv-check {
    display: flex;
    align-items: center;
    gap: 0px;
    padding:0px ;
    font-size: 14px;
}


main.pv-main {
    width:80%;
    flex: 1;
}

/* ==========================================================================
   Search & Filters
   ========================================================================== */
.pv-filters-card {
    background: var(--pv-bg);
    padding: var(--pv-spacing-xl);
    border-radius: var(--pv-radius-2xl);
    box-shadow: var(--pv-shadow-md);
    position: sticky;
    top: 20px;
}

.pv-search {
    margin-bottom: var(--pv-spacing-lg);
}

.pv-search input {
    width: 100%;
    padding: var(--pv-spacing-md) 14px;
    border-radius: var(--pv-radius-xl);
    border: 1px solid var(--pv-border);
    background: var(--pv-bg);
    box-shadow: none;
    transition: var(--pv-transition);
    font-family: inherit;
    box-sizing: border-box;
}

.pv-search input:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
    border-color: var(--pv-primary);
}

/* Reset Button */
.pv-reset-btn {
    width: 100%;
    padding: var(--pv-spacing-md);
    margin-bottom: var(--pv-spacing-lg);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: var(--pv-radius-lg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--pv-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--pv-spacing-sm);
}

.pv-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.pv-reset-btn:active {
    transform: translateY(0);
}

.pv-reset-btn:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Accordion */
.pv-accordion-group {
    margin-bottom: var(--pv-spacing-md);
}

.pv-accordion-toggle {
    width: 100%;
    text-align: right;
    background: var(--pv-bg-light);
    border: none;
    padding: 14px var(--pv-spacing-md);
    border-radius: var(--pv-radius-lg);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--pv-primary-light);
    transition: var(--pv-transition);
}

.pv-accordion-toggle:hover {
    background: #eef2f7;
}

.pv-accordion-toggle:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
}

.pv-accordion-toggle.open {
    background: var(--pv-primary);
    color: white;
}

.pv-accordion-toggle.open .pv-acc-icon {
    color: white;
}

.pv-accordion-toggle .pv-acc-icon {
    font-size: 14px;
    color: var(--pv-text-lighter);
    transition: var(--pv-transition);
}

.pv-accordion-panel {
    display: none;
    padding: 10px var(--pv-spacing-xs) 0;
    margin-top: var(--pv-spacing-sm);
}

/* Checkboxes */
.pv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--pv-spacing-sm) var(--pv-spacing-xs);
    border-radius: var(--pv-radius-md);
    cursor: pointer;
    transition: var(--pv-transition);
}

.pv-check:hover {
    background: var(--pv-bg-light);
}

.pv-check input {
    transform: scale(1.05);
    margin-left: var(--pv-spacing-xs);
    cursor: pointer;
}

.pv-check input:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Topbar & Controls
   ========================================================================== */
.pv-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pv-spacing-lg);
    gap: var(--pv-spacing-md);
    background: var(--pv-bg);
    padding: var(--pv-spacing-lg);
    border-radius: var(--pv-radius-xl);
    box-shadow: var(--pv-shadow-sm);
}

.pv-left-controls {
    display: flex;
    align-items: center;
    gap: var(--pv-spacing-md);
}

.pv-top-controls {
    display: flex;
    align-items: center;
    gap: var(--pv-spacing-md);
}

.pv-label {
    font-size: 13px;
    color: var(--pv-text);
    font-weight: 600;
    white-space: nowrap;
}
.pv-filter-group-title

{
    color: #001633; 
    border-bottom:1px solid #001633;
    margin-bottom: 3px;
    padding-bottom: 7px ;
}

.pv-select {
    padding: var(--pv-spacing-sm) var(--pv-spacing-md);
    border-radius: var(--pv-radius-lg);
    border: 1px solid var(--pv-border);
    background: var(--pv-bg);
    color: var(--pv-text);
    font-family: inherit;
    cursor: pointer;
    transition: var(--pv-transition);
    width: auto;
}

.pv-select:hover {
    border-color: var(--pv-primary);
}

.pv-select:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
}

/* View Toggle Buttons */
.pv-view-toggle {
    display: flex;
    gap: var(--pv-spacing-sm);
    background: var(--pv-bg-light);
    padding: 4px;
    border-radius: var(--pv-radius-lg);
}

.pv-view-btn {
    padding: 10px 14px;
    border-radius: var(--pv-radius-md);
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: var(--pv-transition);
    color: var(--pv-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--pv-spacing-xs);
}

.pv-view-btn svg {
    width: 18px;
    height: 18px;
}

.pv-view-btn:hover {
    background: rgba(19, 32, 51, 0.1);
}

.pv-view-btn:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
}

.pv-view-btn.active {
    background: var(--pv-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(19, 32, 51, 0.2);
}

/* ==========================================================================
   Results Area
   ========================================================================== */
.pv-results-count {
    margin-bottom: 10px;
    color: var(--pv-text);
    font-size: 15px;
    text-align: right;
    font-weight: 600;
}

/* Loading State */
.pv-loading {
    padding: 40px;
    text-align: center;
    color: var(--pv-text-light);
}

.pv-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pv-border-light);
    border-top-color: var(--pv-primary);
    border-radius: 50%;
    animation: pv-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes pv-spin {
    to { transform: rotate(360deg); }
}

/* Error & Empty States */
.pv-error,
.pv-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--pv-bg);
    border-radius: var(--pv-radius-xl);
    box-shadow: var(--pv-shadow-sm);
}

.pv-error {
    color: #dc2626;
}

.pv-empty {
    color: var(--pv-text-light);
}

/* ==========================================================================
   Table View
   ========================================================================== */



.pv-results-wrap {
    background: var(--pv-bg);
    padding: var(--pv-spacing-sm) 0;
    border-radius: var(--pv-radius-2xl);
    box-shadow: var(--pv-shadow-md);
    overflow: hidden;
}

.pv-table {
    width: 100%;
    border-collapse: collapse;
}

.pv-table thead th {
    text-align: right;
    padding: 15px 10px ;
    border-bottom: 2px solid #eef2f6;
    font-weight: 700;
    color: var(--pv-primary-light);
    background: var(--pv-bg);
    font-size: 14px;
}

.pv-table tbody td {
    padding: var(--pv-spacing-xl);
    border-bottom: 1px solid var(--pv-bg-lighter);
    color: var(--pv-text);
    vertical-align: middle;
    text-align: right;
}





.pv-row-wrap {
    background: #F8FAFC;
    border-radius: 10px;
    margin: 8px 10px; /* مسافة بين الصفوف */
    padding: 12px 15px;
    transition: background 0.2s ease;
}

.pv-row-wrap:hover {
    background: #EEF2F6;
}

.pv-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pv-col { flex: 1; padding: 0 8px; }


/* توزيع flex للداتا مطابق للهيدر */
.pv-row-content {
    display: flex;
    align-items: right;
 /*   gap: 10px;*/
}
.pv-th-title     { width: 55%; text-align: right; }
.pv-th-date      { width: 20%; text-align: right; }
.pv-th-location  { width: 15%; text-align: right; }
.pv-th-price     { width: 15%; text-align: right; }

.pv-col-title     { flex: 6; text-align: right;  }
.pv-col-date      { flex: 2; text-align: right; }
.pv-col-location  { flex: 1; text-align: right; }
.pv-col-price     { flex: 1; text-align: left; }

.pv-table tbody tr {
    cursor: pointer;
    border: none; /* نلغي حدود الصف الافتراضية */
}

@media(max-width:768px){
    .pv-row-content {
        flex-direction: row;
        align-items: flex-start;
    }
    .pv-col { padding: 4px 0; }
    
   
    .pv-table thead th:first-child, .pv-table tbody td:first-child {
        width: 35%;
        padding: 0px 20px 0px 0px;
    }
        .pv-table thead th:nth-child(2), .pv-table tbody td:nth-child(2) {
        width: 25%;
        padding: 0px 20px 0px 0px;
    }
        .pv-table thead th:nth-child(3), .pv-table tbody td:nth-child(3) {
        width: 20%;
        padding: 0px 0px 0px 25px;
    }
        .pv-table thead th:nth-child(4), .pv-table tbody td:nth-child(4) {
        width: 20%;
        text-align: right !important;
        padding-left: 25px;
    }

   
.pv-table tbody tr {
    cursor: pointer;
    border: none; /* نلغي حدود الصف الافتراضية */
}
}

.pv-table tbody td a {
    color: var(--pv-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--pv-transition);
}

.pv-table tbody td a:hover {
    color: var(--pv-accent);
}

.pv-col-price {
    width: 160px;
    text-align: left;
    font-weight: 700;
    color: var(--pv-accent);
}

.pv-col-date,
.pv-col-location {
    width: 180px;
    text-align: right;
    color: var(--pv-text-light);
}

/* ==========================================================================
   Grid/Card View
   ========================================================================== */
.pv-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pv-grid-item {
    background: #fff;
    border-radius: 24px;
    padding: 28px 0px 0px;
    border: 1px solid #1e293b6e;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 300px;
}

.pv-grid-item:hover {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Price tag - top left with icon */
.pv-grid-price-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pv-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pv-price-amount::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Location badge - top right */
.pv-grid-location-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Title */
.pv-grid-title {
    font-size: 16px;
    font-weight: 700;
    color: #c9a26c;
    padding: 0px 20px;;
    line-height: 1.5;
    margin-top: 48px;
    text-align: right;
    min-height: auto;
}
.pv-grid-item .pv-price-amount
{
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
}

.pv-grid-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.pv-grid-title a:hover {
    color: #b38f5d;
}

/* Description */
.pv-grid-description {
    color: #737373;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: auto;
    text-align: right;
    padding: 0px 20px;
    min-height: auto;
}

/* Footer */

.pv-grid-footer {
    margin-top: 24px;
    padding:20px;
    border-top: 1px solid #ebebeb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F8FAFC;
    border-radius: 0px 0px 24px 24px;
}
.inside-footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 0px 0px 24px 24px;
    border-radius: 15px;
    padding: 10px;
    width: 100%;
    border:1px solid #E5E7EB;
}
.pv-date-range ,.pv-date-year
{
    color: black;
}
.pv-footer-location
{
    padding: 0px;
    font-size: 14px ;
    margin-top: -5px;
    font-weight: bold;
}

.pv-grid-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f5f5f5;
    padding: 10px 16px;
    border-radius: 12px;
    flex: 1;
}

.pv-date-numbers {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    direction: rtl;
}

.pv-date-city {
    font-size: 12px;
    color: #999;
    direction: rtl;
}

.pv-grid-arrow {
    width: 44px;
    height: 44px;
    background: #dcf5e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.pv-grid-arrow svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
    transition: transform 0.25s ease;
}

.pv-grid-arrow:hover {
    background: #4ade80;
}

.pv-grid-arrow:hover svg {
    color: white;
    transform: translateX(-3px);
}


/* ==========================================================================
   Pagination
   ========================================================================== */
.pv-pagination {
    margin-top: var(--pv-spacing-lg);
    text-align: center;
}

.pv-page-btn {
    margin: 4px;
    padding: var(--pv-spacing-sm) var(--pv-spacing-md);
    border-radius: var(--pv-radius-sm);
    border: 1px solid var(--pv-border);
    background: var(--pv-bg);
    cursor: pointer;
    transition: var(--pv-transition);
    color: var(--pv-text);
    font-weight: 600;
    min-width: 36px;
}

.pv-page-btn:hover {
    border-color: var(--pv-primary);
    background: var(--pv-bg-light);
}

.pv-page-btn:focus {
    outline: 2px solid var(--pv-primary);
    outline-offset: 2px;
}

.pv-page-btn.active {
    background: var(--pv-primary);
    color: white;
    border-color: var(--pv-primary);
}
button#pv-download-pdf {
    border-radius: var(--pv-radius-lg);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1100px) {
    .pv-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .pv-wrapper {
        flex-direction: column;
        padding: var(--pv-spacing-xl);
    }
    
    .pv-sidebar {
        width: 100%;
        min-width: auto;
        order: 2;
        margin-top: var(--pv-spacing-2xl);
    }
    
    .pv-main {
        width: 100%;
        order: 1;
    }
    
    .pv-filters-card {
        position: static;
    }
    
    .pv-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--pv-spacing-md);
    }
    
    .pv-left-controls {
        justify-content: center;
    }
    
    .pv-top-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 700px) {
    .pv-results-grid {
        grid-template-columns: 1fr;
    }
    
    .pv-wrapper {
        padding: 0;
        gap: 0;
    }
    
    .pv-sidebar {
        width: 100%;
        padding: 0px;
    }
    
    .pv-main {
        width: 100% !important;
        border-radius: 10px !important;
        padding: 0;
    }
    
    .pv-topbar {
        padding: var(--pv-spacing-md);
        margin: 0 0 var(--pv-spacing-md) 0;
        border-radius: 10px;
    }
    
    .pv-top-controls {
        width: 100%;
        gap: var(--pv-spacing-sm);
        flex-wrap: wrap;
    }
    
    .pv-select {
        padding: var(--pv-spacing-sm);
        font-size: 13px;
    }
    
    /* Table responsive styling */
    .pv-results-wrap {
        border-radius: 0px 0px 10px 10px;
        margin: 0;
    }
    
    .pv-table {
        font-size: 12px;
        width: 100%;
    }
    
    .pv-table thead th,
    .pv-table tbody td {
        padding: var(--pv-spacing-sm) 8px;
        font-size: 12px;
    }
    
    .pv-table thead th:first-child,
    .pv-table tbody td:first-child {
        width: 35%;
    }
    
    .pv-table thead th:nth-child(2),
    .pv-table tbody td:nth-child(2) {
        width: 25%;
    }
    
    .pv-table thead th:nth-child(3),
    .pv-table tbody td:nth-child(3) {
        width: 20%;
    }
    
    .pv-table thead th:nth-child(4),
    .pv-table tbody td:nth-child(4) {
        width: 20%;
        text-align: right;
    }
    
    .pv-col-price,
    .pv-col-date,
    .pv-col-location {
        width: auto !important;
    }
    
    /* Make view toggle more prominent on mobile */
    .pv-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .pv-view-btn {
        flex: 1;
        max-width: 120px;
    }
    
    /* Results count on mobile */
    .pv-results-count {
        font-size: 13px;
        padding: var(--pv-spacing-md);
        margin: 0;
        background: var(--pv-bg);
        border-radius: 10px 10px 0px 0px;
    
    }
    
    /* Pagination on mobile */
    .pv-pagination {
        padding: var(--pv-spacing-md);
        margin: 0;
    }
    
    /* Filters card on mobile */
    .pv-filters-card {
        border-radius: 10px;
        box-shadow: none;
        border-bottom: 1px solid var(--pv-border-light);
    }
    
    /* Grid view on mobile */
    .pv-results-grid {
        padding: var(--pv-spacing-md);
    }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.e-con.e-con > .e-con-inner > .elementor-widget,
.elementor.elementor .e-con > .elementor-widget {
    max-width: 100%;
    min-width: 100%;
}



