/* =============================================================================
   HT Badge System
   Migrated from WP Admin custom CSS (2026-06-16). VCS is now canonical.
   Enqueue: globally (content across any page type may use .badge classes).
   NOTE: This .badge system is SEPARATE from .ht-badge / .ht-grade-badge-*
   in ht-search.css (trek cards). Both coexist. No class collision.
   ============================================================================= */

/* ── Base pill ────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Karla', Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
    background: linear-gradient(135deg, #01A347 0%, #013C1A 100%);
    color: #ffffff;
    border: none;
}

/* Size variants */
.badge--sm {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 9px;
}

.badge--lg {
    font-size: 13px;
    padding: 5px 13px;
    border-radius: 14px;
}

.badge--xl {
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 16px;
    letter-spacing: 0.06em;
}

/* Colour variants */
.badge--amber {
    background: linear-gradient(135deg, #DCA134 0%, #b26a00 100%);
    color: #ffffff;
}

.badge--slate {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #ffffff;
}

.badge--outline {
    background: transparent;
    border: 1.5px solid #01A347;
    color: #01A347;
}

.badge--outline-dark {
    background: transparent;
    border: 1.5px solid #013C1A;
    color: #013C1A;
}

.badge--muted {
    background: #E8F5EE;
    color: #013C1A;
}

/* Day badge — itinerary use */
.badge--day {
    background: #013C1A;
    color: #ffffff;
    border-radius: 4px;
    font-size: 10.5px;
    padding: 3px 8px;
    letter-spacing: 0.06em;
    min-width: 36px;
    text-align: center;
}

/* ── Badge cloud (flex row of badges) ────────────────────────────────────── */
.badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.badge-cloud--xl {
    gap: 8px;
}

.badge-cloud--xl .badge {
    font-size: 13px;
    padding: 5px 13px;
    border-radius: 14px;
}

/* ── Heading with badge inline ────────────────────────────────────────────── */
.heading-with-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.heading-with-badge > h1,
.heading-with-badge > h2,
.heading-with-badge > h3,
.heading-with-badge > h4 {
    margin: 0;
}
