/* Simsem blog page redesign (v1.8.0). Loaded only on the first page of /blog/ when the blog switch is on.
   Everything is scoped under body.shr-blog .shrb; sizes in px (the theme's root font is 10px). */

body.shr-blog {
  --shrb-navy: #0D2E61; --shrb-navy2: #163b75; --shrb-ink: #14223a; --shrb-muted: #5b6578; --shrb-line: #e3e6ec;
  --shrb-sand: #f6f3ee; --shrb-amber: #d9700a; --shrb-chip: #eef1f6;
  --shrb-serif: "Cormorant Garamond", Georgia, serif; --shrb-sans: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.shr-blog .shrb {
  font-family: var(--shrb-sans); color: var(--shrb-ink); font-size: 17px; line-height: 1.55; background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.shr-blog .shrb *, body.shr-blog .shrb *::before, body.shr-blog .shrb *::after { box-sizing: border-box; }
body.shr-blog .shrb a { color: inherit; text-decoration: none; }
body.shr-blog .shrb img { display: block; max-width: 100%; height: 100%; width: 100%; object-fit: cover; }
body.shr-blog .shrb h1, body.shr-blog .shrb h2, body.shr-blog .shrb h3, body.shr-blog .shrb p { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
body.shr-blog .shrb [hidden] { display: none !important; }
body.shr-blog .shrb .shrb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* hero = the theme's own banner (keeps the theme's single H1), restyled */
body.shr-blog .bookingExperience--banner { min-height: 0 !important; height: auto !important; padding: 56px 0 44px !important; align-items: flex-end !important; background-position: center 40% !important; position: relative; }
body.shr-blog .bookingExperience--banner::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9,22,48,.88) 0%, rgba(9,22,48,.55) 55%, rgba(9,22,48,.25) 100%); }
body.shr-blog .bookingExperience--banner .holder { position: relative; z-index: 1; width: 100% !important; max-width: 1240px !important; margin: 0 auto !important; padding: 0 24px !important; }
body.shr-blog .bookingExperience--banner .bookingExperienceBanner--content { top: 0 !important; bottom: auto !important; }
/* the theme's main wrapper hides overflow, which breaks position: sticky; clip hides it the same way and keeps sticky working */
body.shr-blog .simsemMain--wrapper { overflow: clip !important; }
body.shr-blog .bookingExperienceBanner--content::before { content: "The Simsem travel journal"; display: block; font-family: var(--shrb-sans); font-size: 13px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: #f6c27a; margin-bottom: 10px; }
body.shr-blog .bookingExperienceBanner--content .bookingExperienceBanner--content__title { font-family: var(--shrb-serif) !important; font-weight: 600 !important; font-size: 58px !important; line-height: 1.02 !important; margin: 0 0 12px !important; max-width: 760px; color: #fff !important; text-wrap: balance; }
body.shr-blog .bookingExperienceBanner--content__text, body.shr-blog .bookingExperienceBanner--content__text p { font-family: var(--shrb-sans) !important; font-size: 19px !important; line-height: 1.55 !important; max-width: 600px; color: #e8ecf4 !important; margin: 0 !important; }
body.shr-blog .bookingExperienceBanner--content .shrb-cpills { margin-top: 24px; }
/* country pills: in the banner (moved there by blog.js) or, without JS, in a slim band below it */
body.shr-blog .shrb-cband { background: #0d1d3d; padding: 14px 0; }
body.shr-blog .shrb-cband.is-empty { display: none; }
body.shr-blog .shrb-cpills { display: flex; flex-wrap: wrap; gap: 10px; }
body.shr-blog .shrb-cpill { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 16px; font-family: var(--shrb-sans); font-size: 15px; font-weight: 600; color: #fff !important; text-decoration: none !important; line-height: 1.3; transition: background .15s, color .15s; }
body.shr-blog .shrb-cpill small { font-weight: 500; color: #cfd7e6; font-size: 13px; }
body.shr-blog .shrb-cpill:hover { background: #fff; color: var(--shrb-navy) !important; }
body.shr-blog .shrb-cpill:hover small { color: var(--shrb-muted); }

/* latest stories */
body.shr-blog .shrb-latest { padding: 52px 0 48px; }
body.shr-blog .shrb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
body.shr-blog .shrb-head h2, body.shr-blog .shrb-ftitle { font-family: var(--shrb-serif); font-size: 38px; line-height: 1.1; font-weight: 600; color: var(--shrb-navy); }
body.shr-blog .shrb-head a { font-size: 15px; font-weight: 600; color: var(--shrb-amber); }
body.shr-blog .shrb-lgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
body.shr-blog .shrb-lead { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
body.shr-blog .shrb-im { overflow: hidden; background: var(--shrb-chip); }
body.shr-blog .shrb-im img { transition: transform .4s; }
body.shr-blog .shrb-lead:hover .shrb-im img, body.shr-blog .shrb-side:hover .shrb-im img, body.shr-blog .shrb-card:hover .shrb-im img { transform: scale(1.04); }
body.shr-blog .shrb-lead .shrb-im { aspect-ratio: 16 / 10; border-radius: 14px; }
body.shr-blog .shrb-lead h3 { font-family: var(--shrb-serif); font-size: 36px; line-height: 1.1; font-weight: 600; color: var(--shrb-navy); text-wrap: balance; }
body.shr-blog .shrb-lead p { color: var(--shrb-muted); font-size: 18px; }
body.shr-blog .shrb-sides { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.shr-blog .shrb-side { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--shrb-line); }
body.shr-blog .shrb-side:last-child { border-bottom: 0; padding-bottom: 0; }
body.shr-blog .shrb-side .shrb-im { aspect-ratio: 4 / 3; border-radius: 10px; }
body.shr-blog .shrb-side h3 { font-family: var(--shrb-serif); font-size: 23px; line-height: 1.15; font-weight: 600; margin: 6px 0; color: var(--shrb-navy); }
body.shr-blog .shrb-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.shr-blog .shrb-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--shrb-amber); line-height: 1.4; }
body.shr-blog .shrb-tag--k { color: var(--shrb-muted); }
body.shr-blog .shrb-tag + .shrb-tag::before { content: "·"; margin-right: 8px; color: #b9c0cc; }
body.shr-blog .shrb-meta { font-size: 14px; color: var(--shrb-muted); }

/* filter bar */
body.shr-blog .shrb-listing { background: var(--shrb-sand); padding: 0 0 64px; }
body.shr-blog .shrb-fbar { position: sticky; top: 0; z-index: 50; background: rgba(246,243,238,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--shrb-line); }
body.admin-bar.shr-blog .shrb-fbar { top: 32px; }
body.shr-blog .shrb-fbar .shrb-wrap { padding-top: 14px; padding-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
body.shr-blog .shrb-frow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
body.shr-blog .shrb-ftitle { margin-right: auto; }
body.shr-blog .shrb-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d5dae3; border-radius: 999px; padding: 0 16px; height: 46px; width: 340px; max-width: 100%; margin: 0; cursor: text; }
body.shr-blog .shrb-search input { border: 0 !important; outline: 0; box-shadow: none !important; font: inherit; font-size: 16px; flex: 1; min-width: 0; background: transparent !important; height: 44px; padding: 0 !important; margin: 0; color: var(--shrb-ink); }
body.shr-blog .shrb-search svg { flex: none; }
body.shr-blog .shrb-select { height: 46px; border: 1px solid #d5dae3; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230D2E61' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; padding: 0 40px 0 18px; font: inherit; font-size: 16px; font-weight: 500; color: var(--shrb-ink); -webkit-appearance: none; appearance: none; cursor: pointer; margin: 0; width: auto; }
body.shr-blog .shrb-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
body.shr-blog .shrb-cats::-webkit-scrollbar { display: none; }
body.shr-blog .shrb-cat { flex: none; border: 1px solid #d5dae3; background: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--shrb-navy); cursor: pointer; display: flex; gap: 7px; align-items: center; line-height: 1.3; }
body.shr-blog .shrb-cat small { font-size: 13px; font-weight: 500; color: var(--shrb-muted); }
body.shr-blog .shrb-cat.on { background: var(--shrb-navy); border-color: var(--shrb-navy); color: #fff; }
body.shr-blog .shrb-cat.on small { color: #b9c6dd; }
body.shr-blog .shrb:not(.shrb-js) .shrb-cats, body.shr-blog .shrb:not(.shrb-js) .shrb-more { display: none; }
body.shr-blog .shrb-result { font-size: 15px; color: var(--shrb-muted); display: flex; gap: 12px; align-items: center; }
body.shr-blog .shrb-clear { border: 0; background: none; color: var(--shrb-amber); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* grid */
body.shr-blog .shrb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 30px; }
body.shr-blog .shrb-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 2px rgba(13,46,97,.06), 0 6px 20px rgba(13,46,97,.05); transition: box-shadow .2s, transform .2s; }
body.shr-blog .shrb-card:hover { box-shadow: 0 2px 4px rgba(13,46,97,.08), 0 14px 34px rgba(13,46,97,.12); transform: translateY(-2px); }
body.shr-blog .shrb-card .shrb-im { aspect-ratio: 3 / 2; }
body.shr-blog .shrb-bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
body.shr-blog .shrb-card h3 { font-family: var(--shrb-serif); font-size: 25px; line-height: 1.12; font-weight: 600; color: var(--shrb-navy); text-wrap: balance; }
body.shr-blog .shrb-card p { color: var(--shrb-muted); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.shr-blog .shrb-card .shrb-meta { margin-top: auto; padding-top: 6px; }
body.shr-blog .shrb-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--shrb-muted); font-size: 18px; }
body.shr-blog .shrb-more { display: flex; justify-content: center; margin-top: 36px; }
body.shr-blog .shrb-more button { font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--shrb-navy); border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer; }
body.shr-blog .shrb-more button:hover { background: var(--shrb-navy2); }

@media (max-width: 900px) {
  body.shr-blog .shrb-lgrid { grid-template-columns: 1fr; }
  body.shr-blog .shrb-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 782px) { body.admin-bar.shr-blog .shrb-fbar { top: 46px; } }
@media (max-width: 600px) {
  body.shr-blog .shrb { font-size: 16px; }
  body.shr-blog .shrb .shrb-wrap { padding: 0 16px; }
  body.shr-blog .bookingExperience--banner { padding: 34px 0 28px !important; }
  body.shr-blog .bookingExperience--banner .holder { padding: 0 16px !important; }
  body.shr-blog .bookingExperienceBanner--content .bookingExperienceBanner--content__title { font-size: 40px !important; }
  body.shr-blog .bookingExperienceBanner--content__text, body.shr-blog .bookingExperienceBanner--content__text p { font-size: 17px !important; }
  body.shr-blog .bookingExperienceBanner--content .shrb-cpills { margin-top: 18px; }
  body.shr-blog .shrb-cpills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  body.shr-blog .shrb-cpill { flex: none; padding: 7px 14px; font-size: 14px; }
  body.shr-blog .shrb-latest { padding: 34px 0 30px; }
  body.shr-blog .shrb-head h2, body.shr-blog .shrb-ftitle { font-size: 30px; }
  body.shr-blog .shrb-lead h3 { font-size: 28px; }
  body.shr-blog .shrb-lead p { font-size: 16px; }
  body.shr-blog .shrb-side { grid-template-columns: 112px 1fr; gap: 14px; }
  body.shr-blog .shrb-side h3 { font-size: 20px; }
  body.shr-blog .shrb-fbar .shrb-wrap { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  body.shr-blog .shrb-fbar:not(.is-filtered) .shrb-result { display: none; }
  body.shr-blog .shrb-frow { gap: 10px; flex-wrap: nowrap; }
  body.shr-blog .shrb-ftitle { display: none; }
  body.shr-blog .shrb-search { width: auto; flex: 1; height: 44px; min-width: 0; }
  body.shr-blog .shrb-select { height: 44px; padding-left: 14px; flex: none; max-width: 46%; }
  body.shr-blog .shrb-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  body.shr-blog .shrb-card h3 { font-size: 23px; }
}
