/* Travel Guide Style - Warm, Friendly, Approachable */
:root {
  --bg-warm: #fefcf5;
  --bg-card: #ffffff;
  --bg-alt: #fdf8ed;
  --text-main: #2d2d2d;
  --text-soft: #5a5a5a;
  --text-muted: #888888;
  --accent-yellow: #ffd600;
  --accent-yellow-dark: #e6c200;
  --accent-teal: #009688;
  --accent-teal-dark: #00796b;
  --accent-coral: #ff6b5b;
  --border-soft: #efe8dc;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-warm: #1a1a18;
    --bg-card: #22221f;
    --bg-alt: #2a2a26;
    --text-main: #f5f3ed;
    --text-soft: #c4c0b8;
    --text-muted: #8a867d;
    --accent-yellow: #ffd600;
    --accent-yellow-dark: #ffea4d;
    --accent-teal: #4db6ac;
    --accent-teal-dark: #80cbc4;
    --accent-coral: #ff8a7a;
    --border-soft: #3a3830;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  }
}

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

@font-face {
  font-family: 'Quicksand';
  src: url('https://fonts.gstatic.com/s/quicksand/v31/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58a-xw.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-warm);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--accent-teal-dark);
  text-decoration: underline;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== HEADER ===== */
.site-header {
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-warm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(254, 252, 245, 0.9);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(26, 26, 24, 0.9);
  }
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.logo-link:hover {
  text-decoration: none;
  color: var(--accent-teal);
}

.logo-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-teal);
  background: var(--bg-alt);
  border-color: var(--border-soft);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-teal);
  background: rgba(0, 150, 136, 0.1);
  border-color: var(--accent-teal);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-yellow), #ffe64d);
  color: #2d2d2d;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-teal);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-teal);
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.cta-primary:hover {
  background: var(--accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: white !important;
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-primary svg {
  flex-shrink: 0;
}

/* ===== MAP THUMBNAIL SECTION ===== */
.map-showcase {
  margin: 40px 0 56px;
}

.map-thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.map-thumbnail-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-yellow);
}

.map-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-thumbnail-wrapper:hover .map-overlay {
  opacity: 1;
}

.map-overlay-content {
  width: 100%;
  text-align: center;
  color: white;
}

.map-overlay-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-overlay-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.map-overlay-hint svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-teal);
}

/* ===== CONTENT CARDS ===== */
.content-section {
  margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
}

.card-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title .emoji {
  font-size: 1.4em;
  line-height: 1;
}

.card-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2 .emoji {
  font-size: 1.3em;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
}

p {
  margin-bottom: 16px;
  color: var(--text-soft);
  line-height: 1.75;
}

p strong {
  color: var(--text-main);
  font-weight: 700;
}

ul, ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

li {
  margin-bottom: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

li strong {
  color: var(--text-main);
}

/* ===== LOCAL TIP CALLOUT ===== */
.local-tip {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.local-tip::before {
  content: '💡';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
}

.local-tip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.local-tip-content {
  flex: 1;
}

.local-tip-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.local-tip-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* ===== ROUTE BADGES ===== */
.route-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--accent-yellow);
  color: #2d2d2d;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(255, 214, 0, 0.3);
}

.route-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.2s ease;
}

.route-link:hover {
  background: var(--bg-card);
  border-color: var(--accent-yellow);
  transform: translateX(4px);
  text-decoration: none;
  color: var(--text-main);
}

.route-link-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-link-arrow {
  color: var(--accent-teal);
  transition: transform 0.2s ease;
}

.route-link:hover .route-link-arrow {
  transform: translateX(4px);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: 12px;
  color: var(--accent-teal);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.info-table th {
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-alt);
  font-family: var(--font-sans);
}

.info-table td {
  color: var(--text-soft);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: var(--bg-alt);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-soft);
}

.site-footer a:hover {
  color: var(--accent-teal);
}

/* ===== LIGHTBOX / IMAGE MODAL ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  display: block;
  max-width: 100vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  touch-action: none;
  cursor: grab;
}

.lightbox-image:active {
  cursor: grabbing;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-align: center;
  max-width: 90%;
  pointer-events: none;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 768px) {
  .lightbox-close { top: 16px; right: 16px; width: 48px; height: 48px; }
  .lightbox-nav { width: 48px; height: 48px; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .lightbox-caption { bottom: 16px; font-size: 0.85rem; }
}

/* ===== LOADING SPINNER ===== */
.lightbox-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 1002;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .container { padding: 0 16px 60px; }
  .hero { padding: 32px 0 24px; }
  .card { padding: 24px 20px; }
  .card-title { font-size: 1.3rem; }
  h2 { font-size: 1.3rem; }
  .route-link { padding: 14px 16px; }
  .route-badge { min-width: 32px; height: 32px; font-size: 0.8rem; }
  .map-overlay { padding: 16px; }
  .map-overlay-title { font-size: 1.1rem; }
  .map-overlay-hint { padding: 8px 16px; font-size: 0.8rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .hero, .map-showcase {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ===== FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
.faq-summary:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}