/* Vatican Rome — mobile-first styles */
:root {
  --cream: oklch(97% 0.014 80);
  --cream-deep: oklch(93.5% 0.022 74);
  --stone: oklch(89% 0.02 70);
  --ink: oklch(24% 0.02 50);
  --ink-soft: oklch(46% 0.025 55);
  --line: oklch(89% 0.015 70);
  --line-strong: oklch(78% 0.02 65);
  --header-h: 68px;
}
/* --accent and --accent-text are set together on <body> (inline, from
   SiteSettings) so --accent-text can resolve var(--accent) correctly. */

* { box-sizing: border-box; }
/* overflow-x: clip, not hidden, on purpose: per the CSS overflow spec, an
   axis set to hidden (while the other stays visible) forces the OTHER
   axis to compute as auto — silently turning html/body into their own
   scroll container distinct from the viewport, which is a well-documented
   way to break position: sticky descendants (like #site-header) in Chrome,
   intermittently, well after page load. clip is explicitly exempted from
   that promotion rule, so it blocks horizontal overflow the same way
   without the side effect. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); overflow-x: clip; width: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  width: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: 'Manrope', system-ui, sans-serif; cursor: pointer; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); text-decoration: none;
}
a.eyebrow:hover { text-decoration: underline; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .container { padding: 0 40px; } }
@media (min-width: 1100px) { .container { padding: 0 60px; } }

/* Footer: same reduced left padding as the header logo / page content
   (.site-header .container, .page-layout.container) instead of the
   wider generic .container padding above — otherwise its left-aligned
   items sit further right than everything else on the page. */
footer .container { padding-left: 20px; }
@media (min-width: 700px) { footer .container { padding-left: 18px; } }
@media (min-width: 1100px) { footer .container { padding-left: 26px; } }

.section-head { max-width: 620px; margin: 0 auto 36px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; color: var(--ink); }

/* Left-aligned section titles inside the main article column (e.g.
   "Recommended tours", "Where to stay", "Frequently asked questions",
   "You may be interested in") — unlike .section-head, never centered. */
.section-title { font-size: 26px; line-height: 1.2; color: var(--ink); text-align: left; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 700px) { .section-head { margin-bottom: 52px; gap: 14px; } .section-head p { font-size: 17px; } }

.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px;
  transition: filter .2s ease, transform .2s ease;
  white-space: nowrap;
}
.pill-btn:hover { filter: brightness(0.93); transform: translateY(-1px); color: #fff; }
.search-tab {
  padding: 11px 18px; border: none; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; background: transparent; color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.search-tab.active { background: var(--accent); color: #2a1a0e; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.ghost-btn:hover { color: var(--accent); border-color: var(--accent); }
.ghost-btn svg { transition: transform .2s ease; }
.ghost-btn:hover svg { transform: translateX(3px); }
.card-lift { transition: transform .28s ease, box-shadow .28s ease; }
@media (hover: hover) {
  .card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(60, 40, 20, 0.28); }
  .card-lift:hover .icon-zoom { transform: scale(1.08); }
  /* Whole-card links (e.g. the hotel-zone card) style their non-link
     .ghost-btn the same way a real hovered link would — the "button"
     is just a visual label now, and : hover on it alone would only
     fire when the pointer is literally over that small span, not
     anywhere else on the card that's actually the clickable target. */
  .card-lift:hover .ghost-btn { color: var(--accent); border-color: var(--accent); }
  .card-lift:hover .ghost-btn svg { transform: translateX(3px); }
}

.section-card {
  display: flex; flex-direction: column;
  background: var(--cream-deep); border-radius: 16px; border: 1px solid var(--line-strong);
  overflow: hidden; box-shadow: 0 26px 50px -18px rgba(40, 28, 15, 0.6);
}
.section-card-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.related-card-title { font-size: 20px; line-height: 1.35; }
@media (min-width: 700px) { .related-card-title { font-size: 16px; } }
.section-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.section-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; }
.section-card-footer p { margin: 0; }
.section-card-btn { margin-top: auto; align-self: flex-end; }
.section-card-btn-round {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%; padding: 0; margin-top: 0;
}
@media (hover: hover) {
  .section-card:hover .section-card-img { transform: scale(1.05); }
}
.section-card-img { transition: transform .4s ease; }
.icon-zoom { transition: transform .35s ease; }

.pillar-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2 / 1; border-radius: 40px 5px; overflow: hidden;
  box-shadow: 0 26px 50px -16px rgba(40, 28, 15, 0.5), 0 10px 22px -12px rgba(40, 28, 15, 0.35);
  transition: transform .28s ease, box-shadow .28s ease;
}
.pillar-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,10,5,0.4) 0%, rgba(15,10,5,0.18) 60%, rgba(15,10,5,0.05) 100%);
}
.pillar-card-title {
  position: relative; z-index: 2; margin: 0 16px; max-width: calc(100% - 32px);
  font-family: 'Newsreader', serif; font-size: 27px; font-weight: 700; line-height: 1.25;
  color: #fff; text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 6px 24px rgba(0, 0, 0, 0.6);
}
@media (min-width: 700px) {
  .pillar-card-title { font-size: 34px; }
}
@media (hover: hover) {
  .card-lift:hover .pillar-card-img { transform: scale(1.08); }
  .pillar-card:hover { box-shadow: 0 34px 60px -16px rgba(40, 28, 15, 0.6), 0 14px 28px -12px rgba(40, 28, 15, 0.4); }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rise { opacity: 0; animation: riseIn .7s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; animation: none; }
}
input::placeholder { color: #ad9d7c; opacity: 1; }
.rotate-180 { display: inline-block; transform: rotate(180deg); }

/* ---------- Responsive grids (mobile-first: 1 column by default) ---------- */
.grid-1 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-1.cols-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-1.cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-1.cols-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .grid-1 { gap: 26px; } }

