/* =====================================================
   Storytrails — frontend styles
   Mirrors the Figma for Tour page (Image 2) and Story page (Image 1)
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");
@font-face {
  font-family: "Sabon LT STD";
  src: url("https://ummdigital.tech/storytrails/wp-content/uploads/2026/01/Sabon-LT-Std-Roman.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sabon LT STD";
  src: url("https://ummdigital.tech/storytrails/wp-content/uploads/2022/09/sabonltstd-italic.ttf")
    format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  --st-yellow: #ffc50c;
  --st-yellow2: #ffc50c;
  --st-dark: #1a1a1a;
  --st-ink: #222;
  --st-muted: #6b6b6b;
  --st-grey: #eeeeee;
  --st-bg-soft: #f5f5f5;
  --st-border: #e2e2e2;
  --st-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --st-serif: "Sabon LT STD", Georgia, serif;
  --st-sans: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Base ------------------------------------------------- */
.st-tour,
.st-story {
  font-family: var(--st-sans);
  color: var(--st-ink);
  line-height: 1.55;
}
.st-tour *,
.st-story * {
  box-sizing: border-box;
}

.st-section-title {
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 600;
  text-align: center;
  font-size: 28px;
  color: var(--st-dark);
  margin: 0 0 28px;
}
.st-section-title.st-left {
  text-align: left;
}

.st-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--st-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.st-btn-ghost {
  border: 1px solid var(--st-dark);
  background: transparent;
  color: var(--st-dark);
}
.st-btn-ghost:hover {
  background: var(--st-dark);
  color: #fff;
}

/* =====================================================
   TOUR — Hero
   ===================================================== */
.st-hero {
  background: white;
  padding: 0;
}
.st-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(550px, 1fr) 1.6fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
}
.st-hero-text {
  padding: 48px 44px;
  background: var(--st-bg-soft);
}
.st-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--st-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.st-hero-title {
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--st-dark);
}
.st-hero-over p {
  font-size: 14px;
  color: var(--st-ink);
  margin: 0 0 10px;
}
.st-hero-image {
  background: #000;
  overflow: hidden;
}
.st-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================================================
   TOUR — Map
   ===================================================== */
.st-map-section {
  margin-top: -200px;
  padding-top: 250px !important;
  background: var(--st-yellow);
  padding: 40px 20px 56px;
  text-align: center;
}
.st-map-section .st-section-title {
  color: var(--st-dark);
}
.st-map-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--st-shadow);
  background: #fff;
}
.st-map-image {
  width: 100%;
  height: auto;
  display: block;
}
.st-leaflet-map {
  width: 100%;
  height: 420px;
  background: #e5e5e5;
}
.st-map-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--st-muted);
  font-size: 14px;
  background: #fff;
}

/* Numbered pin marker */
.st-pin .st-pin-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--st-yellow);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: var(--st-sans);
}

/* Leaflet popup styled to match the Figma pin card */
.leaflet-popup.st-leaflet-popup .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  padding: 4px;
}
.leaflet-popup.st-leaflet-popup .leaflet-popup-content {
  margin: 14px 16px;
  font-family: var(--st-sans);
}
.leaflet-popup.st-leaflet-popup .leaflet-popup-tip {
  background: #fff;
}
.st-pop h4 {
  font-family: var(--st-sans);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--st-dark);
  line-height: 1.3;
}
.st-pop-loc {
  font-size: 12px;
  color: var(--st-muted);
  margin: 0 0 10px;
}
.st-pop .st-btn {
  font-size: 11px;
  padding: 6px 22px;
}

/* Legacy static-map pincard — kept as fallback */
.st-map-pincard {
  position: absolute;
  top: 20%;
  left: 10%;
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px 16px;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.st-pin-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--st-yellow);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.st-map-pincard h4 {
  font-family: var(--st-sans);
  font-weight: 700;
  font-size: 15px;
  margin: 6px 0 8px;
  color: var(--st-dark);
  line-height: 1.3;
}
.st-pin-loc {
  font-size: 12px;
  color: var(--st-muted);
  margin: 0 0 12px;
}
.st-map-pincard .st-btn {
  font-size: 11px;
  padding: 6px 22px;
  border: 1px solid var(--st-dark);
}
.st-map-hint {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--st-dark);
  margin: 18px 0 20px;
}
.st-meta-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.st-meta-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--st-dark);
}
.st-meta-ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--st-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.st-meta-ico svg {
  width: 16px;
  height: 16px;
}

