/* ── Hide default theme archive header on va_listing archive ────── */
.archive.post-type-archive-va_listing > .site-content > header.page-header,
.archive.post-type-archive-va_listing > .site-content > .page-header,
.archive.post-type-archive-va_listing > header.page-header,
.archive.post-type-archive-va_listing .hentry:first-of-type .entry-header,
body.post-type-archive-va_listing .page-header,
body.post-type-archive-va_listing > .site > .site-content > article,
body.post-type-archive-va_listing > .site > .site-content > .page-header {
    display: none !important;
}

/* REA Kit specific: hide default archive content wrapper */
body.post-type-archive-va_listing .wpr-builder-default-content,
body.post-type-archive-va_listing .archive-header,
body.post-type-archive-va_listing .entry-header,
body.post-type-archive-va_listing .entry-meta,
body.post-type-archive-va_listing .entry-content > *:not(.elementor),
body.post-type-archive-va_listing .post-navigation,
body.post-type-archive-va_listing .comments-area,
body.post-type-archive-va_listing .author-box {
    display: none !important;
}

/* ── Badge styling ─────────────────────────────────────────────── */
.va-badge-status,
.va-badge-project {
    position: absolute;
    top: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    z-index: 2;
    text-transform: none;
}

.va-badge-status {
    left: 12px;
}

.va-badge-project {
    right: 12px;
    background: rgba(10, 23, 42, 0.85);
    color: #fff;
}

/* 2.64.13: reikšmės = registro `color` (status-registry.php). Selektorius
   `.va-badge-status` 2026-09-15 nerastas nė viename renderintame DOM'e
   (titulinis, /skelbimai/ — Royal grid'as naudoja `badge_s`), tad tai
   kandidatas trinti; kol yra — laikomas sinchronizuotas. */
.va-badge-status[data-status="parduodama"] {
    background: #0F6E56;
    color: #fff;
}

.va-badge-status[data-status="rezervuota"] {
    background: #854F0B;
    color: #fff;
}

.va-badge-status[data-status="parduota"] {
    background: #b93e3e;
    color: #fff;
}

.va-badge-status[data-status="igyvendintas"] {
    background: #006902;
    color: #fff;
}

.wpr-grid-media-wrap {
    position: relative;
}

/* ── Fixed image height in grid cards ──────────────────────────── */
.wpr-grid-media-wrap {
    position: relative;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    height: auto !important;
}

.wpr-grid-media-wrap img,
.wpr-grid-media-wrap .wpr-grid-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
}

.wpr-grid-image-wrap {
    height: 100% !important;
}

/* ── Card content styling ──────────────────────────────────────── */
.va-card-type-deal {
    font-size: 12px;
    color: #8C97AB;
    margin-bottom: 2px;
    font-style: italic;
}

.va-card-specs {
    font-size: 13px;
    color: #7C879B;
    margin-top: 4px;
}

.va-card-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #0A172A;
    margin-top: 8px;
}

.va-card-price-sqm {
    font-size: 13px;
    font-weight: 400;
    color: #8C97AB;
    margin-left: 6px;
}

/* ── Hide empty filter terms (count = 0) ───────────────────────── */
/* REA Advanced Filters - label elements with (0) count */
.wpr-af-input-wrap:has(.wpr-af-count:empty),
.wpr-af-input-wrap:has(.wpr-af-count:-moz-only-whitespace) {
    display: none !important;
}

/* ── Homepage layout fixes ─────────────────────────────────────── */
/* Remove gap between page-level Elementor containers */
body.home .elementor[data-elementor-type="wp-page"] {
    gap: 0 !important;
}
body.home .elementor[data-elementor-type="wp-page"] > .e-con.e-parent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.home .elementor[data-elementor-type="wp-page"] > .elementor-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Hero slider — remove vertical padding only, keep horizontal for alignment */
body.home .e-con:has(.va-hero-slider) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}
body.home .e-con:has(.va-hero-slider) .elementor-widget-container,
body.home .e-con:has(.va-hero-slider) .elementor-shortcode {
    padding: 0 !important;
    margin: 0 !important;
}

/* Stats section — dark bg, white text */
body.home .e-con:has(.va-company-stats),
body.home .e-con:has(> .e-con-inner > .elementor-widget-shortcode .va-company-stats) {
    background: #272C39 !important;
    padding: 40px 20px !important;
    margin-top: 0 !important;
}
body.home .va-company-stats > div > div:last-child {
    color: #ffffff !important;
}

/* CTA contact section */
body.home .e-con:has(.va-cta-contact) {
    padding: 0 20px 0 20px !important;
}
