/**
 * Price Tracker listing page (/price-tracker/) – pro layout & cards.
 * Unique, polished look: filters, sort bar, listing grid.
 */

/* ---------- Design tokens ---------- */
body.gep-page-price-tracker,
body.gep-page-newsletter-landing,
body.gep-page-properties-listing,
body.gep-page-my-account {
    --gep-primary: #2d8a5b;
    --gep-primary-dark: #1e6b44;
    --gep-primary-light: #4db37c;
    --gep-surface: #ffffff;
    --gep-bg: #f6faf8;
    --gep-bg-subtle: #eef5f1;
    --gep-text: #1a2420;
    --gep-text-muted: #5a6b63;
    --gep-border: rgba(45, 138, 91, 0.18);
    --gep-shadow-sm: 0 1px 3px rgba(26, 36, 32, 0.06);
    --gep-shadow-md: 0 4px 16px rgba(26, 36, 32, 0.08);
    --gep-shadow-lg: 0 12px 40px rgba(26, 36, 32, 0.1);
    --gep-shadow-green: 0 8px 24px rgba(45, 138, 91, 0.15);
    --gep-radius: 12px;
    --gep-radius-sm: 8px;
}

/* ---------- Price Tracker page: sized to content area (right of menu sidebar) ---------- */
/* Match homepage green bar: full width of content area, no overflow past sidebar */
body.gep-page-price-tracker .gep-pt-page-wrap,
body.gep-page-hsr .gep-pt-page-wrap,
body.gep-page-newsletter-landing .gep-pt-page-wrap,
body.gep-page-properties-listing .gep-pt-page-wrap,
body.gep-page-my-account .gep-pt-page-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 20px 0;
    box-sizing: border-box;
}

/* Screen > 1200px: margin-left = sidebar width, width = 100% minus sidebar */