/* ---------- Header ---------- */
/* .site-header itself is a bare positioning shell: sticky, no visuals of
   its own. Every visual (background, blur, border, shadow) and the hide
   transform live on .site-header-bar instead — if the background sat here,
   it would stay put (this element never moves) while the bar slid away
   underneath it, leaving a translucent strip behind on scroll-down. */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header-bar {
  /* Positioning root for .mobile-menu below, which anchors to this box
     via position:absolute instead of sitting in normal flow inside it —
     see the comment on .mobile-menu for why. */
  position: relative;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px -10px rgba(40, 28, 15, 0.22);
  transition: transform .3s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header-bar.is-scrolled { box-shadow: 0 18px 40px -16px rgba(40, 28, 15, 0.55); }
.site-header-bar.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 8px; padding-left: 0; }
.brand { display: flex; align-items: center; gap: 0px; line-height: 1.15; min-width: 0; overflow: hidden; flex: 1 1 auto; }
.brand-logo { height: 60px; width: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(40,28,15,0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; overflow: hidden; }
.brand-name {
  font-family: 'Newsreader', serif; font-size: 21px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-tagline {
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 700px) {
  :root { --header-h: 92px; }
  .site-header .container { padding-left: 0; }
  .brand-logo { height: 90px; }
  .brand-name { font-size: 30px; }
  .brand-tagline { font-size: 12px; letter-spacing: 0.1em; }
}
@media (min-width: 1100px) { .site-header .container { padding-left: 0; } }

.main-nav {
  display: none;
  align-items: center; gap: 28px;
}
.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
@media (min-width: 700px) { .header-actions { gap: 10px; } }
.lang-select-footer {
  border: 1px solid #4a3d2c; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  color: #eee2ce; background: #382c20; cursor: pointer;
}
.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; flex-shrink: 0;
}
.hamburger svg { pointer-events: none; }

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
}
.main-nav a, .main-nav button { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.main-nav > a:hover, .nav-dropdown-trigger:hover,
.main-nav > a:focus-visible, .nav-dropdown-trigger:focus-visible {
  text-decoration: underline; text-underline-offset: 4px;
}
.main-nav button {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown-trigger .caret {
  display: inline-flex; transform: rotate(90deg); transition: transform .15s ease;
  color: var(--accent-text);
}
.nav-dropdown-trigger .caret svg { stroke-width: 3; }
.nav-dropdown.is-open .nav-dropdown-trigger .caret { transform: rotate(-90deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; right: 0;
  margin-top: 10px; padding: 6px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px -10px rgba(20, 14, 8, 0.28);
  /* Single column, sized to its widest single-line item: a multi-column grid
     lets 1fr tracks grow to fit the longest line (their max-content
     contribution), which blew the whole menu wider than the viewport for
     long translated pillar names — width:max-content on this single flex
     column doesn't have that problem, and it means an item only wraps (and
     the menu only grows taller) in the rare case a translation is wider
     than the viewport itself allows, never as the default behaviour. No
     max-height/scroll here: the menu should just grow to fit its content.
  */
  display: flex; flex-direction: column;
  width: max-content; max-width: calc(100vw - 40px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 50;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 6px;
  font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink); white-space: normal; overflow-wrap: break-word; line-height: 1.35;
}
.nav-dropdown-menu a svg { flex-shrink: 0; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--cream-deep); color: var(--accent-text); }

/* An absolutely-positioned overlay anchored to .site-header-bar, not
   normal-flow content inside it. It used to sit in flow, which meant
   opening it changed .site-header-bar's own box height — the same box
   that carries the scroll hide/show `transform` transition. Reopening the
   menu right as that transition was settling (scroll down, then up, then
   tap) raced a live content-driven resize against an in-flight transform
   animation, which some mobile browsers fail to repaint correctly,
   leaving the list looking broken. As an overlay, opening/closing the
   menu never touches .site-header-bar's height, so there's nothing left
   to race. */
.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 10px 20px 18px;
  box-shadow: 0 18px 36px -20px rgba(40, 28, 15, 0.4);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 4px; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-submenu { display: flex; flex-direction: column; margin: -2px 0 4px; }
.mobile-submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px 10px 18px; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.mobile-submenu a svg { flex-shrink: 0; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------- Hero with parallax photo ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 700px) { .hero { min-height: 420px; } }
.hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1); will-change: opacity, transform;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
/* Slow, continuous "Ken Burns" push-in while a slide is showing (7s,
   roughly the 6s autoplay interval plus the crossfade) instead of a flat
   crossfade — the zoom keeps going after the fade-in completes, so the
   slide never looks static even once fully opaque. A separate class from
   .is-active on purpose: the JS adds it one frame *after* .is-active so
   the transform transition actually has a "from" state to animate from
   (including for the very first slide, already .is-active in the
   server-rendered HTML before any JS runs) instead of just snapping to
   its end state with nothing to see. */
.hero-slide.is-zoomed { transform: scale(1.09); transition: opacity 1.6s ease, transform 7s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-zoomed { transition: opacity 1.6s ease; transform: none; }
}
.hero-media img {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 140%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: transform;
}
.hero-slide .photo-credit { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active .photo-credit { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 58% at 50% 48%, rgba(6,4,2,0.7) 0%, rgba(6,4,2,0) 72%),
    linear-gradient(180deg, rgba(10,6,3,0.62) 0%, rgba(10,6,3,0.5) 45%, rgba(10,6,3,0.8) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 20px;
}
.hero-content .eyebrow { color: #f3d9a8; }
.hero-content h1 {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 500;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.12; color: #fff;
  max-width: 620px; margin-top: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 14px 44px rgba(0,0,0,0.45);
  text-wrap: balance;
}
.hero-content p {
  font-size: clamp(15px, 2.6vw, 18px); line-height: 1.6; color: rgba(255,255,255,0.92);
  max-width: 540px; margin-top: 16px;
}

.hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 9px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; padding: 0; border: none;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.75); }
.hero-dot.is-active { background: #fff; transform: scale(1.3); }

/* ---------- Search card ---------- */
.search-wrap { position: relative; z-index: 10; display: flex; justify-content: center; padding: 0 16px; margin-top: -28px; }
@media (min-width: 700px) { .search-wrap { padding: 0 24px; margin-top: -44px; } }
.search-card {
  width: 100%; max-width: 920px; background: var(--cream-deep); border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(60,40,20,0.35); padding: 8px; border: 1px solid var(--line);
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 2px; }
.search-fields {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--cream); border-radius: 16px; padding: 6px;
}
@media (min-width: 780px) { .search-fields { flex-direction: row; align-items: stretch; } }
.search-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.search-field-sep { display: none; }
@media (min-width: 780px) { .search-field-sep { display: block; width: 1px; background: var(--line-strong); margin: 10px 0; } }
.search-submit { margin: 4px 2px 2px; }
@media (min-width: 780px) { .search-submit { margin: 6px; flex-shrink: 0; } }

/* ---------- Parallax banner ---------- */
.parallax-banner {
  position: relative; overflow: hidden; min-height: 260px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
@media (min-width: 700px) { .parallax-banner { min-height: 360px; } }
.parallax-banner img {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 190%;
  transform: translate(-50%, -50%); object-fit: cover; will-change: transform;
}
/* Moderate flat overlay keeps any overlaid text legible; the wave-divider
   edges (below) are what create the "separate plane" look, not the tint. */
.parallax-banner::after { content: ""; position: absolute; inset: 0; background: rgba(20,14,8,0.42); }
/* -plain: a divider with no overlaid text (see .parallax-banner-content
   below) doesn't need the darkening tint at all, and reads better taller. */
.parallax-banner-plain::after { content: none; }
.parallax-banner-plain { min-height: 340px; }
@media (min-width: 700px) { .parallax-banner-plain { min-height: 480px; } }

.wave-divider { position: absolute; left: 0; width: 100%; height: 44px; z-index: 2; display: block; }
.wave-divider path { fill: var(--cream); }
.wave-divider-top { top: -1px; }
.wave-divider-bottom { bottom: -1px; }
@media (min-width: 700px) { .wave-divider { height: 60px; } }
.parallax-banner-content { position: relative; z-index: 2; padding: 20px; max-width: 560px; }
.parallax-banner-content .eyebrow { color: #f3d9a8; }
.parallax-banner-content h2 { color: #fff; font-size: clamp(24px, 4.6vw, 34px); margin-top: 10px; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.parallax-banner-content p { color: rgba(255,255,255,.9); margin-top: 10px; font-size: 15.5px; }

.app-promo { position: relative; overflow: hidden; min-height: 260px; display: flex; align-items: center; }
.app-promo-row { display: flex; align-items: center; gap: 18px; text-align: left; }
.app-promo-copy { min-width: 0; }
.app-promo-title {
  font-family: 'Newsreader', serif; font-weight: 600; color: #fff; margin: 0; line-height: 1.25;
  white-space: nowrap; font-size: clamp(17px, 5.6vw, 30px);
}
@media (max-width: 699px) {
  /* Icon above the text so the title gets the full container width. */
  .app-promo-row { flex-direction: column; text-align: center; gap: 14px; }
  /* Longer translations may still need a second line here — let it
     wrap, centered, rather than shrinking the font further. */
  .app-promo-title { white-space: normal; }
}
@media (min-width: 700px) { .app-promo-title { font-size: 30px; } }
.app-promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-promo::after { content: ""; position: absolute; inset: 0; background: rgba(20,14,8,0.58); }
.app-promo .container { position: relative; z-index: 2; width: 100%; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px; padding: 8px 16px 8px 14px;
  transition: transform .2s ease, background .2s ease;
}
.store-badge:hover { background: #1c1c1c; transform: translateY(-2px); }
.store-badge span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-badge span em { font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.75); }
.store-badge span strong { font-size: 17px; font-weight: 600; }
@media (min-width: 700px) { .app-promo { min-height: 340px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img, .parallax-banner img { transition: transform .05s linear; }
}

/* ---------- Back to top ---------- */
/* Fixed, centered wrapper for back-to-top + native share (see base.jinja): the
   show-on-scroll fade/slide lives here, so both buttons appear together. */
.floating-actions {
  position: fixed; left: 50%; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateX(-50%) translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.floating-actions.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
@media (min-width: 700px) { .floating-actions { bottom: 28px; } }
.back-to-top, .share-btn {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--cream); color: var(--ink); box-shadow: 0 10px 26px -12px rgba(40,28,15,0.45);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.share-btn svg { pointer-events: none; }
/* `display: flex` above would otherwise override the `hidden` attribute site.js only
   removes once navigator.share is confirmed available. */
.share-btn[hidden] { display: none; }
@media (min-width: 980px) { .share-btn { display: none; } }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 26px -18px rgba(40,28,15,0.4);
}
.mobile-cta-bar .pill-btn { flex: 1; }
@media (min-width: 980px) { .mobile-cta-bar { display: none; } }
/* Reserve space so the fixed bar never covers the footer on mobile. */
@media (max-width: 979.98px) { body { padding-bottom: calc(120px + env(safe-area-inset-bottom)); } }

.mobile-cta-bar-info {
  flex-direction: column; align-items: stretch; gap: 0;
  border-top: 3px solid var(--accent-text); border-radius: 16px 16px 0 0;
  padding: 0;
  box-shadow: 0 -18px 36px -20px rgba(40, 28, 15, 0.55);
  overflow: hidden;
}
.mobile-cta-bar-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--ink);
}
.mobile-cta-bar-head svg { flex-shrink: 0; }
/* Icon, label and date share a single row to save vertical space. */
.mobile-cta-bar-heading {
  display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden;
}
.mobile-cta-bar-date { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--cream) 65%, transparent); flex-shrink: 0; }
.mobile-cta-bar-date::before { content: "· "; }
.mobile-cta-bar-info .mobile-cta-bar-label {
  font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream);
  overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1;
}
.mobile-cta-bar-head .mobile-cta-bar-close { color: color-mix(in srgb, var(--cream) 75%, transparent); }
.mobile-cta-bar-head .mobile-cta-bar-close:hover { color: var(--cream); }
.mobile-cta-bar-info .mobile-cta-bar-text {
  margin: 0; padding: 6px 18px 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.mobile-cta-bar-info .pill-btn { width: calc(100% - 36px); margin: 16px 18px 18px; font-size: 16px; }
.mobile-cta-bar-close {
  flex-shrink: 0; width: 34px; height: 34px; border: none; background: transparent;
  font-size: 32px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0;
}

/* The notice closed in the last 30 days (base.jinja's head script). */
.notice-closed #site-notice, .notice-closed #site-notice-mobile { display: none !important; }

/* ---------- Institutional notice box (sitewide, desktop-only floating card) ---------- */
.hero-notice { display: none; }
@media (min-width: 980px) {
  .hero-notice {
    position: fixed; display: flex; flex-direction: column;
    bottom: 28px; right: 28px; z-index: 90; width: 300px;
    background: var(--cream); border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 50px 90px -16px rgba(20, 14, 8, 0.75), 0 22px 44px -12px rgba(20, 14, 8, 0.6);
    overflow: hidden;
  }
}
.hero-notice-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: color-mix(in srgb, var(--accent) 14%, var(--cream));
  border-bottom: 1px solid var(--line);
}
.hero-notice-head svg { flex-shrink: 0; }
.hero-notice-heading { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hero-notice-date { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.hero-notice-label { font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent-text); }
.hero-notice-close {
  flex-shrink: 0; width: 36px; height: 36px; border: none; background: transparent;
  font-size: 32px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0;
}
.hero-notice-close:hover { color: var(--ink); }
.hero-notice-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.hero-notice-text { margin: 0; font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.hero-notice .pill-btn { width: 100%; }

/* ---------- Article body ---------- */
.article-body p { margin: 0 0 20px; }
.article-body p.is-style-text-subtitle { font-size: 19px; color: var(--ink-soft); font-style: italic; }
.article-body h2 { font-size: 24px; margin: 36px 0 16px; }
.article-body h3 { font-size: 20px; margin: 28px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 24px 0; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic; }
.article-body a { color: var(--accent-text); text-decoration: underline; }
.article-body strong { color: var(--ink); }
@media (min-width: 700px) {
  .article-body h2 { font-size: 26px; margin: 40px 0 16px; }
  .article-body h3 { font-size: 21px; margin: 32px 0 14px; }
}

/* Photo credit strip (attribution for freely-licensed photos) */
.photo-credit { font-size: 10.5px; color: rgba(255,255,255,0.75); position: absolute; z-index: 3; right: 10px; bottom: 8px; }

/* ---------- Pillar/guide page hero (photo + overlaid title) ---------- */
.page-hero { position: relative; overflow: hidden; border-radius: 18px; }
.page-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,3,0.05) 0%, rgba(10,6,3,0.1) 45%, rgba(10,6,3,0.78) 100%);
}
.page-hero-content {
  position: absolute; inset: 0; z-index: 2; padding: 22px 0;
  display: flex; align-items: flex-end;
}
.page-hero-content .container { width: 100%; padding-left: 20px; }
.page-hero-content h1 {
  font-family: 'Newsreader', serif; font-weight: 600;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.16; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
  max-width: 720px; margin: 0;
}
@media (min-width: 700px) {
  .page-hero-content { padding: 36px 0; }
  .page-hero-content .container { padding-left: 18px; }
}
@media (min-width: 1100px) { .page-hero-content .container { padding-left: 26px; } }