/* =====================================================
   TOUR — List of stories
   ===================================================== */
.st-stories-section {
  background: var(--st-bg-soft);
  padding: 56px 20px;
}
.st-stories-head {
  max-width: 1080px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.st-lang {
  font-family: var(--st-serif);
  font-style: italic;
}
.st-lang label {
  font-size: 14px;
  color: var(--st-dark);
  margin-right: 8px;
}
.st-lang select {
  border: none;
  border-bottom: 1px solid var(--st-dark);
  background: transparent;
  padding: 4px 2px;
  font-family: var(--st-sans);
  font-size: 14px;
  cursor: pointer;
}
.st-stories-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.st-story-card {
  background: #fff;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.st-story-card h4 {
  font-family: var(--st-serif);
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 600;
}
.st-story-card h4 a {
  color: var(--st-dark);
  text-decoration: none;
}
.st-story-loc {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--st-muted);
  margin: 0;
}
.st-mini-player {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-mini-player button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--st-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.st-mini-player button:hover {
  background: rgba(0, 0, 0, 0.06);
}
.st-mini-player button svg {
  width: 16px;
  height: 16px;
  display: block;
}
.st-mini-player button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.st-mini-player .st-mp-play {
  background: var(--st-yellow);
  width: 38px;
  height: 38px;
}
.st-mini-player .st-mp-play:hover {
  background: var(--st-yellow);
  filter: brightness(1.05);
}
.st-mini-player .st-mp-play svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   Shared — Related grid
   ===================================================== */
.st-related-section {
  padding: 56px 20px;
  background: #fff;
}
.st-related-sub {
  max-width: 720px;
  margin: -10px auto 32px;
  text-align: center;
  font-size: 14px;
  color: var(--st-muted);
  font-style: italic;
  line-height: 1.6;
}
.st-related-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.st-related-card {
  text-decoration: none;
  color: var(--st-dark);
  display: block;
}
.st-related-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--st-grey);
}
.st-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-related-card h4 {
  font-family: var(--st-serif);
  font-size: 18px;
  margin: 14px 0 8px;
  font-weight: 600;
}
.st-related-card p {
  font-size: 13px;
  color: var(--st-ink);
  margin: 0;
  line-height: 1.55;
}

/* =====================================================
   Shared — Explore more
   ===================================================== */
.st-explore-section {
  padding: 28px 20px 56px;
  background: #fff;
}
.st-explore-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.st-explore-row {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.st-exp-label {
  font-family: var(--st-serif);
  font-style: italic;
  text-align: right;
  font-weight: 600;
}
.st-exp-dash {
  text-align: center;
  color: var(--st-muted);
}
.st-exp-link {
  color: #2a6cb8;
  text-decoration: underline;
  font-style: italic;
  font-family: var(--st-serif);
}

/* =====================================================
   TOUR — Plan your visit (accordion)
   ===================================================== */
.st-plan-section {
  background: var(--st-bg-soft);
  padding: 56px 20px;
}
.st-accordion {
  max-width: 680px;
  margin: 0 auto;
}
.st-acc-item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.st-acc-head {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--st-dark);
}
.st-acc-ico {
  transition: transform 0.25s;
  font-size: 16px;
}
.st-acc-item.open .st-acc-ico {
  transform: rotate(180deg);
}
.st-acc-body {
  display: none;
  padding: 0 22px 18px;
  font-size: 13px;
  color: var(--st-ink);
}
.st-acc-item.open .st-acc-body {
  display: block;
}

/* =====================================================
   TOUR — Frequently Asked Questions (grouped)
   Matches storytrails.in/faq layout
   ===================================================== */
