/* Certified products: homepage SVG/GeoJSON map + list page */
.cert-products-home-section {
    padding: 72px 0;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.cert-products-home-shell,
.cert-products-list-shell,
.cert-products-detail-shell {
    border: 1px solid rgba(0, 59, 130, .09);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 44, 102, .08);
}

.cert-products-home-shell {
    padding: 34px;
}

.cert-products-home-header,
.cert-products-list-header,
.cert-products-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cert-products-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0c4c9f;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cert-products-title {
    margin: 0;
    color: #0c315f;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.16;
}

.cert-products-description {
    max-width: 820px;
    margin: 10px 0 0;
    color: #687a98;
    font-size: 15px;
    line-height: 1.7;
}

.cert-products-filter-panel {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(0, 59, 130, .08);
    border-radius: 20px;
    background: #fbfdff;
}

.cert-products-filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.cert-products-filter-field { grid-column: span 2; }
.cert-products-filter-field--wide { grid-column: span 3; }
.cert-products-filter-actions {
    grid-column: span 12;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cert-products-label {
    display: block;
    margin-bottom: 7px;
    color: #14325f;
    font-size: 17px;
    font-weight: 800;
}

.cert-products-map-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 59, 130, .10);
    border-radius: 24px;
    background:
            radial-gradient(circle at 18% 16%, rgba(7, 120, 255, .15), transparent 24%),
            radial-gradient(circle at 82% 18%, rgba(0, 59, 130, .12), transparent 25%),
            linear-gradient(180deg, #edf5ff 0%, #dceaf9 100%);
}

.cert-products-map-toolbar {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #123767;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 44, 102, .12);
}

.cert-products-map-toolbar__icon {
    width: 18px;
    height: 18px;
    fill: #0050a8;
}

.cert-products-map-canvas {
    position: relative;
    min-height: 610px;
    padding: 58px 22px 46px;
}

.cert-products-geo-map-host {
    position: relative;
    z-index: 2;
    min-height: 560px;
    border-radius: 18px;
    outline: none;
}

#certifiedProductsMongoliaMap {
    width: 100%;
    min-height: 560px;
}

.cert-products-geo-map {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    overflow: visible;
}

.cert-products-geo-region {
    stroke: #fff;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill .16s ease, stroke .16s ease, stroke-width .16s ease, filter .16s ease;
}

.cert-products-geo-region:hover,
.cert-products-geo-region:focus,
.cert-products-geo-region.is-selected {
    fill: var(--region-hover-fill);
    stroke: #003b82;
    stroke-width: 2;
    filter: drop-shadow(0 10px 18px rgba(0, 44, 102, .20));
}

.cert-products-geo-region.has-no-certified-products {
    opacity: .96;
}

.cert-products-geo-region.has-certified-products {
    opacity: 1;
}

.cert-products-geo-region:focus,
.cert-products-geo-marker:focus {
    outline: none;
}

.cert-products-geo-region:focus-visible,
.cert-products-geo-marker:focus-visible {
    outline: 3px solid rgba(0, 80, 168, .45);
    outline-offset: 4px;
}

.cert-products-home-section.is-map-loading .cert-products-map-card:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .32), rgba(255, 255, 255, .10));
    animation: cert-products-map-shimmer 1.1s ease-in-out infinite;
}
   .cert-products-status-badge {
       display: inline-flex;
       align-items: center;
       gap: 6px;
       padding: 6px 11px;
       border-radius: 999px;
       font-size: 13px;
       font-weight: 700;
       line-height: 1;
       white-space: nowrap;
   }

.cert-products-status-badge i {
    font-size: 15px;
}

.cert-products-status-badge--active {
    color: #157347;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.cert-products-status-badge--inactive {
    color: #b02a37;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

.cert-products-geo-marker {
    cursor: pointer;
}

.cert-products-geo-marker__halo {
    fill: rgba(246, 196, 0, .22);
    stroke: rgba(255, 255, 255, .88);
    stroke-width: 2;
}

.cert-products-geo-marker__pin {
    fill: #f6c400;
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 6px 10px rgba(0, 44, 102, .22));
}

.cert-products-geo-marker__count {
    fill: #073763;
    font-size: 9px;
    font-weight: 900;
    pointer-events: none;
}