/* Full-bleed variant: edge-to-edge, no rounded corners, no side margins.
   Same height as the homepage hero, so pillar pages open at the same scale. */
.page-hero-full { border-radius: 0; width: 100%; height: 240px; }
.page-hero-full img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
@media (min-width: 700px) { .page-hero-full { height: 300px; } }

/* ---------- Guide page layout: main column + right rail (ads/widgets) ----------
   Left edge aligned with the header logo (same padding-left as .site-header
   .container), same trick used for .page-hero-content. */
.page-layout.container { padding-left: 20px; }
@media (min-width: 700px) { .page-layout.container { padding-left: 18px; } }
@media (min-width: 1100px) { .page-layout.container { padding-left: 26px; } }
.page-main { max-width: 760px; }
/* Only on wide screens, as a right rail: below 1100px it would stack under the
   article, whose own "Recommended tours" are the same tours as its widget. */
.page-sidebar { display: none; }
@media (min-width: 1100px) {
  /* Gap between main and sidebar matches the container's own right-side
     margin (60px at this breakpoint), so left/gap/right read as equal. */
  .page-layout.container { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 60px; align-items: start; }
  .page-sidebar {
    display: block; min-width: 0;
    position: sticky; top: calc(var(--header-h) + 20px);
    /* Matches the header's own hide/show timing, so the sidebar's stick
       point moves down in step with the header sliding into view instead
       of jumping or lagging behind it. */
    transition: top .3s ease;
  }
  /* Header is off-screen (scrolled down past it): nothing reserved up top
     any more, so the widget sticks flush near the very top instead of
     leaving an empty header-shaped gap. */
  body.header-hidden .page-sidebar { top: 20px; }
}
.sidebar-slot { margin-bottom: 28px; }
.sidebar-slot:last-child { margin-bottom: 0; }