/* Green bar: page title (Price Tracker, HSR, Newsletter, My Account – same look) */
body.gep-page-price-tracker .gep-pt-page-title,
body.gep-page-hsr .gep-pt-page-title,
body.gep-page-newsletter-landing .gep-pt-page-title,
body.gep-page-properties-listing .gep-pt-page-title,
body.gep-page-my-account .gep-pt-page-title {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 14px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(155deg, #24754a 0%, #2d8a5b 50%, #268056 100%);
    border-radius: 10px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(45, 138, 91, 0.2);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    body.gep-page-price-tracker .gep-pt-page-title,
    body.gep-page-hsr .gep-pt-page-title,
    body.gep-page-newsletter-landing .gep-pt-page-title,
    body.gep-page-my-account .gep-pt-page-title {
        font-size: 1.25rem;
        padding: 12px 16px;
        margin-bottom: 16px;
    }
}

/* My Account: content area (login/register forms) */
body.gep-page-my-account .gep-my-account-content {
    padding: 0 0 32px 0;
    box-sizing: border-box;
}

body.gep-page-my-account .gep-my-account-content .woocommerce {
    max-width: 900px;
}

body.gep-page-my-account .gep-my-account-content .u-columns.col2-set {
    /*display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;*/
}

@media (max-width: 768px) {
    body.gep-page-my-account .gep-my-account-content .u-columns.col2-set {
        grid-template-columns: 1fr;
    }
}

body.gep-page-my-account .gep-my-account-content .col-1,
body.gep-page-my-account .gep-my-account-content .col-2 {
    background: var(--gep-surface, #fff);
    padding: 24px;
    border-radius: var(--gep-radius, 12px);
    box-shadow: var(--gep-shadow-sm, 0 1px 3px rgba(26, 36, 32, 0.06));
    border: 1px solid var(--gep-border, rgba(45, 138, 91, 0.18));
}

/* ---------- Price Tracker page layout: content left, filter right (within content area) ---------- */
body.gep-page-price-tracker .gep-pt-page-layout,
body.gep-page-properties-listing .gep-pt-page-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 32px 0;
    box-sizing: border-box;
}

body.gep-page-price-tracker .gep-pt-page-layout .gep-pt-main,
body.gep-page-properties-listing .gep-pt-page-layout .gep-pt-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

body.gep-page-price-tracker .gep-pt-page-layout .gep-pt-sidebar,
body.gep-page-properties-listing .gep-pt-page-layout .gep-pt-sidebar {
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .gep-pt-page-layout {
        flex-direction: column;
        padding: 16px 14px 24px;
        gap: 20px;
    }

    .gep-pt-page-layout .gep-pt-sidebar {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .gep-pt-page-layout .gep-pt-main {
        order: 2;
    }
}

@media (max-width: 480px) {
    .gep-pt-page-layout {
        padding: 12px 12px 20px;
        gap: 16px;
    }
}

/* ---------- Page: remove scroller, subtle background ---------- */
body.gep-page-price-tracker .elementor-section .elementor-container,
body.gep-page-price-tracker .elementor-section .elementor-column-wrap,
body.gep-page-price-tracker .elementor-widget-wrap,
body.gep-page-price-tracker .gep-pt-listings-wrap,
body.gep-page-price-tracker .gep-pt-listings-wrap .pt-listings {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.gep-page-price-tracker .hsr-grid-wrapper {
    height: auto !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    padding: 4px 0 24px !important;
    border: none !important;
    background: transparent !important;
}

/* HSR cards: same look as price-tracker cards when on PT-style layout */
body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card {
    flex: none !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    text-align: left;
    padding: 0 !important;
    border: 1px solid var(--gep-border);
    background: var(--gep-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--gep-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.25s ease;
    position: relative;
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gep-primary) 0%, var(--gep-primary-light) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    border-radius: 10px 0 0 10px;
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card:hover {
    box-shadow: var(--gep-shadow-md), var(--gep-shadow-green);
    transform: translateY(-4px);
    border-color: rgba(45, 138, 91, 0.3);
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card:hover::before {
    opacity: 1;
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    transition: transform 0.4s ease;
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card:hover img {
    transform: scale(1.05);
}

body.gep-page-price-tracker .hsr-grid-wrapper .hsr-card h3 {
    margin: 0 !important;
    padding: 12px 14px 14px !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    color: var(--gep-text) !important;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    body.gep-page-price-tracker .hsr-grid-wrapper {
        grid-template-columns: 1fr !important;
        padding-bottom: 20px !important;
    }
}

body.gep-page-price-tracker .elementor-location-single,
body.gep-page-price-tracker main,
body.gep-page-price-tracker .site-main,
body.gep-page-my-account main,
body.gep-page-my-account .site-main {
    background: var(--gep-bg);
    background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 138, 91, 0.06), transparent 50%);
}

/* Content area: stay within space right of sidebar (no horizontal overflow); allow vertical so filter dropdowns show */
body.gep-page-price-tracker .gep-pt-page-wrap,
body.gep-page-price-tracker .gep-pt-page-layout,
body.gep-page-hsr .gep-pt-page-wrap,
body.gep-page-hsr .gep-pt-page-layout,
body.gep-page-newsletter-landing .gep-pt-page-wrap,
body.gep-page-newsletter-landing .gep-pt-page-layout {
    overflow-x: hidden;
    overflow-y: visible;
}

/* ---------- HSR page + Newsletter Landing: same layout (Choose Your Report / content section) ---------- */
body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout,
body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout,
body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main,
body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main,
body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main {
    flex: 1;
    min-width: 0;
    order: 1;
}

body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar,
body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar,
body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar {
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0;
    width: 320px;
    min-width: 280px;
    max-width: 100%;
    order: 2;
    min-height: 200px;
}

body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap,
body.gep-page-hsr .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap,
body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    max-width: 320px;
}

@media (max-width: 900px) {
    body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout,
    body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout,
    body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout {
        flex-direction: column;
    }
    body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar,
    body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar,
    body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-sidebar {
        width: 100%;
        min-width: 0;
        order: 1;
    }
    body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main,
    body.gep-page-hsr .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main,
    body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-page-layout .gep-pt-main {
        order: 2;
    }
    body.gep-page-price-tracker .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap,
    body.gep-page-hsr .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap,
    body.gep-page-newsletter-landing .gep-hsr-browse-section .gep-pt-sidebar .gep-filter-sidebar-wrap {
        max-width: none;
    }
}

/* ---------- Property listing cards (scoped to grid – works on any page) ---------- */
.gep-property-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gep-property-listings-grid > a.gep-property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gep-property-listings-grid .gep-property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(45, 138, 91, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gep-property-listings-grid > a.gep-property-card-link:hover .gep-property-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 138, 91, 0.35);
}

/* Image area – fixed aspect, no overlay to avoid layout issues */
.gep-property-listings-grid .gep-property-card__media {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #eef5f1;
}

.gep-property-listings-grid .gep-property-card__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.gep-property-listings-grid .gep-property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo pill – bottom left of image */
.gep-property-listings-grid .gep-property-card__logo {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    max-width: 70px;
    max-height: 26px;
    background: #fff;
    padding: 4px 6px;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.gep-property-listings-grid .gep-property-card__logo img {
    max-width: 100%;
    max-height: 18px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Exclusive badge – top right */
.gep-property-listings-grid .gep-property-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #2d8a5b;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Card body */
.gep-property-listings-grid .gep-property-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gep-property-listings-grid .gep-property-card__title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2420;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gep-property-listings-grid .gep-property-card__meta,
.gep-property-listings-grid .gep-property-card__specs {
    margin: 0 0 2px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #5a6b63;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gep-property-listings-grid .gep-property-card__specs {
    color: #1a2420;
    font-weight: 500;
}

/* Price block */
.gep-property-listings-grid .gep-property-card__price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(45, 138, 91, 0.2);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.gep-property-listings-grid .gep-property-card__price-old {
    font-size: 12px;
    color: #5a6b63;
    text-decoration: line-through;
}

.gep-property-listings-grid .gep-property-card__price-current {
    font-size: 16px;
    font-weight: 700;
    color: #2d8a5b;
}

.gep-property-no-results {
    padding: 24px 20px;
    text-align: center;
    background: #eef5f1;
    border-radius: 12px;
    color: #5a6b63;
}

@media (max-width: 600px) {
    .gep-property-listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gep-property-listings-grid .gep-property-card__body {
        padding: 12px;
    }
}

/* ---------- Main content wrapper: sort bar + grid ---------- */
.gep-pt-listings-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ---------- Sort bar ---------- */
.gep-pt-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: linear-gradient(135deg, #eaf6ee 0%, #ddf0e4 100%);
    border: 1px solid var(--gep-border);
    border-radius: var(--gep-radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--gep-shadow-sm);
}

.gep-pt-sort-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gep-text-muted);
    letter-spacing: 0.01em;
}

.gep-pt-sort-btn {
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gep-primary);
    background: var(--gep-surface);
    border: 1px solid var(--gep-border);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
}

.gep-pt-sort-btn:hover {
    background: var(--gep-bg-subtle);
    border-color: var(--gep-primary-light);
}

.gep-pt-sort-btn.active {
    background: var(--gep-primary);
    color: #fff;
    border-color: var(--gep-primary);
    box-shadow: 0 2px 8px rgba(45, 138, 91, 0.35);
}

/* ---------- No results message bar ---------- */
.gep-pt-no-results {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px 24px 36px;
    margin: 0 0 24px 0;
    text-align: center;
    background: linear-gradient(145deg, #f0f9f4 0%, #e8f5ee 100%);
    border: 1px solid var(--gep-border);
    border-radius: var(--gep-radius);
    box-shadow: var(--gep-shadow-sm);
}

.gep-pt-no-results__icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(45, 138, 91, 0.12);
    position: relative;
}

.gep-pt-no-results__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--gep-primary);
    border-radius: 4px;
    opacity: 0.7;
}

