/* ===== The Unknown Traveller — theme ===== */
:root {
    --tut-ink: #14233b;
    --tut-ink-soft: #41506b;
    --tut-teal: #0e7c86;
    --tut-teal-dark: #0a5e66;
    --tut-amber: #f3a712;
    --tut-coral: #ef6f6c;
    --tut-sand: #f7f3ec;
    --tut-paper: #ffffff;
    --tut-line: #e7e1d6;
    --tut-shadow: 0 18px 40px -22px rgba(20, 35, 59, .45);
    --tut-radius: 16px;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--tut-ink);
    background: var(--tut-sand);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -.01em;
}

a { color: var(--tut-teal); text-decoration: none; }
a:hover { color: var(--tut-teal-dark); }

.text-teal { color: var(--tut-teal) !important; }
.text-amber { color: var(--tut-amber) !important; }
.bg-ink { background: var(--tut-ink) !important; }
.bg-sand { background: var(--tut-sand) !important; }

/* ---- Buttons ---- */
.btn-teal {
    background: var(--tut-teal);
    border-color: var(--tut-teal);
    color: #fff;
}
.btn-teal:hover { background: var(--tut-teal-dark); border-color: var(--tut-teal-dark); color: #fff; }
.btn-amber { background: var(--tut-amber); border-color: var(--tut-amber); color: #1d1500; font-weight: 600; }
.btn-amber:hover { filter: brightness(.95); color: #1d1500; }
.btn-outline-light-pill { border-radius: 50rem; }
.btn { border-radius: 50rem; padding-inline: 1.2rem; font-weight: 500; }
.btn-sm { padding-inline: .85rem; }

/* ---- Brand logo ---- */
.brand-logo {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(14,124,134,.25);
    flex-shrink: 0;
}

/* ---- Navbar ---- */
.navbar-brand { font-size: 1.4rem; }
.navbar .nav-link { font-weight: 500; color: var(--tut-ink); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--tut-teal); }
.navbar.scrolled { box-shadow: var(--tut-shadow); }

/* ---- Nested dropdown (Destinations: Continent → Country → City) ---- */
.dropdown-submenu { position: relative; }
.dropdown-submenu__toggle { display: flex; align-items: center; justify-content: space-between; }
.dropdown-submenu__toggle::after {
    content: '\203A'; font-size: 1.2rem; line-height: 1; color: var(--tut-ink-soft); margin-left: .75rem;
}
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: -.5rem; left: 100%; margin: 0; border-radius: 12px;
    }
    /* Open menus and nested submenus on hover */
    .navbar .nav-item.dropdown:hover > .dropdown-menu,
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
    /* Mobile: show the whole tree expanded and indented */
    .dropdown-submenu > .dropdown-menu {
        display: block; position: static; float: none; border: 0; box-shadow: none;
        padding: 0 0 0 1rem; margin: 0; background: transparent;
    }
    .dropdown-submenu__toggle::after { content: '\203A'; transform: rotate(90deg); }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(20,35,59,.25), rgba(20,35,59,.78)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1950&q=80') center/cover;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hero .lead { font-size: 1.2rem; max-width: 640px; }

/* Video-featuring hero */
.hero--video {
    min-height: 0;
    padding: 4.5rem 0;
    background: linear-gradient(120deg, var(--tut-ink) 0%, var(--tut-teal-dark) 100%);
}
.hero--video h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; }
.hero--video .hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .16; filter: blur(8px) saturate(1.2);
    transform: scale(1.1);
}
.hero--video .container { position: relative; z-index: 1; }
.hero-video {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 36px 70px -24px rgba(0,0,0,.75);
    border: 3px solid rgba(255,255,255,.12);
    background: #000;
}

.page-banner {
    background: linear-gradient(120deg, var(--tut-teal-dark), var(--tut-ink));
    color: #fff;
    padding: 4.5rem 0 3.5rem;
}

/* ---- Cards ---- */
.post-card {
    background: var(--tut-paper);
    border: 1px solid var(--tut-line);
    border-radius: var(--tut-radius);
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--tut-shadow); }
.post-card .thumb { aspect-ratio: 3/2; object-fit: cover; width: 100%; background: var(--tut-line); display:block; }
.post-card .card-body { padding: 1.1rem 1.2rem 1.4rem; }
.post-card h3, .post-card h5 { line-height: 1.25; }

/* Editorial card pieces */
.post-card__media { position: relative; display: block; overflow: hidden; }
.post-card__media .thumb { transition: transform .5s ease; }
.post-card:hover .post-card__media .thumb { transform: scale(1.05); }
.post-card__cat {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--tut-ink);
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    padding: .3em .7em; border-radius: 50rem; backdrop-filter: blur(4px);
}
.post-card__video {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20,35,59,.75); color: #fff; font-size: 1rem;
}
.post-card__title { font-size: 1.18rem; line-height: 1.3; margin-bottom: .5rem; }
.post-card__title a { color: var(--tut-ink); text-decoration: none; background-image: linear-gradient(var(--tut-teal), var(--tut-teal)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.post-card__title a:hover { background-size: 100% 2px; color: var(--tut-teal-dark); }
.post-card__excerpt { color: var(--tut-ink-soft); font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.post-card__foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--tut-ink-soft); border-top: 1px solid var(--tut-line); padding-top: .7rem; }

.thumb.thumb-fallback,
.thumb-fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tut-teal), var(--tut-ink));
    color: rgba(255,255,255,.85); font-size: 2.4rem;
}

