/* ==========================================================================
   Mattazie Safari Trips - blog (home, categories, single post, card slider)
   Palette: cream #F8F1DE, milk #FBF5E6, sage #869192, charcoal #292728,
   light grey #E2E1DF, brown #2F180B. Flat colour, no radius, no shadow.
   ========================================================================== */

.mstb, .mstb-sc {
	--b-cream: #F8F1DE; --b-milk: #FBF5E6; --b-sage: #869192; --b-dark: #292728; --b-grey: #E2E1DF; --b-brown: #2F180B;
	--b-line: rgba(41, 39, 40, .14); --b-muted: rgba(41, 39, 40, .66);
	--b-head: var(--mst-font-head, 'Cormorant Garamond', Georgia, 'Times New Roman', serif);
	color: var(--b-dark); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.mstb, .mstb *, .mstb *::before, .mstb *::after, .mstb-sc, .mstb-sc *, .mstb-sc *::before, .mstb-sc *::after { box-sizing: border-box; border-radius: 0 !important; box-shadow: none; }
.mstb { background: #fff; overflow-x: clip; }
.mstb a, .mstb-sc a { color: inherit; text-decoration: none; }
.mstb img { max-width: 100%; height: auto; }
.mstb [hidden] { display: none !important; }
.mstb h1, .mstb h2, .mstb h3, .mstb h4, .mstb-sc h2, .mstb-sc h3 { font-family: var(--b-head); color: inherit; letter-spacing: 0; text-transform: none; margin: 0; font-weight: 600; line-height: 1.12; }
.mstb-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.mstb-wrap--narrow { max-width: 860px; }

.mstb-eyebrow { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--b-sage); }
.mstb .mstb-h2, .mstb-sc .mstb-h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.mstb .mstb-h2--small { font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; font-family: inherit; font-weight: 700; }
.mstb-empty { padding: 40px 0; color: var(--b-muted); }
.mstb-btn { display: inline-block; padding: 14px 26px; background: var(--b-brown); color: var(--b-cream) !important; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .25s; }
.mstb-btn:hover { background: var(--b-dark); }
.mstb-link { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Banner ---------- */
.mstb-banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(260px, 30vw, 400px); background: var(--b-brown); color: var(--b-cream); overflow: hidden; }
.mstb-single .mstb-banner { min-height: clamp(320px, 40vw, 520px); }
.mstb-banner--plain { background: linear-gradient(135deg, var(--b-dark), var(--b-brown)); }
.mstb-banner__img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; z-index: -2; max-width: none !important; }
.mstb-banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 6, .38) 0%, rgba(20, 12, 6, .72) 100%); }
.mstb-banner__in { padding-block: clamp(34px, 6vw, 72px); }
.mstb .mstb-banner__title { color: var(--b-cream); font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 500; max-width: 22ch; line-height: 1.06; overflow-wrap: break-word; }
.mstb-banner__sub { margin: 14px 0 0; max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: .92; }
.mstb-banner__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }

