/**
 * Robnety Pakalpojumi — Elementor widgets
 * Clean square corporate UI.
 */

.robnety-services-grid-wrap,
.robnety-sidebar-widget {
    --rby-primary: var(--robnety-widget-accent, #006da8);
    --rby-primary-dark: #07547d;
    --rby-navy: #24334b;
    --rby-text: #24334b;
    --rby-muted: #667085;
    --rby-soft: #f8fafc;
    --rby-border: #d9e2ea;
    --rby-border-strong: #c7d3dd;
    --rby-surface: var(--robnety-widget-bg, #fff);
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif !important;
    font-synthesis: none;
}

.robnety-services-grid-wrap *,
.robnety-sidebar-widget * {
    box-sizing: border-box;
    border-radius: 0 !important;
    font-family: "Roboto", Arial, sans-serif !important;
    font-synthesis: none;
}

.robnety-services-grid-wrap button,
.robnety-services-grid-wrap input,
.robnety-services-grid-wrap select,
.robnety-services-grid-wrap textarea,
.robnety-sidebar-widget button,
.robnety-sidebar-widget input,
.robnety-sidebar-widget select,
.robnety-sidebar-widget textarea {
    font-family: "Roboto", Arial, sans-serif !important;
}

.robnety-services-grid-wrap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ───────────────────────── Toolbar */
.rsg-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 22px;
    padding: 20px 22px;
    border: 1px solid var(--rby-border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 55, 80, .045);
}

.rsg-toolbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: nowrap;
}

.rsg-toolbar-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 44px;
    margin-left: auto;
    white-space: nowrap;
}

.rsg-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    width: auto;
    min-width: 240px;
    max-width: 380px;
    height: 44px;
    margin: 0;
}

.rsg-search > .dashicons {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: #7a8798;
    font-size: 18px;
    line-height: 18px;
    pointer-events: none;
}

.rsg-search-input,
.rsg-sort-select {
    height: 44px;
    min-height: 44px;
    margin: 0 !important;
    border: 1px solid var(--rby-border-strong) !important;
    background: #fff !important;
    color: var(--rby-text) !important;
    font: inherit;
    line-height: normal;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rsg-search-input {
    width: 100%;
    padding: 9px 13px 9px 40px !important;
}

.rsg-sort {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    margin: 0;
    flex: 0 0 auto;
    color: var(--rby-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.rsg-sort > span {
    display: inline-flex;
    align-items: center;
    height: 44px;
    margin: 0;
}

.rsg-sort-select {
    min-width: 220px;
    padding: 8px 36px 8px 12px !important;
}

.rsg-search-input:hover,
.rsg-sort-select:hover {
    border-color: #aebdca !important;
    background: #fbfcfd !important;
}

.rsg-search-input:focus,
.rsg-sort-select:focus {
    border-color: var(--rby-primary) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 109, 168, .10) !important;
}

.rsg-result-count {
    display: inline-flex;
    align-items: center;
    height: 44px;
    margin: 0;
    color: var(--rby-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.rsg-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--rby-border-strong);
    background: #f7f9fb;
    color: var(--rby-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.rsg-clear-filters[hidden] {
    display: none !important;
}

.rsg-clear-filters::before {
    content: '×';
    margin-right: 7px;
    color: var(--rby-muted);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.rsg-clear-filters:hover {
    border-color: var(--rby-primary);
    background: #eef6fa;
    color: var(--rby-primary-dark);
}

.rsg-clear-filters:hover::before {
    color: var(--rby-primary);
}

.rsg-clear-filters:focus-visible,
.rsg-filter-btn:focus-visible {
    outline: 3px solid rgba(0, 109, 168, .16);
    outline-offset: 2px;
}

/* ───────────────────────── Category filter bar */
.rsg-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 0;
}

/* If a Sidebar widget controls this Grid, do not show a second category row. */
.robnety-services-grid-wrap.has-linked-sidebar .rsg-filter-bar {
    display: none !important;
}

.rsg-filter-btn {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--rby-border-strong);
    background: #fff;
    color: var(--rby-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.rsg-filter-btn:hover {
    border-color: var(--rby-primary);
    color: var(--rby-primary-dark);
}

.rsg-filter-btn.is-active {
    border-color: var(--rby-primary);
    background: var(--rby-primary);
    color: #fff;
}

/* ───────────────────────── Grid */
.robnety-services-grid {
    display: grid;
    grid-template-columns: repeat(var(--rsg-cols, 3), minmax(0, 1fr));
    width: 100%;
    gap: 26px;
}

.robnety-services-grid-wrap.equal-height .robnety-services-grid {
    align-items: stretch;
}

.robnety-services-grid-wrap.equal-height .rsg-card,
.robnety-services-grid-wrap.equal-height .rsg-card-body {
    height: 100%;
}

.rsg-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rby-border);
    background: var(--rby-surface);
    box-shadow: 0 5px 18px rgba(35,55,80,.045);
    transition: box-shadow .2s ease, border-color .2s ease, opacity .18s ease;
}

.rsg-card:hover {
    border-color: #b7c8d4;
    box-shadow: 0 8px 22px rgba(35,55,80,.07);
}

.rsg-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

/* Image */
.rsg-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--rby-border);
    background: #fff;
}

.rsg-image-wrap img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    transition: opacity .2s ease;
}

