*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sidebar-bg: #0a1118;
  --bg: #0e151e;
  --bg-card: #162230;
  --text: #e8e0d4;
  --text-body: #c4bcb0;
  --text-muted: #8a8478;
  --amber: #d4a03c;
  --copper: #b86a3a;
  --rule: rgba(201,168,76,0.2);
  --sidebar-w: 240px;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Merriweather', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { text-decoration: none; transition: color 0.2s; }
img { display: block; max-width: 100%; height: auto; }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--rule);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 1.5rem;
  overflow-y: auto;
}

.sidebar-title {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1.2;
}

.sidebar-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.25rem 0;
}

.sidebar-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 0.15rem; }

.sidebar-nav a {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-left: 3px solid transparent;
  border-radius: 2px;
  transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--amber);
  border-left-color: var(--copper);
  background: rgba(201,168,76,0.06);
}

.sidebar-days { list-style: none; }

.sidebar-days li { margin-bottom: 0.1rem; }

.sidebar-days a {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  transition: color 0.2s;
}

.sidebar-days a:hover { color: var(--amber); }

.sidebar-gallery-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0.6rem;
}

.sidebar-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sidebar-thumbs img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.55;
  transition: opacity 0.2s;
  cursor: pointer;
}

.sidebar-thumbs img:hover { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.7;
}

/* ─── MOBILE TOP BAR ─── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--rule);
  z-index: 99;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: background 0.2s;
}

.hamburger:hover span { background: var(--amber); }

.topbar-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* ─── MAIN CONTENT ─── */
.main {
  margin-left: var(--sidebar-w);
  padding: 3rem 2.5rem 4rem;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: 900px;
  margin: 4rem auto;
}

/* ════════════════════════════════════
   SECTION 1: LANDING PAGE
   ════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 3rem 0 3.5rem;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Trip List */
.trip-list {
  max-width: 780px;
  margin: 0 auto;
}

.trip-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-left: 3px solid transparent;
  color: inherit;
  transition: all 0.25s;
  padding-left: 0.75rem;
}

.trip-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.trip-card:hover {
  background: rgba(201,168,76,0.04);
  border-left-color: var(--copper);
}

.favorites-card {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.favorites-card .trip-card-name { color: var(--amber); }

.trip-card-thumb {
  flex-shrink: 0;
  width: 180px;
  height: auto;
  border: 1px solid rgba(184,106,58,0.3);
  border-radius: 2px;
  object-fit: cover;
  align-self: flex-start;
}

.trip-card-info {
  flex: 1;
  min-width: 0;
}

.trip-card-region {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 0.3rem;
}

.trip-card-name {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.trip-card-desc {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.trip-card-meta {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════
   SECTION 2: TRIP OVERVIEW
   ════════════════════════════════════ */

.trip-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.trip-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.trip-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.trip-location {
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.2;
}

.stat-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.trip-intro {
  font-family: 'Merriweather', serif;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: left;
}

.trip-intro p {
  margin-bottom: 1rem;
}

.trip-intro p:last-child {
  margin-bottom: 0;
}

.timeline-heading {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--amber);
  text-align: center;
  margin-bottom: 3rem;
}

.route-map-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 1.1rem 1.5rem;
  background: rgba(212, 160, 60, 0.05);
  border: 1px solid var(--amber);
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s ease;
}
.route-map-cta:hover { background: rgba(212, 160, 60, 0.12); }
.route-map-cta-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
}
.route-map-cta-text {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber);
}

/* ─── TRIP DETAILS (Collapsible Sections) ─── */
.trip-details {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.trip-details-heading {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper);
  text-align: center;
  margin-bottom: 1.5rem;
}

.trip-detail-section {
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 0.6rem;
  background: rgba(22,34,48,0.4);
}