.gep-pt-no-results__icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--gep-primary);
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.gep-pt-no-results__title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gep-text);
    letter-spacing: 0.02em;
}

.gep-pt-no-results__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gep-text-muted);
    line-height: 1.5;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .gep-pt-no-results {
        padding: 24px 20px 28px;
        margin-bottom: 20px;
    }

    .gep-pt-no-results__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .gep-pt-no-results__icon::after {
        width: 20px;
        height: 20px;
    }

    .gep-pt-no-results__title {
        font-size: 1.125rem;
    }

    .gep-pt-no-results__text {
        font-size: 0.875rem;
    }
}

/* ---------- Grid (smaller cards: more per row) ---------- */
.pt-listings {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px 0 24px !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .pt-listings {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding-bottom: 20px !important;
    }

    .gep-pt-sort-bar {
        padding: 12px 14px;
        margin-bottom: 16px;
    }
}

/* ---------- Cards: pro look ---------- */
.p-t-card-link {
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.p-t-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--gep-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--gep-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.25s ease;
    border: 1px solid var(--gep-border);
    position: relative;
}

.p-t-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gep-primary) 0%, var(--gep-primary-light) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    border-radius: 10px 0 0 10px;
}

.p-t-card-link:hover .p-t-card {
    box-shadow: var(--gep-shadow-md), var(--gep-shadow-green);
    transform: translateY(-4px);
    border-color: rgba(45, 138, 91, 0.3);
}

