/* ==================================================================
   TWARP DESIGN SYSTEM - /modern.css
   Single source of truth for all Twarp.com pages
   Style: CLASSIC (editorial, trustworthy, SEO-optimized)
   Last updated: 2026-05
   Usage: <link rel="stylesheet" href="/modern.css"> on every page
   ================================================================== */

/* ─── 1. CSS VARIABLES (THEMING) ─── */
:root {
  /* Colors - classic travel palette */
  --primary-color: #1a3c6e;      /* Deep blue - trust, professionalism */
  --secondary-color: #c9a227;    /* Gold accent - premium, warmth */
  --accent-color: #e67e22;       /* Orange for CTAs - action, energy */
  --text-color: #333;            /* Primary text */
  --light-text: #666;            /* Secondary text */
  --white: #fff;
  --bg-light: #f8f9fa;           /* Subtle section backgrounds */
  --bg-soft: #f4f6fa;            /* Alternative soft background */
  --success: #2b6e3c;            /* Green for pros/positive */
  --warning: #b91c1c;            /* Red for cons/alerts */
  
  /* Typography - editorial serif for headings, clean sans for body */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-size-base: 16px;
  --font-size-desktop: 13px;     /* Comfortable reading density */
  --font-size-mobile: 15px;      /* Slightly larger for touch */
  --line-height-base: 1.55;
  
  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Layout */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --container-max: 900px;
  --navbar-height: 48px;
}

/* ─── 2. RESET & BASE STYLES ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-desktop);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile typography */
@media (max-width: 768px) {
  body {
    font-size: var(--font-size-mobile);
  }
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── 3. LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── 4. NAVBAR (CRITICAL FIXES) ─── */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  width: 100%;
}

#navbar-placeholder {
  display: block;
  width: 100%;
  background: var(--white) !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--white) !important;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

/* Remove all borders/outlines from navbar elements */
#navbar-placeholder,
#navbar-placeholder *,
.navbar,
.navbar *,
nav,
header,
header * {
  border: none !important;
  outline: none !important;
  background: var(--white) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Restore hamburger lines (wildcard background above makes them invisible) */
#navbar-placeholder .nav-toggle span {
  background: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  display: block !important;
  width: 24px !important;
  height: 2px !important;
}

/* Logo styling */
.logo {
  flex-shrink: 0;
  margin-right: auto;
}

.logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Hamburger menu button - VISIBLE on mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0;
  margin-left: auto;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile menu - initially hidden */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 16px;
  background: var(--white) !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-top: 1px solid #eee;
  z-index: 1000;
}

.nav-links.active {
  display: flex !important;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Navbar search — mobile-first. Lives inside .nav-links so it shows
   in the hamburger menu on mobile and inline at the end on desktop. */
.nav-search form {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.nav-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  color: var(--text-color);
}
.nav-search input[type="search"]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: -1px;
  border-color: var(--accent-color);
}
.nav-search button {
  flex-shrink: 0;
  padding: 6px 10px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.nav-search button:hover {
  background: var(--secondary-color);
}

/* Desktop navbar */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    padding: 0;
    margin: 0;
    gap: 4px;
    box-shadow: none;
    border-top: none;
  }
  
  .nav-links a {
    padding: 5px 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  /* Desktop: compact inline search at end of navbar */
  .nav-search {
    margin-left: auto;
  }
  .nav-search form {
    width: auto;
  }
  .nav-search input[type="search"] {
    width: 140px;
    padding: 4px 8px;
    font-size: 12px;
  }
  .nav-search button {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .logo img {
    max-height: 34px;
  }
}

/* Narrow desktop: the 10-link navbar is wider than a small window, which made
   it overflow horizontally (~769–920px). Tighten links/logo so it always fits. */
@media (min-width: 769px) and (max-width: 940px) {
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 10.5px; padding: 4px 4px; }
  .logo { margin-right: 6px; flex-shrink: 1; }
  .logo img { max-height: 28px; }
}
/* ─── 5. HERO SECTION (CLASSIC) ─── */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #0a5a8a);
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  margin-bottom: var(--space-lg);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.hero h1 span {
  background: var(--accent-color);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: var(--space-xs);
  display: inline-block;
}