.mstb-chip { display: inline-block; padding: 4px 10px; background: var(--b-cream); color: var(--b-dark); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.mstb-chip--link { margin-bottom: 16px; }
.mstb-chip--link:hover { background: #fff; }

/* ---------- Category buttons ---------- */
.mstb-catnav { background: var(--b-cream); border-bottom: 1px solid var(--b-line); }
.mstb-catnav .mstb-wrap { display: flex; gap: 6px 4px; overflow-x: auto; scrollbar-width: none; }
.mstb-catnav .mstb-wrap::-webkit-scrollbar { display: none; }
.mstb-catnav a { flex: none; padding: 18px 18px; font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; border-bottom: 2px solid transparent; white-space: nowrap; }
.mstb-catnav a:hover, .mstb-catnav a.is-on { border-bottom-color: var(--b-brown); }

/* ---------- Sections ---------- */
.mstb-section { padding-block: clamp(36px, 5vw, 64px); }
.mstb-section--mosaic { background: #fff; padding-bottom: 0; }
.mstb-section--slider { background: var(--b-cream); }
.mstb-section--related { background: var(--b-cream); }

/* ---------- Mosaic (newest posts) ---------- */
.mstb-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; }
.mstb-mosaic .is-big { grid-area: 1 / 1 / 3 / 2; }
.mstb-mosaic .is-a { grid-area: 1 / 2 / 2 / 3; }
.mstb-mosaic .is-b { grid-area: 1 / 3 / 2 / 4; }
.mstb-mosaic .is-wide { grid-area: 2 / 2 / 3 / 4; }
.mstb-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.mstb-mosaic--1 .is-big { grid-area: auto; }
.mstb-mosaic--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; }
.mstb-mosaic--2 .is-a { grid-area: 1 / 2 / 3 / 3; }
.mstb-mosaic--3 { grid-template-columns: 2fr 1fr; }
.mstb-mosaic--3 .is-b { grid-area: 2 / 2 / 3 / 3; }

.mstb-tile { position: relative; isolation: isolate; display: block; overflow: hidden; background: var(--b-brown); color: #fff !important; min-height: 220px; }
.mstb-tile .mstb-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; z-index: -2; transition: transform .6s ease; max-width: none !important; }
.mstb-img--empty { background: linear-gradient(135deg, #4a2e1c, #2F180B); }
.mstb-tile:hover .mstb-img { transform: scale(1.04); }
.mstb-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 6, 0) 35%, rgba(20, 12, 6, .82) 100%); }
.mstb-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mstb-tile__title { font-family: var(--b-head); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.15; overflow-wrap: break-word; }
.mstb-mosaic .is-big .mstb-tile__title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.mstb-tile__meta, .mstb-list__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .86; }

/* ---------- Post card + slider ---------- */
.mstb-slider__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.mstb-slider__nav { display: flex; gap: 8px; flex: none; }
.mstb-arrow { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: transparent; color: var(--b-dark); border: 1px solid var(--b-dark); cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.mstb-arrow:hover:not(:disabled) { background: var(--b-brown); color: var(--b-cream); border-color: var(--b-brown); }
.mstb-arrow:disabled { opacity: .3; cursor: default; }
.mstb-slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mstb-slider__track::-webkit-scrollbar { display: none; }
.mstb-slider__item { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; display: flex; }
.mstb-sc .mstb-slider__head { margin-bottom: 20px; }

.mstb-card { display: flex; flex-direction: column; width: 100%; background: var(--b-milk); }
.mstb-card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--b-brown); }
.mstb-card__media .mstb-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .6s ease; max-width: none !important; }
.mstb-card:hover .mstb-card__media .mstb-img { transform: scale(1.05); }
.mstb-card__media .mstb-chip { position: absolute; left: 14px; top: 14px; }
.mstb-card__row { display: flex; align-items: stretch; flex: 1; min-height: 150px; }
.mstb-card__date { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--b-brown); color: var(--b-cream); text-align: center; }
.mstb-card__date strong { font-family: var(--b-head); font-size: 2.1rem; line-height: 1; font-weight: 600; }
.mstb-card__date span { margin-top: 4px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.mstb-card__text { padding: 16px 18px; min-width: 0; }
.mstb .mstb-card__title { font-size: 1.32rem; line-height: 1.15; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.mstb-card__title a:hover { color: var(--b-sage); }
.mstb-card__text p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--b-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.mstb-pager { margin-top: 34px; }
.mstb-pager ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mstb-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--b-dark); font-size: .85rem; }
.mstb-pager .page-numbers.current, .mstb-pager a.page-numbers:hover { background: var(--b-brown); border-color: var(--b-brown); color: var(--b-cream); }