.p-t-card-link:hover .p-t-card::before {
    opacity: 1;
}

/* Smaller image; title + badge overlay at bottom */
.p-t-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: linear-gradient(145deg, #f0f7f3 0%, #e5f0ea 100%);
}

.p-t-card__image-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.p-t-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.p-t-card-link:hover .p-t-card__image {
    transform: scale(1.05);
}

/* Body pulled up so title + badge sit over image; removes gap */
.p-t-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: -56px;
    padding: 32px 12px 10px 12px;
    gap: 0;
    z-index: 1;
}

.p-t-card__title {
    margin: 0 0 10px 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.28;
    color: #fff;
    letter-spacing: -0.02em;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Trend badge: top-right on image, pill shape, triangle + percentage */
.p-t-card__trend {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

.p-t-card__trend--up {
    background: linear-gradient(135deg, rgba(232, 246, 237, 0.98) 0%, rgba(212, 239, 223, 0.98) 100%);
    border-color: rgba(45, 138, 91, 0.35);
}

.p-t-card__trend--down {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 226, 226, 0.98) 100%);
    border-color: rgba(179, 45, 46, 0.3);
}

/* Trend: CSS triangle (up = green, down = red) */
.p-t-card__trend-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    flex-shrink: 0;
    vertical-align: middle;
}