.trip-detail-section summary {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.trip-detail-section summary::-webkit-details-marker { display: none; }

.trip-detail-section summary::after {
  content: '▸';
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.trip-detail-section[open] summary::after {
  transform: rotate(90deg);
}

.trip-detail-section summary:hover {
  color: var(--amber);
  background: rgba(201,168,76,0.04);
}

.trip-detail-section[open] summary {
  border-bottom: 1px solid var(--rule);
}

.trip-detail-body {
  padding: 1.25rem;
}

.trip-detail-body p {
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
  text-align: left;
}

.trip-detail-body p:last-child {
  margin-bottom: 0;
}

/* Day-by-day route entries inside a collapsed section */
.route-entry {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.route-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.route-entry-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.35rem;
  text-transform: capitalize;
}

.route-entry-stats {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.route-entry-text {
  font-family: 'Merriweather', serif;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

/* Vertical gold line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}

.timeline-entry {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-left: 1.5rem;
}

/* Gold dot */
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  margin-left: -4px;
}

.timeline-photo {
  flex-shrink: 0;
  width: 340px;
}

.timeline-photo img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(184,106,58,0.25);
  border-radius: 2px;
}

.timeline-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.timeline-day {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.timeline-entry-title {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.timeline-route {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.4rem;
}

.elevation-pill {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.2em 0.65em;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-family: 'Merriweather', serif;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.timeline-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--copper);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.timeline-link:hover { color: var(--amber); }

/* ════════════════════════════════════
   SECTION 3: GALLERY
   ════════════════════════════════════ */

.gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.gallery-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gallery-count {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.gallery-desc {
  font-family: 'Merriweather', serif;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Photo entries */
.gallery-grid {
  max-width: 700px;
  margin: 0 auto;
}

.gallery-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  align-items: start;
}

.gallery-number {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--amber);
  opacity: 0.5;
  text-align: right;
  padding-right: 1.25rem;
  padding-top: 14px;
  line-height: 1;
}

.photo-frame {
  background: var(--bg-card);
  padding: 14px;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
  max-width: 600px;
}

.photo-frame img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.photo-frame .caption {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.65;
  color: var(--text);
  padding: 0.9rem 0.5rem 0.3rem;
}

.fav-trip-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  text-align: center;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem 0.2rem;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════
   SECTION 4: SINGLE PHOTO VIEW
   ════════════════════════════════════ */

.photo-view {
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumb {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--amber); }

.breadcrumb .sep { margin: 0 0.4em; }

.photo-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.photo-nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--copper);
  transition: color 0.2s;
}

.photo-nav-link:hover { color: var(--amber); }

.photo-nav-position {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.photo-frame-large {
  background: var(--bg-card);
  padding: 18px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 3px;
  box-shadow: var(--card-shadow);
  display: inline-block;
  margin: 0 auto;
}

.photo-frame-large-wrap {
  text-align: center;
}

.photo-frame-large img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Wide panorama photos — scale to browser width with horizontal scroll */
.pano-wide-wrap {
  max-width: none;
  width: calc(100vw - var(--sidebar-w) - 2rem);
  margin-left: calc(-1 * (100vw - var(--sidebar-w) - 2rem - 100%) / 2);
}
@media (max-width: 768px) {
  .pano-wide-wrap {
    width: calc(100vw - 1rem);
    margin-left: calc(-1 * (100vw - 1rem - 100%) / 2);
  }
}
.pano-wide-wrap .pano-instruction {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.pano-wide-wrap .pano-instruction span {
  color: var(--amber);
  font-weight: 700;
}
.photo-frame-large.pano-wide {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  display: flex;
  justify-content: center;
}
.photo-frame-large.pano-wide:active {
  cursor: grabbing;
}
.photo-frame-large.pano-wide img {
  max-width: none;
  width: auto;
  height: auto;
  max-height: 500px;
  display: block;
  flex-shrink: 0;
}

.photo-frame-large .caption {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
  color: var(--text);
  padding: 1rem 1rem 0.25rem;
  text-wrap: pretty;
}

/* ─── FOOTER ─── */
.page-footer {
  border-top: 1px solid var(--rule);
  max-width: 900px;
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */

@media (max-width: 768px) {
  .sidebar { display: none; }
  .sidebar.open {
    display: flex;
    z-index: 101;
  }

  .topbar { display: flex; }

  .main {
    margin-left: 0;
    padding: 68px 1.25rem 3rem;
  }

  .hero-title { font-size: 2rem; }

  .timeline-entry {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-photo {
    width: 100%;
    max-width: 320px;
  }

  .gallery-entry {
    grid-template-columns: 1fr;
  }

  .gallery-number {
    text-align: left;
    padding: 0 0 0.25rem 0;
  }

  .trip-card-thumb { width: 90px; }

  .stats-row { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .trip-title { font-size: 1.6rem; }

  .trip-card {
    flex-direction: column;
    gap: 1rem;
  }

  .trip-card-thumb { width: 100%; max-width: 280px; }

  .stats-row { gap: 1.25rem; }

  .stat-number { font-size: 1.3rem; }

  .main { padding: 60px 1rem 2rem; }

  .timeline { padding-left: 1.5rem; }

  .timeline-photo { max-width: 100%; }
}

/* ════════════════════════════════════
   INTERACTIVE PANORAMAS
   ════════════════════════════════════ */

.pano-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pano-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.pano-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pano-instruction {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
}

.pano-instruction span {
  color: var(--copper);
  font-weight: 700;
}

/* Allow panorama to use full width of .main, ignoring .photo-view max-width */
.photo-view:has(.pano-scroll-wrapper) {
  max-width: none;
}

.pano-scroll-wrapper {
  position: relative;
  width: 100%;
}

.pano-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.pano-scroll:active { cursor: grabbing; }

.pano-scroll::-webkit-scrollbar { height: 6px; }
.pano-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.pano-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.pano-scroll::-webkit-scrollbar-thumb:hover { background: var(--amber); }

.pano-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px;
  height: calc(100% - 6px);
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.pano-scroll-wrapper.scrolled-end::after { opacity: 0; }

.pano-frame {
  background: var(--bg-card);
  padding: 14px;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
}

.pano-grid img {
  display: block;
  width: 100%;
  height: 100%;
}

.tile {
  position: relative;
  overflow: hidden;
}

.tile img.hover-img {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tile.active img.hover-img { opacity: 1; }

.pano-caption {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
  color: var(--text);
  padding: 1rem 1rem 0.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.pano-meta {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}