/* ---------- Top categories ---------- */
.mstb-top { background: #fff; padding-block: clamp(40px, 6vw, 80px); }
.mstb-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.mstb-top__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--b-line); }
.mstb-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.mstb-tabs__btn { padding: 4px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--b-muted); font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.mstb-tabs__btn:hover, .mstb-tabs__btn.is-on { color: var(--b-dark); border-bottom-color: var(--b-brown); background: none; }
.mstb-top__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.mstb-top__lead { min-height: 460px; }
.mstb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.mstb-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--b-line); flex: 1; }
.mstb-list li:first-child { padding-top: 0; }
.mstb-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mstb-list__thumb { flex: 0 0 92px; width: 92px; height: 92px; position: relative; overflow: hidden; background: var(--b-brown); }
.mstb-list__thumb .mstb-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; max-width: none !important; }
.mstb-list__title { display: block; font-family: var(--b-head); font-size: 1.3rem; font-weight: 600; line-height: 1.15; margin-bottom: 6px; overflow-wrap: break-word; }
.mstb-list__title:hover { color: var(--b-sage); }
.mstb-list__meta { color: var(--b-muted); opacity: 1; }

.mstb-connect { background: var(--b-grey); padding: 28px; }
.mstb-connect p { margin: 14px 0 18px; font-size: .92rem; color: var(--b-muted); }
.mstb-connect ul { list-style: none; margin: 0; padding: 0; }
.mstb-connect li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; background: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s; }
.mstb-connect li a:hover { background: var(--b-brown); color: var(--b-cream); }

/* ---------- Single post ---------- */
.mstb-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 60px); padding-block: clamp(34px, 5vw, 64px); align-items: start; }
.mstb-prose { font-size: 17px; line-height: 1.85; }
.mstb-prose p { margin: 0 0 1.35em; text-align: justify; hyphens: manual; overflow-wrap: break-word; }
.mstb-prose h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin: 1.6em 0 .6em; }
.mstb-prose h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 1.4em 0 .5em; }
.mstb-prose a { text-decoration: underline; text-underline-offset: 3px; }
.mstb-prose img { display: block; width: 100%; height: auto; margin: 1.6em 0; }
.mstb-prose figure { margin: 1.6em 0; }
.mstb-prose figcaption { margin-top: 8px; font-size: .82rem; color: var(--b-muted); text-align: center; }
.mstb-prose ul, .mstb-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.mstb-prose li { margin-bottom: .5em; }
.mstb-prose blockquote { margin: 2em 0; padding: 22px 28px; background: var(--b-milk); border-left: 4px solid var(--b-brown); font-family: var(--b-head); font-size: 1.5rem; font-style: italic; line-height: 1.4; }
.mstb-prose blockquote p { margin: 0; text-align: left; }
.mstb-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mstb-tags a { padding: 6px 12px; background: var(--b-grey); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.mstb-tags a:hover { background: var(--b-brown); color: var(--b-cream); }
.mstb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 30px 0; padding: 16px 0; border-block: 1px solid var(--b-line); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.mstb-share span { font-weight: 700; margin-right: 6px; }
.mstb-share a { padding: 8px 14px; border: 1px solid var(--b-dark); }
.mstb-share a:hover { background: var(--b-brown); border-color: var(--b-brown); color: var(--b-cream); }
.mstb-author { display: flex; gap: 20px; align-items: flex-start; padding: 26px; background: var(--b-milk); }
.mstb-author__img { flex: none; width: 84px; height: 84px; object-fit: cover; border-radius: 0 !important; }
.mstb-author strong { font-family: var(--b-head); font-size: 1.4rem; }
.mstb-author p { margin: 6px 0 0; font-size: .92rem; color: var(--b-muted); }
.mstb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.mstb-prevnext a { display: block; padding: 18px 20px; background: var(--b-grey); font-family: var(--b-head); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.mstb-prevnext a small { display: block; margin-bottom: 6px; font-family: inherit; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--b-muted); }
.mstb-prevnext a.is-next { text-align: right; }
.mstb-prevnext a:hover { background: var(--b-brown); color: var(--b-cream); }
.mstb-prevnext a:hover small { color: var(--b-cream); }

.mstb-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.mstb-box { padding: 24px; background: var(--b-milk); }
.mstb-box__title { font-family: inherit !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .18em; text-transform: uppercase !important; margin: 0 0 16px !important; padding-bottom: 12px; border-bottom: 1px solid var(--b-line); }
.mstb-box p { margin: 0 0 14px; font-size: .92rem; color: var(--b-muted); }
.mstb-box--cta { background: var(--b-brown); color: var(--b-cream); }
.mstb-box--cta .mstb-box__title { border-color: rgba(248, 241, 222, .25); }
.mstb-box--cta p { color: rgba(248, 241, 222, .85); }
.mstb-box--cta .mstb-btn { background: var(--b-cream); color: var(--b-brown) !important; }
.mstb-list--side li { padding-block: 12px; }
.mstb-list--side .mstb-list__thumb { flex-basis: 70px; width: 70px; height: 70px; }
.mstb-list--side .mstb-list__title { font-size: 1.1rem; }
.mstb-cats { list-style: none; margin: 0; padding: 0; }
.mstb-cats li a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--b-line); font-size: .92rem; }
.mstb-cats li:last-child a { border-bottom: 0; }
.mstb-cats li a span { color: var(--b-muted); }
.mstb-cats li a:hover { color: var(--b-sage); }