/* Third-party sidebar widgets (Booking.com's SDK included) inject their own
   inline z-index on elements they control — Booking's iframe sets z-index:
   9999, which with no stacking context of its own around it escapes all the
   way to the root and paints over page-level fixed elements (the mobile
   "Important notice" bar, back-to-top button) once scrolled into that
   region. `isolation: isolate` boxes any such z-index inside this slot, so
   nothing a widget does internally can ever climb above fixed chrome. */
.sidebar-slot { isolation: isolate; }

/* "Find your hotel" — Booking.com Affiliate Widget (custom HTML sidebar
   widget). Booking's own script sets height:56.25% on this div, which
   needs a parent with an explicit (non-auto) height to resolve — .sidebar-
   slot has none, so without this it collapses to 0 and the map never
   shows at all. Forced to a real height instead: ~3x the ~188px the
   56.25%-of-width aspect ratio would naturally give at sidebar width. */
#bookingAffiliateWidget_75acca03-d8e5-4ec2-b469-3aacb9e0e52c {
  height: 564px !important;
}
.sidebar-slot-label {
  font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15;
  color: var(--ink); margin: 0 0 16px;
}

/* ---------- FAQ ---------- */
.faq-block {
  margin-top: 48px; background: transparent; border: none; padding: 0;
}
.faq-block .section-title { padding: 0 0 14px; }
.faq-item {
  background: var(--cream-deep); border: 1px solid var(--line-strong); border-radius: 14px;
  margin-bottom: 12px; padding: 4px 18px;
  box-shadow: 0 10px 24px -16px rgba(40, 28, 15, 0.35);
}
.faq-item:last-of-type { margin-bottom: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: 'Newsreader', serif; font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink);
}
.faq-item summary svg { flex-shrink: 0; color: var(--accent-text); transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; margin: 14px 0 18px; }
@media (min-width: 700px) { .faq-item { padding: 4px 24px; } }

