/* Public blog pages: reading and layout polish (added 2026-12-06).
   Loaded after admin-style.css on blogs.php and blog-detail.php only. The admin never loads this file. */

/* ---------- Shared ---------- */
.blog-list-page .blog-hero-banner h1,
.blog-detail-page .blog-detail-hero-banner h1,
.blog-detail-section h1, .blog-detail-section h2, .blog-detail-section h3, .blog-detail-section h4,
.recent-posts-section h2, .recent-posts-section h3,
.popular-packages-section h2, .popular-packages-section h3,
.contact-map-section h2, .contact-map-section h3,
.blog-grid h2 { text-transform: none; }

/* ---------- Post hero: the post's own picture, shorter ---------- */
.blog-detail-page .blog-detail-hero-banner.btp-hero {
    min-height: 0 !important;   /* admin-style.css sets 450px !important on phones */
    display: block;
    background: #3d2817 none;
    background-attachment: scroll;
}
.btp-hero .btp-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
    margin: 0; border-radius: 0; max-width: none;
}
.btp-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(20, 12, 6, .25) 0%, rgba(20, 12, 6, .35) 40%, rgba(20, 12, 6, .82) 100%);
    animation: none;
    z-index: 1;
}
.btp-hero .container-wide { position: relative; z-index: 2; }
.btp-hero .blog-hero-content {
    min-height: 460px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 110px 0 44px;
    max-width: 980px;
}
.btp-hero .blog-hero-content h1 {
    color: #fff;
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.btp-hero .breadcrumb-inline { font-size: 14px; margin-bottom: 14px; }
.btp-hero .breadcrumb-inline a, .btp-hero .breadcrumb-inline .separator { color: rgba(255, 255, 255, .88); }
.btp-hero .post-meta-hero { gap: 8px 22px; margin-top: 16px; }
.btp-hero .post-meta-hero span { font-size: 15px; }

@media (max-width: 768px) {
    /* tall enough that the title fits in the stand-in font too, so the late web font can't move the text below */
    .btp-hero .blog-hero-content { min-height: 330px; padding: 70px 0 22px; }
    .btp-hero .blog-hero-content h1 { font-size: 27px; line-height: 1.2; }
    .btp-hero .breadcrumb-inline { font-size: 13px; gap: 6px; margin-bottom: 10px; }
    .btp-hero .post-meta-hero { margin-top: 10px; gap: 4px 14px; }
    .btp-hero .post-meta-hero span { font-size: 13px; gap: 6px; }
    .blog-detail-page .container-wide-detail { padding: 0 10px; }
    .blog-detail-page .blog-main { padding: 22px 16px; border-radius: 12px; }
}
@media (max-width: 480px) {
    .btp-hero .blog-hero-content { min-height: 300px; padding-top: 56px; }
    .btp-hero .blog-hero-content h1 { font-size: 25px; }
}

/* ---------- Article text ---------- */
/* Stand-in font while DM Sans downloads: Arial stretched to DM Sans's width (measured: 103.6%), so the
   lines wrap the same way and the text does not jump when the real font arrives. Phones without
   Arial (Android) just use their own system font as before. */
@font-face {
    font-family: 'BTP DM Sans Fallback';
    src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans');
    size-adjust: 103.6%;
}
.blog-detail-page .post-content-wrapper {
    font-family: 'DM Sans', 'BTP DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #2f2a25;
}
.post-content-wrapper p, .post-content-wrapper li, .post-content-wrapper td, .post-content-wrapper th,
.post-content-wrapper dd, .post-content-wrapper dt, .post-content-wrapper blockquote {
    font-size: inherit; line-height: inherit; color: inherit;
}
.post-content-wrapper p { margin: 0 0 1.1em; }
.post-content-wrapper strong, .post-content-wrapper b { color: #1f1b17; font-weight: 700; }
.post-content-wrapper h2, .post-content-wrapper h3, .post-content-wrapper h4, .post-content-wrapper h5 {
    color: #2b2018; text-transform: none; letter-spacing: 0; scroll-margin-top: 90px;
}
.post-content-wrapper h2 { font-size: 34px; line-height: 1.2; margin: 1.6em 0 .55em; font-weight: 700; }
.post-content-wrapper h3 { font-size: 26px; line-height: 1.25; margin: 1.4em 0 .5em; font-weight: 700; }
.post-content-wrapper h4 { font-size: 21px; line-height: 1.3; margin: 1.3em 0 .45em; font-weight: 700; }
.post-content-wrapper h5 { font-size: 18px; line-height: 1.35; margin: 1.2em 0 .4em; }
.post-content-wrapper ul, .post-content-wrapper ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-content-wrapper li { margin-bottom: .45em; }
.post-content-wrapper a {
    word-break: normal; overflow-wrap: break-word;
    color: #8b4513; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.post-content-wrapper a:hover { color: #5c2e0d; }
.post-content-wrapper img { border-radius: 10px; }
.post-content-wrapper figure { margin: 1.4em 0; }
.post-content-wrapper figcaption { font-size: 14px; color: #6b625a; margin-top: 6px; }
.post-content-wrapper blockquote { border-left: 4px solid #c8a27a; padding: .2em 0 .2em 1em; margin: 1.4em 0; color: #4a4038; }
/* Tables: readable, scroll sideways on phones (the wrapper is added by the page) */
.post-content-wrapper table { font-size: 16px; line-height: 1.5; border-collapse: collapse; }
.post-content-wrapper th, .post-content-wrapper td { padding: 10px 12px; border: 1px solid #e3d9cc; vertical-align: top; text-align: left; }
.post-content-wrapper th, .post-content-wrapper thead td { background: #f4ece1; color: #3d2817; font-weight: 700; }
.post-content-wrapper tbody tr:nth-child(even) td { background: #fbf8f3; }

@media (max-width: 768px) {
    .blog-detail-page .post-content-wrapper { font-size: 17px; line-height: 1.7; }
    .post-content-wrapper h2 { font-size: 26px; }
    .post-content-wrapper h3 { font-size: 21px; }
    .post-content-wrapper h4 { font-size: 19px; }
    .post-content-wrapper table { font-size: 15px; }
}

/* ---------- Table of contents ---------- */
.btp-toc { margin: 1.4em 0 1.8em; border: 1px solid #e8ddd0; border-radius: 12px; background: #fbf8f3; font-size: 16px; line-height: 1.45; }
.btp-toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: #3d2817; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.btp-toc summary::-webkit-details-marker { display: none; }
.btp-toc summary::after { content: '+'; font-size: 22px; line-height: 1; color: #8b4513; }
.btp-toc[open] summary::after { content: '\2212'; }
.btp-toc ol { margin: 0; padding: 0 18px 16px 38px; }
.btp-toc li { margin: 0 0 7px; font-size: 16px; }
.btp-toc a { color: #5c2e0d; text-decoration: none; }
.btp-toc a:hover { text-decoration: underline; }

/* ---------- Enquiry box (after the intro and at the end) ---------- */
.btp-enquiry { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    margin: 1.6em 0; padding: 18px 20px; border-radius: 12px; background: #f4ece1; border-left: 4px solid #8b4513; }
.btp-enquiry p { margin: 0; flex: 1 1 280px; font-size: 16px; line-height: 1.5; color: #3d2817; }
.btp-enquiry p strong { display: block; font-size: 18px; margin-bottom: 2px; color: #2b2018; }
.post-content-wrapper .btp-enquiry a.btp-enquiry-btn, .btp-enquiry a.btp-enquiry-btn {
    display: inline-block; padding: 11px 22px; border-radius: 30px; background: #693818; color: #fff;
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btp-enquiry a.btp-enquiry-btn:hover { background: #3d2817; color: #fff; }
.btp-enquiry-end { margin: 10px 0 30px; }

/* ---------- Packages box: matching tours, space reserved ---------- */
.popular-packages-section .package-content-custom .package-title { text-transform: capitalize; }
.popular-packages-section .package-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular-packages-section .package-image-custom { background: #e9e0d4; }
.popular-packages-section .package-card-custom { min-height: 520px; }
@media (max-width: 768px) { .popular-packages-section .package-card-custom { min-height: 0; } }

/* ---------- Elfsight widgets: keep their space so nothing jumps when they load ---------- */
/* Heights measured 2026-12-06 with the live widget: 969 px at desktop width, 1367 px on a 390 px phone. */
.contact-map-section .form-container [class*="elfsight-app-"] { min-height: 940px; }
@media (max-width: 768px) { .contact-map-section .form-container [class*="elfsight-app-"] { min-height: 1100px; } }
@media (max-width: 480px) { .contact-map-section .form-container [class*="elfsight-app-"] { min-height: 1340px; } }
.blog-bottom-contact-cta [class*="elfsight-app-"] { min-height: 64px; }

/* ---------- Counters / small things ---------- */
.blog-detail-page .post-actions-bar .action-btn span:empty { display: none; }
.blog-detail-page .comment-form .btp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Blog list ---------- */
.blog-list-page .blog-content h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; flex-grow: 1; }
.blog-list-page .blog-content h2 a { color: #343a40; text-decoration: none; }
.blog-list-page .blog-content h2 a:hover { color: #654321; }
.blog-list-page .blog-excerpt { color: #4f4a45; }
.blog-list-page .blog-stats:empty { display: none; }
.blog-list-page .blog-footer { gap: 10px; }
.blog-list-page .blog-pagination .page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