.rsg-card:hover .rsg-image-wrap img {
    opacity: .94;
}

.rsg-image-wrap.no-image,
.rsg-horiz-image-wrap.no-image {
    background: linear-gradient(135deg, #f4f8fa, #eaf1f5);
}

.rsg-fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid #d5e3eb;
    background: rgba(255,255,255,.88);
    color: var(--rby-primary);
    transform: translate(-50%, -50%);
}

.rsg-fallback-icon .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 30px;
}

/* Shared card content */
.rsg-category-badge {
    align-self: flex-start;
    display: inline-flex;
    margin-bottom: 11px;
    padding: 5px 8px;
    border-left: 3px solid var(--rby-primary);
    background: #f1f6f9;
    color: var(--rby-primary-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.rsg-title {
    margin: 0 0 9px;
    color: var(--rby-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
}

.rsg-title a {
    color: inherit;
    text-decoration: none;
}

.rsg-title a:hover {
    color: var(--rby-primary);
}

.rsg-excerpt {
    margin: 0 0 16px;
    color: var(--rby-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rsg-meta {
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 2px;
    color: #526075;
}

.rsg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.rsg-meta-item .dashicons {
    width: 15px;
    height: 15px;
    color: var(--rby-primary);
    font-size: 15px;
    line-height: 15px;
}

.rsg-price {
    color: var(--rby-text);
    font-weight: 800;
}

.rsg-cta-wrap {
    display: flex;
    margin-top: auto;
    padding-top: 18px;
}

.robnety-services-grid-wrap[data-cta-align="flex-start"] .rsg-cta-wrap { justify-content: flex-start; }
.robnety-services-grid-wrap[data-cta-align="center"] .rsg-cta-wrap { justify-content: center; }
.robnety-services-grid-wrap[data-cta-align="flex-end"] .rsg-cta-wrap { justify-content: flex-end; }
.robnety-services-grid-wrap[data-cta-align="stretch"] .rsg-cta-btn { width: 100%; justify-content: center; }

.rsg-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid var(--rby-primary-dark);
    background: transparent;
    color: var(--rby-primary-dark) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rsg-cta-btn::after {
    content: '→';
    margin-left: 8px;
    transition: transform .18s ease;
}

.rsg-cta-btn:hover {
    border-color: var(--rby-primary);
    background: var(--rby-primary);
    color: #fff !important;
    box-shadow: none;
}

.rsg-cta-btn:hover::after {
    transform: translateX(3px);
}

/* Minimal style */
.rsg-card-style-minimal {
    border-top: 3px solid var(--rby-primary);
    box-shadow: none;
}

.rsg-card-style-minimal:hover {
    box-shadow: 0 10px 26px rgba(35,55,80,.08);
}

.rsg-card-style-minimal .rsg-card-body {
    padding: 26px 24px;
}

/* Icon style */
.rsg-card-style-icon {
    border-top: 3px solid var(--rby-primary);
}

.rsg-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 24px 22px 0;
    border: 1px solid #d7e6ee;
    background: #eef7fb;
    color: var(--rby-primary);
}

.rsg-icon-wrap .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 30px;
}

.rsg-card-style-icon .rsg-card-body {
    padding-top: 18px;
}

/* Horizontal style */
.rsg-card-style-horizontal {
    display: grid;
    grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
}

.rsg-horiz-image-wrap {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-right: 1px solid var(--rby-border);
    background: #fff;
}

.rsg-horiz-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    transition: opacity .2s ease;
}

.rsg-card-style-horizontal:hover .rsg-horiz-image-wrap img {
    transform: scale(1.025);
}

.rsg-card-style-horizontal .rsg-card-body {
    justify-content: center;
    padding: 24px 26px;
}

/* Overlay style */
.rsg-card-style-overlay {
    min-height: 390px;
    border: 1px solid #17344c;
    background: #17344c;
}

.rsg-overlay-link {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 390px;
    overflow: hidden;
}

.rsg-overlay-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #31516a, #17334c);
    background-position: center;
    background-size: cover;
    transition: transform .35s ease;
}

.rsg-overlay-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,26,41,.03) 24%, rgba(9,26,41,.92) 100%);
}

