 /* =========================================================
   WORLDBEACON — ONLINE REGIONS
   Main page layout, region cards and interactions
   ========================================================= */

/* ---------- 1. PAGE LAYOUT ---------- */

.regions-layout,
.regions-layout * {
    box-sizing: border-box;
}

.regions-layout {
    display: grid;
    grid-template-columns: minmax(190px, 245px) minmax(0, 1fr) minmax(190px, 245px);
    align-items: start;
    gap: 24px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 28px 24px 50px;
    color: #e5e7eb;
}

.regions-main {
    min-width: 0;
    width: 100%;
}

.regions-sidebar {
    min-width: 0;
    width: 100%;
}

.regions-sidebar-left,
.regions-sidebar-right {
    align-self: start;
}

/* ---------- 2. PAGE HEADING ---------- */

.regions-main .page-heading {
    position: relative;
    margin: 0 0 25px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.12), transparent 55%),
        linear-gradient(145deg, #151e2e 0%, #0d1320 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.regions-main .regions-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #67e8f9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.regions-main .regions-eyebrow i {
    font-size: 15px;
}

.regions-main .page-heading h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.regions-main .page-heading h1 > i {
    margin-right: 8px;
    color: #38bdf8;
}

.regions-main .page-heading h1 span {
    color: #38bdf8;
}

.regions-main .page-heading > p {
    max-width: 680px;
    margin: 15px 0 0;
    color: #aab7ca;
    font-size: 14px;
    line-height: 1.8;
}

.regions-main .page-heading > p i {
    margin-right: 6px;
    color: #67e8f9;
}

.regions-main .heading-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.regions-main .heading-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.regions-main .heading-features i {
    color: #38bdf8;
}

/* ---------- 3. LIVE SUMMARY ---------- */

.regions-main .regions-summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
    margin-bottom: 27px;
    padding: 20px 22px;
    background: linear-gradient(120deg, #101c2c, #101722);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.regions-main .summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #67e8f9;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 15px;
    font-size: 23px;
}

.regions-main .summary-indicator {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
    animation: regions-live-pulse 2s ease-in-out infinite;
}

.regions-main .summary-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.regions-main .summary-text strong {
    color: #f8fafc;
    font-size: 27px;
    font-weight: 850;
    line-height: 1.1;
}

.regions-main .summary-text > span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 750;
}

.regions-main .summary-text small {
    color: #8493a8;
    font-size: 11px;
    line-height: 1.5;
}

.regions-main .summary-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}

.regions-main .summary-status i {
    font-size: 8px;
}

@keyframes regions-live-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.02);
    }
}

/* ---------- 4. REGIONS GRID ---------- */

.regions-main .region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-width: 0;
}

/* ---------- 5. REGION CARD ---------- */

.regions-main .region-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    padding: 17px;
    overflow: hidden;
    color: #e5e7eb;
    background: linear-gradient(155deg, #151d2b 0%, #0d131e 100%);
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 19px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.17);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.regions-main .region-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.regions-main .region-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.regions-main .online-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.7px;
}

.regions-main .online-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.regions-main .region-id {
    color: #718096;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
}

/* ---------- 6. REGION IMAGE ---------- */

.regions-main .region-image-wrap {
    position: relative;
    width: 100%;
    height: 205px;
    min-height: 160px;
    overflow: hidden;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;
}

.regions-main .region-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.regions-main .region-card:hover .region-image {
    transform: scale(1.035);
}

.regions-main .region-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    height: 100%;
    min-height: 160px;
    color: #64748b;
    background:
        radial-gradient(circle at center, rgba(56, 189, 248, 0.1), transparent 65%),
        #0b1220;
}

.regions-main .region-image-placeholder span:first-child {
    font-size: 44px;
}

