/* =========================================================
   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;
}

/* =========================================================
   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;
  margin: 64px 0;
  background-image: linear-gradient(to right, var(--color-border) 60%, transparent 0%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}
.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: 14px;
  padding-bottom: 14px;
}

.site-logo img {
  height: 34px;
  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);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 96px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 74, 0.10), transparent 40%),
    linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero::before {
  /* dashed flight-path arc behind the headline */
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 640px;
  max-width: 90%;
  height: 220px;
  transform: translateX(-50%);
  border: 2px dashed rgba(11, 99, 246, 0.18);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  pointer-events: none;
}

.hero h1 {
  position: relative;
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero > a {
  position: relative;
  display: inline-block;
  max-width: 720px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform 0.2s ease;
}
.hero > a:hover { transform: translateY(-4px); }

.hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

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

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

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

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