/* ═══════════════════════════════════════════════════════════
   Travel Tips — Article Detail + List Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero (matches tour.css style) ────────────────────── */
.article-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(5, 35, 45, 0.94) 0%,
      rgba(5, 35, 45, 0.78) 30%,
      rgba(5, 35, 45, 0.28) 58%,
      rgba(5, 35, 45, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(5, 35, 45, 0.32) 0%,
      transparent 40%
    );
  z-index: 1;
}
.article-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 48px;
}
.article-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.article-hero-tag svg {
  stroke: var(--brand-red, #EF3B3A);
}
.article-hero h1 {
  color: #fff;
  font-family: Georgia, "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 720px;
}
.article-hero-meta {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  align-items: center;
}
.article-hero-meta span + span::before {
  content: '|';
  margin-right: 12px;
  opacity: 0.5;
}
.article-hero-accent {
  width: 60px;
  height: 4px;
  background: var(--brand-red, #EF3B3A);
  border-radius: 2px;
  margin-top: 20px;
}
.article-hero-list {
  min-height: 36vh;
}
.article-hero-list h1 {
  font-size: 3rem;
}
.article-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  max-width: 600px;
}

/* ─── Article Body (prose) ─────────────────────────────── */
.article-content {
  padding: var(--space-xl, 48px) 0;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary, #1a1a1a);
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.article-body p {
  margin: 0 0 1.2rem;
}
.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body img {
  max-width: 100%;
  max-height: 800px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th,
.article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.article-body th {
  background: #f8fafb;
  font-weight: 600;
}
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--brand-red, #EF3B3A);
  background: #fafafa;
  font-style: italic;
  color: #555;
}
.article-body a {
  color: var(--brand-red, #EF3B3A);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: #c0392b;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.article-toc {
  background: #f8fafb;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.article-toc h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin: 0 0 12px;
}
.article-toc-link {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}
.article-toc-link:hover {
  color: var(--brand-red, #EF3B3A);
}
.article-toc-link.is-active {
  color: var(--brand-red, #EF3B3A);
  border-left-color: var(--brand-red, #EF3B3A);
  font-weight: 600;
}
.article-cta-card {
  background: linear-gradient(135deg, #0a3e5c, #1a6b8a);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.article-cta-card p {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
  font-weight: 500;
}
.article-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--brand-red, #EF3B3A);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.article-cta-btn:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(239, 59, 58, 0.3);
}

/* ─── Vertical Search Box (sidebar) ───────────────────── */
.search-vertical {
  background: #f8fafb;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #eee;
  position: relative;
}
.article-sidebar .city-dropdown .city-dropdown-title,
.article-sidebar .city-dropdown .city-dropdown-grid {
  display: none !important;
}
.article-sidebar .city-dropdown {
  max-width: 240px !important;
  min-width: unset !important;
}
.search-vertical-field {
  position: relative;
  overflow: visible;
}
.search-vertical-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a3a4a;
  margin: 0 0 16px;
}
.search-vertical-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-vertical-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-vertical-field--icon {
  position: relative;
}
.search-vertical-icon {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #999;
  pointer-events: none;
  display: flex;
  z-index: 2;
}
.search-vertical-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-vertical-field input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.search-vertical-field input:focus {
  outline: none;
  border-color: var(--brand-red, #EF3B3A);
}
.search-vertical-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--brand-red, #EF3B3A);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-top: 4px;
}
.search-vertical-btn:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(239, 59, 58, 0.3);
}

/* ─── Related Articles ─────────────────────────────────── */
.article-related {
  padding: var(--space-xl, 48px) 0;
  background: #f8fafb;
}
.article-related h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 24px;
}
.articles-grid-related {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ─── Articles Grid (list page) ────────────────────────── */
.articles-section {
  padding: var(--space-xl, 48px) 0;
}
.articles-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.articles-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.articles-tab {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  color: #555;
}
.articles-tab:hover {
  border-color: var(--brand-red, #EF3B3A);
  color: var(--brand-red, #EF3B3A);
}
.articles-tab.is-active {
  background: var(--brand-red, #EF3B3A);
  border-color: var(--brand-red, #EF3B3A);
  color: #fff;
}
.articles-search input {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 220px;
}
.articles-search input:focus {
  outline: none;
  border-color: var(--brand-red, #EF3B3A);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ─── Article Card ─────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.article-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.article-card-placeholder--trains {
  background: linear-gradient(135deg, #1a5276, #2980b9);
}
.article-card-placeholder--booking {
  background: linear-gradient(135deg, #1e8449, #27ae60);
}
.article-card-placeholder--practical {
  background: linear-gradient(135deg, #7d3c98, #a569bd);
}
.article-card-placeholder--visa {
  background: linear-gradient(135deg, #b9770e, #f39c12);
}
.article-card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.article-card-category {
  color: var(--brand-red, #EF3B3A);
  font-weight: 600;
}
.article-card-time {
  color: #888;
}
.article-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #1a1a1a;
}
.article-card-body p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* ─── Empty state ──────────────────────────────────────── */
.articles-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1rem;
}

/* ─── Pagination ───────────────────────────────────────── */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.articles-page-link {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: border-color 0.15s;
}
.articles-page-link:hover {
  border-color: var(--brand-red, #EF3B3A);
  color: var(--brand-red, #EF3B3A);
}
.articles-page-info {
  font-size: 0.85rem;
  color: #888;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  .article-toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-hero {
    min-height: 340px;
  }
  .article-hero h1 {
    font-size: 1.8rem;
  }
  .article-hero-content {
    padding: 60px 0 36px;
  }
  .article-body {
    font-size: 1rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .articles-search input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .article-hero h1 {
    font-size: 1.5rem;
  }
}


/* ─── Lightbox ─────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay.is-open {
  display: flex;
}
.lightbox-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