/* ---------- Vatican map ----------
   Mobile (< 700px): the map itself is a fixed, one-screen-tall viewport —
   the whole map always fits inside it (letterboxed on whichever axis has
   spare room), pinch/drag/buttons zoom and pan within it. The *page*
   still scrolls normally past it to reach the download button and
   footer below — only the map widget is height-capped, not the body.
   Desktop (>= 700px): a plain full-width image in the normal page flow —
   no locked viewport, no JS transform; the page scrolls to reveal the
   rest of a map taller than the screen. See the @media block below. */
.vatican-map-viewport {
  position: relative; margin: 0 auto; overflow: hidden; touch-action: none;
  background: var(--cream-deep);
  width: min(100vw, calc((100vh - var(--header-h)) * 1386 / 1070));
  width: min(100vw, calc((100dvh - var(--header-h)) * 1386 / 1070));
  aspect-ratio: 1386 / 1070;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
}
.vatican-map-frame {
  position: absolute; inset: 0; transform-origin: 0 0; will-change: transform;
}
.vatican-map-frame img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }

@media (min-width: 700px) {
  .vatican-map-viewport {
    width: 100%; max-width: none; aspect-ratio: auto; max-height: none;
    overflow: visible; touch-action: auto;
  }
  .vatican-map-frame {
    position: relative; inset: auto; width: 100%; height: auto; transform: none !important;
  }
  .vatican-map-frame img { position: static; display: block; width: 100%; height: auto; pointer-events: auto; }
  .vatican-map-zoom-controls { display: none; }
}
.vatican-map-download {
  display: flex; justify-content: center; padding: 28px 20px 56px;
}
.vatican-map-pin {
  position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center;
  text-decoration: none; z-index: 1; padding: 6px; margin: -6px;
}
.vatican-map-pin-dot {
  position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--cream); box-shadow: 0 3px 10px rgba(0,0,0,.5), 0 0 0 2px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.vatican-map-pin-dot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  animation: mapPinPulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .vatican-map-pin-dot::before { animation: none; opacity: 0; } }