.p-t-card__trend-icon--up {
    border-bottom: 6px solid var(--gep-primary-dark, #1e6b44);
    border-top: none;
}

.p-t-card__trend-icon--down {
    border-top: 6px solid #c53030;
    border-bottom: none;
}

.p-t-card__percent {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.p-t-card__trend--up .p-t-card__percent {
    color: var(--gep-primary-dark, #1e6b44);
}

.p-t-card__trend--down .p-t-card__percent {
    color: #b91c1c;
}

.p-t-card__prices {
    list-style: none;
    margin: 0 0 6px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.8125rem;
}

.p-t-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.35;
}

.p-t-card__price-row:last-child {
    border-bottom: none;
}

.p-t-card__size {
    color: var(--gep-text-muted);
    font-weight: 500;
}

.p-t-card__value {
    font-weight: 700;
    color: var(--gep-text);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.p-t-card__updated {
    margin: auto 0 0 0;
    padding-top: 5px;
    font-size: 0.6875rem;
    color: #849089;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-t-card__updated::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gep-primary-light);
    opacity: 0.7;
}

.p-t-card__updated-label {
    font-weight: 500;
    font-size: inherit;
    color: #849089;
}

.p-t-card-link:hover .p-t-card__updated {
    color: #5a6b63;
}

/* ========== Filter sidebar: right side + responsive ========== */
.gep-filter-sidebar-wrap {
    max-width: 320px;
    width: 100%;
    flex-shrink: 0;
    overflow: visible;
    /* don't clip open dropdown panels */
}

/* When inside a flex row, push to the right */
.gep-filter-sidebar-right {
    order: 2;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .gep-filter-sidebar-wrap {
        max-width: 280px;
    }
}

@media (max-width: 900px) {
    .gep-filter-sidebar-wrap {
        max-width: none;
        width: 100%;
        order: 1;
        margin-left: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .gep-filter-sidebar-wrap {
        margin-bottom: 16px;
    }
}

/* ========== Filters: unique pro look (work on any page) ========== */
.gep-filter-redesign {
    --gep-f-primary: #2d8a5b;
    --gep-f-primary-light: #4db37c;
    --gep-f-primary-dark: #1e6b44;
    --gep-filter-bg: #fff;
    --gep-filter-border: rgba(45, 138, 91, 0.2);
    --gep-filter-header-bg: linear-gradient(155deg, #24754a 0%, #2d8a5b 50%, #268056 100%);
    --gep-filter-text: #1a2420;
    --gep-filter-label: #5a6b63;
    --gep-filter-radius: 12px;
    --gep-filter-radius-sm: 8px;
    background: var(--gep-filter-bg);
    border: 1px solid var(--gep-filter-border);
    border-radius: var(--gep-filter-radius);
    box-shadow: 0 4px 20px rgba(26, 36, 32, 0.08);
    overflow: visible;
    /* allow dropdown panels to show outside card */
    max-width: 100%;
}

.gep-filter-redesign .gep-filter-header {
    background: var(--gep-filter-header-bg);
    padding: 16px 20px;
    margin: 0;
    position: relative;
}

.gep-filter-redesign .gep-filter-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.gep-filter-redesign .gep-filter-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gep-filter-redesign .gep-filter-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
    box-sizing: border-box;
}

/* Single column when in right sidebar (narrow wrapper) */
.gep-filter-sidebar-wrap .gep-filter-redesign .gep-filter-content {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .gep-filter-redesign .gep-filter-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .gep-filter-sidebar-wrap .gep-filter-redesign .gep-filter-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gep-filter-redesign .gep-filter-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

/* Keyword Apply button */
.gep-filter-apply-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--gep-f-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.gep-filter-apply-btn:hover {
    background: var(--gep-f-primary-dark);
}

.gep-filter-apply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 138, 91, 0.3);
}

.gep-filter-redesign .gep-filter-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--gep-filter-border);
    border-radius: var(--gep-filter-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 52px;
    box-sizing: border-box;
    overflow: visible;
}

.gep-filter-redesign .gep-filter-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gep-f-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gep-filter-redesign .gep-filter-item:hover {
    border-color: rgba(45, 138, 91, 0.4);
    box-shadow: 0 4px 14px rgba(45, 138, 91, 0.12);
    background: #fafffc;
}

.gep-filter-redesign .gep-filter-item:hover::before {
    opacity: 1;
}

.gep-filter-redesign .gep-filter-item.open {
    border-color: var(--gep-f-primary-light);
    box-shadow: 0 4px 16px rgba(45, 138, 91, 0.18);
    background: #fafffc;
}

.gep-filter-redesign .gep-filter-item.open::before {
    opacity: 1;
}

.gep-filter-redesign .gep-filter-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gep-filter-text);
    flex: 1;
    letter-spacing: 0.01em;
}

.gep-filter-redesign .gep-icon-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gep-filter-label);
    border-bottom: 2px solid var(--gep-filter-label);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.gep-filter-redesign .gep-filter-item.open .gep-icon-arrow {
    transform: rotate(-135deg);
    border-color: var(--gep-f-primary);
}

.gep-filter-redesign .gep-dropdown-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--gep-filter-border);
    border-radius: var(--gep-filter-radius-sm);
    box-shadow: 0 12px 32px rgba(26, 36, 32, 0.14);
    z-index: 1100;
    max-height: min(260px, 60vh);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.gep-filter-redesign .gep-filter-item.open .gep-dropdown-panel {
    display: block;
}

