/* Tokens now in tokens.css — aliases for backward compat */
:root {
  --guide-line: var(--color-line);
  --guide-panel: var(--color-panel);
  --guide-shadow: var(--shadow-md);
}

.guide-page {
  gap: 20px;
}

.guide-shell {
  margin-top: 20px;
}

.guide-hero {
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--guide-shadow);
}

.guide-hero-media {
  position: relative;
  height: clamp(300px, 42vw, 520px);
  overflow: hidden;
}

.guide-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(5, 21, 49, 0.64) 0%, rgba(5, 21, 49, 0.22) 55%, rgba(5, 21, 49, 0.4) 100%);
}

.guide-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-hero-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 760px;
}

.guide-eyebrow {
  margin: 0;
  color: #d3e5ff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.66rem;
  font-weight: 800;
}

.guide-title {
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.guide-summary {
  margin: 14px 0 0;
  color: #ebf4ff;
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 64ch;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(166, 194, 238, 0.5);
  background: linear-gradient(140deg, rgba(8, 31, 69, 0.95), rgba(12, 44, 94, 0.9));
}

.guide-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-meta-item {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding-right: 12px;
  border-right: 1px solid rgba(190, 214, 253, 0.24);
}

.guide-meta-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.guide-meta-item span {
  color: #bed6fd;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.58rem;
  font-weight: 800;
}

.guide-meta-item strong {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.guide-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

.guide-article-card,
.guide-related-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.guide-article-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 40px);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.96)),
    #fff;
}

.guide-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--accent-bar-height);
  background: var(--accent-bar);
}

.guide-section-title {
  margin: 0;
  font-family: var(--font-display);
  color: #061938;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.guide-status {
  margin: 10px 0 0;
  color: #a0b4d2;
  font-size: 0.76rem;
  line-height: 1.5;
  font-style: italic;
}

.guide-content {
  margin-top: 24px;
  max-width: 72ch;
  word-break: break-word;
  color: #223f70;
  font-size: 1rem;
  line-height: 1.82;
}

.guide-status:empty,
.guide-status.is-ok {
  display: none;
}

.guide-content-heading {
  margin: 44px 0 14px;
  color: #0a2a5a;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.008em;
}

.guide-content-heading:first-child {
  margin-top: 0;
}

.guide-content-lead {
  margin: 0 0 22px;
  padding: 18px 20px 18px 22px;
  border-left: 4px solid rgba(31, 79, 152, 0.65);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(235, 245, 255, 0.7), rgba(255, 255, 255, 0));
  color: #152f60;
  font-size: 1.14rem;
  line-height: 1.78;
  font-weight: 500;
}

.guide-content-body {
  margin: 0 0 16px;
  color: #223f70;
  font-size: 1rem;
  line-height: 1.82;
}

.guide-content-item {
  margin: 0;
  color: #223f70;
  font-size: 1rem;
  line-height: 1.72;
}

.guide-content-body:last-child {
  margin-bottom: 0;
}

.guide-content-list {
  margin: 4px 0 20px;
  padding: 16px 18px 16px 36px;
  border: 1px solid rgba(188, 211, 248, 0.64);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(243, 249, 255, 0.96), rgba(255, 255, 255, 0.92));
  display: grid;
  gap: 10px;
}

.guide-content-list .guide-content-item {
  position: relative;
}

.guide-content-note {
  margin: 20px 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(149, 184, 236, 0.56);
  background: rgba(220, 236, 255, 0.34);
  color: #163e78;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 700;
}

.guide-related {
  margin-top: 20px;
}

.guide-related-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-related-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.guide-related-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--accent-bar-height);
  background: var(--accent-bar);
  z-index: 2;
}

.guide-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-card-hover);
  box-shadow: var(--shadow-lg);
}

.guide-related-link {
  display: grid;
  grid-template-rows: 172px auto;
  text-decoration: none;
}

.guide-related-image {
  border-bottom: 1px solid var(--guide-line);
}

.guide-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-related-body {
  padding: 14px 14px 16px;
}

.guide-related-body h3 {
  margin: 0;
  color: #071a3a;
  font-size: 1.06rem;
  line-height: 1.25;
}

.guide-related-body p {
  margin: 8px 0 0;
  color: #305f9f;
  font-size: 0.82rem;
  line-height: 1.58;
}