@keyframes mapPinPulse {
  0% { transform: scale(.55); opacity: .75; }
  75% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.vatican-map-pin-label {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; padding: 6px 12px; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 2;
}
.vatican-map-pin-label::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.vatican-map-pin:hover .vatican-map-pin-dot,
.vatican-map-pin:focus-visible .vatican-map-pin-dot { transform: scale(1.3); }
.vatican-map-pin:hover .vatican-map-pin-label,
.vatican-map-pin:focus-visible .vatican-map-pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }
.vatican-map-pin:focus-visible { outline: none; }
.vatican-map-pin:focus-visible .vatican-map-pin-dot { outline: 2px solid var(--cream); outline-offset: 2px; }
@media (min-width: 700px) {
  .vatican-map-pin-dot { width: 24px; height: 24px; }
  .vatican-map-pin-label { font-size: 14px; }
}

.vatican-map-zoom-controls {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.5);
}
.vatican-map-zoom-controls button {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--ink); border: none; font-size: 20px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.vatican-map-zoom-controls button:last-child { border-bottom: none; }
.vatican-map-zoom-controls button:hover { background: var(--cream-deep); }
.vatican-map-zoom-controls button:active { background: var(--line); }
.vatican-map-zoom-controls button:disabled { opacity: .4; cursor: default; }
@media (min-width: 700px) {
  /* Wins the cascade over the unconditional display:flex above (same
     source order this rule would lose to if it lived up with the other
     700px map rules, since this file defines .vatican-map-zoom-controls
     itself further down than that first media block). */
  .vatican-map-zoom-controls { display: none; }
}