.regions-main .region-image-placeholder span:last-child {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ---------- 7. REGION TITLE AND OWNER ---------- */

.regions-main .region-card > h2 {
    margin: 17px 0 11px;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.regions-main .region-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 17px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.regions-main .region-owner-avatar {
    display: block;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;
}

.regions-main .region-owner > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.regions-main .region-owner a {
    color: #7dd3fc;
    font-weight: 750;
    text-decoration: none;
}

.regions-main .region-owner a:hover {
    color: #bae6fd;
    text-decoration: underline;
}

.regions-main .region-owner strong {
    color: #cbd5e1;
}

/* ---------- 8. ONLINE USERS ---------- */

.regions-main .region-users {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    padding: 13px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 12px;
}

.regions-main .users-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 10px;
    font-size: 16px;
}

.regions-main .region-users > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.regions-main .region-users strong {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.15;
}

.regions-main .region-users > div > span {
    color: #94a3b8;
    font-size: 11px;
}

/* ---------- 9. REGION INFORMATION ---------- */

.regions-main .region-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin-bottom: 17px;
    padding: 4px 12px;
    background: rgba(8, 13, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.regions-main .info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.regions-main .info-row:last-child {
    border-bottom: 0;
}

.regions-main .info-row > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.regions-main .info-row > span i {
    color: #64748b;
}

.regions-main .info-row > strong {
    min-width: 0;
    max-width: 60%;
    color: #dbe4f0;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
    text-align: right;
    overflow-wrap: anywhere;
}

.regions-main .info-row > strong.position-value {
    color: #cbd5e1;
}

/* HG TELEPORT URL */

.regions-main .hg-url-row {
    display: block;
}

.regions-main .hg-url-row > span {
    margin-bottom: 9px;
}

.regions-main .hg-url-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 100%;
    min-width: 0;
}

.regions-main .hg-url-content code {
    display: block;
    width: 100%;
    padding: 10px;
    overflow-wrap: anywhere;
    color: #bae6fd;
    background: #080e19;
    border: 1px solid rgba(56, 189, 248, 0.13);
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: normal;
}

.regions-main .hg-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 9px 12px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.regions-main .hg-copy-button:hover {
    background: rgba(14, 165, 233, 0.19);
    border-color: rgba(56, 189, 248, 0.5);
}

.regions-main .hg-copy-button:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.regions-main .hg-copy-status {
    color: #86efac;
    font-size: 11px;
}

/* ---------- 10. VIEW REGION BUTTON ---------- */

.regions-main .region-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 45px;
    margin-top: auto;
    padding: 12px 14px;
    color: #07111e;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    border: 1px solid rgba(125, 211, 252, 0.65);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.regions-main .region-button > span {
    margin-left: auto;
    font-size: 17px;
}

.regions-main .region-button:hover {
    color: #020617;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.regions-main .region-button:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

/* =========================================================
   11. REACTIONS AND COMMENTS
   Keep the Like and Comments controls visible.
   Only the picker and comments panel use the hidden attribute.
   ========================================================= */

.regions-main .region-card > .region-interactions {
    display: block !important;
    visibility: visible !important;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    margin-top: 17px;
    padding-top: 14px;
    overflow: visible;
    color: #e5e7eb;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

/* Reaction and comments toolbar */

.regions-main .region-interactions .wb-reaction-bar {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Main Like button */

.regions-main .region-interactions .wb-like-main {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 11px;
    color: #cbd5e1;
    background: #172235;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.regions-main .region-interactions .wb-like-main:hover {
    color: #f8fafc;
    background: #22314a;
    border-color: rgba(56, 189, 248, 0.45);
}

.regions-main .region-interactions .wb-like-main.is-reacted {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.36);
}

.regions-main .region-interactions .wb-like-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}

.regions-main .region-interactions .wb-like-label {
    display: inline;
    color: inherit;
}

/* Reaction count */

.regions-main .region-interactions .wb-reaction-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    min-height: 25px;
    padding: 3px 6px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

/* Comments toggle */

.regions-main .region-interactions .wb-comment-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 38px;
    margin-left: auto;
    padding: 8px 10px;
    color: #cbd5e1;
    background: #172235;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.regions-main .region-interactions .wb-comment-toggle:hover,
.regions-main .region-interactions .wb-comment-toggle[aria-expanded="true"] {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.38);
}

.regions-main .region-interactions .wb-comment-toggle > i {
    color: #7dd3fc;
    font-size: 13px;
}

.regions-main .region-interactions .wb-comment-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 2px 5px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Keyboard focus */

.regions-main .region-interactions button:focus-visible,
.regions-main .region-interactions textarea:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