/* ---------- Comments (uses the theme's comment form, styled lightly) ---------- */
.mstb-comments { background: #fff; }
.mstb-comments .comments-title, .mstb-comments .comment-reply-title { font-family: var(--b-head); font-size: 1.8rem; margin: 0 0 18px; }
.mstb-comments ol, .mstb-comments ul { list-style: none; padding: 0; margin: 0 0 30px; }
.mstb-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--b-line); }
.mstb-comments .children { padding-left: 28px; }
.mstb-comments input[type="text"], .mstb-comments input[type="email"], .mstb-comments input[type="url"], .mstb-comments textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--b-line); background: var(--b-milk); font: inherit; }
.mstb-comments .form-submit input, .mstb-comments .submit { padding: 14px 28px; background: var(--b-brown); color: var(--b-cream); border: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.mstb-slider__item { flex-basis: calc((100% - 24px) / 2); }
	.mstb-top__grid { grid-template-columns: 1fr; }
	.mstb-single__layout { grid-template-columns: 1fr; }
	.mstb-side { position: static; }
}

/* ---------- Phone: one card at a time, everything stacked ---------- */
@media (max-width: 700px) {
	.mstb-slider__item { flex-basis: 100%; }
	.mstb-slider__track { gap: 14px; }
	.mstb-slider__head { align-items: center; margin-bottom: 18px; }
	.mstb-arrow { width: 42px; height: 42px; }
	.mstb-mosaic, .mstb-mosaic--1, .mstb-mosaic--2, .mstb-mosaic--3 { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
	.mstb-mosaic .mstb-tile, .mstb-mosaic .is-big, .mstb-mosaic .is-a, .mstb-mosaic .is-b, .mstb-mosaic .is-wide { grid-area: auto; min-height: 250px; }
	.mstb-mosaic .is-big { min-height: 340px; }
	.mstb-top__panel { grid-template-columns: 1fr; }
	.mstb-top__lead { min-height: 340px; }
	.mstb-connect { padding: 22px 18px; }
	.mstb-prose { font-size: 16px; line-height: 1.75; }
	.mstb-author { flex-direction: column; }
	.mstb-prevnext { grid-template-columns: 1fr; }
	.mstb-prevnext a.is-next { text-align: left; }
	.mstb-banner__meta { gap: 4px 16px; font-size: .7rem; }
}

/* chip links keep dark text on the cream label */
.mstb .mstb-chip, .mstb .mstb-chip--link, .mstb a.mstb-chip { color: var(--b-dark) !important; }

/* ==========================================================================
   Guard: the blog widget keeps its own layout inside Elementor and any theme
   ========================================================================== */
.mstb-sc, .mstb-sc .mstb-slider { display: block; width: 100%; max-width: 100%; }
.mstb-slider__head { display: flex !important; flex-direction: row !important; align-items: flex-end !important; justify-content: space-between !important; }
.mstb-slider__nav { display: flex !important; flex-direction: row !important; }
.mstb-slider__track { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; }
.mstb-slider__item { flex: 0 0 calc((100% - 48px) / 3) !important; max-width: none !important; width: auto !important; }
.mstb-card { display: flex !important; flex-direction: column !important; }
.mstb-card__media { display: block !important; position: relative !important; aspect-ratio: 16 / 11 !important; height: auto !important; overflow: hidden !important; }
.mstb-card__media img, .mstb-card__media .mstb-img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; margin: 0 !important; }
.mstb-card__row { display: flex !important; flex-direction: row !important; }
.mstb-card__title, .mstb-card__title a { font-family: var(--b-head) !important; font-weight: 600 !important; color: var(--b-dark) !important; text-decoration: none !important; }
.mstb-card__text p { font-family: inherit; color: var(--b-muted) !important; margin: 0 !important; }
.mstb-sc .mstb-h2 { font-family: var(--b-head) !important; font-weight: 600 !important; color: var(--b-dark) !important; margin: 0 !important; }
.mstb-arrow { background: transparent !important; border: 1px solid var(--b-dark) !important; color: var(--b-dark) !important; width: 46px !important; height: 46px !important; padding: 0 !important; line-height: 1 !important; }
.mstb-arrow:hover:not(:disabled) { background: var(--b-brown) !important; color: var(--b-cream) !important; border-color: var(--b-brown) !important; }
.mstb-chip { color: var(--b-dark) !important; text-decoration: none !important; }
@media (max-width: 1000px) { .mstb-slider__item { flex-basis: calc((100% - 24px) / 2) !important; } }
@media (max-width: 700px) { .mstb-slider__item { flex-basis: 100% !important; } .mstb-slider__track { gap: 14px; } }
.mstb-card__text p { font-size: .9rem !important; line-height: 1.55 !important; }
.mstb-card__title { font-size: 1.32rem !important; line-height: 1.15 !important; }
.mstb-card__date strong { font-size: 2.1rem !important; font-family: var(--b-head) !important; }

