/* Premium UI/UX Upgrade for Expedition Travel Agency */

:root {
  --primary-blue: #3554D1;
  --accent-yellow: #F1C40F;
  --dark-navy: #051036;
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.9);
}

/* Global Smoothness */
html {
  scroll-behavior: smooth;
}

body {
  transition: background-color 0.3s ease;
}

[data-anim-wrap], [data-anim-child], [data-anim] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 2. Hero Section Refinement */
.masthead.-type-5 {
  position: relative;
  overflow: hidden;
  background-color: #f0f7fd !important;
  background-image: url('../img/masthead/5/bg.svg'), url('../img/masthead/5/bg.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  padding-top: 100px;
  padding-bottom: 80px;
}

.masthead.-type-5 .masthead__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.masthead.-type-5 .masthead__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.masthead.-type-5 .container {
  position: relative;
  z-index: 2;
}

.masthead.-type-5 .masthead__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  z-index: 1;
}

@media (max-width: 1199px) {
  .masthead.-type-5 .masthead__image {
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: 30px;
  }
}

.masthead h1 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
}

.masthead p {
  font-size: 18px;
  color: #444;
}

/* 3. Tour Cards - Pro Level Enhancement */
.tourCard.-type-1 {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tourCard.-type-1:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-blue);
}

.tourCard__image {
  border-radius: 12px 12px 0 0 !important;
}

.tourCard__title {
  margin-top: 15px;
  font-weight: 600;
  color: var(--dark-navy) !important;
}

.tourCard__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
}

/* Enhanced Meta & Button Styles */
.tourCard-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
  margin-top: 6px;
}

.tourCard-meta-item i {
  color: var(--primary-blue);
  width: 16px;
  text-align: center;
}

.tourCard-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tourCard-old-price {
  font-size: 13px;
  text-decoration: line-through;
  color: #888;
  font-weight: 500;
}

.tourCard-new-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
}

.tourCard-btn {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}

.tourCard-btn:hover {
  background: var(--dark-navy);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(53, 84, 209, 0.3);
}

