/* ==================================================================
   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: none;
  margin: 0;
  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;
}

/* 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) !important;
  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);
}

/* 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;
    background: transparent !important;
  }
  
  .nav-links a {
    padding: 5px 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  
  .logo img {
    max-height: 34px;
  }
}
/* ─── 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);
  }
}

/* ─── 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: var(--bg-light);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
}

.internal-links a {
  margin-right: var(--space-md);
  color: var(--primary-color);
  font-weight: 500;
}

.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;
}