/* ---------- All posts: card grid + category buttons (shortcode / Elementor) ---------- */
.mstb-sc--home { background: #fff; }
.mstb-sc--grid { padding-block: clamp(24px, 4vw, 48px); background: var(--b-cream); }
.mstb-filter { display: flex !important; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mstb-filter a { padding: 11px 18px; border: 1px solid var(--b-dark); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--b-dark) !important; text-decoration: none !important; background: transparent; }
.mstb-filter a:hover, .mstb-filter a.is-on { background: var(--b-brown); border-color: var(--b-brown); color: var(--b-cream) !important; }
.mstb-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px !important; }
.mstb-grid__item { display: flex; min-width: 0; }
@media (max-width: 1000px) { .mstb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 700px) { .mstb-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; } }

/* ---------- Cards and their sections: no background ---------- */
.mstb-card, .mstb-card__text, .mstb-card__row { background: transparent !important; }
.mstb-section--slider, .mstb-section--related, .mstb-sc--grid { background: transparent !important; }
.mstb-card__date { flex-basis: 78px; }
.mstb-card__date em { margin-top: 2px; font-style: normal; font-size: .68rem; letter-spacing: .12em; opacity: .85; }

/* ---------- Social icons: round-free brand squares ---------- */
.mstb-social { display: flex !important; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px !important; padding: 0 !important; }
.mstb-social li { margin: 0; padding: 0; list-style: none; }
.mstb-social a { display: grid !important; place-items: center; width: 40px; height: 40px; background: var(--b-brown) !important; color: var(--b-cream) !important; text-decoration: none !important; transition: background .25s, transform .25s; }
.mstb-social a:hover { background: var(--b-sage) !important; transform: translateY(-2px); }
.mstb-social svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   v3: wider, fluid blog. Feature block (mosaic + top categories) is one
   full-width band; the slider stands alone with an editable heading.
   ========================================================================== */