/* Emoji picker */

.regions-main .region-interactions .wb-emoji-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin-top: 11px;
    padding: 10px;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 11px;
}

/* The hidden attribute must always win over display rules. */

.regions-main .region-interactions .wb-emoji-picker[hidden],
.regions-main .region-interactions .wb-comments-panel[hidden],
.regions-main .empty-state[hidden] {
    display: none !important;
}

.regions-main .region-interactions .wb-emoji-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    padding: 0;
    background: #172235;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    font-size: 21px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.regions-main .region-interactions .wb-emoji-option:hover {
    background: #25344c;
    transform: translateY(-2px);
}

.regions-main .region-interactions .wb-emoji-option.is-selected {
    background: rgba(14, 165, 233, 0.16);
    border-color: #38bdf8;
}

/* Comments panel */

.regions-main .region-interactions .wb-comments-panel {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 13px;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
}

.regions-main .region-interactions .wb-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.regions-main .region-interactions .wb-comment-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: 12px;
}

.regions-main .region-interactions .wb-comment-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 70px;
    padding: 11px 12px;
    resize: vertical;
    color: #e2e8f0;
    background: #111b2b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
}

.regions-main .region-interactions .wb-comment-form textarea::placeholder {
    color: #718096;
}

.regions-main .region-interactions .wb-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    gap: 8px;
    min-height: 37px;
    padding: 9px 14px;
    color: #07111e;
    background: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.regions-main .region-interactions .wb-comment-submit:hover {
    filter: brightness(1.12);
}

.regions-main .region-interactions .wb-login-prompt {
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.regions-main .region-interactions .wb-login-prompt a {
    color: #7dd3fc;
    font-weight: 750;
    text-decoration: none;
}

.regions-main .region-interactions .wb-login-prompt a:hover {
    text-decoration: underline;
}

.regions-main .region-interactions .wb-interaction-message {
    margin: 9px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Screen-reader-only labels */

.regions-main .region-interactions .wb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 12. EMPTY STATE ---------- */

.regions-main .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin-top: 5px;
    padding: 35px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(56, 189, 248, 0.08), transparent 70%),
        #101722;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 19px;
}

.regions-main .empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    font-size: 28px;
}

.regions-main .empty-state h2 {
    margin: 0 0 10px;
    color: #f1f5f9;
    font-size: 22px;
    font-weight: 800;
}

.regions-main .empty-state p {
    max-width: 430px;
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- 13. RESPONSIVE LAYOUT ---------- */

@media (min-width: 1600px) {
    .regions-main .region-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1250px) {
    .regions-layout {
        grid-template-columns: minmax(160px, 205px) minmax(0, 1fr);
        gap: 20px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .regions-sidebar-right {
        display: none;
    }

    .regions-main .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }
}

@media (max-width: 900px) {
    .regions-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .regions-sidebar-left,
    .regions-sidebar-right {
        display: none;
    }

    .regions-main .page-heading {
        padding: 25px;
    }

    .regions-main .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .regions-layout {
        gap: 17px;
        padding: 14px 12px 35px;
    }

    .regions-main .page-heading {
        margin-bottom: 17px;
        padding: 21px 17px;
        border-radius: 16px;
    }

    .regions-main .page-heading h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .regions-main .page-heading > p {
        font-size: 13px;
    }

    .regions-main .heading-features {
        gap: 7px;
        margin-top: 17px;
    }

    .regions-main .heading-features span {
        padding: 8px 9px;
        font-size: 10px;
    }

    .regions-main .regions-summary {
        gap: 11px;
        margin-bottom: 19px;
        padding: 15px 13px;
        border-radius: 14px;
    }

    .regions-main .summary-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 19px;
    }

    .regions-main .summary-text strong {
        font-size: 23px;
    }

    .regions-main .summary-text small {
        font-size: 10px;
    }

    .regions-main .summary-status {
        gap: 5px;
        padding: 7px;
        font-size: 9px;
    }

    .regions-main .region-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .regions-main .region-card {
        padding: 14px;
        border-radius: 16px;
    }

    .regions-main .region-image-wrap {
        height: 220px;
    }

    .regions-main .region-card > h2 {
        font-size: 20px;
    }

    .regions-main .region-interactions .wb-reaction-bar {
        gap: 7px;
    }

    .regions-main .region-interactions .wb-like-main {
        padding: 8px 10px;
    }

    .regions-main .region-interactions .wb-comment-toggle {
        margin-left: auto;
        padding: 8px;
    }
}

