/* ==========================================================================
   TravexaBlog - Modern Arabic Travel Portal Stylesheet
   Version: 2.0.0
   Author: Google Antigravity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --primary: #004aad;
  --primary-dark: #003277;
  --primary-light: #e6f0fa;
  --primary-gradient: linear-gradient(135deg, #004aad 0%, #002b66 100%);
  
  --accent: #ffb300;
  --accent-hover: #e09d00;
  --accent-light: #fff8e1;
  --accent-gradient: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
  
  --emerald: #10b981;
  --emerald-light: #ecfdf5;
  --rose: #f43f5e;
  --rose-light: #fff1f2;
  
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px -1px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 25px -4px rgba(0,0,0,0.1), 0 8px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 74, 173, 0.15), 0 10px 15px -5px rgba(0,0,0,0.05);
  --shadow-accent: 0 8px 20px -3px rgba(255, 179, 0, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

body {
  font-family: var(--font-body);
  background-color: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.35;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--gray-500); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: #b45309; }
.badge-emerald { background: var(--emerald-light); color: var(--emerald); }
.badge-rose { background: var(--rose-light); color: var(--rose); }

/* --- Top Notification Bar --- */
.top-bar {
  background: var(--dark);
  color: var(--gray-300);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-badge {
  background: var(--accent);
  color: var(--dark);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.top-bar-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 74, 173, 0.08);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--gray-700);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Affiliate Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #003a8c 0%, #001f4d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
  color: var(--white);
}

.btn-accent, .affiliate-btn {
  background: var(--accent-gradient);
  color: var(--dark) !important;
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
  font-weight: 800;
}

.btn-accent:hover, .affiliate-btn:hover {
  background: linear-gradient(135deg, #ffa000 0%, #ff8000 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -2px rgba(255, 179, 0, 0.45);
}

.btn-accent::after, .affiliate-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-pulse {
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 179, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0a2540 0%, #004aad 100%);
  color: var(--white);
  padding: 4.5rem 0 6.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=1920&auto=format&fit=crop") center/cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* --- Modern Search Engine Simulation (Affiliate Integrated) --- */
.search-widget-wrapper {
  position: relative;
  margin-top: -3.5rem;
  z-index: 10;
}

.search-widget {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.search-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.75rem;
}

.search-tab {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.search-tab.active, .search-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 0.8fr auto;
  gap: 1rem;
  align-items: center;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  transition: var(--transition);
}

.form-group:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-input, .form-select {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  outline: none;
  width: 100%;
}

/* --- Section Styling --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* --- Destination Cards Grid --- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.destination-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 74, 173, 0.2);
}

.card-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.destination-card:hover .card-img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-price-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.15);
}

.card-price-tag span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.card-title a {
  color: var(--dark);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--gray-200);
}

.feature-pill {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --- Flash Deals & Countdown Cards --- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.deal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}

.deal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -5px rgba(255, 179, 0, 0.2);
  transform: translateY(-4px);
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.deal-discount {
  background: var(--rose);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.deal-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
}

.deal-city {
  text-align: center;
}

.deal-city-code {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--primary);
  display: block;
}

.deal-city-name {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.deal-flight-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.8rem;
}

.deal-flight-line {
  width: 70px;
  height: 2px;
  background: var(--gray-300);
  position: relative;
  margin: 0.35rem 0;
}

.deal-flight-line::after {
  content: '✈';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  color: var(--accent);
  font-size: 0.9rem;
}

.deal-price-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.deal-old-price {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.deal-new-price {
  color: var(--emerald);
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
}

.deal-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: #92400e;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* --- Features / Value Props --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
  background: var(--primary);
  color: var(--white);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* --- Interactive Budget Estimator Tool --- */
.calculator-card {
  background: linear-gradient(135deg, #0A2540 0%, #004AAD 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-inputs {
  display: grid;
  gap: 1.25rem;
}

.calc-group {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

.calc-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.calc-group select, .calc-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
}

.calc-group select option {
  background: var(--dark);
  color: var(--white);
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.calc-est-label {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-total-price {
  color: var(--primary);
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.calc-breakdown {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* --- Banner CTA Affiliate Promo --- */
.promo-banner {
  background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-accent);
  color: var(--dark);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.promo-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.promo-desc {
  font-size: 1.05rem;
  color: #451a03;
  max-width: 580px;
}

/* --- Single Destination / Dubai Guide Layout --- */
.guide-hero {
  position: relative;
  height: 480px;
  background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.85) 100%),
              url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  color: var(--white);
}

.guide-hero-content {
  max-width: 900px;
}

.guide-stats-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--gray-200);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-text h4 {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.stat-text p {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.toc-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list li {
  margin-bottom: 0.6rem;
}

.toc-list a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--primary);
  padding-right: 4px;
}

.sidebar-affiliate-card {
  background: linear-gradient(135deg, #0A2540 0%, #004AAD 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.guide-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.guide-content h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--dark);
}

.guide-content p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.attraction-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.attraction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.info-callout {
  background: var(--primary-light);
  border-right: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.itinerary-day {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.itinerary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* --- Comparison Page Styles --- */
.compare-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.compare-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.compare-select-box {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.compare-vs-badge {
  width: 54px;
  height: 54px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--dark);
  box-shadow: var(--shadow-accent);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.compare-table th, .compare-table td {
  padding: 1.1rem 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
  background: var(--gray-50);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
}

.compare-table tr:hover td {
  background: var(--gray-50);
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  line-height: 1.75;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* --- Filter Bar for Destinations & Deals --- */
.filter-bar {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin: 1.25rem 0;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 4px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Mobile Sticky Bottom Bar (Affiliate Conversion Driver) --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-top: 1px solid var(--gray-200);
}

.mobile-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-bottom-info {
  display: flex;
  flex-direction: column;
}

.mobile-bottom-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--dark);
}

.mobile-bottom-subtitle {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 700;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-form-grid button {
    grid-column: 1 / -1;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-form-grid {
    grid-template-columns: 1fr;
  }

  .guide-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }
}