.mstb-wrap { max-width: 1560px; padding-inline: clamp(16px, 4vw, 64px); }
.mstb-wrap .mstb-wrap { padding-inline: 0; }

/* full-bleed band */
.mstb.mstb-sc.mstb-sc--bleed { position: relative; left: auto; width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.mstb-feature { background: #fff; padding-block: clamp(28px, 4vw, 56px) 0; }
.mstb-feature .mstb-top { background: transparent; padding-block: clamp(36px, 5vw, 72px); }
.mstb-section--mosaic { display: none; }

/* bigger mosaic that follows the screen */
.mstb-mosaic { grid-template-rows: clamp(230px, 24vw, 420px) clamp(230px, 24vw, 420px); gap: clamp(10px, 1.2vw, 18px); }
.mstb-mosaic--1 { grid-template-rows: clamp(320px, 40vw, 560px); }
.mstb-tile__body { padding: clamp(16px, 2.2vw, 36px); }
.mstb-tile__title { font-size: clamp(1.2rem, 1.9vw, 1.9rem); }
.mstb-mosaic .is-big .mstb-tile__title { font-size: clamp(1.8rem, 3.2vw, 3.1rem); }
.mstb-top__panel { gap: clamp(20px, 2.4vw, 40px); }
.mstb-top__lead { min-height: clamp(420px, 38vw, 580px); }
.mstb-list__thumb { flex-basis: clamp(92px, 8vw, 128px); width: clamp(92px, 8vw, 128px); height: clamp(92px, 8vw, 128px); }
.mstb-list__title { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.mstb-top__grid { grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 360px); }

/* slider heading: title + description on the left, link + arrows on the right */
.mstb-slider__head { align-items: flex-end !important; gap: 20px 32px; margin-bottom: clamp(22px, 2.6vw, 36px); }
.mstb-slider__intro { min-width: 0; max-width: 760px; }
.mstb-slider__desc { margin: 12px 0 0 !important; font-size: clamp(.98rem, 1.2vw, 1.1rem); line-height: 1.6; color: var(--b-muted); max-width: 62ch; }
.mstb-slider__tools { display: flex; align-items: center; gap: 22px; flex: none; }
.mstb-slider__all { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--b-dark) !important; text-decoration: none !important; border-bottom: 2px solid var(--b-brown); padding-bottom: 3px; white-space: nowrap; }
.mstb-slider__all:hover { color: var(--b-sage) !important; border-color: var(--b-sage); }
.mstb-eyebrow { display: none; }
.mstb-sc--slider { padding-block: clamp(24px, 4vw, 56px); background: transparent; }

/* bigger cards that scale with the screen */
.mstb-slider__track { gap: clamp(16px, 1.8vw, 28px); }
.mstb-slider__item { flex: 0 0 calc((100% - 2 * clamp(16px, 1.8vw, 28px)) / 3) !important; }
.mstb-card__row { min-height: clamp(150px, 12vw, 200px); }
.mstb-card__date { flex-basis: clamp(78px, 6.4vw, 100px) !important; }
.mstb-card__date strong { font-size: clamp(2.1rem, 2.8vw, 3rem) !important; }
.mstb-card__text { padding: clamp(16px, 1.6vw, 26px) clamp(16px, 1.8vw, 28px); }
.mstb-card__title, .mstb .mstb-card__title { font-size: clamp(1.32rem, 1.7vw, 1.75rem) !important; }
.mstb-card__text p { font-size: clamp(.9rem, 1vw, 1.02rem) !important; }
.mstb-grid { gap: clamp(16px, 1.8vw, 28px) !important; }

@media (max-width: 1000px) {
	.mstb-top__grid { grid-template-columns: 1fr; }
	.mstb-slider__item { flex-basis: calc((100% - clamp(16px, 1.8vw, 28px)) / 2) !important; }
}
@media (max-width: 700px) {
	.mstb-slider__head { flex-direction: column !important; align-items: flex-start !important; }
	.mstb-slider__tools { width: 100%; justify-content: space-between; }
	.mstb-slider__item { flex-basis: 100% !important; }
	.mstb-mosaic, .mstb-mosaic--1, .mstb-mosaic--2, .mstb-mosaic--3 { grid-template-rows: none; }
}

/* ---------- Fit the room the widget is given (container width, not only screen width) ---------- */
.mstb-sc { container-type: inline-size; }
@container (max-width: 1000px) {
	.mstb-sc .mstb-slider__item { flex-basis: calc((100% - 24px) / 2) !important; }
	.mstb-sc .mstb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.mstb-sc .mstb-top__grid { grid-template-columns: 1fr; }
}
@container (max-width: 700px) {
	.mstb-sc .mstb-slider__item { flex-basis: 100% !important; }
	.mstb-sc .mstb-grid { grid-template-columns: minmax(0, 1fr) !important; }
	.mstb-sc .mstb-slider__head { flex-direction: column !important; align-items: flex-start !important; }
	.mstb-sc .mstb-slider__tools { width: 100%; justify-content: space-between; }
	.mstb-sc .mstb-mosaic, .mstb-sc .mstb-mosaic--1, .mstb-sc .mstb-mosaic--2, .mstb-sc .mstb-mosaic--3 { grid-template-columns: 1fr; grid-template-rows: none; }
	.mstb-sc .mstb-mosaic .mstb-tile, .mstb-sc .mstb-mosaic .is-big, .mstb-sc .mstb-mosaic .is-a, .mstb-sc .mstb-mosaic .is-b, .mstb-sc .mstb-mosaic .is-wide { grid-area: auto; min-height: 250px; }
	.mstb-sc .mstb-mosaic .is-big { min-height: 340px; }
	.mstb-sc .mstb-top__panel { grid-template-columns: 1fr; }
	.mstb-sc .mstb-top__lead { min-height: 340px; }
}

/* ---------- Card text area: white (change --b-cardbg to #F1F0EE for light grey) ---------- */
.mstb, .mstb-sc { --b-cardbg: #FFFFFF; }
.mstb-card, .mstb-card__row, .mstb-card__text { background: var(--b-cardbg) !important; }

/* ==========================================================================
   Stay connected panel (dark): highlighted button, icon links, e-mail box, social
   ========================================================================== */
.mstb-connect { --c-bg: #2B2724; --c-accent: #D99B5B; background: var(--c-bg) !important; color: #F8F1DE; padding: clamp(22px, 2.2vw, 34px) !important; }
.mstb-connect .mstb-connect__title { font-family: var(--b-head) !important; font-size: clamp(1.9rem, 2.4vw, 2.4rem) !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: #F8F1DE !important; margin: 0 0 8px !important; line-height: 1.1; }
.mstb-connect .mstb-connect__text { margin: 0 0 22px !important; font-size: .98rem; line-height: 1.6; color: rgba(248, 241, 222, .78) !important; }
.mstb-conn__list { list-style: none; margin: 0 0 28px !important; padding: 0 !important; display: grid; gap: 10px; }
.mstb-conn__list li { margin: 0; padding: 0; list-style: none; }
.mstb-connect .mstb-conn__item { display: flex !important; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(255, 255, 255, .07) !important; color: #F8F1DE !important; text-decoration: none !important; transition: background .25s, transform .25s; width: 100%; }
.mstb-connect a.mstb-conn__item:hover { background: rgba(255, 255, 255, .13) !important; }
.mstb-conn__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--c-accent); }
.mstb-conn__icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
.mstb-conn__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mstb-conn__txt strong { font-size: .98rem; font-weight: 600; line-height: 1.3; color: inherit; }
.mstb-conn__txt small { font-size: .8rem; line-height: 1.4; color: rgba(248, 241, 222, .62); }
.mstb-conn__go { flex: none; opacity: .85; }
.mstb-connect .mstb-conn__item.is-hot { background: var(--c-accent) !important; color: #2B2724 !important; }
.mstb-connect a.mstb-conn__item.is-hot:hover { filter: brightness(1.06); background: var(--c-accent) !important; }
.mstb-conn__item.is-hot .mstb-conn__icon { color: #2B2724; }
.mstb-conn__item.is-hot small { color: rgba(43, 39, 36, .78); }

.mstb-connect .mstb-sub__title { font-family: var(--b-head) !important; font-size: 1.45rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: #F8F1DE !important; margin: 0 0 12px !important; }
.mstb-connect .mstb-sub__title--follow { margin-top: 30px !important; }
.mstb-sub__row { display: flex; align-items: stretch; }
.mstb-sub__row input[type="email"] { flex: 1; min-width: 0; padding: 15px 16px !important; background: rgba(255, 255, 255, .07) !important; border: 0 !important; color: #F8F1DE !important; font: inherit; font-size: .95rem; outline: 0; }
.mstb-sub__row input[type="email"]::placeholder { color: rgba(248, 241, 222, .55); }
.mstb-sub__row input[type="email"]:focus { background: rgba(255, 255, 255, .12) !important; }
.mstb-sub__row button { flex: none; padding: 0 22px !important; background: #F8F1DE !important; color: #2B2724 !important; border: 0 !important; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.mstb-sub__row button:hover { background: #fff !important; }
.mstb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mstb-sub__msg { margin: 10px 0 0 !important; font-size: .88rem; color: var(--c-accent) !important; }
.mstb-sub__msg.is-bad { color: #ff9b8a !important; }
.mstb-connect .mstb-social { margin: 0 !important; }
.mstb-connect .mstb-social a { background: rgba(255, 255, 255, .08) !important; color: #F8F1DE !important; width: 44px; height: 44px; }
.mstb-connect .mstb-social a:hover { background: var(--c-accent) !important; color: #2B2724 !important; }
.mstb-sc--connect { max-width: 520px; }
.mstb-connect li a.mstb-conn__item, .mstb-connect li span.mstb-conn__item { justify-content: flex-start !important; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: inherit !important; font-weight: 400 !important; }
.mstb-connect .mstb-conn__txt strong { font-size: .98rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; }
.mstb-connect .mstb-conn__txt small { text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }

/* share buttons as icons */
.mstb-share a { display: grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important; color: var(--b-dark) !important; text-decoration: none !important; }
.mstb-share a:hover { color: var(--b-cream) !important; }
.mstb-hint { margin: 22px 0 0 !important; padding: 12px 14px; border: 1px dashed rgba(248, 241, 222, .45); font-size: .84rem; color: rgba(248, 241, 222, .85) !important; }
.mstb-hint a { color: var(--c-accent) !important; text-decoration: underline !important; }

/* "You may also like" shows trip booking cards */
.mstb-trips-title{margin:0 0 26px;font-family:var(--b-serif,"Cormorant Garamond",Georgia,serif);font-size:clamp(1.8rem,3vw,2.4rem);font-weight:600;color:#2F180B}
.mstb-section--trips{padding:clamp(36px,5vw,64px) 0}

/* ---------- Phones and tablets: nothing may be wider than the screen ---------- */
.mstb-top__grid > *, .mstb-top__main, .mstb-top__panel > *, .mstb-connect, .mstb-list li, .mstb-list li > div { min-width: 0; }
.mstb-tile__title, .mstb-list__title, .mstb-card__title, .mstb-conn__txt, .mstb-connect p { overflow-wrap: anywhere; }
.mstb-top, .mstb-feature, .mstb-sc { max-width: 100%; }
@media (max-width: 1000px) {
	.mstb-top__grid, .mstb-sc .mstb-top__grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 700px) {
	.mstb-top__panel, .mstb-sc .mstb-top__panel { grid-template-columns: minmax(0, 1fr) !important; }
	.mstb-top__head { gap: 10px; }
	.mstb-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.mstb-tabs::-webkit-scrollbar { display: none; }
	.mstb-tabs__btn { white-space: nowrap; flex: none; }
	.mstb-connect { padding: 24px 18px !important; }
	.mstb-connect .mstb-conn__item { padding: 14px 16px; gap: 14px; }
}