.play-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239, 111, 108, .92);
    color: #fff; font-size: 1.9rem;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .2s ease, background .2s ease;
    pointer-events: none;
}
.post-card:hover .play-badge { transform: scale(1.12); background: var(--tut-coral); }

.badge-cat {
    background: rgba(14,124,134,.12);
    color: var(--tut-teal-dark);
    font-weight: 600;
    border-radius: 50rem;
    padding: .35em .8em;
}
.tag-pill {
    display: inline-block;
    background: var(--tut-sand);
    border: 1px solid var(--tut-line);
    color: var(--tut-ink-soft);
    border-radius: 50rem;
    padding: .2em .8em;
    font-size: .8rem;
    margin: .15rem .2rem 0 0;
}
.tag-pill:hover { background: var(--tut-teal); color: #fff; border-color: var(--tut-teal); }

.meta { color: var(--tut-ink-soft); font-size: .85rem; }

/* ---- Article ---- */
.article-body { font-size: 1.14rem; line-height: 1.85; color: #26313f; }
.article-body h2 { font-size: 1.85rem; margin: 2.4rem 0 1rem; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.35rem; margin: 1.8rem 0 .8rem; scroll-margin-top: 90px; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body img { max-width: 100%; border-radius: 14px; margin: 1.5rem 0; }
.article-body a { color: var(--tut-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    border-left: 4px solid var(--tut-amber); background: var(--tut-sand);
    margin: 1.5rem 0; padding: 1rem 1.4rem; border-radius: 0 12px 12px 0;
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-style: italic; color: var(--tut-ink);
}

/* Article hero */
.article-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; background: var(--tut-ink); }
.article-hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,59,.15) 0%, rgba(20,35,59,.85) 100%); }
.article-hero__inner { position: relative; z-index: 2; padding-bottom: 3rem; }
.article-hero__credit {
    position: absolute; right: 10px; bottom: 8px; z-index: 3;
    background: rgba(20,35,59,.5); color: rgba(255,255,255,.85);
    font-size: .68rem; padding: 2px 8px; border-radius: 5px;
    max-width: 60%; text-align: right; line-height: 1.3;
}
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; color: rgba(255,255,255,.85); }

/* Reading progress */
#readingBar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--tut-amber); z-index: 1080; transition: width .1s linear; }

/* Table of contents */
.toc { position: sticky; top: 90px; }
.toc-list { list-style: none; padding-left: 0; border-left: 2px solid var(--tut-line); }
.toc-list a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--tut-ink-soft); font-size: .9rem; text-decoration: none; }
.toc-list a:hover, .toc-list a.active { color: var(--tut-teal-dark); border-left-color: var(--tut-teal); font-weight: 600; }

/* Inline video block */
.video-embed { margin: 2rem 0; }
.video-embed .ratio { border-radius: 14px; overflow: hidden; box-shadow: var(--tut-shadow); }
.video-embed__label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--tut-ink); margin-bottom: .6rem; }

/* Disclosure / tip boxes */
.disclosure { background: var(--tut-sand); border: 1px dashed var(--tut-line); border-radius: 12px; padding: .8rem 1rem; font-size: .85rem; color: var(--tut-ink-soft); }

/* ---- Homepage editorial ---- */
.home-hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; background: var(--tut-ink); }
.home-hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,35,59,.82) 0%, rgba(20,35,59,.45) 60%, rgba(20,35,59,.25) 100%); }
.home-hero__inner { position: relative; z-index: 2; }
.home-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; text-shadow: 0 6px 34px rgba(0,0,0,.4); }

.credential-strip { background: var(--tut-ink); color: #cfd6e2; }
.credential-strip .num { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: #fff; line-height: 1; }

.hub-tile { position: relative; overflow: hidden; border-radius: var(--tut-radius); min-height: 220px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.hub-tile__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.hub-tile:hover .hub-tile__img { transform: scale(1.08); }
.hub-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,59,0) 30%, rgba(20,35,59,.85)); }
.hub-tile__body { position: relative; z-index: 2; padding: 1.3rem; }
.hub-tile h3 { color: #fff; margin: 0; }

.dest-card { position: relative; overflow: hidden; border-radius: var(--tut-radius); aspect-ratio: 4/5; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.dest-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.dest-card:hover .dest-card__img { transform: scale(1.09); }
.dest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,59,0) 40%, rgba(20,35,59,.88)); }
.dest-card__body { position: relative; z-index: 2; padding: 1.1rem; width: 100%; }
.dest-card__body h3 { color: #fff; font-size: 1.25rem; margin: 0; }

.author-strip { background: var(--tut-sand); }
.author-strip__photo { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }

/* ---- Newsletter popup ---- */
.nl-modal-dialog { max-width: 680px; }
.nl-modal { border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(20,35,59,.6); }
.nl-modal__close { position: absolute; top: 14px; right: 16px; z-index: 5; }
.nl-modal .row { min-height: 380px; }
.nl-modal__aside {
    align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--tut-teal), var(--tut-ink));
    color: #fff;
}
.nl-modal__aside i { font-size: 4.5rem; color: var(--tut-amber); }

