/* =========================================================
   TraveloJoy — Design tokens
   ========================================================= */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F8FC;
  --color-primary: #0B63F6;
  --color-primary-dark: #0A4FC4;
  --color-primary-light: #E8F0FF;
  --color-accent: #FF6B4A;
  --color-accent-dark: #E8532E;
  --color-text: #101828;
  --color-text-muted: #5B6472;
  --color-border: #E4E9F2;
  --color-success: #12B76A;
  --color-white: #FFFFFF;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

  --container-width: 1200px;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

button, input {
  font-family: var(--font-body);
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Inner-page hero banners (flights/hotels/cars/tours/taxi/compensair)
   ========================================================= */
.page-hero {
  position: relative;
  padding: 64px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: cover;
  background-position: center;
}
.page-hero h1 { color: var(--color-white); margin: 0; }

.page-hero-hotels {
  background-image: linear-gradient(rgba(11,99,246,0.55), rgba(10,79,196,0.65));
}
.page-hero-flights { background: linear-gradient(135deg, #0B63F6 0%, #0A4FC4 100%); }
.page-hero-cars { background: linear-gradient(135deg, #22C55E 0%, #159249 100%); }
.page-hero-taxi { background: linear-gradient(135deg, #FF6B7A 0%, #E24555 100%); }
.page-hero-tours { background: linear-gradient(135deg, #8B5CF6 0%, #6D33E0 100%); }
.page-hero-compensair { background: linear-gradient(135deg, #12B5A6 0%, #0B8377 100%); }

/* =========================================================
   Signature element: dashed "flight path" divider
   Small waypoint dots along a dashed line — echoes route
   maps used throughout flight/hotel search products.
   ========================================================= */
.route-divider {
  position: relative;
  height: 1px;
  max-width: var(--container-width);
  margin: 48px auto;
  background-image: linear-gradient(to right, var(--color-border) 60%, transparent 0%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}
/* Avoid doubling the gap when a divider sits directly before a section —
   the divider's own 48px top+bottom margins already provide the full
   96px rhythm on their own. */
.route-divider + section {
  margin-top: 0;
}
.route-divider::before,
.route-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
}
.route-divider::before { left: 0; }
.route-divider::after { right: 0; background: var(--color-accent); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* =========================================================
   About page
   ========================================================= */
.page-hero-about { background: linear-gradient(135deg, #0B63F6 0%, #6D33E0 100%); }
.page-hero-contact { background: linear-gradient(135deg, #FF6B4A 0%, #E24555 100%); }

.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.about-value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}
.about-value-card i {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.about-value-card h3 { margin-bottom: 0.4em; }
.about-value-card p { margin: 0; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.contact-intro {
  text-align: center;
  margin-bottom: 32px;
}
.contact-success {
  background: #ECFDF3;
  color: #067647;
  border: 1px solid #ABEFC6;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.contact-form textarea { resize: vertical; }
.contact-error { color: var(--color-accent-dark); font-size: 0.8rem; font-weight: 500; }
.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--color-primary-dark); }

@media (max-width: 640px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}
.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.pagination-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.pagination-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination-info {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* =========================================================
   Floating video player (site-wide travel videos widget)
   ========================================================= */
.floating-video-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  z-index: 95;
  background: #0D1B33;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fvp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0D1B33;
}
.fvp-label {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fvp-label i { color: #FF0000; }

.fvp-controls { display: flex; gap: 4px; }
.fvp-controls button {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
}
.fvp-controls button:hover { background: rgba(255,255,255,0.2); }

.fvp-body {
  aspect-ratio: 16/9;
  width: 100%;
}
.fvp-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.fvp-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}

.fvp-reopen {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FF0000;
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.floating-video-player.fvp-minimized .fvp-body { display: none; }
.floating-video-player.fvp-minimized { width: auto; }

/* When "closed", collapse the panel down to just the small round reopen button */
.floating-video-player.fvp-hidden {
  width: auto;
  background: none;
  box-shadow: none;
  border-radius: 50%;
}
.floating-video-player.fvp-hidden .fvp-header,
.floating-video-player.fvp-hidden .fvp-body {
  display: none;
}
.floating-video-player.fvp-hidden .fvp-reopen {
  display: flex;
}

@media (max-width: 640px) {
  .floating-video-player { width: 240px; right: 12px; bottom: 12px; }
}

/* =========================================================
   Floating social sidebar
   ========================================================= */
.floating-social {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.floating-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1rem;
}
.fs-facebook { background: #1877F2; }
.fs-twitter { background: #1DA1F2; }
.fs-pinterest { background: #E60023; }

/* =========================================================
   Hero carousel
   ========================================================= */
.hero {
  position: relative;
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: visible;
  background: none;
}
.hero::before { display: none; }

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,24,40,0.15) 0%, rgba(16,24,40,0.05) 35%, rgba(16,24,40,0.55) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  gap: 16px;
}
.hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.text-gradient {
  background: linear-gradient(90deg, #FF6B4A 0%, #FF6B9D 40%, #A78BFA 70%, #22D3C5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  max-width: 480px;
  margin: 0;
}

/* Section eyebrow labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
section > .eyebrow {
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow i { font-size: 0.85em; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* =========================================================
   Search tabs (Flights / Hotels / Cars / Tours)
   ========================================================= */
.search-tabs {
  position: relative;
  max-width: 920px;
  margin: -48px auto 0;
  z-index: 10;
  padding: 0 24px;
}

.search-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 8px 8px 0;
}

.search-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.search-tab i { color: inherit; }
.search-tab:hover { background: var(--color-bg-alt); }
.search-tab.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #FF6B4A, #A78BFA, #22D3C5);
}

.search-tab-panels {
  background: var(--color-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  min-height: 100px;
}

.search-tab-panel { display: none; }
.search-tab-panel.active { display: block; }
.search-tab-panel center { display: flex; justify-content: center; }

/* =========================================================
   Stats bar
   ========================================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container-width);
  margin: 56px auto 0;
  padding: 0 24px;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
}

.stat-block-text { display: flex; flex-direction: column; }

.stat-number, .stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.stat-teal .stat-icon { background: #12B5A6; }
.stat-purple .stat-icon { background: #8B5CF6; }
.stat-coral .stat-icon { background: #FF6B7A; }
.stat-green .stat-icon { background: #22C55E; }

/* =========================================================
   Inline video section
   ========================================================= */
.watch-video { text-align: center; }
.video-embed-wrap {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-embed-wrap iframe { width: 100%; height: 100%; border: none; }

/* =========================================================
   Popular flight routes
   ========================================================= */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.route-deal { min-height: 220px; }

/* =========================================================
   Why Us feature icon
   ========================================================= */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-soft, #EAF2FF);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel { height: 420px; }
  .search-tabs-nav { flex-wrap: wrap; }
  .search-tab { flex: 1 1 45%; font-size: 0.85rem; padding: 10px; }
  .floating-social { display: none; }
}

@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel { height: 420px; }
  .search-tabs-nav { flex-wrap: wrap; }
  .search-tab { flex: 1 1 45%; font-size: 0.85rem; padding: 10px; }
  .floating-social { display: none; }
}

/* =========================================================
   Section rhythm
   ========================================================= */
section {
  max-width: var(--container-width);
  margin: 96px auto 0;
  padding: 0 24px;
}

section > h2 {
  text-align: center;
  margin-bottom: 12px;
}
section > p:first-of-type {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

/* =========================================================
   Popular Tours — card grid
   ========================================================= */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.tour-grid a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.tour-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tour-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tour-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(180deg, transparent, rgba(16, 24, 40, 0.72));
}

/* =========================================================
   Popular Hotels — list with pill buttons
   ========================================================= */
.popular-hotels ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.popular-hotels li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.popular-hotels a {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.popular-hotels a:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* =========================================================
   Why Us — feature grid
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-grid > div {
  padding: 28px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.feature-grid h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.4em;
}

.feature-grid p { margin: 0; }

/* =========================================================
   Blog grid (home + index + related)
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card,
.blog-grid > a {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover,
.blog-grid > a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card img,
.blog-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card h2,
.blog-card h3,
.blog-grid h3 {
  font-size: 1.05rem;
  padding: 16px 18px 0;
  margin-bottom: 0.4em;
}

.blog-card p { padding: 0 18px; }

.post-date {
  display: block;
  padding: 0 18px 18px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.latest-blogs > a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

/* =========================================================
   Partners strip
   ========================================================= */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.partner-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  color: var(--color-white);
}
.newsletter h2 { color: var(--color-white); }
.newsletter p { color: rgba(255, 255, 255, 0.85); }
.newsletter .privacy-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.newsletter-success {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  max-width: 440px;
  margin: 16px auto 0;
  font-weight: 500;
  font-size: 0.9rem;
}
.newsletter-error {
  background: rgba(255,255,255,0.15);
  border: 1px solid #FFB4A8;
  color: #FFE5E0;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  max-width: 440px;
  margin: 16px auto 0;
  font-weight: 500;
  font-size: 0.9rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 440px;
  margin: 24px auto 0;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

.newsletter button {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter button:hover { background: var(--color-accent-dark); }

/* =========================================================
   Widget wrappers (Travelpayouts / GetYourGuide embeds)
   We only control the wrapper — the third-party scripts
   render their own internal markup.
   ========================================================= */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.destination-deals-grid,
.tours-activities-grid,
.tours-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.hotellook-destinations {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hotellook-destinations a {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  font-weight: 500;
  color: var(--color-text);
}
.hotellook-destinations a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* =========================================================
   Blog single / index
   ========================================================= */
.single-post {
  max-width: 760px;
  margin: 0 auto;
}
.single-post h1 { margin-bottom: 0.3em; }
.single-post .post-date { padding: 0; margin-bottom: 24px; }
.single-post .featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-content { color: var(--color-text); }
.post-content p { color: var(--color-text); }
.post-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.post-content h2 { margin-top: 1.4em; }

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.post-tags .tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.related-posts {
  max-width: var(--container-width);
  margin: 64px auto 0;
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content ul, .legal-content ol { padding-left: 1.4em; list-style: revert; margin-bottom: 1em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0D1B33;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
  margin-top: 64px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1em;
}

.footer-col p { color: rgba(255, 255, 255, 0.6); }

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.65); }
.footer-col a:hover { color: var(--color-white); }

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 6px 10px; font-size: 0.85rem; }
  .site-header .container { flex-direction: column; gap: 8px; padding-bottom: 10px; }
  .hero { padding: 48px 16px 64px; }
  .newsletter form { flex-direction: column; }
  .site-footer .container { grid-template-columns: 1fr; }

  /* 2-column card grids on mobile instead of 1, to cut scroll length
     roughly in half on content-heavy sections (tours, blog, features) */
  .tour-grid,
  .blog-grid,
  .feature-grid,
  .destination-deals-grid,
  .tours-activities-grid,
  .tours-city-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .popular-hotels ul { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}


/* =========================================================
   Mobile nav toggle (hamburger + full-screen menu)
   ========================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 0 auto;
}
.nav-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}
.nav-backdrop {
  display: none;
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: row; align-items: center; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -8px 0 30px rgba(16,24,40,0.15);
    z-index: 200;
    transition: right 0.25s ease;
    padding: 70px 12px 24px;
    overflow-y: auto;
  }
  .main-nav.nav-open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; flex-wrap: nowrap; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 10px; }
  .nav-close { display: block; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16,24,40,0.4);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-backdrop.nav-open { opacity: 1; pointer-events: auto; }
}


/* Blog search */
.blog-search-form { display:flex; gap:8px; max-width:420px; margin:0 0 24px; }
.blog-search-form input { flex:1; padding:11px 16px; border:1px solid var(--color-border); border-radius:999px; font-family:inherit; }
.blog-search-form button { background:var(--color-primary); color:#fff; border:none; width:44px; border-radius:999px; cursor:pointer; }
.blog-search-summary { color:var(--color-text-muted); margin:-10px 0 20px; font-size:0.9rem; }