/* The app section's link to the app page (base.jinja's app_promo). */
.app-promo-more { font-size: 14px; font-weight: 700; color: #f3d9a8; text-decoration: underline; text-underline-offset: 3px; }
.app-promo-more:hover { color: #fff; }

/* The App Store invite on iPhone and iPad, in browsers without Safari's Smart App Banner
   (base.jinja's app_invite, shown by site.js). Floating at the foot of the screen; the
   back-to-top/share pair moves up over it while it shows. */
.app-invite {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; max-width: 520px; margin: 0 auto;
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 18px 40px -12px rgba(40, 28, 15, 0.5);
  animation: app-invite-in .35s ease;
}
.app-invite[hidden] { display: none; }
.app-invite img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.app-invite-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-invite-text strong { font-size: 15px; color: var(--ink); }
.app-invite-text span { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.app-invite .pill-btn { padding: 10px 16px; font-size: 14px; }
.app-invite-close {
  flex: none; width: 30px; height: 30px; margin-left: -4px; border: none; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-size: 22px; line-height: 1;
}
body.has-app-invite .floating-actions { bottom: calc(100px + env(safe-area-inset-bottom)); }
@keyframes app-invite-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Phone: the page's offer right under its quick answer ---------- */
/* A tour (in a blue that reads as "something to book", not as the cream text around it) or,
   on a page about hotels, the hotel search; the "Book a hotel" bar replaces the tickets notice
   there. Phones only: a computer keeps the tours and hotels further down and the floating
   notice. */
.top-offer { --offer: #4B5F86; --offer-soft: #DDE3EE; --offer-btn: #F3C76E; --offer-btn-ink: #2a3550; margin-top: 22px; }
.hotel-sticky { --offer: #4B5F86; }
@media (min-width: 980px) { .top-offer { display: none; } }
.top-offer-label {
  display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--offer);
}
.top-tour { display: block; background: var(--offer); border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; }
.top-tour img { display: block; width: 100%; height: 150px; object-fit: cover; }
.top-tour-body { display: block; padding: 14px 16px 16px; }
.top-tour-title { display: block; font-family: 'Newsreader', serif; font-size: 20px; line-height: 1.25; color: #fff; }
.top-tour-meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 14px; font-size: 13px; color: var(--offer-soft); }
.top-tour-btn {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 12px;
  background: var(--offer-btn); color: var(--offer-btn-ink); font-size: 16px; font-weight: 800;
}
.top-tour-btn span:last-child { display: flex; align-items: center; gap: 4px; }

.hotel-search { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.hotel-search-head { display: flex; align-items: center; gap: 10px; }
.booking-mark { background: #003580; color: #fff; font-weight: 800; font-size: 15px; border-radius: 6px; padding: 2px 7px; }
.hotel-search-title { font-family: 'Newsreader', serif; font-size: 20px; line-height: 1.25; color: var(--ink); }
.hotel-search-sub { margin: 6px 0 14px; font-size: 13px; color: var(--ink-soft); }
.hotel-search-stays { display: flex; gap: 8px; }
.hotel-search-stays button {
  flex: 1; padding: 12px 4px; border: 1.5px solid var(--offer); border-radius: 10px; background: var(--offer);
  color: #fff; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.25; cursor: pointer;
}
.hotel-search-stays button.is-outline { background: #fff; color: var(--offer); }
.hotel-search-guests { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 15px; color: var(--ink); }
.guests-stepper { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.guests-stepper button {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}

.hotel-sticky { align-items: center; background: #fff; }
.hotel-sticky-text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; color: var(--ink-soft); }
.hotel-sticky-text strong { font-size: 15px; color: var(--ink); }
.hotel-sticky-btn {
  flex-shrink: 0; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--offer); color: #fff;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