/* ---- Subscribe band ---- */
.subscribe-band {
    background: linear-gradient(120deg, #b31217, #e52d27);
}
.subscribe-logo {
    width: 70px; height: 70px; border-radius: 50%;
    object-fit: cover; border: 3px solid rgba(255,255,255,.5);
    flex-shrink: 0;
}

/* ---- Gallery ---- */
.gallery-grid { column-count: 4; column-gap: 14px; }
@media (max-width: 1100px) { .gallery-grid { column-count: 3; } }
@media (max-width: 768px)  { .gallery-grid { column-count: 2; } }
@media (max-width: 460px)  { .gallery-grid { column-count: 1; } }
.gallery-item {
    position: relative; display: block; margin: 0 0 14px;
    border-radius: 12px; overflow: hidden; break-inside: avoid;
    box-shadow: 0 10px 26px -18px rgba(20,35,59,.55); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 1.4rem .9rem .7rem; color: #fff; font-size: .82rem; line-height: 1.3;
    background: linear-gradient(180deg, rgba(20,35,59,0), rgba(20,35,59,.82));
    opacity: 0; transform: translateY(8px); transition: .25s;
}
.gallery-item:hover .gallery-item__cap { opacity: 1; transform: translateY(0); }
.gallery-item__cap .d-block { font-weight: 400; opacity: .9; margin-top: 2px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; display: none;
    align-items: center; justify-content: center;
    background: rgba(10,17,30,.94); padding: 3vh 2vw;
}
.lightbox.open { display: flex; }
.lightbox__fig { margin: 0; max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox__fig img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__fig figcaption { color: #dfe5ee; margin-top: .8rem; font-size: .95rem; }
.lightbox__close {
    position: absolute; top: 16px; right: 22px; background: none; border: 0;
    color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
    background: rgba(255,255,255,.1); border: 0; color: #fff;
    width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1;
    cursor: pointer; flex-shrink: 0; margin: 0 .6rem; transition: background .2s;
}
.lightbox__nav:hover { background: var(--tut-teal); }
@media (max-width: 640px) { .lightbox__nav { position: absolute; bottom: 20px; } .lightbox__prev { left: 30%; } .lightbox__next { right: 30%; } }

/* ---- Ad slots ---- */
.ad-slot {
    position: relative;
    margin: 1.75rem auto;
    text-align: center;
    line-height: 0;
}
.ad-slot a { display: inline-block; }
.ad-slot img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 24px -16px rgba(20,35,59,.5);
}
.ad-label {
    position: absolute; top: 6px; right: 6px;
    background: rgba(20,35,59,.6); color: #fff;
    font-size: .58rem; line-height: 1; letter-spacing: .08em;
    text-transform: uppercase; padding: 3px 6px; border-radius: 4px;
    z-index: 2; pointer-events: none;
}
.ad--horizontal { max-width: 728px; }
.ad--vertical   { max-width: 160px; }
.ad--square     { max-width: 300px; }
.ad--rectangle  { max-width: 300px; }

/* ---- Section heads ---- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--tut-teal);
}

/* ---- Footer ---- */
footer.site-footer { background: var(--tut-ink); color: #c7cfdd; }
footer.site-footer a { color: #c7cfdd; }
footer.site-footer a:hover { color: #fff; }
.social-ic {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; transition: background .2s;
}
.social-ic:hover { background: var(--tut-teal); color: #fff; }

/* ---- Map ---- */
#destinationsMap { height: 460px; border-radius: var(--tut-radius); z-index: 1; }

/* ===== Admin ===== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; flex-shrink: 0; background: var(--tut-ink); color: #cdd5e3;
    position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto;
}
.admin-sidebar .brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.25rem; }
.admin-sidebar .nav-link {
    color: #aab4c6; border-radius: 10px; margin: 2px 10px; padding: .6rem .9rem;
    display: flex; align-items: center; gap: .7rem; font-size: .95rem;
}
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar .nav-link.active { background: var(--tut-teal); color: #fff; }
.admin-main { flex: 1; margin-left: 250px; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--tut-line); }
.admin-content { padding: 1.6rem; }

.stat-card { border: none; border-radius: var(--tut-radius); box-shadow: var(--tut-shadow); }
.stat-card .icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
}
.admin-card { background: #fff; border: 1px solid var(--tut-line); border-radius: var(--tut-radius); }
.table > :not(caption) > * > * { padding: .8rem .9rem; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s; z-index: 1050; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
