.seo-edge-city-grid {
    width: 100%;
    --seo-edge-border: #e7e7e7;
    --seo-edge-text: #1a1a1a;
    --seo-edge-muted: #6e6e6e;
    --seo-edge-primary: #0b1a3a;
    --seo-edge-accent: #2bb673;
    --seo-edge-card-radius: 12px;
    --seo-edge-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    font-family: "Inter", sans-serif;
}

.seo-edge-city-grid__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.seo-edge-city-grid__count {
    font-size: 13px;
    color: var(--seo-edge-muted);
    flex: 1 1 auto;
    min-width: 0;
}

.seo-edge-city-grid__count strong,
.seo-edge-city-grid__count-label {
    color: var(--seo-edge-text);
    font-weight: 600;
}

.seo-edge-city-grid__search-wrap {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.elementor-widget-seo-edge-city-grid .seo-edge-city-grid__search {
    width: 240px !important;
    height: 36px !important;
    padding: 8px 12px 8px 32px !important;
    border: 1px solid #ededed !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.elementor-widget-seo-edge-city-grid .seo-edge-city-grid__search-wrap::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 13.1l3.7 3.7-1.4 1.4-3.7-3.7a7 7 0 1 1 1.4-1.4zM8.5 14a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11z' fill='%23999999'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.elementor-widget-seo-edge-city-grid .seo-edge-city-grid__search::placeholder {
    color: #b3b3b3 !important;
}

.elementor-widget-seo-edge-city-grid .seo-edge-city-grid__search:focus {
    outline: none !important;
    border-color: #d6d6d6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.seo-edge-city-grid__tabs {
    display: flex;  
    font-size: 16px;
    font-weight: 500;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 22px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.seo-edge-city-grid__tab {
    background: none;
    border: none;
    padding: 10px 48px 14px;
    font-size: 16px;
    font-weight: 400;
    color: #121212CC;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;


}
.seo-edge-city-grid__tab:hover {
    background-color: transparent;
    color: #121212CC;

}
.elementor-editor-active .seo-edge-city-grid__tabs {
    position: relative;
    z-index: 2;
}

.elementor-editor-active .seo-edge-city-grid__tab {
    pointer-events: auto;
}

.seo-edge-city-grid__tab.is-active {
    background-color: transparent;
    color: #091233;
    font-weight: 500;
}

.seo-edge-city-grid__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--seo-edge-primary);
    border-radius: 2px;
}

.seo-edge-city-grid__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.seo-edge-city-card {
    position: relative;
    border-radius: var(--seo-edge-card-radius);
    background: #ffffff;
    border: 1px solid var(--seo-edge-border);
    padding: 18px 18px 16px;
    min-height: 190px;
    box-shadow: var(--seo-edge-shadow);
    display: flex;
    flex-direction: column;
}

.seo-edge-city-card__badge {
    width: 34px;
    height: 28px;
    background: var(--seo-edge-primary);
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.seo-edge-city-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
}

.seo-edge-city-card__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.seo-edge-city-card__title {
    font-family: "Montserrat";
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px;
    color: #000000
}

.seo-edge-city-card__description {
    font-family: "Montserrat";
    font-size: 14px;
    line-height: 1.45;
    color: #121212CC;
    margin: 0 0 14px;
    flex: 1 1 auto;
}

.seo-edge-city-card__cta {
    color: #3BCC42;
    font-size: 14px;
    font-weight: 500;
    font-family: "Montserrat";
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seo-edge-city-card__cta:hover {
    text-decoration: none;
}

.seo-edge-city-card__cta--disabled {
    opacity: 0.6;
    text-decoration: none;
}

.seo-edge-city-grid__pagination {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 18px;
    padding: 6px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-edge-city-grid__pagination:empty {
    display: none;
}

.seo-edge-city-grid__page {
    border: none;
    background: transparent;
    color: #6f6f6f;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.seo-edge-city-grid__page.is-active {
    background: #0b0f1a;
    color: #ffffff;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    justify-content: center;
}

.seo-edge-city-grid__page.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.seo-edge-city-grid__page--nav {
    color: #3b3b3b;
    font-weight: 500;
}

.seo-edge-city-grid__arrow {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.seo-edge-city-grid__arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 4l-6 6 6 6' fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.seo-edge-city-grid__arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 4l6 6-6 6' fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 1200px) {
    .seo-edge-city-grid__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .seo-edge-city-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .seo-edge-city-grid__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .seo-edge-city-grid__search {
        width: 100%;
        height: 30px;
        font-size: 10px;
        padding: 4px 8px 4px 26px;
    }

    .seo-edge-city-grid__count {
        width: 100%;
    }

    .seo-edge-city-grid__items {
        grid-template-columns: 1fr;
    }

    .seo-edge-city-card {
        min-height: 180px;
    }

    .seo-edge-city-grid__pagination {
        padding: 4px 8px;
        gap: 8px;
    }

    .seo-edge-city-grid__page {
        font-size: 12px;
        padding: 4px 6px;
    }

    .seo-edge-city-grid__page.is-active {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
}