.gep-filter-redesign .gep-search-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gep-filter-redesign .gep-search-input:focus {
    outline: none;
    border-color: var(--gep-f-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 138, 91, 0.15);
}

.gep-filter-redesign .gep-list {
    max-height: 200px;
    overflow-y: auto;
}

.gep-filter-redesign .gep-filter-option {
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--gep-filter-text);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.gep-filter-redesign .gep-filter-option:hover {
    background: linear-gradient(90deg, #e8f6ed, #f0f9f3);
    color: var(--gep-f-primary-dark);
}

/* ========== Checkbox multi-select filter UI ========== */
.gep-filter-checkbox-ui .gep-filter-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.gep-filter-checkbox-ui .gep-filter-section {
    padding-bottom: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gep-filter-border);
}

.gep-filter-checkbox-ui .gep-filter-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gep-filter-checkbox-ui .gep-filter-section-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gep-filter-text);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.gep-filter-checkbox-ui .gep-filter-search-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.875rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gep-filter-checkbox-ui .gep-filter-search-input::placeholder {
    color: #7a8c84;
}

.gep-filter-checkbox-ui .gep-filter-search-input:focus {
    outline: none;
    border-color: var(--gep-f-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 138, 91, 0.15);
}

.gep-filter-checkbox-ui .gep-filter-checkbox-list {
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gep-filter-checkbox-ui .gep-filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 0.875rem;
    color: var(--gep-filter-text);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.gep-filter-checkbox-ui .gep-filter-checkbox-item:hover {
    background: #f0f9f3;
    color: var(--gep-f-primary-dark);
}

.gep-filter-checkbox-ui .gep-filter-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gep-f-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.gep-filter-checkbox-ui .gep-filter-checkbox-item span {
    flex: 1;
}

.gep-filter-checkbox-ui .gep-filter-no-options {
    margin: 0;
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--gep-filter-label);
}

.gep-filter-checkbox-ui .gep-filter-actions {
    padding: 18px 20px 20px;
    margin-top: 4px;
    border-top: 1px solid var(--gep-filter-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gep-filter-checkbox-ui .gep-filter-apply-btn {
    margin-top: 0;
    padding: 0 16px;
    font-size: 1rem;
    flex: 1;
    min-width: 80px;
    height: 46px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Clear button – same height as Apply, secondary outline style */
.gep-filter-clear-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 600;
    height: 46px;
    box-sizing: border-box;
    color: var(--gep-f-primary, #2d8a5b);
    background: transparent;
    border: 2px solid var(--gep-f-primary, #2d8a5b);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 80px;
}

.gep-filter-clear-link:hover {
    color: #fff;
    background: var(--gep-f-primary, #2d8a5b);
    border-color: var(--gep-f-primary, #2d8a5b);
}

.gep-filter-clear-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 138, 91, 0.3);
}

/* ========== HSR page sidebar: search bar + report titles (checkboxes) ========== */
.gep-filter-sidebar-hsr .gep-filter-section-search {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gep-filter-border);
}

.gep-filter-sidebar-hsr .gep-filter-section-search .gep-filter-section-label {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--gep-filter-text);
}

.gep-filter-sidebar-hsr .gep-hsr-search-bar {
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid var(--gep-filter-border);
    border-radius: var(--gep-filter-radius-sm);
}

.gep-filter-sidebar-hsr .gep-hsr-search-bar:focus {
    border-color: var(--gep-f-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 138, 91, 0.18);
}

.gep-filter-sidebar-hsr .gep-filter-section-reports .gep-filter-section-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gep-filter-text);
}

.gep-filter-sidebar-hsr .gep-filter-checkbox-list.gep-hsr-report-list {
    max-height: 320px;
}

.gep-filter-apply-hint {
    font-size: 0.8125rem;
    color: var(--gep-filter-label);
    margin: 8px 0 0;
    padding: 0;
}