/* ============================================================
   Japanese-cute theme — minimal custom CSS on top of Bootstrap 5
   ============================================================ */

:root {
  --washi:     #fbf6ee;     /* warm paper background       */
  --washi-2:   #f2ead9;     /* slightly darker paper       */
  --ink:       #2a2a2a;     /* soft black for text         */
  --sumi:      #4a4a4a;     /* softer body text            */
  --sakura:    #f4b6c2;     /* cherry blossom pink         */
  --sakura-2:  #e89aa8;     /* deeper pink for accents     */
  --matcha:    #8ab17d;     /* matcha green                */
  --indigo:    #3b5a80;     /* traditional indigo          */
  --persimmon: #e07856;     /* autumn orange               */
  --gold:      #c9a96e;     /* soft gold                   */
}

/* ---------- Typography ---------- */
body {
  font-family: 'Zen Maru Gothic', 'Nunito', system-ui, sans-serif;
  background-color: var(--washi);
  color: var(--ink);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(244,182,194,0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(138,177,125,0.14) 0, transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.jp-label {
  font-family: 'Shippori Mincho', serif;
  color: var(--sakura-2);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  text-transform: none;
}

.text-sumi { color: var(--sumi); }

/* ---------- Navbar ---------- */
.navbar-jp {
  background-color: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--washi-2);
}
.navbar-jp .navbar-brand {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  color: var(--ink);
}
.navbar-jp .navbar-brand .brand-dot {
  width: 10px; height: 10px;
  background: var(--sakura);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.navbar-jp .nav-link {
  color: var(--sumi);
  font-weight: 500;
}
.navbar-jp .nav-link:hover,
.navbar-jp .nav-link.active {
  color: var(--sakura-2);
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
}
.hero .tori-divider {
  gap: 0.75rem;
  color: var(--sakura-2);
  margin: 1.25rem 0;
}
.hero .tori-divider::before,
.hero .tori-divider::after {
  content: ''; height: 1px; width: 60px;
  background: var(--sakura);
}

/* ---------- Sakura petals (decorative) ---------- */
.petal {
  position: fixed;
  top: -20px;
  width: 14px; height: 14px;
  background: var(--sakura);
  border-radius: 100% 0 100% 0;
  opacity: 0.55;
  pointer-events: none;
  animation: fall linear infinite;
  z-index: 0;
}
.petal:nth-child(1) { left: 10%;  animation-duration: 18s; animation-delay: 0s; }
.petal:nth-child(2) { left: 25%;  animation-duration: 22s; animation-delay: 4s; background: var(--sakura-2); }
.petal:nth-child(3) { left: 45%;  animation-duration: 20s; animation-delay: 2s; }
.petal:nth-child(4) { left: 65%;  animation-duration: 25s; animation-delay: 6s; background: var(--sakura-2); }
.petal:nth-child(5) { left: 82%;  animation-duration: 19s; animation-delay: 1s; }
.petal:nth-child(6) { left: 92%;  animation-duration: 24s; animation-delay: 5s; }
@keyframes fall {
  0%   { transform: translateY(-5vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* ---------- Map card ---------- */
.map-card {
  background: #fff;
  border: 1px solid var(--washi-2);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(42,42,42,0.04);
}
.map-card svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 720px;
  margin: 0 auto;
}
.map-card .japan-map {
  max-width: 620px;  /* keep portrait map a reasonable size */
}

/* Animated route line */
.japan-map .route-line {
  stroke-dashoffset: 0;
  animation: routeDraw 2.5s ease-out 0.3s both;
}
@keyframes routeDraw {
  from { stroke-dashoffset: 1800; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Map legend ---------- */
.map-legend-item {
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--sumi);
}
.map-legend-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* ---------- Segment cards (carousel) ---------- */
.segment-card {
  background: #fff;
  border: 1px solid var(--washi-2);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(42,42,42,0.08);
  color: inherit;
}
.segment-card .card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.segment-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.segment-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.segment-card .nights-badge {
  top: 12px; left: 12px;
  background: var(--washi);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--washi-2);
}
.segment-card .card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}
.segment-card .segment-number {
  font-family: 'Shippori Mincho', serif;
  color: var(--sakura-2);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.segment-card h3 {
  font-size: 1.4rem;
  margin: 0.25rem 0 0.5rem;
}
.segment-card p {
  color: var(--sumi);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.segment-card .read-more {
  color: var(--indigo);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Transport strip ---------- */
.transport-strip {
  background: #fff;
  border: 1px dashed var(--washi-2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: var(--sumi);
  font-size: 0.95rem;
}
.transport-strip .tx-icon {
  color: var(--indigo);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- Detail page hero ---------- */
.detail-hero {
  height: 45vh;
  min-height: 320px;
  overflow: hidden;
}
.detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-hero .overlay {
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.detail-hero .hero-text {
  left: 0; right: 0; bottom: 1.5rem;
  color: #fff;
  padding: 0 1rem;
}
.detail-hero .hero-text .jp-label {
  color: var(--sakura);
}
.detail-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ---------- Stay callout ---------- */
.stay-callout {
  background: linear-gradient(135deg, #fff 0%, var(--washi-2) 100%);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid var(--washi-2);
}
.stay-callout .stay-label {
  color: var(--persimmon);
  font-family: 'Shippori Mincho', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.stay-callout .stay-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sakura);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.stay-callout .stay-link:hover {
  color: var(--sakura-2);
  border-bottom-color: var(--sakura-2);
}
.stay-photos img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}

.stay-callout .stay-link::after {
  content: ' ↗';
  font-size: 0.75em;
  color: var(--sakura-2);
  vertical-align: middle;
  margin-left: 2px;
}

/* ---------- Highlight cards ---------- */
.highlight {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--washi-2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.highlight:hover {
  transform: translateY(-2px);
  border-color: var(--sakura);
}
.highlight .hl-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--washi);
}
.highlight.food      .hl-icon { background: rgba(224,120,86,0.15); }
.highlight.streets   .hl-icon { background: rgba(59,90,128,0.12);  }
.highlight.nature    .hl-icon { background: rgba(138,177,125,0.18);}
.highlight.temples   .hl-icon { background: rgba(201,169,110,0.2); }
.highlight.views     .hl-icon { background: rgba(244,182,194,0.3); }
.highlight h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.highlight p {
  font-size: 0.92rem;
  color: var(--sumi);
  margin: 0;
}

/* ---------- Image gallery ---------- */
.gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}
.gallery-img:hover { transform: scale(1.02); }

/* ---------- Day-by-day list ---------- */
.day-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--washi-2);
}
.day-list li:last-child { border-bottom: none; }
.day-list .day-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sakura);
  color: #fff;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.day-list .day-body strong {
  display: block;
  margin-bottom: 0.15rem;
}
.day-list .day-body p {
  margin: 0;
  color: var(--sumi);
  font-size: 0.93rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--washi-2);
  padding: 2.5rem 0 2rem;
  margin-top: 5rem;
  color: var(--sumi);
  font-size: 0.9rem;
}
.site-footer .footer-mark {
  font-family: 'Shippori Mincho', serif;
  color: var(--sakura-2);
  font-size: 1.3rem;
}

/* ---------- Back link ---------- */
.back-link {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--sakura-2); }

/* ---------- Stops scroll ---------- */
.stops-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.stops-scroll::-webkit-scrollbar { display: none; }

.stops-card {
  scroll-snap-align: start;
  flex: 0 0 85%;
}
@media (min-width: 576px) {
  .stops-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (min-width: 992px) {
  .stops-card { flex: 0 0 calc(33.333% - 1rem); }
}

.stops-btn {
  background-color: var(--washi-2);
  border: 1.5px solid rgba(59, 90, 128, 0.25);
  color: var(--indigo);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.stops-btn:hover {
  background-color: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
}