.st-faq-section {
  background: #fff;
  padding: 64px 20px 72px;
}
.st-faq-section .st-section-title {
  margin-bottom: 14px;
}
.st-faq-sub {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  font-size: 14px;
  color: var(--st-ink);
  line-height: 1.6;
}
.st-faq-groups {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.st-faq-group {
}
.st-faq-cat {
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--st-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--st-yellow);
  display: inline-block;
}
.st-faq-list {
  border-top: 1px solid var(--st-border);
}
.st-faq-item {
  border-bottom: 1px solid var(--st-border);
}
.st-faq-head {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--st-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--st-dark);
  text-align: left;
  transition: color 0.15s;
}
.st-faq-head:hover {
  color: #000;
}
.st-faq-head span:first-child {
  flex: 1;
}
.st-faq-ico {
  font-size: 22px;
  font-weight: 300;
  color: var(--st-dark);
  width: 24px;
  text-align: center;
  flex: 0 0 auto;
  line-height: 1;
  transition: transform 0.2s;
}
.st-faq-body {
  display: none;
  padding: 0 6px 20px;
  font-size: 14px;
  color: var(--st-ink);
  line-height: 1.65;
}
.st-faq-item.open .st-faq-body {
  display: block;
}
.st-faq-item.open .st-faq-head {
  color: #000;
}

.st-faq-cta {
  text-align: center;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px dashed var(--st-border);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.st-faq-cta p {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--st-dark);
  margin: 0 0 18px;
}

/* =====================================================
   Shared — Gallery
   ===================================================== */
.st-gallery-section {
  padding: 56px 20px 72px;
  background: #fff;
}
.st-gallery-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.st-gal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.st-gal-card h5 {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 16px;
  margin: 12px 0 4px;
  font-weight: 600;
}
.st-gal-card p {
  font-size: 13px;
  color: var(--st-ink);
  margin: 0;
}

/* =====================================================
   STORY — Top bar (replaces theme menu on story pages)
   ===================================================== */
.st-storybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--st-yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.st-storybar .st-back {
  position: static;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--st-dark);
  border-radius: 50%;
  color: var(--st-dark);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.st-storybar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--st-dark);
}
.st-storybar-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}
.st-logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--st-serif);
}
.st-logo-text strong {
  font-size: 18px;
  font-weight: 700;
}
.st-logo-text em {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--st-sans);
  color: var(--st-dark);
  margin-top: 2px;
}
.st-storybar-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--st-serif);
  font-style: italic;
}
.st-storybar-lang label {
  font-size: 14px;
  color: var(--st-dark);
}
.st-storybar-lang select {
  border: none;
  border-bottom: 1px solid var(--st-dark);
  background: transparent;
  padding: 4px 2px;
  font-family: var(--st-sans);
  font-size: 14px;
  cursor: pointer;
  color: var(--st-dark);
}

/* =====================================================
   STORY — Hero + Player
   ===================================================== */
.st-story-hero {
  background: var(--st-yellow);
  padding: 28px 20px 30px;
  position: relative;
  text-align: center;
}
.st-story-title {
  font-family: var(--st-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 44px;
  color: var(--st-dark);
  margin: 8px 0 14px;
  line-height: 1.1;
}
.st-story-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 14px;
  color: var(--st-dark);
  line-height: 1.55;
}

.st-player {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 22px 26px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
}
.st-player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.st-player-bar button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--st-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background 0.15s,
    transform 0.1s;
}
.st-player-bar button:hover {
  background: rgba(0, 0, 0, 0.06);
}
.st-player-bar button:active {
  transform: scale(0.96);
}
.st-player-bar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.st-player-bar button svg {
  width: 22px;
  height: 22px;
  display: block;
}
.st-player-bar button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Big variant for the story page */
.st-player-big .st-player-bar {
  gap: 14px;
}
.st-player-big .st-player-bar button {
  width: 52px;
  height: 52px;
}
.st-player-big .st-player-bar button svg {
  width: 28px;
  height: 28px;
}
.st-player-big .st-p-play {
  background: var(--st-yellow);
  width: 64px;
  height: 64px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.st-player-big .st-p-play:hover {
  background: var(--st-yellow);
  filter: brightness(1.05);
}
.st-player-big .st-p-play svg {
  width: 32px;
  height: 32px;
}

/* Default play button for non-big variant */
.st-p-play {
  background: var(--st-yellow);
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.st-p-play:hover {
  background: var(--st-yellow);
  filter: brightness(1.05);
}

.st-p-progress {
  flex: 1;
  height: 6px;
  background: #f1e4b8;
  border-radius: 3px;
  margin: 0 10px;
  overflow: hidden;
  min-width: 160px;
  cursor: pointer;
}
.st-p-prog-inner {
  width: 0%;
  height: 100%;
  background: var(--st-yellow);
  border-radius: 3px;
  transition: width 0.15s;
}
.st-p-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 13px;
}
.st-switch {
  position: relative;
  width: 36px;
  height: 18px;
  display: inline-block;
}
.st-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.st-switch span {
  position: absolute;
  inset: 0;
  background: #e0e0e0;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.2s;
}
.st-switch span::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.st-switch input:checked + span {
  background: var(--st-dark);
}
.st-switch input:checked + span::before {
  transform: translateX(18px);
  background: var(--st-yellow);
}

.st-player-tx {
  background: var(--st-bg-soft);
  padding: 16px 18px;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--st-ink);
}
.st-player-tx.hidden {
  display: none;
}

