/* Spot Notifications - badge, notice box, card and map markers.
   Loaded only while muvamo_spot_notifications_frontend_enabled() is true.

   The notice takes its border and radius from the site's sidebox language
   (2px #f6d8c1, 15px) over the #fdf4f0 tint the blog and tours boxes already
   use. Border and fill are identical for every notification type on purpose:
   the box belongs to the page, it is not a system warning. Only the icon and
   the title carry the type colour. */

/* Amber badge, the sibling of the existing red .muvamo_button.warning
   (#bc5858) used by the Google closure badge. */
.muvamo_button.small.caution {
    background-color: #b06f22 !important;
    color: #fff !important;
}

/* --- notice: one line of prose ------------------------------------------
   Upright, at the size of .affiliate-note directly below it on the page.
   Heading, text and link all sit in the same flow - no element opens a block
   of its own, and the link is a text link, not a button.

   Border and fill are identical for every type on purpose: the box belongs to
   the page, it is not a system warning. Only the icon and the title carry the
   colour of the notification type. */
.muvamo_spotnotice_box {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    color: #2c2a28;
    margin: 14px 0 !important;
    background-color: #fdf4f0;
    border: 2px solid #f6d8c1;
    border-radius: 15px;
    /* Optically balanced rather than numerically equal: measured on the
       rendered box, the last line sits ~0.5px lower than the first line sits
       high (descenders plus the link underline), so the bottom value is
       trimmed by that much. Gaps to the visible text then match at ~18px. */
    padding: 12px 16px 11px;
}
.muvamo_spotnotice_box + .muvamo_spotnotice_box {
    margin-top: -4px !important;
}
/* Title: bold and upright, in the type colour. */
.muvamo_spotnotice_box strong {
    font-weight: 700;
    font-style: normal;
}

/* Icon and title share the colour of the effective SEVERITY - not of the
   type. A partly_closed with four of five stations open is not the same
   warning as a full closure, and the editor says so through `severity`.
   Border and fill stay peach for every severity. */
.muvamo_spotnotice_icon {
    font-size: 14px !important;
    margin-right: 7px;
}
.muvamo_spotnotice_icon,
.muvamo_spotnotice_box strong { color: #587abc; }

.muvamo_spotnotice_box--sev-high .muvamo_spotnotice_icon,
.muvamo_spotnotice_box--sev-high strong { color: #bc5858; }

.muvamo_spotnotice_box--sev-medium .muvamo_spotnotice_icon,
.muvamo_spotnotice_box--sev-medium strong { color: #b06f22; }

.muvamo_spotnotice_box--sev-low .muvamo_spotnotice_icon,
.muvamo_spotnotice_box--sev-low strong { color: #587abc; }

.muvamo_spotnotice_period {
    font-weight: 600;
    color: #8a837c;
}

/* Text link, not a button. */
.muvamo_spotnotice_link {
    text-decoration: underline;
    white-space: nowrap;
}

/* --- card / list marker ------------------------------------------------ */
.muvamo_spotnotice_marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    background: #587abc;
    color: #fff;
    flex: none;
}
.muvamo_spotnotice_marker .et-pb-icon { font-size: 11px !important; margin: 0 !important; line-height: 1; }
.muvamo_spotnotice_marker--high { background: #bc5858; }
.muvamo_spotnotice_marker--medium { background: #b06f22; }

/* Inside a map popup the marker sits next to the title. */
.muvamoMarkerContent .details .title .muvamo_spotnotice_marker { margin-left: 5px; }

@media all and (max-width: 980px) {
    .muvamo_spotnotice_period {
        margin-left: 0;
        white-space: normal;
        width: 100%;
    }
}
