/* ==========================================================================
   TripMalta refresh (staging) - loaded after style.css.
   Step 2: tokens, type, header + 7-item nav, footer.
   Type: Young Serif (display), Instrument Sans (body), IBM Plex Mono (data).
   Colour: harbour navy #0a2a43, sea #0e4a72, luzzu yellow #e3ac10,
   flag red #b8142c, limestone #efe9de.
   ========================================================================== */
:root {
  --navy: #0a2a43; --sea: #0e4a72; --luzzu: #e3ac10; --luzzu-dk: #b88a06; --flag: #b8142c;
  --stone: #efe9de; --stone-2: #f7f3ec; --sand: #d8c39a; --ink: #15212e; --ink-2: #44525f; --line: #e4ddd0;
  /* remap the old tokens so every existing template picks up the new palette */
  --blue: var(--navy); --blue-light: var(--sea); --blue-pale: #e8eff5;
  --gold: var(--luzzu); --gold-light: #f0c03a; --coral: var(--flag);
  --text: var(--ink); --muted: #5d6a76; --light: var(--stone-2); --border: var(--line);
  --radius: 10px; --shadow: 0 1px 2px rgba(10,42,67,.06), 0 6px 22px rgba(10,42,67,.07);
  --font-sans: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-data: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
body { font-family: var(--font-sans); color: var(--ink); font-size: 16.5px; line-height: 1.68; -webkit-font-smoothing: antialiased; background: #fff; }
h1, h2, h3, .section-title, .page-hero h1, .article-hero h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.005em; text-wrap: balance; }
h4, h5 { font-family: var(--font-sans); font-weight: 600; }
a { color: var(--sea); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--luzzu); outline-offset: 2px; border-radius: 4px; }
.tm-data, .badge { font-family: var(--font-data); }

