.eq-page,
.home-eq-section {
    --eq-navy: #10243d;
    --eq-blue: #2979ed;
    --eq-gold: #f4b51f;
    --eq-green: #16a36a;
    --eq-red: #df3c3c;
    --eq-orange: #d98212;
    --eq-text: #101828;
    --eq-muted: #6b778c;
    --eq-border: #e1e7f0;
    --eq-bg: #f5f8fc;
    --eq-card: #ffffff;
    width: 100%;
}

.eq-page * ,
.home-eq-section * {
    box-sizing: border-box;
}

.eq-page {
    padding-bottom: 40px;
}

.eq-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.eq-eyebrow,
.home-eq-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #d99000;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.eq-page-heading h1 {
    margin: 0;
    color: var(--eq-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.eq-page-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--eq-muted);
    font-size: 14px;
    line-height: 1.6;
}

.eq-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cdebdc;
    border-radius: 999px;
    color: #08794b;
    background: #ecfbf4;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.eq-source-badge::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17b777;
    box-shadow: 0 0 0 5px rgba(23, 183, 119, 0.12);
    content: "";
}

.eq-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.eq-summary-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--eq-border);
    border-radius: 16px;
    background: var(--eq-card);
    box-shadow: 0 10px 28px rgba(16, 36, 61, 0.05);
}

.eq-summary-card span {
    display: block;
    color: var(--eq-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.eq-summary-card strong {
    display: block;
    margin-top: 8px;
    color: var(--eq-text);
    font-size: 27px;
    line-height: 1;
    letter-spacing: -1px;
}

.eq-card {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--eq-border);
    border-radius: 17px;
    background: var(--eq-card);
    box-shadow: 0 10px 28px rgba(16, 36, 61, 0.05);
}

.eq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.eq-card-header h2 {
    margin: 0;
    color: var(--eq-text);
    font-size: 18px;
    letter-spacing: -0.4px;
}

.eq-card-header span {
    color: var(--eq-muted);
    font-size: 12px;
    font-weight: 700;
}

.eq-status-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
    color: var(--eq-muted);
    font-size: 12px;
    font-weight: 700;
}

.eq-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) 1fr 1fr auto;
    gap: 10px;
}

.eq-control {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--eq-border);
    border-radius: 11px;
    outline: none;
    color: var(--eq-text);
    background: #ffffff;
    font: inherit;
}

.eq-control:focus {
    border-color: var(--eq-blue);
    box-shadow: 0 0 0 4px rgba(41, 121, 237, 0.1);
}

.eq-button {
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: var(--eq-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.eq-button:hover {
    background: #1464d7;
}

.eq-button.is-active {
    background: var(--eq-green);
}

.eq-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    gap: 16px;
    align-items: start;
}

#earthquake-map {
    width: 100%;
    height: 560px;
    border: 1px solid var(--eq-border);
    border-radius: 13px;
    background: #eaf0f7;
    overflow: hidden;
}

.eq-list {
    display: grid;
    gap: 9px;
    max-height: 560px;
    overflow: auto;
    padding-right: 3px;
}

.eq-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--eq-border);
    border-radius: 12px;
    background: #ffffff;
}

.eq-item:hover {
    border-color: #c5d2e3;
    background: #fbfdff;
}