.rsg-card-style-overlay:hover .rsg-overlay-bg {
    transform: scale(1.035);
}

.rsg-overlay-stretched-link {
    position: absolute;
    z-index: 2;
    inset: 0;
}

.rsg-overlay-content {
    position: relative;
    z-index: 3;
    align-self: flex-end;
    width: 100%;
    padding: 28px;
    pointer-events: none;
}

.rsg-overlay-content .rsg-title,
.rsg-overlay-content .rsg-title a,
.rsg-overlay-content .rsg-excerpt,
.rsg-overlay-content .rsg-meta,
.rsg-overlay-content .rsg-price {
    color: #fff;
}

.rsg-overlay-content .rsg-category-badge {
    border-left-color: #fff;
    background: rgba(255,255,255,.14);
    color: #fff;
    backdrop-filter: blur(6px);
}

.rsg-overlay-content .rsg-meta-item .dashicons {
    color: #6ed0f1;
}

.rsg-overlay-content .rsg-cta-btn {
    position: relative;
    z-index: 4;
    border-color: #fff;
    background: #fff;
    color: var(--rby-primary-dark) !important;
    pointer-events: auto;
}

.rsg-overlay-content .rsg-cta-btn:hover {
    border-color: #eef7fb;
    background: #eef7fb;
}

/* Filtering animation */
.rsg-card.rsg-hiding {
    opacity: 0;
    pointer-events: none;
}

.robnety-services-grid-wrap[data-animation="slide"] .rsg-card.rsg-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.rsg-card.rsg-hidden {
    display: none !important;
}

.rsg-no-results,
.rsg-filter-empty {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--rby-border);
    background: var(--rby-soft);
    color: var(--rby-muted);
}

/* ───────────────────────── Sidebar filter */
.robnety-sidebar-widget {
    overflow: visible;
    border: var(--robnety-widget-border, 1px solid var(--rby-border));
    background: #fff;
    box-shadow: 0 8px 24px rgba(35,55,80,.045);
}

.robnety-sidebar-panel {
    overflow: hidden;
}

.robnety-sidebar-header {
    padding: 18px 20px;
    background: #fff;
}

.robnety-sidebar-header.has-divider {
    border-bottom: 1px solid var(--rby-border);
}