.cert-products-map-tooltip {
    position: absolute;
    z-index: 12;
    display: none;
    min-width: 220px;
    max-width: 320px;
    padding: 15px 16px;
    border: 1px solid rgba(0, 59, 130, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    color: #14325f;
    box-shadow: 0 18px 45px rgba(0, 44, 102, .18);
    pointer-events: none;
}

.cert-products-map-tooltip.is-visible {
    display: block;
}

.cert-products-map-tooltip__title {
    margin-bottom: 8px;
    color: #003b82;
    font-size: 15px;
    font-weight: 800;
}

.cert-products-map-tooltip__count {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.cert-products-map-tooltip__heading {
    margin-top: 9px;
    color: #536987;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cert-products-map-tooltip__list {
    margin: 3px 0 0;
    padding: 0;
    list-style: none;
    color: #536987;
    font-size: 12px;
    line-height: 1.55;
}

.cert-products-map-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-top: 1px solid rgba(0, 59, 130, .08);
    background: rgba(255, 255, 255, .88);
    color: #536987;
    font-size: 13px;
}

.cert-products-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.cert-products-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cert-products-map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cert-products-map-legend__color { background: #5B8FF9; }
.cert-products-map-legend__marker { background: #ffb000; }

.cert-products-map-status,
.cert-products-error {
    color: #536987;
    font-size: 13px;
}
.cert-products-error {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #ffd1d1;
    border-radius: 12px;
    background: #fff4f4;
    color: #b42318;
}

.cert-products-map-attribution a {
    color: #536987;
    text-decoration: underline;
}

/* List page */
.cert-products-list-page,
.cert-products-detail-page {
    padding: 132px 0 76px;
    background: #f7fbff;
}

.cert-products-list-shell,
.cert-products-detail-shell { padding: 30px; }

.cert-products-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f3f8ff;
    color: #0c4c9f;
    font-size: 14px;
    font-weight: 700;
}

.cert-products-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(0, 59, 130, .10);
    border-radius: 16px;
    background: #fff;
}
.cert-products-table { margin: 0; min-width: 1080px; }
.cert-products-table th { color: #14325f; white-space: nowrap; }
.cert-products-table td { vertical-align: middle; color: #334c70; }
.cert-products-table tbody tr { cursor: pointer; transition: background-color .14s ease; }
.cert-products-table tbody tr:hover { background: #f7fbff; }
.cert-products-state { padding: 56px 20px; text-align: center; color: #6b7e9e; }
.cert-products-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.cert-products-pagination .btn { min-width: 42px; }
.cert-products-detail-disabled { opacity: .6; cursor: not-allowed; }

.cert-products-loading {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.cert-products-loading:before {
    content: "";
    width: 17px;
    height: 17px;
    border: 2px solid rgba(7, 120, 255, .18);
    border-top-color: #0778ff;
    border-radius: 50%;
    animation: cert-products-spin .75s linear infinite;
}
@keyframes cert-products-spin { to { transform: rotate(360deg); } }
@keyframes cert-products-map-shimmer {
    0% { opacity: .24; transform: translateX(-12%); }
    50% { opacity: .48; }
    100% { opacity: .24; transform: translateX(12%); }
}

.cert-products-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.cert-products-detail-item {
    padding: 14px 16px;
    border: 1px solid rgba(0, 59, 130, .08);
    border-radius: 14px;
    background: #fbfdff;
}
.cert-products-detail-item dt { color: #71829e; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.cert-products-detail-item dd { margin: 5px 0 0; color: #14325f; font-weight: 700; word-break: break-word; }

@media (max-width: 1199px) {
    .cert-products-filter-field { grid-column: span 4; }
    .cert-products-filter-field--wide { grid-column: span 6; }
    .cert-products-map-canvas { min-height: 520px; }
}

@media (max-width: 767px) {
    .cert-products-home-section { padding: 48px 0; }
    .cert-products-home-shell,
    .cert-products-list-shell,
    .cert-products-detail-shell { padding: 18px; border-radius: 18px; }
    .cert-products-home-header,
    .cert-products-list-header,
    .cert-products-detail-header { display: block; }
    .cert-products-filter-field,
    .cert-products-filter-field--wide,
    .cert-products-filter-actions { grid-column: span 12; }
    .cert-products-filter-actions .btn { flex: 1 1 120px; }
    .cert-products-map-canvas { min-height: 340px; }
    .cert-products-geo-map-host,
    #certifiedProductsMongoliaMap { min-height: 320px; }
    .cert-products-map-toolbar { top: 10px; left: 10px; }
    .cert-products-map-footer { align-items: flex-start; flex-direction: column; }
    .cert-products-detail-grid { grid-template-columns: 1fr; }
}