.eq-mag {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.eq-mag-low {
    background: var(--eq-green);
}

.eq-mag-medium {
    background: var(--eq-orange);
}

.eq-mag-high {
    background: var(--eq-red);
}

.eq-location {
    min-width: 0;
}

.eq-location strong {
    display: block;
    overflow: hidden;
    color: var(--eq-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eq-location span,
.eq-detail span {
    display: block;
    margin-top: 4px;
    color: var(--eq-muted);
    font-size: 10px;
}

.eq-detail {
    min-width: 0;
    text-align: right;
}

.eq-detail strong {
    display: block;
    color: var(--eq-text);
    font-size: 12px;
}

.eq-item .eq-detail:nth-last-child(2),
.eq-item .eq-detail:nth-last-child(1) {
    display: none;
}

.eq-loading,
.eq-empty,
.eq-error {
    padding: 30px 15px;
    border: 1px dashed var(--eq-border);
    border-radius: 12px;
    color: var(--eq-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.eq-error {
    border-color: #f1cccc;
    color: #b82c2c;
    background: #fff5f5;
}

.eq-notice {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #f0dcac;
    border-radius: 13px;
    color: #765000;
    background: #fffaf0;
    font-size: 12px;
    line-height: 1.55;
}

.eq-source-note {
    margin: 12px 2px 0;
    color: var(--eq-muted);
    font-size: 11px;
    line-height: 1.6;
}

.eq-source-note a {
    color: var(--eq-blue);
    font-weight: 800;
}

.leaflet-container {
    font-family: inherit;
    z-index: 1;
}

.home-eq-section {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--eq-border);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 36, 61, 0.05);
}

.home-eq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.home-eq-header h2 {
    margin: 0;
    color: var(--eq-text);
    font-size: 18px;
    letter-spacing: -0.4px;
}

.home-eq-all {
    color: var(--eq-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.home-eq-all:hover {
    color: var(--eq-blue);
}

.home-eq-content {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 15px;
}

.home-eq-latest {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 164px;
    padding: 18px;
    border-radius: 14px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 255, 255, 0.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #11263f,
            #245798
        );
}

.home-eq-latest-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.home-eq-latest-mag {
    display: block;
    margin: 9px 0 7px;
    font-size: 39px;
    line-height: 1;
    letter-spacing: -2px;
}

.home-eq-latest-location {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-eq-latest-time {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

.home-eq-list {
    display: grid;
    gap: 8px;
}

.home-eq-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    padding: 7px 10px;
    border: 1px solid var(--eq-border);
    border-radius: 11px;
}

.home-eq-row-mag {
    display: grid;
    place-items: center;
    width: 35px;
    height: 32px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--eq-green);
    font-size: 12px;
    font-weight: 900;
}

.home-eq-row-mag.medium {
    background: var(--eq-orange);
}

.home-eq-row-mag.high {
    background: var(--eq-red);
}

.home-eq-row-main {
    min-width: 0;
}

.home-eq-row-main strong {
    display: block;
    overflow: hidden;
    color: var(--eq-text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-eq-row-main span,
.home-eq-row-time {
    color: var(--eq-muted);
    font-size: 9px;
}

.home-eq-message {
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--eq-muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1100px) {
    .eq-main-grid {
        grid-template-columns: 1fr;
    }

    #earthquake-map {
        height: 430px;
    }

    .eq-list {
        max-height: none;
    }
}

@media (max-width: 850px) {
    .eq-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .eq-filters {
        grid-template-columns: 1fr 1fr;
    }

    .home-eq-content {
        grid-template-columns: 1fr;
    }

    .home-eq-latest {
        min-height: 140px;
    }
}

@media (max-width: 620px) {
    .eq-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .eq-source-badge {
        min-height: 34px;
    }

    .eq-summary-grid {
        gap: 9px;
    }

    .eq-summary-card {
        padding: 14px;
    }

    .eq-summary-card strong {
        font-size: 22px;
    }

    .eq-card {
        padding: 14px;
    }

    .eq-filters {
        grid-template-columns: 1fr;
    }

    #earthquake-map {
        height: 340px;
    }

    .eq-item {
        grid-template-columns: 51px minmax(0, 1fr);
    }

    .eq-item .eq-detail {
        display: none;
    }

    .home-eq-section {
        padding: 14px;
    }

    .home-eq-header {
        align-items: flex-start;
    }

    .home-eq-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .home-eq-row-time {
        display: none;
    }
}

/* GETPERA EQ VISUAL PATCH START */

.eq-nav-link .eq-nav-seismic,
.eq-nav-seismic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.eq-nav-seismic path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section,
.theme-dark .home-eq-section {
    --eq-text: #f5f7fb;
    --eq-muted: #9cabc0;
    --eq-border: #2a3b53;
    --eq-card: #111f31;

    color: #f5f7fb !important;
    background: #111f31 !important;
    border-color: #2a3b53 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section .home-eq-row,
.theme-dark .home-eq-section .home-eq-row {
    background: #132338 !important;
    border-color: #2a3b53 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section h2,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section strong,
.theme-dark .home-eq-section h2,
.theme-dark .home-eq-section strong {
    color: #f5f7fb !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section .home-eq-all,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section .home-eq-row-main span,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .home-eq-section .home-eq-row-time,
.theme-dark .home-eq-section .home-eq-all,
.theme-dark .home-eq-section .home-eq-row-main span,
.theme-dark .home-eq-section .home-eq-row-time {
    color: #9cabc0 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page,
.theme-dark .eq-page {
    --eq-text: #f5f7fb;
    --eq-muted: #9cabc0;
    --eq-border: #2a3b53;
    --eq-card: #111f31;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-card,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-summary-card,
.theme-dark .eq-page .eq-card,
.theme-dark .eq-page .eq-summary-card {
    color: #f5f7fb !important;
    background: #111f31 !important;
    border-color: #2a3b53 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-item,
.theme-dark .eq-page .eq-item {
    background: #132338 !important;
    border-color: #2a3b53 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-control,
.theme-dark .eq-page .eq-control {
    color: #f5f7fb !important;
    background: #132338 !important;
    border-color: #334762 !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page h1,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page h2,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page strong,
.theme-dark .eq-page h1,
.theme-dark .eq-page h2,
.theme-dark .eq-page strong {
    color: #f5f7fb !important;
}

:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page p,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-card-header span,
:is(
    html.dark,
    html.dark-mode,
    html[data-theme="dark"],
    body.dark,
    body.dark-mode,
    body.dark-theme,
    body[data-theme="dark"]
) .eq-page .eq-location span,
.theme-dark .eq-page p,
.theme-dark .eq-page .eq-card-header span,
.theme-dark .eq-page .eq-location span {
    color: #9cabc0 !important;
}

/* GETPERA EQ VISUAL PATCH END */