/* ---- Header -------------------------------------------------------------- */
.site-header { background: var(--navy); box-shadow: none; border-bottom: 3px solid var(--luzzu); }
.header-inner { height: 68px; gap: 18px; }
.site-header .logo img { height: 52px !important; }
.tm-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.tm-nav > a, .tm-dd > button {
  color: #e9eff4; font: 500 15px/1 var(--font-sans); padding: 10px 12px; border-radius: 6px;
  text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.tm-nav > a:hover, .tm-dd > button:hover, .tm-dd.open > button { background: rgba(255,255,255,.1); color: #fff; }
.tm-nav > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--luzzu); border-radius: 0; }
.tm-nav > a.tm-cta { background: var(--luzzu); color: #1b1b1b; font-weight: 700; margin-left: 8px; padding: 11px 16px; }
.tm-nav > a.tm-cta:hover { background: #f0c03a; color: #000; }
.tm-dd { position: relative; }
.tm-dd > button svg { vertical-align: -2px; margin-left: 4px; transition: transform .15s; }
.tm-dd.open > button svg { transform: rotate(180deg); }
.tm-dd-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 520px; background: #fff; color: var(--ink);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(10,42,67,.25); padding: 14px; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px 10px; z-index: 200;
}
.tm-dd.open .tm-dd-menu { display: grid; }
.tm-dd-menu a { display: grid; gap: 1px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.tm-dd-menu a:hover { background: var(--stone-2); }
.tm-dd-menu a b { font: 400 16.5px/1.25 var(--font-serif); }
.tm-dd-menu a span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tm-dd-menu .tm-dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--sea); display: block; }
.tm-search-btn { margin-left: 4px !important; }
.nav-toggle { color: #fff; }
@media (max-width: 1360px) {
  .tm-nav > a, .tm-dd > button { padding: 10px 8px; font-size: 14.5px; }
  .tm-nav > a.tm-cta { margin-left: 4px; padding: 11px 12px; }
}
/* Nine menu items since Nov 2026 (Shopping, What's New): switch to the menu button below 1240px. */
@media (max-width: 1240px) {
  .nav-toggle { display: block; margin-left: 0; order: 3; }
  .tm-search-btn { margin-left: auto !important; }
  .tm-nav { display: none; position: absolute; top: 71px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; gap: 0; box-shadow: 0 14px 30px rgba(0,0,0,.25); max-height: calc(100vh - 71px); overflow-y: auto; }
  .tm-nav.open { display: flex; }
  .tm-nav > a, .tm-dd > button { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; text-align: left; width: 100%; font-size: 16px; }
  .tm-nav > a.tm-cta { margin: 14px 0 0; text-align: center; border-radius: 8px; border: 0; }
  .tm-dd-menu { position: static; width: auto; box-shadow: none; grid-template-columns: 1fr; background: rgba(255,255,255,.06); margin: 4px 0 8px; }
  .tm-dd-menu a { color: #fff; } .tm-dd-menu a span { color: #b9c7d3; } .tm-dd-menu a:hover { background: rgba(255,255,255,.08); }
  .tm-dd-menu .tm-dd-all { color: var(--gold-light); border-color: rgba(255,255,255,.15); }
  .site-header .container { position: static; }
}

/* ---- Buttons, cards, sections (site-wide polish) ------------------------- */
.btn-affiliate, .btn-search { font-family: var(--font-sans); font-weight: 700; border-radius: 8px; }
.btn-affiliate { background: var(--navy); }
.btn-affiliate:hover { background: var(--sea); }
.btn-viator { background: var(--luzzu) !important; color: #1b1b1b !important; }
.card { border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.card:hover { box-shadow: var(--shadow); }
.card-cat, .rel-cat, .cat-label { font-family: var(--font-data); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; color: var(--sea); }
.card h3 { font-family: var(--font-serif); font-weight: 400; }
.section-title { font-weight: 400; color: var(--ink); }
.page-hero { background: var(--navy) !important; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); }
.site-footer h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; letter-spacing: 0; }
.tm-foot-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; padding: 22px 0 6px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; }
.tm-foot-groups h5 { font: 500 11.5px/1 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin: 0 0 10px; }
.tm-foot-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tm-foot-groups a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; }
.tm-foot-groups a:hover { color: #fff; text-decoration: underline; }

/* ---- Official links + author box restyle ---------------------------------- */
.tm-official { background: var(--stone-2); border-top: 1px solid var(--line) !important; padding: 34px 0 26px !important; margin-top: 40px !important; }
.tm-official h2 { font-family: var(--font-serif); font-weight: 400; color: var(--ink) !important; font-size: 24px !important; }
.tm-official-card { border-color: var(--line) !important; border-radius: 12px !important; }
.tm-official-card h3 { font-family: var(--font-sans); font-weight: 600; }
.tm-official-card a { color: var(--sea) !important; }
.tm-author { background: #fff !important; border-top: 1px solid var(--line) !important; margin-top: 0 !important; }
.tm-author-av { background: var(--navy) !important; font-family: var(--font-serif) !important; font-weight: 400 !important; }
.tm-author-n { color: var(--ink) !important; font-family: var(--font-serif); font-weight: 400 !important; }
.tm-author a { color: var(--sea) !important; }

/* ==========================================================================
   Step 3: guide template - photo hero, byline, ticket stub, rail, sticky bar
   ========================================================================== */
.g-hero { position: relative; margin: 0; background: var(--navy); color: #fff; overflow: hidden; }
.g-hero:not(.has-photo) { background: linear-gradient(160deg, var(--navy) 0%, var(--sea) 100%); }
.g-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,67,.15) 0%, rgba(10,42,67,.25) 40%, rgba(10,42,67,.82) 100%); }
.g-hero-in { position: relative; z-index: 1; display: grid; gap: 12px; align-content: end; min-height: 300px; padding-top: 48px; padding-bottom: 44px; }
.g-hero.has-photo .g-hero-in { min-height: clamp(360px, 52vh, 520px); }
.g-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; max-width: 22ch; margin: 0; }
.g-hero p { color: #eef3f7; font-size: 1.12rem; max-width: 60ch; margin: 0; line-height: 1.55; }
.g-crumbs { display: block; margin: 0; font: 400 12.5px/1.4 var(--font-data); color: #dbe6ee; }
.g-crumbs a { color: #fff; text-decoration: none; } .g-crumbs a:hover { text-decoration: underline; }
.g-crumbs i { font-style: normal; opacity: .6; margin: 0 4px; }
.g-kicker { font: 500 12px/1.3 var(--font-data); letter-spacing: .07em; text-transform: uppercase; color: #ffe6a6; }
.g-credit { position: absolute; z-index: 2; right: 12px; bottom: 8px; font: 400 11px/1.3 var(--font-data); color: rgba(255,255,255,.82); text-align: right; max-width: 70%; }
.g-credit a { color: #fff; }
.g-byline { border-bottom: 1px solid var(--line); background: #fff; }
.g-byline-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.g-av { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 400 15px/1 var(--font-serif); }
.g-byline b { color: var(--ink); }
.g-chip { font: 500 12.5px/1 var(--font-data); background: var(--stone); color: var(--ink); padding: 6px 9px; border-radius: 5px; text-decoration: none; }
a.g-chip:hover { background: var(--sand); }
.g-how { margin-left: auto; font-weight: 600; font-size: 13.5px; }
.g-section { padding-top: 34px; }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; max-width: 1200px; }
.g-wrap { max-width: 760px !important; min-width: 0; }
.g-wrap > p:first-of-type { font-size: 1.08rem; }
.g-wrap h2.section-title { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 44px; scroll-margin-top: 90px; }
.g-wrap h3 { font-size: 1.28rem; }
/* ticket stub */
.g-stub { margin: 6px 0 30px; }
.g-stub-h { font: 500 12px/1 var(--font-data) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); margin: 0 0 10px; }
.g-stub dl { display: flex; flex-wrap: wrap; margin: 0; border: 1.5px dashed #b9a882; border-radius: 12px; background: var(--stone); overflow: hidden; }
.g-stub dl > div { flex: 1 1 180px; padding: 13px 16px; border-right: 1.5px dashed #b9a882; border-bottom: 1.5px dashed #b9a882; margin: 0 -1.5px -1.5px 0; }
.g-stub dl > div.w1 { flex-basis: 300px; } .g-stub dl > div.w2 { flex-basis: 100%; }
.g-stub dt { font: 500 10.5px/1.2 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: #6f6249; margin-bottom: 5px; }
.g-stub dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.g-stub dl > div.w0 dd { font: 400 18px/1.25 var(--font-serif); }/* money bar + buttons in the new palette */
.g-money { background: var(--navy) !important; border-radius: 12px; }
.g-btn-booking { background: #fff !important; color: var(--navy) !important; }
.g-btn-viator { background: var(--luzzu) !important; color: #1b1b1b !important; }
.g-btn-sm { background: var(--navy) !important; color: #fff !important; }
.g-facts caption, .g-table caption { color: var(--navy) !important; }
.g-table th { background: var(--navy) !important; }
.g-hotel { border-color: var(--line) !important; border-radius: 12px !important; box-shadow: none !important; }
.g-hotel h4 { font: 400 18px/1.25 var(--font-serif) !important; }
.g-hotel-tier { font-family: var(--font-data) !important; font-weight: 500 !important; background: var(--stone) !important; color: var(--ink) !important; }
.g-skip { background: var(--stone-2) !important; border-left: 4px solid var(--flag) !important; }
.g-skip h3 { color: var(--flag) !important; font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; }
.g-tip { background: #fbf4dc !important; border-left-color: var(--luzzu) !important; }
.g-faq summary { color: var(--ink) !important; }
.g-related a { background: var(--stone) !important; color: var(--ink) !important; }
.g-day-n { background: var(--navy) !important; font-family: var(--font-data); font-weight: 500; }
/* rail */
.g-rail { position: sticky; top: 92px; display: grid; gap: 16px; }
.g-rail-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; background: #fff; box-shadow: var(--shadow); }
.g-rail-box h4 { margin: 0; font: 400 19px/1.25 var(--font-serif); color: var(--ink); }
.g-rail-box p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.g-rail-box small { font: 400 11px/1.4 var(--font-data); color: var(--muted); }
.g-rbtn { display: block; text-align: center; font-weight: 700; font-size: 14.5px; padding: 12px 10px; border-radius: 8px; text-decoration: none; line-height: 1.25; }
.g-rbtn-hotel { background: var(--navy); color: #fff !important; } .g-rbtn-hotel:hover { background: var(--sea); }
.g-rbtn-tour { background: var(--luzzu); color: #1b1b1b !important; } .g-rbtn-tour:hover { background: #f0c03a; }
.g-toc { display: block; margin: 0; }
.g-related { display: block; margin-left: 0; }
.g-toc h5 { font: 500 11px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.g-toc a { display: block; padding: 5px 12px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.g-toc a:hover { color: var(--sea); background: var(--stone-2); }
.g-sticky { display: none; }
@media (min-width: 961px) { .g-money.g-money-top { display: none !important; } }
@media (max-width: 960px) {
  .g-layout { grid-template-columns: 1fr; gap: 0; }
  .g-rail { display: none; }
  .g-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10,42,67,.12); transform: translateY(110%); transition: transform .2s; }
  .g-sticky.on { transform: none; }
  .g-sticky .g-rbtn { font-size: 13.5px; padding: 11px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .g-stub dl > div { flex-basis: 140px; } .g-stub dl > div.w1 { flex-basis: 100%; }
  .g-how { margin-left: 0; }
  .g-credit { left: 12px; right: 12px; max-width: none; text-align: left; }
  .g-hero-in { padding-bottom: 50px; }
}
@media (max-width: 480px) { .g-stub dl > div.w1 { grid-column: span 2; } }

/* The old stylesheet hid and absolutely positioned EVERY <nav> on mobile (meant for
   the header menu), which also swallowed breadcrumbs and "Keep planning" links. */
@media (max-width: 768px) {
  nav:not(.tm-nav) { display: block; position: static; background: none; padding: 0; flex-direction: row; }
  nav:not(.tm-nav) a { border-bottom: 0; }
  .g-crumbs a, .breadcrumb a, .g-toc a { padding: 0; }
}