.guide-related-cta {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  color: #1a4a8d;
  padding: 10px var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-weight: 800;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.guide-related-link:hover .guide-related-cta {
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  color: #fff;
  border-color: var(--color-btn-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

@media (max-width: 760px) {
  .guide-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .guide-shell {
    margin-top: 12px;
  }

  .guide-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .guide-hero {
    border-radius: 16px;
  }

  .guide-hero-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .guide-summary {
    font-size: 0.92rem;
  }

  .guide-article-card {
    border-radius: 14px;
    padding: 14px;
  }

  .guide-meta-item {
    min-width: 120px;
  }
}


/* ============================================================
   DESIGN SYSTEM — Image Blur-Up
   ============================================================ */
.guide-hero-media {
  background:
    linear-gradient(110deg, #d8e5f9 30%, #e8f1ff 50%, #d8e5f9 70%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease infinite;
}

.guide-hero-media img {
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard);
}

.guide-hero-media img.is-loaded {
  opacity: 1;
}

.guide-hero-media.img-ready {
  animation: none;
  background: transparent;
}

.guide-related-image {
  background:
    linear-gradient(110deg, #d8e5f9 30%, #e8f1ff 50%, #d8e5f9 70%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease infinite;
}

.guide-related-image img {
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard);
}

.guide-related-image img.is-loaded {
  opacity: 1;
}

.guide-related-image.img-ready {
  animation: none;
  background: transparent;
}


/* ============================================================
   DESIGN SYSTEM — Focus States
   ============================================================ */
.guide-related-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-btn-hover);
}

/* ============================================================
   GUIDE SIDEBAR
   ============================================================ */
.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-sidebar-cta {
  position: sticky;
  top: 24px;
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(100, 145, 220, 0.22);
  background: linear-gradient(160deg, #061938 0%, #0d2d5e 100%);
  box-shadow: 0 8px 32px rgba(6, 25, 56, 0.28);
  overflow: hidden;
}

.guide-sidebar-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--accent-bar-height);
  background: var(--accent-bar);
}

.guide-sidebar-eyebrow {
  margin: 0 0 12px;
  color: #90bff0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.6rem;
  font-weight: 800;
}

.guide-sidebar-cta h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.guide-sidebar-cta p {
  margin: 0 0 22px;
  color: #a8c8f0;
  font-size: 0.86rem;
  line-height: 1.65;
}

.guide-sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: 1px solid var(--color-btn-border);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.guide-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.guide-sidebar-divider {
  margin: 22px 0;
  border: none;
  border-top: 1px solid rgba(150, 190, 255, 0.14);
}

.guide-sidebar-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-sidebar-stat strong {
  color: #fff;
  font-size: 1.55rem;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.01em;
}

.guide-sidebar-stat span {
  color: #7aabdc;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.guide-sidebar-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .guide-sidebar {
    display: none;
  }
}

/* ============================================================
   TRAVEL GUIDES LISTING PAGE
   ============================================================ */
.guides-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 1.6vw, 28px);
  margin-top: 24px;
  align-items: stretch;
}

.guides-list-card {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: clamp(20px, 2vw, 24px);
  background: #fff;
  box-shadow:
    0 14px 34px rgba(13, 34, 56, 0.10),
    0 2px 8px rgba(13, 34, 56, 0.06);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.guides-list-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--accent-bar-height);
  background: var(--accent-bar);
  z-index: 2;
}

.guides-list-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 118, 180, 0.42);
  box-shadow:
    0 20px 44px rgba(13, 34, 56, 0.14),
    0 6px 14px rgba(13, 34, 56, 0.09);
}

.guides-list-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.guides-list-image {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(210px, 13.5vw, 280px);
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(110deg, #d8e5f9 30%, #e8f1ff 50%, #d8e5f9 70%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease infinite;
}

.guides-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard);
}

.guides-list-image img.is-loaded {
  opacity: 1;
}

.guides-list-image.img-ready {
  animation: none;
  background: transparent;
}

.guides-list-body {
  padding: clamp(18px, 1.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: clamp(220px, 15vw, 280px);
}

.guides-list-date {
  margin: 0;
  color: #4b74ae;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.58rem;
  font-weight: 800;
}

.guides-list-title {
  margin: 0;
  font-family: var(--font-display);
  color: #071a3a;
  font-size: clamp(1.35rem, 1.2vw + 0.8rem, 1.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.guides-list-summary {
  margin: 0;
  color: #305f9f;
  font-size: 0.86rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.guides-list-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  color: #1a4a8d;
  padding: 9px var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-weight: 800;
  margin-top: auto;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

.guides-list-link:hover .guides-list-cta {
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  color: #fff;
  border-color: var(--color-btn-border);
  transform: translateY(-2px);
}

.guides-list-status {
  margin: 24px 0;
  color: #a0b4d2;
  font-size: 0.82rem;
  font-style: italic;
}

.guides-list-status.is-ok,
.guides-list-status:empty {
  display: none;
}

.guides-list-empty {
  margin: 40px 0;
  color: #a0b4d2;
  font-size: 0.9rem;
  text-align: center;
}

.guides-list-card-skeleton .guides-list-image {
  background: #e3ecfa;
  animation: none;
}

.guides-skeleton-block,
.guides-skeleton-line {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(110deg, #d8e5f9 30%, #ebf3ff 50%, #d8e5f9 70%);
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease infinite;
}

.guides-skeleton-block {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.guides-skeleton-line--meta {
  width: 34%;
  height: 10px;
}

.guides-skeleton-line--title {
  width: 78%;
  height: 17px;
}

.guides-skeleton-line--body {
  width: 92%;
  height: 14px;
}

.guides-skeleton-line--cta {
  width: 40%;
  height: 32px;
  margin-top: 4px;
}

.guides-list-count {
  margin: 0;
  color: #6a8db8;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guides-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .guides-list-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guides-list-image {
    min-height: clamp(200px, 48vw, 260px);
  }

  .guides-list-body {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .guides-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) and (min-width: 701px) {
  .guides-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