@media (max-width: 360px) {
    .regions-main .region-card {
        padding: 11px;
    }

    .regions-main .region-interactions .wb-reaction-bar {
        gap: 5px;
    }

    .regions-main .region-interactions .wb-like-main {
        gap: 5px;
        padding: 7px;
        font-size: 11px;
    }

    .regions-main .region-interactions .wb-comment-toggle {
        gap: 5px;
        padding: 7px;
        font-size: 11px;
    }

    .regions-main .region-interactions .wb-reaction-total {
        min-width: 21px;
        padding: 3px 4px;
    }
}

/* ---------- 14. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .regions-main .region-card,
    .regions-main .region-image,
    .regions-main .region-button,
    .regions-main .hg-copy-button,
    .regions-main .wb-like-main,
    .regions-main .wb-comment-toggle,
    .regions-main .wb-emoji-option {
        transition: none;
    }

    .regions-main .summary-indicator {
        animation: none;
    }
}

.regions-main .region-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #080b12;
    border-radius: 13px;
}

.regions-main .region-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Force dark background on the entire Regions page */
html:has(.regions-layout),
body:has(.regions-layout) {
    min-height: 100%;
    background: #080b12 !important;
    color: #e5e7eb;
}

body:has(.regions-layout) {
    margin: 0;
}

.regions-layout {
    background: transparent;
}

.regions-main .region-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .regions-main .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .regions-main .region-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Separate social card below each region card */
.region-social-card {
    display: block !important;
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 12px 0 24px;
    padding: 16px;
    box-sizing: border-box;

    background: #101722;
    border: 1px solid #263448;
    border-radius: 14px;

    color: #e5e7eb;
    opacity: 1;
    visibility: visible;
}

/* Keep the reaction row visible */
.region-social-card .wb-reaction-bar {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    visibility: visible;
    opacity: 1;
}

/* Like and comments controls */
.region-social-card .wb-like-main,
.region-social-card .wb-comment-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;

    color: #e5e7eb;
    background: #1b2738;
    border: 1px solid #34445b;
    border-radius: 10px;

    cursor: pointer;
    visibility: visible;
    opacity: 1;
}

.region-social-card .wb-reaction-total,
.region-social-card .wb-comment-total {
    color: #cbd5e1;
}

/* Emoji picker: remain hidden until the interaction script opens it */
.region-social-card .wb-emoji-picker[hidden],
.region-social-card .wb-comments-panel[hidden] {
    display: none !important;
}

.region-social-card .wb-emoji-picker:not([hidden]) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.region-social-card .wb-emoji-option {
    min-width: 40px;
    min-height: 40px;
    font-size: 21px;
    cursor: pointer;
}

/* Comments panel */
.region-social-card .wb-comments-panel:not([hidden]) {
    display: block !important;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #263448;
}

.region-social-card .wb-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    color: #e5e7eb;
    background: #0b111b;
    border: 1px solid #34445b;
    border-radius: 10px;
    padding: 12px;
}

.region-social-card .wb-interaction-message {
    color: #cbd5e1;
}


/* WorldBeacon comment avatars */
.wb-comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* Keep the avatar and comment content aligned */
.wb-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wb-comment-body {
    flex: 1;
    min-width: 0;
}


/* ========================================
   REGIONS PAGINATION
======================================== */

.region-card[hidden] {
    display: none !important;
}

.regions-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 18px 12px;
}

.regions-pagination[hidden] {
    display: none !important;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.pagination-button,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #111827;
    color: #e5e7eb;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pagination-button:hover:not(:disabled),
.pagination-page:hover:not(:disabled) {
    background: #1e293b;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination-page.is-active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

.pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pagination-page:focus-visible,
.pagination-button:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .regions-pagination {
        gap: 6px;
        padding-inline: 0;
    }

    .pagination-button,
    .pagination-page {
        min-width: 36px;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

