/* ============================================================
   Region Pages — region.css
   Covers: index (/region) and show (/region/{slug}[/{country}])
   Stack: Bootstrap 4 + custom CSS (no Tailwind)
   Accent: #e5633f  Red hover: #dc3545  Text: #333/#666
   ============================================================ */

/* ----------------------------------------------------------
   Navigation wrapper (full-width band above main content)
   ---------------------------------------------------------- */
.region-full-width-nav {
    margin-bottom: 0;
    border-top: 1px solid #e8e8e8;
}

.region-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
}

/* ----------------------------------------------------------
   Region index pills  (used on /region index page)
   ---------------------------------------------------------- */
.region-pills {
    text-align: center;
}

.region-pill-item {
    background: #f1f1f1;
    padding: 8px 16px;
    color: #444;
    margin: 3px 4px;
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.region-pill-item:hover,
.region-pill-item:focus {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    text-decoration: none;
}

/* ----------------------------------------------------------
   Region siblings bar  (used on /region/{slug} show page)
   ---------------------------------------------------------- */
.region-siblings {
    text-align: center;
}

.region-siblings-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.region-sibling-item {
    background: #f1f1f1;
    padding: 8px 16px;
    color: #444;
    margin: 3px 4px;
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.region-sibling-item:hover,
.region-sibling-item:focus {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    text-decoration: none;
}

.region-sibling-item.active {
    background: #e5633f;
    border-color: #e5633f;
    color: #fff;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Index page — section layout
   ---------------------------------------------------------- */
.regions-index-container {
    max-width: 100%;
}

.regions-section {
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
}

/* Section heading — left accent bar, no orange underline */
.regions-section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
    letter-spacing: -0.01em;
}

.regions-section-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.18s ease;
}

.regions-section-title a:hover {
    color: #e5633f;
}

/* ----------------------------------------------------------
   Index page — article card (image left + text right)
   ---------------------------------------------------------- */
.region-articles {
    margin-bottom: 1.25rem;
}

.region-article-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.region-article-item:last-child {
    border-bottom: none;
}

/* Thumbnail */
.region-article-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 3px;
    background: #f5f5f5;
}

.region-article-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Text block */
.region-article-body {
    flex: 1 1 auto;
    min-width: 0;
}

.region-article-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
}

.region-article-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.18s ease;
}

.region-article-title a:hover {
    color: #e5633f;
}

.region-article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;

    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row reuses existing layout_item_meta styles — no override needed */

/* ----------------------------------------------------------
   Index page — "View all" text link with arrow
   ---------------------------------------------------------- */
.region-view-all {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: #e5633f;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.region-view-all:hover {
    color: #dc3545;
    text-decoration: none;
}

.region-view-all::after {
    content: ' →';
    font-weight: 400;
}

/* ----------------------------------------------------------
   Show page — breadcrumb
   ---------------------------------------------------------- */
.region-show-container {
    max-width: 100%;
}

.region-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.region-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.18s ease;
}

.region-breadcrumb a:hover {
    color: #e5633f;
}

.region-breadcrumb-separator {
    color: #bbb;
    font-size: 14px;
}

.region-breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Show page — content area
   ---------------------------------------------------------- */
.region-show-content {
    margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   Mobile breakpoints
   ---------------------------------------------------------- */
@media (max-width: 991px) {
    .region-article-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .region-article-thumb img {
        width: 64px;
        height: 64px;
    }

    .region-article-title {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .region-nav-container {
        padding: 10px 15px;
    }

    .region-pill-item,
    .region-sibling-item {
        padding: 6px 12px;
        font-size: 12px;
        margin: 2px 3px;
    }

    .regions-section-title {
        font-size: 15px;
        margin-bottom: 1rem;
    }

    .region-article-item {
        gap: 10px;
    }

    .region-article-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    .region-article-thumb img {
        width: 56px;
        height: 56px;
    }

    .region-article-title {
        font-size: 13px;
    }

    .region-article-excerpt {
        font-size: 12px;
    }

    .region-breadcrumb {
        font-size: 12px;
        gap: 4px;
        margin-bottom: 1rem;
    }

    .region-siblings-label {
        font-size: 10px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .region-article-thumb {
        display: none;
    }

    .regions-section {
        margin-bottom: 2rem;
    }

    .regions-section-title {
        font-size: 14px;
    }
}
