/* Blog of Azië Rondreizen (views blog.php, blog-post.php). Loaded on the blog pages only. Cards: border and colour on hover, never moving. */
.blog { --good: #0f6b5c; --mixed: #f2d38f; --rain: #d9dfde; overflow-wrap: break-word; }
/* same height as on the other pages (they sit in a .section), 12px to the heading */
.blog-crumbs { padding-top: 22px; margin: 0 0 12px; color: var(--color-muted); }
@media (max-width: 600px) { .blog-crumbs { padding-top: 14px; } }
.blog-eyebrow { display: block; margin-bottom: 8px; color: var(--color-primary); font-size: .83rem; font-weight: 700; }
.blog-meta { color: var(--color-muted); font-size: .86rem; }
.blog-concept { color: var(--color-lantern); }
.blog-end { height: 56px; }

/* Overview */
.blog-head { padding: 0 0 20px; }
.blog-head h1 { margin-bottom: 12px; }
.blog-head p { max-width: 720px; margin: 0; color: var(--color-muted); font-size: 1.1rem; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.blog-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); font-size: .94rem; font-weight: 600; text-decoration: none; }
.blog-cats a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-cats a[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.blog-feature { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; margin-bottom: 28px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); text-decoration: none; }
.blog-feature:hover { border-color: var(--color-primary); }
.blog-feature:hover h2 { color: var(--color-primary); }
.blog-feature img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.blog-feature-text { align-self: center; padding: clamp(22px, 4vw, 48px); }
.blog-feature-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.blog-feature-text p { margin: 0 0 18px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; padding-bottom: 56px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); text-decoration: none; }
.blog-card:hover { border-color: var(--color-primary); }
.blog-card:hover h3 { color: var(--color-primary); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.blog-card h3 { margin-bottom: 8px; font-size: 1.14rem; line-height: 1.3; }
.blog-card p { margin: 0 0 14px; color: var(--color-muted); font-size: .95rem; line-height: 1.5; }
.blog-card .blog-meta { margin-top: auto; }

/* Article */
.blog-article-head { max-width: 900px; padding: 0 0 22px; }
.blog-article-head .blog-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.blog-hero { margin: 0 0 32px; }
.blog-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 560px; border-radius: var(--radius); object-fit: cover; }
.blog-hero figcaption, .blog-photos figcaption { margin-top: 7px; color: var(--color-muted); font-size: .84rem; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 740px) minmax(250px, 300px); justify-content: space-between; gap: 56px; }
.blog-prose { min-width: 0; font-size: 18px; line-height: 1.72; }
.blog-prose h2 { margin: 44px 0 14px; scroll-margin-top: 80px; }
.blog-prose > p { margin: 0 0 1.1em; }
.blog-answer { margin: 0 0 32px; padding: 22px 24px; background: var(--color-surface); border-radius: var(--radius); }
.blog-prose .blog-answer h2 { margin: 0 0 8px; font-size: 1.05rem; }
.blog-answer p { margin: 0; }
.blog-note { color: var(--color-muted); font-size: .84rem !important; line-height: 1.45; }
.blog-toc-small { display: none; margin: 0 0 28px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.blog-toc-small summary { min-height: 46px; padding: 11px 16px; font-weight: 700; cursor: pointer; }
.blog-toc-small ul, .blog-toc ul { margin: 0; padding: 0; list-style: none; }
.blog-toc-small ul { padding: 0 16px 10px; }
.blog-toc-small a, .blog-toc a { display: block; padding: 7px 0; color: var(--color-text); font-size: .93rem; line-height: 1.35; text-decoration: none; }
.blog-toc-small a:hover, .blog-toc a:hover { color: var(--color-primary); }
.blog-side { align-self: start; position: sticky; top: calc(var(--header-shown, 0px) + 20px); transition: top .2s ease; }
.blog-side-box { margin-bottom: 18px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.blog-side-title { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 800; }
.blog-side-box .btn { display: flex; width: 100%; margin-top: 8px; }
.blog-side-box p { margin: 0; color: var(--color-muted); font-size: .92rem; line-height: 1.45; }

/* Tables */
.blog-table-wrap { margin: 8px 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.blog-table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.4; }
.blog-table th, .blog-table td { padding: 13px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.blog-table tbody tr:last-child th, .blog-table tbody tr:last-child td { border-bottom: 0; }
.blog-table thead th, .blog-table thead td { background: var(--color-surface); font-weight: 800; }
.blog-table tbody th { width: 28%; color: var(--color-muted); font-weight: 600; }
.blog-flag { display: inline-flex; align-items: center; gap: 8px; }
.blog-flag img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; }

/* Weather per month and region: the same letters as the destination pages (g, m, s) */
.blog-season { margin: 8px 0 30px; }
.blog-season-country { margin: 18px 0 8px; font-size: 1rem; font-weight: 800; }
.blog-season-row { margin-bottom: 10px; }
.blog-season-name { display: block; margin-bottom: 4px; font-size: .86rem; line-height: 1.3; }
.blog-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.blog-months > span { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 4px; font-size: .72rem; font-weight: 700; }
.blog .m-g { background: var(--good); color: #fff; }
.blog .m-m { background: var(--mixed); color: var(--color-text); }
.blog .m-s { background: var(--rain); color: var(--color-text); }
.blog-season-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--color-muted); font-size: .84rem; }
.blog-season-legend i { display: inline-block; width: 13px; height: 13px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; }

.blog-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 30px; }
.blog-photos figure { margin: 0; }
.blog-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; }

