/* ============================================================
   travel-guide.css
   Destination To Plan | destinationtoplan.com
   Shared stylesheet for all country travel guide pages.

   Depends on:
     /css/nav.css     — header/nav (always loaded)
     /css/style.css   — footer + booking form (loaded via $extra_css_files)

   Critical above-the-fold CSS (:root gold palette, body, hero,
   quick-nav, progress bar) remains inline in each guide page.
   ============================================================ */

/* ============================================================
   WRAPPER
   ============================================================ */
.vp-wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 1024px) { .vp-wrap { padding: 0 24px; } }
@media (max-width: 768px)  { .vp-wrap { padding: 0 20px; } }
@media (max-width: 600px)  { .vp-wrap { padding: 0 16px; } }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb-bar .vp-wrap { padding-top: 0; padding-bottom: 0; }
.breadcrumb-nav {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--text-muted);
}
.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.breadcrumb-nav a:hover { background: var(--primary-tint); }
.breadcrumb-nav .sep { color: var(--text-muted); margin: 0 2px; font-size: 0.7rem; }
.breadcrumb-nav span[aria-current] { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.content-section { margin-bottom: 48px; }
.sec-head { margin-bottom: 24px; text-align: center; }
.sec-title {
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.sec-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.6;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.updated-tag { text-align: center; margin-bottom: 8px; font-size: 0.78rem; color: var(--text-muted); }
.updated-tag svg { vertical-align: middle; margin-right: 4px; }

/* ============================================================
   CARDS — BASE
   ============================================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
}
.card p, .card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
}

/* ============================================================
   TOC BOX
   ============================================================ */
.toc-d { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.toc-d-head { background: var(--header-gradient); padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.toc-d-head h4 { color: #fff; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 9px; margin: 0; }
.toc-d-head h4 svg { width: 16px; height: 16px; flex-shrink: 0; }
.toc-d-head .toc-d-meta { color: rgba(255,255,255,0.72); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.toc-d-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .toc-d-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .toc-d-grid { grid-template-columns: 1fr; } }
.toc-d-tile {
    padding: 16px 18px;
    border-right: 1px solid #f0e8d6;
    border-bottom: 1px solid #f0e8d6;
    text-decoration: none;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: start;
    transition: background 0.15s;
}
.toc-d-tile:hover { background: var(--primary-tint); }
.toc-d-tile:nth-child(3n)      { border-right: none; }
.toc-d-tile:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 768px) {
    .toc-d-tile:nth-child(3n)        { border-right: 1px solid #f0e8d6; }
    .toc-d-tile:nth-child(2n)        { border-right: none; }
    .toc-d-tile:nth-last-child(-n+3) { border-bottom: 1px solid #f0e8d6; }
    .toc-d-tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
    .toc-d-tile { border-right: none !important; }
    .toc-d-tile:nth-last-child(n+2) { border-bottom: 1px solid #f0e8d6 !important; }
    .toc-d-tile:last-child { border-bottom: none !important; }
}
.toc-d-num  { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 1.1rem; font-weight: 900; color: #ecdfc8; line-height: 1; }
.toc-d-name { grid-column: 2; grid-row: 1; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.toc-d-hint { grid-column: 2; grid-row: 2; font-size: 0.78rem; color: var(--primary); line-height: 1.4; font-weight: 500; }
.toc-d-tile.toc-d-full {
    grid-column: 1 / -1; align-items: center; gap: 14px;
    background: #fffdf9; border-right: none; border-bottom: none;
    border-top: 1px solid #f0e8d6; padding: 14px 20px;
}
.toc-d-tile.toc-d-full:hover { background: var(--primary-tint); }
.toc-d-tile.toc-d-full .toc-d-num  { font-size: 1.1rem; flex-shrink: 0; }
.toc-d-tile.toc-d-full .toc-d-text { flex: 1; }
.toc-d-tile.toc-d-full .toc-d-name { font-size: 0.92rem; }
.toc-d-badge { background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 13px; border-radius: 9999px; white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   GUIDE GRID + GUIDE CARD
   ============================================================ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}
.guide-grid > .guide-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 768px) {
    .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .guide-grid > .guide-card:last-child:nth-child(odd) { max-width: 100%; }
}
@media (max-width: 600px) {
    .guide-grid { grid-template-columns: 1fr; gap: 14px; }
    .guide-grid > .guide-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; margin: 0; }
}
.guide-grid-centered { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px; }
.guide-grid-centered .guide-card { flex: 1 1 calc(50% - 10px); min-width: 300px; max-width: calc(50% - 10px); }
@media (max-width: 768px) {
    .guide-grid-centered { gap: 16px; }
    .guide-grid-centered .guide-card { flex: 1 1 100%; max-width: 100%; min-width: 0; }
}
.guide-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.guide-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 0 0 1.5px #cbd5e1; }
.guide-card-header {
    background: var(--header-gradient);
    color: #fff;
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-align: center; flex-shrink: 0;
}
.guide-card-header svg { width: 20px; height: 20px; flex-shrink: 0; }
.guide-card-header h3 { color: #fff; font-size: 0.95rem; margin: 0; font-weight: 700; line-height: 1.3; }
.guide-card-body {
    padding: 20px 22px;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-secondary);
    flex: 1;
}
.guide-card-body p { margin-bottom: 10px; text-align: justify; hyphens: auto; text-align-last: left; }
.guide-card-body p:last-child { margin-bottom: 0; }
.guide-card-body strong { color: var(--text-primary); font-weight: 600; }
.guide-card-body ul { list-style: none; padding: 0; margin: 8px 0; }
.guide-card-body ul li {
    position: relative; padding-left: 16px; margin-bottom: 7px;
    line-height: 1.7; text-align: justify; hyphens: auto; text-align-last: left;
}
.guide-card-body ul li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 5px; height: 5px; background: var(--primary); border-radius: 50%;
}
.guide-card-body ul li strong { color: var(--primary); }
.guide-card-body a.inline-cta {
    display: block; margin-top: 8px; padding: 8px 16px;
    background: var(--primary); color: #fff; text-decoration: none;
    border-radius: 9999px; font-weight: 600; font-size: 0.82rem;
    transition: opacity 0.18s; text-align: center;
}
.guide-card-body a.inline-cta:hover { opacity: 0.88; }
.guide-card-body a.inline-cta-red {
    display: block; margin: auto -22px -20px -22px; padding: 21.5px 16px;
    background: #07090e; color: #fff; text-decoration: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-weight: 600; font-size: 0.88rem; transition: background 0.18s; text-align: center;
}
.guide-card-body a.inline-cta-red:hover { background: #2d2f36; }

/* ============================================================
   NOTE BOX + VISA UPDATE BOX
   ============================================================ */
.note-box {
    display: flex; flex-direction: column; gap: 8px;
    padding: 16px 22px; background: var(--primary-tint);
    border: 2px solid #c8a96e; border-radius: var(--radius-md);
    margin-bottom: 20px; transition: box-shadow 0.2s;
}
.note-box:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.note-box p { font-size: 0.86rem; color: #6B5530; line-height: 1.7; margin: 0; text-align: justify; hyphens: auto; text-align-last: left; }
.note-box p strong { color: #4a3a1f; }
.note-box-centered p { text-align: center !important; text-align-last: center !important; hyphens: none; }
.visa-update-box {
    background: #ECFDF5; border: 2px solid #059669; border-radius: var(--radius-md);
    padding: 16px 22px; margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.visa-update-box .vub-icon {
    width: 32px; height: 32px; background: #059669; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.visa-update-box p { font-size: 0.87rem; color: #065F46; line-height: 1.75; margin: 0; }
.visa-update-box p strong { color: #065F46; font-weight: 700; }
.visa-update-box p a { color: #059669; font-weight: 600; text-decoration: underline; }

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
    text-align: center; background: #07090e; color: #fff;
    padding: 26px 24px; border-radius: var(--radius-lg);
    margin: 24px 0 0; box-shadow: var(--shadow-md);
}
.cta-box p { margin: 0 0 14px; font-size: 0.95rem; opacity: 0.95; }
.cta-box a {
    display: inline-block; padding: 11px 26px; background: #fff;
    color: var(--primary); text-decoration: none; border-radius: 9999px;
    font-weight: 700; font-size: 0.88rem; white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.cta-box a:hover { background: #2d2f36; color: #fff; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.86rem; }
.data-table thead tr { background: #a8894e; color: #fff; }
.data-table thead th { padding: 12px 15px; text-align: left; font-size: 0.79rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr:nth-child(even) { background: #ffffff; }
.data-table tbody tr:hover { background: var(--primary-tint); }
.data-table tbody td { padding: 11px 15px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody td:first-child { font-weight: 600; color: var(--text-primary); }
.mobile-cards { display: none; }
@media (max-width: 640px) {
    .table-wrap   { display: none; }
    .mobile-cards { display: flex; flex-direction: column; gap: 10px; }
}
.m-card { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: 0 2px 10px rgba(0,0,0,0.06); overflow: hidden; }
.m-card-head { background: var(--header-gradient); color: #fff; padding: 10px 14px; font-size: 0.88rem; font-weight: 700; }
.m-card-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.m-card-row:last-child { border-bottom: none; }
.m-card-label { font-weight: 600; color: var(--text-primary); min-width: 110px; flex-shrink: 0; }
.m-card-val { color: var(--text-secondary); line-height: 1.55; }
.best-time-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.84rem; }
.best-time-table thead tr { background: #a8894e; color: #fff; }
.best-time-table thead th { padding: 11px 13px; text-align: left; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.best-time-table tbody tr:nth-child(odd)  { background: var(--bg-light); }
.best-time-table tbody tr:nth-child(even) { background: #ffffff; }
.best-time-table tbody tr:hover { background: var(--primary-tint); }
.best-time-table tbody td { padding: 10px 13px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.best-time-table tbody td:first-child { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.season-badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.season-peak { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.season-good { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.season-ok   { background: var(--primary-tint); color: #6B5530; border: 1px solid rgba(168,137,78,0.3); }
.season-low  { background: #F3F4F6; color: #4B5563; border: 1px solid #D1D5DB; }

/* ============================================================
   WEATHER + PACKING
   ============================================================ */
.weather-packing-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1024px) { .weather-packing-wrapper { grid-template-columns: 1fr; } }

/* ============================================================
   HERITAGE — 5th card centred
   ============================================================ */
#heritage-culture .guide-grid { grid-template-columns: repeat(2, 1fr); }
#heritage-culture .guide-grid .guide-card:nth-child(5) {
    grid-column: 1 / -1; max-width: calc(50% - 10px); margin: 0 auto; width: 100%;
}
@media (max-width: 768px) { #heritage-culture .guide-grid .guide-card:nth-child(5) { max-width: 100%; } }
@media (max-width: 600px) {
    #heritage-culture .guide-grid { grid-template-columns: 1fr; }
    #heritage-culture .guide-grid .guide-card:nth-child(5) { grid-column: auto; max-width: 100%; margin: 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.faq-q { padding: 15px 18px; display: flex; align-items: flex-start; gap: 11px; }
.faq-num { width: 27px; height: 27px; min-width: 27px; background: #a8894e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.73rem; font-weight: 700; flex-shrink: 0; }
.faq-q-text { font-size: 0.91rem; font-weight: 600; color: var(--text-primary); line-height: 1.5; }
.faq-a { padding: 13px 18px 15px 56px; font-size: 0.87rem; color: var(--text-secondary); line-height: 1.8; border-top: 1px solid var(--border); text-align: justify; hyphens: auto; text-align-last: left; }
@media (max-width: 480px) { .faq-a { padding-left: 14px; } }

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust-section {
    background: #07090e; border-radius: var(--radius-lg);
    padding: 40px 28px; margin-bottom: 36px; position: relative; overflow: hidden;
}
.trust-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(200,169,110,0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 40%);
    pointer-events: none;
}
.trust-section-head { position: relative; z-index: 1; text-align: center; margin-bottom: 28px; }
.trust-section-head h2 { color: #c8a96e; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 800; margin-bottom: 10px; }
.trust-section-head p { color: rgba(255,255,255,0.7); font-size: 0.88rem; max-width: 920px; margin: 0 auto; line-height: 1.7; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.trust-item { padding: 22px 18px; background: rgba(200,169,110,0.08); border: 1px solid rgba(200,169,110,0.2); border-radius: var(--radius-md); transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.trust-item:hover { background: rgba(200,169,110,0.18); border-color: rgba(200,169,110,0.4); transform: translateY(-3px); }
.trust-item svg { width: 28px; height: 28px; color: #c8a96e; flex-shrink: 0; }
.trust-item h4 { color: #c8a96e; font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; display: flex; align-items: flex-start; gap: 10px; min-height: 48px; }
.trust-item p { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.65; margin: 0; text-align: justify; }

/* ============================================================
   FEATURED SNIPPET BLOCK
   ============================================================ */
.snippet-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-md);
}
.snippet-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; text-align: justify; hyphens: auto; text-align-last: left; }
.snippet-card p:last-child { margin-bottom: 0; }
.snippet-card p strong { color: var(--primary); font-weight: 700; }

/* ============================================================
   SECTION IMAGE
   ============================================================ */
.section-img {
    width: 100%; aspect-ratio: 7 / 1; object-fit: cover;
    border-radius: var(--radius-lg); display: block; margin-bottom: 20px;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   AUTHOR STRIP
   Shared across all pages using includes/author-box.php
   ============================================================ */
.author-strip { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.author-box { display: flex; align-items: flex-start; gap: 16px; }
.author-avatar-link { flex-shrink: 0; display: block; line-height: 0; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: block; }
.author-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.author-topline { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; line-height: 1.5; }
.author-name-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.author-name-link:hover { text-decoration: underline; }
.author-title-inline { color: var(--text-muted); font-weight: 400; }
.author-reviewer { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.author-reviewer-link { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.author-reviewer-link:hover { text-decoration: underline; }
.author-reviewer-title { color: var(--text-muted); }
.author-factcheck { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.author-factcheck-label { font-size: 0.79rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.author-factcheck-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.author-factcheck-list li { font-size: 0.79rem; color: var(--text-secondary); padding-left: 14px; position: relative; line-height: 1.55; }
.author-factcheck-list li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; }
.author-date { font-size: 0.79rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.author-date svg { flex-shrink: 0; color: var(--text-muted); }
@media (max-width: 640px) {
    .author-avatar { width: 48px; height: 48px; }
    .author-title-inline { display: none; }
    .author-factcheck { flex-direction: column; gap: 2px; }
}