.st-wave {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* =====================================================
   STORY — Gallery (no title, 2 visible, horizontal scroll for the rest)
   ===================================================== */
.st-story-gallery {
  background: #fff;
  padding: 16px 20px 56px;
  overflow: hidden;          /* prevent any child overflow from leaking to body */
}
.st-hscroll-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.st-hscroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
  scrollbar-width: thin;
}
.st-hscroll::-webkit-scrollbar { height: 6px; }
.st-hscroll::-webkit-scrollbar-track { background: transparent; }
.st-hscroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.st-hscroll-card {
  flex: 0 0 calc(50% - 11px);   /* 2 cards visible, gap 22px */
  max-width: calc(50% - 11px);
  min-width: 0;                  /* let card content shrink with flex basis */
  scroll-snap-align: start;
}
.st-hscroll-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.st-hscroll-card h5 {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 17px;
  margin: 14px 0 4px;
  font-weight: 600;
}
.st-hscroll-card p { font-size: 13px; color: var(--st-ink); margin: 0; }

/* Arrows live INSIDE the wrap — never extend past the page edge.
   Always visible; disabled (dimmed) when there's nowhere to scroll. */
.st-hscroll-arrow {
  position: absolute;
  top: calc(50% - 28px);   /* roughly centered on the image, not the caption */
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--st-dark);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.st-hscroll-arrow:hover { background: var(--st-yellow); border-color: var(--st-yellow); }
.st-hscroll-arrow:active { transform: translateY(-50%) scale(0.94); }
.st-hscroll-arrow.prev { left: 12px; }
.st-hscroll-arrow.next { right: 12px; }
.st-hscroll-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
.st-hscroll-arrow:disabled:hover { background: #fff; }
/* Hide both arrows when nothing overflows at all (just 2 images) */
.st-hscroll-wrap.no-overflow .st-hscroll-arrow { display: none; }

@media (max-width: 600px) {
  .st-hscroll-card {
    flex: 0 0 calc(100% - 0px);     /* 1 card visible on mobile */
    max-width: 100%;
  }
}

/* =====================================================
   STORY — How to get there
   ===================================================== */
.st-get-section {
  background: var(--st-bg-soft);
  padding: 56px 20px;
}
.st-get-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.st-get-img img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.st-get-text h3 {
  font-family: var(--st-serif);
  font-style: italic;
  font-size: 20px;
  margin: 0 0 14px;
  font-weight: 600;
}
.st-get-text p {
  font-size: 13px;
  color: var(--st-ink);
  line-height: 1.7;
  margin: 0 0 22px;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
  .st-hero-inner {
    grid-template-columns: 1fr;
  }
  .st-stories-grid,
  .st-related-grid,
  .st-get-wrap {
    grid-template-columns: 1fr;
  }
  .st-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .st-story-title {
    font-size: 32px;
  }
  .st-hero-text {
    padding: 32px 24px;
  }
  .st-meta-strip {
    gap: 20px;
    flex-wrap: wrap;
  }
  .st-map-pincard {
    position: static;
    margin: 16px auto;
    left: 0;
    top: 0;
    transform: none;
  }
  .st-explore-row {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
  .st-exp-label,
  .st-exp-dash {
    text-align: center;
  }
}
@media (max-width: 560px) {
  .st-gallery-grid {
    grid-template-columns: 1fr;
  }
  .st-story-title {
    font-size: 26px;
  }
  .st-section-title {
    font-size: 22px;
  }
  .st-hero-title {
    font-size: 26px;
  }
}

/* =====================================================
   FOOTER — mirrors storytrails.in
   ===================================================== */
.st-footer {
  background: var(--st-bg-soft);
  padding: 32px 20px 40px;
  font-family: var(--st-sans);
  color: var(--st-dark);
}
.st-footer-links {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.st-footer-links a {
  color: var(--st-dark);
  text-decoration: none;
  font-size: 14px;
}
.st-footer-links a:hover {
  color: #000;
  text-decoration: underline;
}
.st-footer-links .st-sep {
  color: var(--st-muted);
  font-size: 14px;
  user-select: none;
}
.st-footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.st-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.st-footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-dark);
  background: rgba(0, 0, 0, 0.04);
  transition:
    background 0.15s,
    color 0.15s;
}
.st-footer-social a:hover {
  background: var(--st-yellow);
  color: var(--st-dark);
}
.st-footer-social svg {
  width: 14px;
  height: 14px;
}
.st-footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.st-footer-logo img {
  max-height: 44px;
  width: auto;
}
.st-footer-logo .st-logo-text strong {
  font-family: var(--st-serif);
  font-size: 22px;
  color: var(--st-dark);
  text-decoration: none;
}
.st-footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--st-muted);
  text-align: right;
}