.tourCard__content {
  padding: 15px 15px 20px 15px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tourCard__content > .row:last-child {
  margin-top: auto;
}

/* 4. Section Titles */
.sectionTitle__title {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.sectionTitle__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

/* 5. Chatbot Interface Tweaks */
.chatbot-bubble {
  background: var(--primary-blue) !important;
  box-shadow: 0 4px 15px rgba(53, 84, 209, 0.4) !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 84, 209, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(53, 84, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 84, 209, 0); }
}

.chat-window {
  border-radius: 16px !important;
  overflow: hidden;
  border: 4px solid var(--primary-blue);
}

.chat-header {
  background: var(--primary-blue) !important;
}

.chat-option {
  border: 1px solid var(--primary-blue) !important;
  color: var(--primary-blue) !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
}

.chat-option:hover {
  background: var(--primary-blue) !important;
  color: #fff !important;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
  .masthead h1 { font-size: 32px; }
  .sectionTitle__title { font-size: 26px; }
  .tourCard.-type-1 { margin-bottom: 20px; }
  
  /* Stack meta items vertically on mobile to prevent overlapping */
  .tourCard__content .d-flex.mb-10 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  
  /* Stack bottom row elements (stars, button, price) vertically */
  .tourCard__content .row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 15px;
    display: flex;
  }
  
  .tourCard__content .col-auto:first-child {
    order: 2; /* Move button and stars below the price */
  }
  
  .tourCard__content .col-auto:last-child {
    order: 1; /* Move price section to the top */
  }
  
  .tourCard__content .col-auto {
    width: 100% !important;
    text-align: center;
  }
  
  .tourCard__content .d-flex.x-gap-5 {
    justify-content: center;
    margin-bottom: 10px;
  }
  
  /* Design price container like a tab matching the view details styling */
  .tourCard-price-container {
    width: 100%;
    margin-top: 0;
    padding: 10px 16px;
    background: rgba(53, 84, 209, 0.05); /* Light primary background */
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  
  .tourCard-old-price {
    font-size: 14px;
    margin-right: 5px;
  }

  .tourCard-new-price {
    font-size: 18px;
  }
  
  /* Make the call-to-action button full width */
  .tourCard-btn {
    width: 100%;
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    text-align: center;
    margin-top: 5px;
  }
}

/* Google Translate Top Bar Fix */
body {
    top: 0 !important;
}
.skiptranslate iframe {
    display: none !important;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* SEO Keyword Styling Refinement (Prevent Stuffing Look) */
.text-content-seo strong {
  color: inherit !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   AEO (Answer Engine Optimization) & AIO (AI Overview) Visual Component Suite
   ========================================================================== */
.aio-overview-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3554D1;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 30px 0;
  box-shadow: 0 10px 25px -5px rgba(53, 84, 209, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.aio-overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(53, 84, 209, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.aio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3554D1 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(53, 84, 209, 0.25);
}

.aio-badge i {
  color: #fbbf24;
}

.aio-summary-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.aio-summary-text {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 18px;
}

.aio-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.aio-stat-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.aio-stat-item:hover {
  transform: translateY(-2px);
  border-color: #3554D1;
}

.aio-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.aio-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.aio-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.aio-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aio-cta-btn:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .aio-overview-card {
    padding: 18px 16px;
    margin: 20px 0;
  }
  .aio-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.tourCard.-type-1 .tourCard__title {
  min-height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* --- ULTIMATE PREMIUM TOUR CARD REDESIGN --- */
.tourCard.-type-1 {
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border: 1px solid rgba(0,0,0,0.03) !important;
  height: max-content !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
}

.tourCard.-type-1:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
  border-color: rgba(0,0,0,0.05) !important;
}

.tourCard.-type-1 .tourCard__image {
  overflow: hidden;
  position: relative;
}

.tourCard.-type-1 .cardImage__content img {
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.tourCard.-type-1:hover .cardImage__content img {
  transform: scale(1.08) !important;
}

.tourCard.-type-1 .cardImage__leftBadge .py-5 {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  padding: 6px 16px !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
  position: absolute;
  top: 16px !important;
  left: 0;
  z-index: 2;
  text-transform: uppercase;
  font-size: 11px !important;
}

.tourCard.-type-1 .tourCard__content {
  padding: 18px 16px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 {
  margin-bottom: 16px !important;
}

.tourCard.-type-1 .tourCard-meta-item {
  color: #64748b !important;
  font-size: 13.5px !important;
  display: flex;
  align-items: center;
  margin-bottom: 10px !important;
  font-weight: 500;
}

.tourCard.-type-1 .tourCard-meta-item i {
  color: #3b82f6 !important;
  margin-right: 10px !important;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 .tourCard-meta-item {
  background: #f8fafc !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 0 !important;
  border: 1px solid #e2e8f0;
}
.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 .tourCard-meta-item i {
  color: #f59e0b !important;
}

.tourCard.-type-1 .tourCard__title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
  min-height: 46px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.3s ease !important;
}

.tourCard.-type-1:hover .tourCard__title {
  color: #2563eb !important;
}

.tourCard.-type-1 .row.justify-between.items-end {
  margin-top: 15px !important;
  padding-top: 20px !important;
  border-top: 1px dashed #cbd5e1 !important;
  align-items: center !important;
}

.tourCard.-type-1 .tourCard-btn {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin-top: 8px !important;
  text-align: center;
}

.tourCard.-type-1:hover .tourCard-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-2px);
}

.tourCard.-type-1 .tourCard-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tourCard.-type-1 .tourCard-old-price {
  font-size: 13px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  margin-bottom: -2px !important;
  font-weight: 600;
}

.tourCard.-type-1 .tourCard-new-price {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1 !important;
}

.tourCard.-type-1 .tourCard-price-container .text-light-1 {
  font-size: 11px !important;
  color: #64748b !important;
  margin-top: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
}

/* FIX LAYOUT ISSUES */
.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 .tourCard-meta-item {
  white-space: nowrap !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
}
.tourCard.-type-1 .row.justify-between.items-end {
  flex-direction: row !important;
  align-items: flex-end !important;
  margin-top: 15px !important;
}
.tourCard.-type-1 .tourCard__content .col-auto {
  width: auto !important;
  text-align: left !important;
}
.tourCard.-type-1 .tourCard__content .col-auto:first-child {
  order: 1 !important;
}
.tourCard.-type-1 .tourCard__content .col-auto:last-child {
  order: 2 !important;
}

/* FINAL FIX FOR HEIGHT AND WRAPPING */
.tourCard.-type-1 {
  height: max-content !important;
}
.tourCard.-type-1 .tourCard__content .row.justify-between.items-end {
  flex-wrap: nowrap !important;
  margin-top: 15px !important;
}
.tourCard.-type-1 .tourCard-meta-item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.tourCard.-type-1 .tourCard-price-container {
  white-space: nowrap !important;
}
.tourCard.-type-1 .tourCard__content > .d-flex.mb-10 .tourCard-meta-item {
  overflow: visible !important;
}

/* FORCE TOP ALIGNMENT AND REMOVE ALL AUTO MARGINS */
.tourCard.-type-1 .tourCard__content {
  justify-content: flex-start !important;
}
.tourCard.-type-1 .tourCard__content > * {
  margin-top: 0 !important;
}
.tourCard.-type-1 .tourCard__title {
  margin-bottom: 12px !important;
}
.tourCard.-type-1 .row.justify-between.items-end {
  margin-top: 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tourCard__content > .row:last-child {
  margin-top: 10px !important;
}