.robnety-sidebar-title {
    margin: 0;
    color: var(--rby-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.robnety-sidebar-body {
    padding: var(--robnety-widget-padding, 16px 20px 18px);
    background: #fff;
}

.robnety-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.robnety-sidebar-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.robnety-sidebar-widget.has-item-dividers .robnety-sidebar-item {
    border-bottom: 1px solid var(--rby-border);
}

.robnety-sidebar-widget.has-item-dividers .robnety-sidebar-item:last-child {
    border-bottom: 0;
}

.robnety-sidebar-label,
.robnety-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    color: var(--rby-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease;
}

.robnety-sidebar-label:hover,
.robnety-sidebar-link:hover {
    color: var(--rby-primary);
}

.robnety-sidebar-input {
    flex: 0 0 auto;
    accent-color: var(--rby-primary);
    cursor: pointer;
}

.robnety-sidebar-label-text {
    min-width: 0;
    flex: 1;
    line-height: 1.35;
}

.robnety-sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border: 1px solid #e1e7ec;
    background: #f3f5f7;
    color: #667285;
    font-size: 11px;
    font-weight: 700;
}

.robnety-sidebar-item.is-active .robnety-sidebar-label,
.robnety-sidebar-item.is-active .robnety-sidebar-link {
    color: var(--rby-primary-dark);
    font-weight: 800;
}

.robnety-sidebar-thumb {
    width: 52px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--rby-border);
    object-fit: cover;
}

.robnety-sidebar-price {
    margin-left: 4px;
    color: var(--rby-muted);
    font-size: 12px;
}

.robnety-sidebar-grid {
    display: grid !important;
    gap: 8px;
}

.robnety-sidebar-grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.robnety-sidebar-grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.robnety-sidebar-grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.robnety-sidebar-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.robnety-sidebar-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--rby-border-strong);
    background: #fff;
    color: var(--rby-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.robnety-sidebar-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.robnety-sidebar-pill:hover {
    border-color: var(--rby-primary);
    color: var(--rby-primary-dark);
}

.robnety-sidebar-pill.is-active {
    border-color: var(--rby-primary);
    background: var(--rby-primary);
    color: #fff;
}

.robnety-sidebar-pill.is-active .robnety-sidebar-count {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.16);
    color: #fff;
}

.robnety-sidebar-archive {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rby-border);
}

.robnety-sidebar-archive-link {
    color: var(--rby-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.robnety-sidebar-archive-link:hover {
    text-decoration: underline;
}

/* Mobile filter drawer */
.robnety-sidebar-mobile-toggle,
.robnety-sidebar-mobile-close {
    display: none;
}

@media (max-width: 900px) {
    .rsg-toolbar {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .rsg-toolbar-main {
        width: 100%;
        flex-wrap: wrap;
    }

    .rsg-toolbar-status {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--rby-border);
    }

    .rsg-search {
        flex: 1 1 280px;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .rsg-toolbar-main,
    .rsg-toolbar-status {
        align-items: stretch;
    }

    .rsg-search,
    .rsg-sort {
        width: 100%;
    }

    .rsg-search {
        min-width: 0;
    }

    .rsg-sort {
        justify-content: space-between;
    }

    .rsg-sort-select {
        flex: 1;
        min-width: 0;
    }

    .rsg-toolbar-status {
        align-items: center;
        flex-wrap: wrap;
    }

    .robnety-services-grid {
        grid-template-columns: repeat(var(--rsg-cols, 1), minmax(0, 1fr));
    }

    .rsg-card-style-horizontal {
        grid-template-columns: 1fr;
    }

    .rsg-horiz-image-wrap {
        min-height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--rby-border);
    }

    .rsg-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .rsg-filter-btn {
        flex: 0 0 auto;
    }

    .robnety-sidebar-widget {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .robnety-sidebar-widget.is-mobile-open::before {
        content: '';
        position: fixed;
        z-index: 99998;
        inset: 0;
        background: rgba(13,31,48,.38);
    }

    .robnety-sidebar-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 42px;
        padding: 9px 16px;
        border: 1px solid var(--rby-primary);
        background: var(--rby-primary);
        color: #fff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    .robnety-sidebar-panel {
        position: fixed;
        z-index: 99999;
        top: 0;
        right: 0;
        width: min(380px, 92vw);
        height: 100dvh;
        overflow-y: auto;
        background: #fff;
        box-shadow: -16px 0 50px rgba(13,31,48,.18);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .22s ease, visibility .22s ease;
    }

    .robnety-sidebar-widget.is-mobile-open .robnety-sidebar-panel {
        transform: translateX(0);
        visibility: visible;
    }

    .robnety-sidebar-mobile-close {
        position: sticky;
        z-index: 5;
        top: 10px;
        float: right;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin: 10px 10px -48px 0;
        border: 1px solid var(--rby-border);
        background: #fff;
        color: var(--rby-text);
        cursor: pointer;
    }

    .robnety-sidebar-header {
        padding-right: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsg-card,
    .rsg-image-wrap img,
    .rsg-horiz-image-wrap img,
    .rsg-cta-btn,
    .rsg-filter-btn,
    .robnety-sidebar-panel,
    .robnety-sidebar-pill {
        transition: none !important;
    }
}

/* ───────────────────────── View switch */
.rsg-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--rby-border-strong);
    background: #fff;
}

.rsg-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-right: 1px solid var(--rby-border-strong);
    background: #fff;
    color: var(--rby-primary);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.rsg-view-btn:last-child {
    border-right: 0;
}

.rsg-view-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.rsg-view-btn:hover,
.rsg-view-btn.is-active {
    background: var(--rby-primary);
    color: #fff;
}

.rsg-view-btn:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(0, 109, 168, .16);
    outline-offset: -3px;
}