.hero p {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

.hero .direct-answer {
  background: rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent-color);
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 40px;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.85rem;
  margin-top: var(--space-md);
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ─── HOME HERO (combined search + AI trip planner) ─────────────── */
.home-hero {
  padding: var(--space-md) 0;
  border-bottom: 1px solid #e0e0e0;
}

.home-hero__row {
  display: flex;
  gap: var(--space-lg);
  align-items: stretch;
}

/* Search side */
.home-hero__search {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-hero__search form {
  display: flex;
  gap: var(--space-sm);
}

.home-hero__search input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #d0d0d0;
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.home-hero__search input[type="search"]:focus {
  border-color: var(--primary-color);
}

.home-hero__search button {
  padding: 10px 18px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.home-hero__search button:hover {
  background: #15305a;
}

.home-hero__plan-link {
  margin-top: var(--space-xs);
  font-size: 12px;
}

.home-hero__plan-link a {
  color: var(--primary-color);
  text-decoration: underline;
}

.home-hero__plan-link a:hover {
  color: var(--accent-color);
}

/* AI side */
.home-hero__ai {
  flex: 1;
  background: linear-gradient(135deg, #1a3c6e, #0a5a8a);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.home-hero__ai-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.home-hero__ai-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.home-hero__ai-input::placeholder { color: #64748b; }

.home-hero__ai-go {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  box-shadow: 0 4px 12px rgba(13,148,136,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-hero__ai-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,148,136,0.5);
}

.home-hero__ai-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.home-hero__ai-surprise {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  box-shadow: 0 4px 10px rgba(249,115,22,0.4);
  transition: transform 0.15s, opacity 0.15s;
}

.home-hero__ai-surprise:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.home-hero__ai-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.home-hero__ai-link:hover {
  color: #ffd78a;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .home-hero {
    padding: var(--space-sm) 0;
  }

  .home-hero__row {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .home-hero__search {
    padding: var(--space-sm) 0;
  }

  .home-hero__search input[type="search"] {
    padding: 12px 14px;
    font-size: 16px;
  }

  .home-hero__search button {
    padding: 12px 18px;
    font-size: 16px;
  }

  .home-hero__plan-link {
    margin-top: var(--space-xs);
  }

  .home-hero__ai {
    padding: var(--space-md);
    border-radius: var(--border-radius);
  }

  .home-hero__ai-form {
    flex-direction: column;
    max-width: none;
  }

  .home-hero__ai-input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: var(--border-radius);
  }

  .home-hero__ai-go {
    padding: 12px 18px;
    font-size: 15px;
    border-radius: var(--border-radius);
  }

  .home-hero__ai-actions {
    font-size: 13px;
  }

  .home-hero__ai-surprise {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ─── AI "PLAN WITH AI" BUBBLE (bottom-right, persistent) ─────────── */
.ai-bubble {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 950; /* below the sticky navbar (1000), above page content */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ai-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.55);
  color: var(--white);
  text-decoration: none;
}

.ai-bubble:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.ai-bubble__icon {
  font-size: 18px;
  line-height: 1;
}

/* Mobile: icon-only pill, tighter margins */
@media (max-width: 768px) {
  .ai-bubble {
    right: var(--space-sm);
    bottom: var(--space-sm);
    padding: 12px 14px;
  }

  .ai-bubble__label {
    display: none;
  }
}

/* ─── 6. CONTENT & CORE COMPONENTS ─── */
.content {
  padding: var(--space-lg) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid #eee;
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
  font-family: var(--font-serif);
  font-weight: 600;
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

/* ─── 7. HOTEL GUIDE COMPONENTS (CLASSIC EDITORIAL) ─── */
.hotel-card {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  background: var(--white);
}

.hotel-card strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--space-xs);
}

.hotel-card .price {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.hotel-card .caveat {
  color: var(--warning);
  font-size: 0.9em;
  display: block;
  margin-top: var(--space-xs);
  font-style: italic;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-sm);
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-light);
}

.faq-item {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--secondary-color);
}

.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
  font-weight: 600;
}

.internal-links {
  background: #e8f0fe;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
  border: 1px solid #c5d9f7;
}

.internal-links strong {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 1.05em;
}

.internal-links ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.internal-links li {
  margin: 6px 0;
  line-height: 1.5;
}

.internal-links a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.internal-links a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.quick-links-bar {
  background: #e8f0fe;
  border: 1px solid #c5d9f7;
  border-radius: var(--border-radius);
  padding: 10px 16px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.8;
}

.quick-links-bar .container {
  max-width: 1000px;
  margin: 0 auto;
}

.quick-links-bar strong {
  margin-right: 8px;
  color: var(--primary-color);
}

.quick-links-bar a {
  display: inline-block;
  margin: 2px 6px;
  padding: 2px 8px;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
}

.quick-links-bar a:hover {
  background: #d0e2fc;
  text-decoration: underline;
}

/* ── Content link lists (districts, attractions, etc.) ──────────────── */
.destination-page ul,
.article-page ul,
.hotels-page ul {
  background: #e8f0fe;
  border: 1px solid #c5d9f7;
  border-radius: var(--border-radius);
  padding: 12px 16px 12px 32px;
  margin: 12px 0;
  list-style: disc;
  column-width: 220px;
  column-gap: 24px;
}

.destination-page ul li,
.article-page ul li,
.hotels-page ul li {
  margin: 6px 0;
  line-height: 1.5;
  break-inside: avoid;
}

.destination-page ul a,
.article-page ul a,
.hotels-page ul a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.destination-page ul a:hover,
.article-page ul a:hover,
.hotels-page ul a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.affiliate-disclosure {
  background: var(--bg-light);
  padding: var(--space-sm);
  border-left: 3px solid var(--secondary-color);
  margin: var(--space-md) 0;
  font-size: 0.9em;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.insider-tip {
  background: #fff8dc;
  border: 1px solid var(--secondary-color);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
}

.insider-tip strong {
  color: var(--primary-color);
}

.booking-widget {
  background: #f0f4f8;
  padding: var(--space-lg);
  text-align: center;
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
  border: 1px solid #dce4ec;
}

.booking-widget a {
  display: inline-block;
  margin: var(--space-xs) var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 3px;
  font-weight: 500;
}

.booking-widget a:hover {
  background: #0a5a8a;
}

/* TL;DR Table for featured snippets */
.tldr-table {
  background: #e8f4f8;
  border: 2px solid var(--primary-color);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.tldr-table table {
  width: 100%;
  border-collapse: collapse;
}

.tldr-table td {
  padding: var(--space-sm);
  border-right: 1px solid #ccc;
  vertical-align: top;
}

.tldr-table td:last-child {
  border-right: none;
}

.tldr-table strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
}

@media (max-width: 600px) {
  .tldr-table table,
  .tldr-table tbody,
  .tldr-table tr,
  .tldr-table td {
    display: block;
    width: 100%;
  }
  .tldr-table td {
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 6px 10px;
  }
  .tldr-table td:last-child {
    border-bottom: none;
  }
}

/* ─── 8. UTILITY COMPONENTS (OPTIONAL, FOR TRANSFERS/DEALS) ─── */
/* Use sparingly on pages like /istanbul/airport-transfers/ */

/* Price tag badge */
.price-tag {
  background: #fef3e8;
  color: #c2410c;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
  margin-left: var(--space-xs);
}

/* Pro/Con badges */
.pro-con {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  font-size: 0.9rem;
}

.pro {
  color: var(--success);
  background: #ebf9eb;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.con {
  color: var(--warning);
  background: #fee8e8;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* Warning/info boxes */
.warning-note,
.info-box {
  background: #fff9e6;
  border-left: 4px solid var(--accent-color);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: var(--space-md) 0;
  font-size: 0.95rem;
}

.info-box {
  background: #eef2ff;
  border-left-color: var(--primary-color);
}

/* Button links (for external resources) */
.button-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin: var(--space-xs) var(--space-xs) var(--space-xs) 0;
}

.button-link:hover {
  background: #0a5a8a;
  text-decoration: none;
}

.button-link-small {
  background: var(--accent-color);
  padding: 2px 8px;
  font-size: 0.8rem;
}

/* Collapsible sections (for resources) */
.collapse-header {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.collapse-header .arrow {
  transition: transform 0.3s ease;
}

.collapse-header.open .arrow {
  transform: rotate(180deg);
}

.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: var(--white);
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.collapse-content.open {
  max-height: 2000px;
}

.resources-inner {
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .resources-inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .collapse-header {
    cursor: default;
  }
  .collapse-header .arrow {
    display: none;
  }
  .collapse-content {
    max-height: none !important;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
  }
}

.resource-group h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--secondary-color);
  padding-left: var(--space-sm);
  font-family: var(--font-serif);
}

.resource-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-group li {
  margin-bottom: var(--space-xs);
}

.resource-group a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.resource-group a:hover {
  text-decoration: underline;
}

/* ─── 9. TRIP.COM WIDGET (RESPONSIVE) ─── */
.tripcom-widget {
  max-width: 100%;
  margin: var(--space-md) auto;
  text-align: center;
}

.tripcom-widget p {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  color: var(--light-text);
}

.tripcom-widget iframe {
  width: 100%;
  height: 400px;
  max-width: 320px;
  border: 0;
  margin: 0 auto;
  display: block;
  border-radius: var(--border-radius);
}

@media (min-width: 769px) {
  .tripcom-widget {
    max-width: 320px;
  }
  .tripcom-widget iframe {
    width: 320px !important;
    height: 200px !important;
  }
  .tripcom-widget p {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

/* ─── 10. FOOTER (COMPACT) ─── */
footer {
  background: transparent !important;
  color: var(--light-text);
  padding: 6px 0 !important;
  margin-top: 12px !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center;
}

footer p,
footer div {
  margin: 3px 0 !important;
  padding: 0 !important;
}

footer a {
  color: var(--primary-color);
  font-size: 12px !important;
  margin: 0 4px !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--primary-color);
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ─── 11. HEADING TYPOGRAPHY (CLASSIC EDITORIAL) ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-left: 4px solid var(--secondary-color); padding-left: var(--space-sm); margin-top: var(--space-lg); }
h3 { font-size: 1.25rem; color: #2c5282; }
h4 { font-size: 1.1rem; }

/* Mobile heading adjustments */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* ─── 12. PRINT STYLES ─── */
@media print {
  .navbar,
  .booking-widget,
  .tripcom-widget,
  .nav-toggle,
  .collapse-header {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    line-height: 1.4;
  }
  a {
    text-decoration: underline;
    color: #000;
  }
  .card, .hotel-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ==================================================================
   FIX: HERO SECTION CONTEXT (Dark background pages)
   Applies to pages like /istanbul/airport-transfers/, /guide.htm, etc.
   ================================================================== */

/* 1. Ensure navbar header stays white (never inherits hero background) */
header {
  background: var(--white) !important;
  border-bottom: 1px solid #eee !important;
}

/* 2. Reduce hero section height (was ~2x too tall) */
.hero {
  padding: var(--space-md) var(--space-md) !important; /* Was var(--space-lg) */
  margin-bottom: var(--space-md) !important; /* Was var(--space-lg) */
}

/* 3. Force headings inside .hero to be white (contrast fix) */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero p,
.hero .direct-answer,
.hero .hero-badge {
  color: var(--white) !important;
}

/* 4. Ensure links inside hero are readable */
.hero a {
  color: #ffd78a !important; /* Light gold for visibility on dark bg */
  text-decoration: none !important;
}
.hero a:hover {
  color: var(--white) !important;
  text-decoration: underline !important;
}



/* ── Related Guides (auto-generated, see app/related.py) ─────────── */
.related-pages {
  background: #f8f6f0;
  border: 1px solid #e2dcd0;
  border-left: 4px solid var(--accent-color);
  padding: var(--space-md);
  margin: var(--space-lg) 0 var(--space-md);
  border-radius: var(--border-radius);
}

.related-pages .related-title {
  margin: 0 0 var(--space-sm);
  font-size: 1.15rem;
  color: var(--primary-color);
}

.related-pages .related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.related-pages .related-list li {
  margin: 0;
  line-height: 1.5;
}

.related-pages .related-list a {
  display: inline-block;
  background: var(--white);
  color: var(--text-color);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #e2dcd0;
}

.related-pages .related-list a:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ── OpenLayers map controls ────────────────────────────────────────────
   ol.css sizes the zoom buttons at 1.375em (about 22px), which is small
   against the map. Scale them to roughly 2.5x.

   The selectors are deliberately more specific than ol.css: modern.css is
   linked BEFORE ol.css, so at equal specificity ol.css wins. `.ol-control`
   is included so ol.css's `.ol-touch .ol-control button` is beaten too. */
.ol-viewport .ol-control.ol-zoom {
  top: .75em;
  left: .75em;
}

.ol-viewport .ol-control.ol-zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
  border-radius: 6px;
}

/* ol.css joins the two buttons into one pill; separate them at this size. */
.ol-viewport .ol-control.ol-zoom .ol-zoom-in {
  margin-bottom: 5px;
  border-radius: 6px;
}

.ol-viewport .ol-control.ol-zoom .ol-zoom-out {
  border-radius: 6px;
}

/* Neutral background behind the tiles, so a tile that is still loading reads
   as "loading" rather than as a broken white map. */
.ol-viewport {
  background: #e9e7e2;
}


/* ─── TOUR DETAIL PAGE ──────────────────────────────────────────────── */
/* Presentation only: the same tokens as the rest of the site (navy, gold,
   serif headings, .card), arranged so a tour reads as a product page rather
   than a wall of text. */

.tour-hero {
  background: linear-gradient(135deg, var(--primary-color), #0a5a8a);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin: 0 0 var(--space-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.tour-hero h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  border: 0;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.tour-hero .hero-badge {
  background: rgba(255, 255, 255, 0.22);
  margin-top: var(--space-sm);
}

.tour-hero__facts {
  margin: var(--space-sm) 0 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Quick facts row */
.tour-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.tour-fact {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.tour-fact__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--light-text);
}

.tour-fact__value {
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
}

/* Itinerary: a timeline of overnight runs, not one row per night */
.tour-itinerary {
  list-style: none;
  margin: 0.75rem 0 0 0.4rem;
  padding: 0;
}

.tour-itinerary li {
  position: relative;
  padding: 0 0 1.1rem 1.7rem;
  border-left: 2px solid #e3e8ef;
}

.tour-itinerary li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.tour-itinerary li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 2px var(--white);
}

.tour-itinerary__city {
  font-weight: 600;
  color: var(--primary-color);
}

.tour-itinerary__nights {
  color: var(--light-text);
  font-size: 0.85rem;
}

/* Highlights with a tick, rather than a plain bullet list */
.tour-highlights {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.tour-highlights li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.tour-highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

/* Pill links (places on the route, more tours) */
.tour-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
}

.tour-chips a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #f0f4f8;
  border: 1px solid #dce4ec;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.tour-chips a:hover {
  background: #e8f0fe;
  border-color: #c5d9f7;
}

/* Photo strip of the places on the route (sourced from those places' guides) */
.tour-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.tour-gallery img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: #eee;
}

@media (max-width: 768px) {
  .tour-gallery { grid-template-columns: repeat(2, 1fr); }
  .tour-gallery img { height: 110px; }
}

/* The planner link is a text link, not a second booking button: the generic
   .booking-widget a rule would otherwise turn every anchor in the widget into
   a navy button. (0,2,0) beats .booking-widget a (0,1,1). */
.booking-widget .tour-planner {
  display: inline;
  background: none;
  color: var(--primary-color);
  padding: 0;
  margin: 0;
  font-weight: 400;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .tour-hero { padding: var(--space-lg) var(--space-md) var(--space-md); }
  .tour-hero h1 { font-size: 1.5rem; }
}