/* Trips: text on top, price and button on one line at the bottom */
.blog-trips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 14px; }
.blog-trip { container-type: inline-size; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: .95rem; line-height: 1.4; }
.blog-trip:hover { border-color: var(--color-primary); }
.blog-trip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-trip-body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.blog-trip h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.blog-trip h3 a { color: var(--color-text); text-decoration: none; }
.blog-trip h3 a:hover { color: var(--color-primary); text-decoration: underline; }
.blog-trip p { margin: 0 0 14px; color: var(--color-muted); font-size: .86rem; }
.blog-trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.blog-trip-price { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.blog-trip-price small { display: block; color: var(--color-muted); font-size: .76rem; font-weight: 500; }
.blog-trip-foot .btn { flex: none; padding-inline: 14px; }

/* Questions */
.blog-faq details { border-bottom: 1px solid var(--color-border); }
.blog-faq summary { padding: 13px 0; font-size: 1.02rem; font-weight: 700; cursor: pointer; }
.blog-faq p { margin: 0 0 14px; font-size: 1rem; }

/* Sources */
.blog-sources { margin: 0; padding-left: 20px; font-size: .95rem; line-height: 1.5; }
.blog-sources li { padding: 4px 0; }

/* Editorial note and related */
.blog-editor { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 38px 0 0; padding: 20px; background: var(--color-surface); border-radius: var(--radius); font-size: .95rem; line-height: 1.5; }
.blog-editor .logo-mark { width: 44px; height: 44px; }
.blog-editor strong { display: block; }
.blog-editor p { margin: 0; }
.blog-related { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--color-border); }
.blog-related h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--color-lantern); }

/* Tablet and phone */
@media (max-width: 1099px) {
    .blog-layout { grid-template-columns: minmax(0, 740px); justify-content: center; gap: 0; }
    .blog-article-head, .blog-hero, .blog-crumbs-post { max-width: 740px; margin-inline: auto; }
    .blog-side { display: none; }
    .blog-toc-small { display: block; }
}
@media (max-width: 767px) {
    .blog-feature { grid-template-columns: 1fr; }
    .blog-feature img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
    .blog-cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .blog-cats a { flex: none; }
    .blog-prose { font-size: 17px; }
    .blog-answer { padding: 18px; }
    .blog-trips { grid-template-columns: 1fr; }
    .blog-table { font-size: .88rem; }
    .blog-table th, .blog-table td { padding: 10px 8px; }
    .blog-table tbody th { width: 30%; }
    .blog-months > span { height: 26px; font-size: .66rem; }
    .blog-grid { padding-bottom: 40px; }
    .blog-related { margin-top: 40px; padding-top: 32px; }
}
