/* SOS Post Grid */

.sos-pg {
	width: 100%;
}

/* ---------- filter tabs ---------- */
.sos-pg__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}
.sos-pg__tab {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid #e3dacb;
	background: #fff;
	color: #2B2926;
	font-weight: 600;
	font-size: .9em;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.sos-pg__tab:hover {
	transform: translateY(-1px);
}
.sos-pg__tab.is-active {
	background: #C9542C;
	border-color: #C9542C;
	color: #fff !important;
}

/* ---------- grid ---------- */
.sos-pg__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

/* ---------- card ---------- */
.sos-pg__card {
	position: relative;
	display: block;
	height: 280px;
	border-radius: 16px;
	overflow: hidden;
	background-color: #e7ded2;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background-size .5s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.sos-pg__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 55%);
	opacity: .18;
	transition: opacity .25s ease;
}
.sos-pg__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
	background-size: 108%;
}
.sos-pg__card.is-hidden {
	display: none;
}

/* category badge */
.sos-pg__cat {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	padding: 5px 12px;
	border-radius: 999px;
	background: #C9542C;
	color: #fff;
	font-size: .7em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* the chip title — one rounded pill per wrapped line */
.sos-pg__title {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 46px;
	z-index: 3;
	margin: 0;
	font-size: 1.02em;
	line-height: 1.55;
	font-weight: 700;
}
.sos-pg__title span {
	background: #FBF7F0;
	color: #2B2926;
	padding: 4px 10px;
	border-radius: 7px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	-webkit-box-shadow: 0 2px 6px rgba(0,0,0,.10);
	box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

/* empty state */
.sos-pg__empty {
	padding: 28px 4px;
	color: #7a7266;
}

/* ---------- responsive fallbacks ---------- */
@media (max-width: 1024px) {
	.sos-pg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.sos-pg__grid {
		grid-template-columns: 1fr;
	}
	.sos-pg__title {
		font-size: 1em;
	}
}

/* ============================================================
   DESTINATION CARDS
   ============================================================ */
.sos-dc { width: 100%; }

.sos-dc__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.sos-dc__eyebrow {
	display: block;
	font-size: .74em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #C9542C;
	margin-bottom: 8px;
}
.sos-dc__heading {
	margin: 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	color: #2B2926;
}
.sos-dc__all {
	font-weight: 600;
	color: #C9542C;
	text-decoration: none;
	white-space: nowrap;
	transition: gap .15s ease, opacity .15s ease;
}
.sos-dc__all:hover { opacity: .78; }

/* grid */
.sos-dc__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
/* first card spans two tracks */
.sos-dc__grid--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sos-dc__grid--feature > .sos-dc__card:first-child { grid-column: span 2; }

/* card */
.sos-dc__card {
	position: relative;
	display: block;
	height: 380px;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	background-color: #e7ded2;
	transition: transform .25s ease, box-shadow .25s ease;
	box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.sos-dc__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(0,0,0,.15);
}
/* readability scrim at the bottom */
.sos-dc__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 52%);
	opacity: .55;
	pointer-events: none;
}
.sos-dc__body {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 2;
}
.sos-dc__title {
	display: block;
	color: #fff;
	font-size: 1.42em;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 6px;
}
.sos-dc__sub {
	display: block;
	color: rgba(255,255,255,.9);
	font-size: .92em;
}

@media (max-width: 1024px) {
	.sos-dc__grid,
	.sos-dc__grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sos-dc__grid--feature > .sos-dc__card:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
	.sos-dc__grid,
	.sos-dc__grid--feature { grid-template-columns: 1fr; }
	.sos-dc__grid--feature > .sos-dc__card:first-child { grid-column: span 1; }
	.sos-dc__head { align-items: flex-start; }
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.sos-ic { width: 100%; }

.sos-ic__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.sos-ic__box {
	position: relative;
	padding: 32px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #EFE7DB;
	transition: transform .22s ease, box-shadow .22s ease;
	overflow: hidden;
}

/* equal height: link pinned to the bottom */
.sos-ic__grid--equal .sos-ic__box {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.sos-ic__grid--equal .sos-ic__link {
	margin-top: auto;
}

/* optional accent stripe down the left edge */
.sos-ic__grid--stripe .sos-ic__box::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--sos-ic-accent, #C9542C);
}
.sos-ic__grid--stripe .sos-ic__box {
	padding-left: calc(32px + 6px);
}

.sos-ic__grid--shadow .sos-ic__box {
	box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}

.sos-ic__grid--lift .sos-ic__box:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .11);
}

.sos-ic__title {
	margin: 0 0 12px;
	font-size: 1.45em;
	line-height: 1.25;
	color: #2B2926;
}

.sos-ic__text {
	margin: 0 0 22px;
	color: #6A6255;
	line-height: 1.65;
}

.sos-ic__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	text-decoration: none;
	color: var(--sos-ic-accent, #C9542C);
	align-self: flex-start;
}
.sos-ic__link--plain {
	opacity: .55;
	cursor: default;
}
.sos-ic__arrow {
	transition: transform .18s ease;
}
.sos-ic__link:not(.sos-ic__link--plain):hover .sos-ic__arrow {
	transform: translateX(4px);
}

@media (max-width: 1024px) {
	.sos-ic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.sos-ic__grid { grid-template-columns: 1fr; }
}