/* ───────────────────────── List view */
.robnety-services-grid-wrap.is-view-list .robnety-services-grid {
    grid-template-columns: 1fr;
}

.robnety-services-grid-wrap.is-view-list .rsg-card:not(.rsg-card-style-overlay) {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: stretch;
}

.robnety-services-grid-wrap.is-view-list .rsg-card-style-horizontal {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.robnety-services-grid-wrap.is-view-list .rsg-image-wrap,
.robnety-services-grid-wrap.is-view-list .rsg-horiz-image-wrap {
    aspect-ratio: auto;
    min-height: 100%;
    border-right: 1px solid var(--rby-border);
    border-bottom: 0;
}

.robnety-services-grid-wrap.is-view-list .rsg-image-wrap img,
.robnety-services-grid-wrap.is-view-list .rsg-horiz-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.robnety-services-grid-wrap.is-view-list .rsg-card-body {
    justify-content: center;
}

.robnety-services-grid-wrap.is-view-list .rsg-title {
    font-size: 24px;
}

.robnety-services-grid-wrap.is-view-list .rsg-meta {
    margin-top: 0;
    padding-top: 0;
}

.robnety-services-grid-wrap.is-view-list .rsg-cta-wrap {
    margin-top: 18px;
    padding-top: 0;
}

.robnety-services-grid-wrap.is-view-list .rsg-card-style-overlay {
    min-height: 320px;
}

@media (max-width: 767px) {
    .rsg-view-switch {
        align-self: flex-start;
    }

    .robnety-services-grid-wrap.is-view-list .rsg-card,
    .robnety-services-grid-wrap.is-view-list .rsg-card-style-horizontal {
        grid-template-columns: 1fr;
    }

    .robnety-services-grid-wrap.is-view-list .rsg-image-wrap,
    .robnety-services-grid-wrap.is-view-list .rsg-horiz-image-wrap {
        min-height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--rby-border);
    }
}

/* Roboto text + native Dashicons: keep icon glyphs intact. */
.robnety-services-grid-wrap .dashicons,
.robnety-sidebar-widget .dashicons,
.robnety-services-grid-wrap .dashicons::before,
.robnety-sidebar-widget .dashicons::before {
    font-family: dashicons !important;
    font-weight: 400 !important;
    font-style: normal !important;
    speak: never;
}

/* Slightly larger controls for clearer toolbar and CTA text. */
.rsg-search-input,
.rsg-sort-select,
.rsg-sort,
.rsg-result-count,
.rsg-clear-filters,
.rsg-filter-btn,
.robnety-sidebar-pill,
.rsg-cta-btn {
    font-size: 14px;
}

.rsg-view-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px !important;
    line-height: 20px !important;
}

.rsg-search > .dashicons {
    width: 19px;
    height: 19px;
    margin-top: -9.5px;
    font-size: 19px !important;
    line-height: 19px !important;
}

.rsg-meta-item .dashicons {
    font-size: 15px !important;
}