/* =====================================================
   FOOTER responsive
   ===================================================== */
@media (max-width: 800px) {
  .st-footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .st-footer-social {
    justify-content: center;
  }
  .st-footer-copy {
    text-align: center;
  }
}

/* =====================================================
   Mobile fixes for new sections
   ===================================================== */
@media (max-width: 900px) {
  .st-storybar {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .st-storybar-lang {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
  .st-story-title {
    font-size: 32px;
  }
  .st-player-big .st-player-bar button {
    width: 44px;
    height: 44px;
  }
  .st-player-big .st-player-bar button svg {
    width: 22px;
    height: 22px;
  }
  .st-player-big .st-p-play {
    width: 54px;
    height: 54px;
  }
  .st-player-big .st-p-play svg {
    width: 26px;
    height: 26px;
  }
  .st-faq-cat {
    font-size: 18px;
  }
}
@media (max-width: 560px) {
  .st-story-title {
    font-size: 26px;
  }
  .st-meta-strip {
    gap: 18px;
  }
}

/* ============================================================
 * v1.7 — additions for top nav, story restructure, bibliography,
 * minimal footer, indoor maps, mobile hero order.
 * ============================================================ */

/* TOUR PAGE — top anchor nav (not a real menu; scrolls to sections) */
.st-tour-nav {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 14px 24px;
  margin: 0 0 4px;
}
.st-tour-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.st-tour-nav a {
  text-decoration: none;
  color: var(--st-dark, #1c1c1c);
  font-family: var(--st-font-sans, 'Poppins'), sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.st-tour-nav a:hover {
  color: var(--st-yellow, #F5B800);
  border-bottom-color: var(--st-yellow, #F5B800);
}

/* MOBILE HERO ORDER — show image between title and overview on small screens */
.st-hero-image-mobile {
  display: none;
  margin: 16px 0 18px;
}
.st-hero-image-mobile img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* OVERVIEW READABILITY — slightly larger, more breathing room */
.st-hero-over {
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
}
.st-hero-over p { margin: 0 0 14px; }
.st-hero-over p:last-child { margin-bottom: 0; }
.st-hero-over ul,
.st-hero-over ol { padding-left: 22px; margin: 12px 0; }
.st-hero-over li { margin-bottom: 6px; }
.st-hero-over a { color: var(--st-yellow, #F5B800); text-decoration: underline; }

/* STORY PAGE — top bar restructure (logo + main-tour pill on left, lang on right) */
.st-storybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--st-yellow, #F5B800); }
.st-storybar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.st-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--st-dark, #1c1c1c);
  background: transparent;
  color: var(--st-dark, #1c1c1c);
  text-decoration: none;
  font-family: var(--st-font-sans, 'Poppins'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.st-back-pill:hover {
  background: var(--st-dark, #1c1c1c);
  color: var(--st-yellow, #F5B800);
}
.st-back-arrow { font-size: 16px; line-height: 1; }

/* STORY HERO IMAGE — figure between subtitle and audio player */
.st-story-hero-img {
  margin: 22px auto 6px;
  max-width: 760px;
  width: 100%;
  text-align: center;
}
.st-story-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.st-story-hero-img figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}
.st-story-hero-img figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--st-dark, #1c1c1c);
  margin-bottom: 2px;
}
.st-story-hero-img figcaption span { color: #666; }

/* INDOOR-TOUR IMAGE MAP — pins overlaid by X/Y % */
.st-image-map {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.st-image-map-img {
  width: 100%;
  height: auto;
  display: block;
}
.st-image-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  text-decoration: none;
  z-index: 2;
}
.st-image-pin .st-pin-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--st-yellow, #F5B800);
  color: var(--st-dark, #1c1c1c);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.st-image-pin:hover .st-pin-dot { transform: scale(1.15); }
.st-image-pin::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--st-dark, #1c1c1c);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.st-image-pin:hover::after { opacity: 1; }

/* EXPLORE MORE — bibliography style */
.st-explore-list { display: flex; flex-direction: column; gap: 22px; }
.st-explore-row { padding: 0; }
.st-exp-title {
  font-family: var(--st-font-serif, 'Playfair Display'), serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  font-style: italic;
}
.st-exp-title a {
  color: var(--st-dark, #1c1c1c);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.st-exp-title a:hover { color: var(--st-yellow, #F5B800); }
.st-exp-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.st-exp-desc p { margin: 0; }

/* FAQ — ungrouped variant (no category heading) */
.st-faq-ungrouped .st-faq-cat { display: none; }
.st-faq-ungrouped { margin-bottom: 12px; }

/* MINIMAL FOOTER — social + logo + copyright only */
.st-footer-mini {
  background: var(--st-dark, #1c1c1c);
  color: #fff;
  padding: 36px 24px;
  text-align: center;
}
.st-footer-mini .st-footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.st-footer-mini .st-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.15s, color 0.15s;
}
.st-footer-mini .st-footer-social a:hover {
  background: var(--st-yellow, #F5B800);
  color: var(--st-dark, #1c1c1c);
}
.st-footer-mini .st-footer-social svg { width: 18px; height: 18px; }
.st-footer-mini .st-footer-logo { margin: 0 0 14px; }
.st-footer-mini .st-footer-logo img { max-height: 40px; width: auto; }
.st-footer-mini .st-footer-logo .st-logo-text { font-size: 22px; color: #fff; text-decoration: none; }
.st-footer-mini .st-footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

/* MOBILE — under 900px */
@media (max-width: 900px) {
  .st-tour-nav {
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .st-tour-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
  }
  .st-tour-nav a {
    white-space: nowrap;
    font-size: 13px;
  }
  /* Mobile hero order: title -> image -> description */
  .st-hero-image-mobile { display: block; }
  .st-hero-image { display: none; }

  .st-storybar { padding: 14px 16px; flex-wrap: wrap; }
  .st-storybar-left { gap: 12px; width: 100%; }
  .st-back-pill { padding: 6px 14px; font-size: 13px; }
  .st-storybar-lang { width: 100%; justify-content: flex-end; }
}

/* ============================================================
 * v1.7.1 — expandable List of Stories (replaces grid + mini-player),
 * tour gallery uses horizontal scroll, indoor map sizing,
 * mobile storybar layout, dark-mode bullets, image cropping fixes.
 * ============================================================ */

/* LIST OF STORIES — 2-column grid, 4 visible initially, horizontal cards */
.st-stories-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.st-story-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.15s;
}
.st-story-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.st-story-card.is-hidden { display: none; }
.st-story-card-text { flex: 1; min-width: 0; }
.st-story-card-title {
  font-family: var(--st-serif, 'Playfair Display'), serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--st-dark, #1c1c1c);
  margin: 0;
  line-height: 1.35;
}
.st-story-card-loc {
  font-family: var(--st-serif, 'Playfair Display'), serif;
  font-style: italic;
  font-size: 14px;
  color: #888;
  margin: 6px 0 0;
}
.st-story-play-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--st-yellow, #F5B800);
  color: var(--st-dark, #1c1c1c);
  text-decoration: none;
  font-family: var(--st-sans, 'Poppins'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}
.st-story-play-btn:hover { background: #e3a500; }
.st-story-play-btn:active { transform: scale(0.98); }
.st-story-play-ico { display: inline-flex; width: 12px; height: 12px; }
.st-story-play-ico svg { width: 100%; height: 100%; }

/* "View more stories" expand button */
.st-stories-more {
  max-width: 1080px;
  margin: 28px auto 0;
  text-align: center;
}
.st-stories-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--st-dark, #1c1c1c);
  background: transparent;
  color: var(--st-dark, #1c1c1c);
  font-family: var(--st-sans, 'Poppins'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.st-stories-expand:hover {
  background: var(--st-dark, #1c1c1c);
  color: var(--st-yellow, #F5B800);
}
.st-stories-expand:after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s;
}
.st-stories-expand.is-expanded:after { transform: rotate(180deg); }


@media (max-width: 700px) {
  .st-stories-grid { grid-template-columns: 1fr; gap: 16px; }
  .st-story-card { padding: 18px 20px; }
}

/* RELATED card description — preserve rich text formatting */
.st-related-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}
.st-related-desc p { margin: 0 0 0.5em; }
.st-related-desc p:last-child { margin-bottom: 0; }
.st-related-desc ul, .st-related-desc ol { padding-left: 20px; margin: 0.4em 0; }
.st-related-desc li { margin: 2px 0; }
.st-related-desc a { color: var(--st-yellow, #F5B800); text-decoration: underline; }
.st-related-desc strong { font-weight: 600; }

/* INDOOR-MAP CONSISTENT SIZING — match the outdoor map's max-width */
.st-image-map {
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: auto;
}
.st-image-map-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  background: #fff;
}

/* TOUR GALLERY — uses .st-hscroll (same as story). Add card width tweak. */
.st-gallery-section .st-hscroll-wrap { max-width: 1180px; margin: 0 auto; }

/* IMAGE CROPPING FIXES — keep gallery and related images intact */
.st-hscroll-card img,
.st-related-img img,
.st-related-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.st-hscroll-card img {
  aspect-ratio: 4 / 3;
}
.st-related-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
}
.st-story-hero-img img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;   /* don't crop hero photos */
}

/* MOBILE STORYBAR — keep logo+pill left, language dropdown right; same row */
@media (max-width: 900px) {
  .st-storybar {
    padding: 12px 14px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .st-storybar-left {
    width: auto;
    flex: 1;
    min-width: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .st-storybar-lang {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .st-storybar-lang label { display: none; }
  .st-storybar-lang select { padding: 6px 8px; font-size: 13px; max-width: 100px; }
  .st-back-pill { padding: 6px 12px; font-size: 12px; }
  .st-storybar-logo img { max-height: 28px; }
}
@media (max-width: 480px) {
  .st-back-pill { padding: 5px 10px; font-size: 11px; }
  .st-storybar-lang select { max-width: 80px; }
}

/* DARK MODE — make bullets visible (default disc color is hard to see) */
@media (prefers-color-scheme: dark) {
  /* Bullet/number markers — make them yellow so they're visible against
     a dark background. Text color is left to inherit so we don't fight
     with site theme styling in normal mode. */
  .st-tour ul li::marker,
  .st-tour ol li::marker,
  .st-story ul li::marker,
  .st-story ol li::marker,
  .st-hero-over ul li::marker,
  .st-hero-over ol li::marker,
  .st-acc-body ul li::marker,
  .st-acc-body ol li::marker,
  .st-faq-body ul li::marker,
  .st-faq-body ol li::marker,
  .st-exp-desc ul li::marker,
  .st-exp-desc ol li::marker,
  .st-related-desc ul li::marker,
  .st-related-desc ol li::marker,
  .st-player-tx ul li::marker,
  .st-player-tx ol li::marker {
    color: var(--st-yellow, #F5B800);
  }
}

/* Explicit utility class — bright bullets regardless of dark-mode setting */
.st-bullets-bright li::marker { color: var(--st-yellow, #F5B800); }