@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Modern Travel Palette - Logo Inspired (YatraStart) */
  --primary-color: #0077cc; /* Logo Blue - Vibrant Royal Blue */
  --primary-dark: #005fa3;  /* Deep Blue */
  --secondary-color: #ffaa00; /* Logo Orange - Golden Amber */
  --secondary-dark: #e69900;
  --accent-color: #d92662;   /* Logo Pin Pink/Red */
  
  --text-dark: #0f172a;     /* Slate-900 */
  --text-light: #64748b;    /* Slate-500 */
  --bg-light: #f8fafc;      /* Slate-50 */
  --bg-white: #ffffff;
  
  /* Overriding Main Template Variables to Force Changes */
  --bs-brand-primary: #0077cc !important;
  --bs-brand-secondary: #ffaa00 !important;
  --bs-color-black: #0f172a !important;
  --bs-color-1000: #0f172a !important;
  --bs-neutral-1000: #0f172a !important;
  --bs-background-body: #f8fafc !important;
  --bs-button-bg: #0077cc !important;
  --bs-button-text: #ffffff !important;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Radius */
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* Force Body Styles */
body {
  background-color: var(--bg-light) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: var(--text-dark) !important;
}

.top-bar-2 {
  background: var(--primary-color) !important;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Playfair Display', serif !important;
  color: var(--bs-color-black) !important;
  font-weight: 700 !important;
}

/* Header & Navigation */
.header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.main-menu li a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  font-size: 1rem !important;
}

.main-menu li a:hover {
  color: var(--primary-color) !important;
}

/* Banner Section */
.box-banner-home2 {
  background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%) !important;
  padding-bottom: 120px !important;
}

/* Home Gallery Section Spacing */
.box-gallery-home {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Query Section Redesign - Unified Bar Style */
.box-search-advance {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.box-top-search {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.query-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.query-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  padding: 8px 24px;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
}

.query-contact .contact-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.query-contact a {
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.query-contact a:hover {
  color: var(--secondary-color) !important;
}

.query-contact .divider {
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
}

/* Mobile Responsiveness for Header */
@media (max-width: 768px) {
  .query-title {
    font-size: 2rem !important;
  }
  
  .query-contact {
    flex-direction: column;
    gap: 5px;
    padding: 12px 20px;
    border-radius: 20px;
  }
  
  .query-contact .divider {
    display: none;
  }
}

/* Deprecated - kept for compatibility if needed */
.box-top-search .need-some-help {
  display: none !important;
}

/* Unified Bar Container */
.box-bottom-search {
  background: #ffffff !important;
  border-radius: 100px !important; /* Pill Shape */
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important; /* No gap, use dividers */
  position: relative;
}

/* Individual Search Items */
.item-search {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  transition: all 0.3s ease;
  position: relative;
  display: flex !important;
  align-items: center !important;
  border-right: 1px solid #e2e8f0 !important; /* Vertical Divider */
}

/* Remove border from last item (button container) and the one before it */
.item-search:last-child {
  border-right: none !important;
  flex: 0 0 auto !important;
  padding: 5px !important;
}
.item-search:nth-last-child(2) {
  border-right: none !important;
}

/* Icon Styles */
.icon-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 119, 204, 0.08);
  border-radius: 50%;
  color: var(--primary-color);
  margin-right: 15px;
  flex-shrink: 0;
}

.icon-input svg {
  width: 20px;
  height: 20px;
}

.search-content {
  flex: 1;
  min-width: 0; /* Prevent overflow */
}

/* Focus State for Items */
.item-search:focus-within {
  background: rgba(248, 250, 252, 0.5) !important;
}
/* Override old focus styles */
.item-search:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.item-search label {
  display: block;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: var(--text-light) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  white-space: nowrap;
}

.search-input {
  width: 100%;
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1.2;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Button Styling */
.btn-black-lg {
  height: 56px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  padding: 0 32px !important;
  margin: 0 !important;
  width: auto !important;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  border-radius: 50px !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(0, 119, 204, 0.4) !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none !important;
}

.btn-black-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 204, 0.5) !important;
}

.btn-black-lg svg {
  fill: white !important;
  margin-right: 8px;
}

/* Need Help Section below bar */
.right-top-search .bnrhrlp {
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem !important;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
}

.right-top-search .bnrhrlp a {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  margin: 0 5px;
}

/* Mobile Responsiveness for Query Section */
@media (max-width: 1199px) {
  .item-search {
    padding: 10px 15px !important;
  }
  .icon-input {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  .search-input {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 991px) {
  .box-search-advance {
    padding: 20px !important;
    margin-top: -40px !important;
    max-width: 100%;
  }

  .box-top-search .need-some-help {
    font-size: 2rem !important;
    color: #ffffff !important;
  }

  .box-bottom-search {
    flex-direction: column !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
  }

  .item-search {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 16px !important;
    border-right: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .item-search:last-child {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  
  .btn-black-lg {
    width: 100% !important;
    height: 56px !important;
    border-radius: 16px !important;
  }
  
  .right-top-search .bnrhrlp {
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
  }
  .right-top-search .bnrhrlp a {
    color: var(--primary-color) !important;
  }
}

/* Hide Header Right Icon on Desktop */
@media (min-width: 992px) {
  /* .header-right {
    display: none !important;
  } */
}

/* YatraStart 2026 refresh */
:root {
  --ys-ink: #102329;
  --ys-muted: #60737a;
  --ys-teal: #047887;
  --ys-teal-dark: #035965;
  --ys-river: #10a6b5;
  --ys-sun: #ef8b3e;
  --ys-leaf: #4f8f45;
  --ys-cloud: #f4f8f7;
  --ys-card: #ffffff;
  --ys-line: rgba(16, 35, 41, .1);
  --ys-shadow: 0 18px 48px rgba(16, 35, 41, .12);
}

body {
  background:
    linear-gradient(180deg, #f7fbfa 0%, #eef7f5 34%, #fff 100%) !important;
  color: var(--ys-ink) !important;
}

.top-bar-2 {
  background: linear-gradient(90deg, var(--ys-teal-dark), var(--ys-teal), var(--ys-sun)) !important;
}

.header {
  border-bottom: 1px solid var(--ys-line) !important;
  box-shadow: 0 10px 30px rgba(4, 120, 135, .08) !important;
}

.header-logo img,
.mobile-header-logo img,
.sidebar-canvas-logo img,
.ftlogo {
  max-height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(16, 35, 41, .12));
}

.main-menu li a:hover,
.main-menu li a.active {
  color: var(--ys-teal) !important;
}

.btn-primary,
.btn-black-lg,
.pkgbtn1,
.actionbtn {
  background: linear-gradient(135deg, var(--ys-teal), var(--ys-river)) !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(4, 120, 135, .22) !important;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}

.btn-primary:hover,
.btn-black-lg:hover,
.pkgbtn1:hover,
.actionbtn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 16px 36px rgba(4, 120, 135, .28) !important;
}

.tm-hero-banner .banner-image {
  position: relative;
  overflow: hidden;
}

.tm-hero-banner .banner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 89, 101, .42), rgba(16, 35, 41, .08) 48%, rgba(239, 139, 62, .18));
  pointer-events: none;
}

.tm-hero-banner .banner-image img {
  min-height: 560px;
  object-fit: cover;
  animation: ysKenburns 12s ease-in-out infinite alternate;
}

@keyframes ysKenburns {
  from { transform: scale(1); }
  to { transform: scale(1.065); }
}

.tm-hero-split {
  background:
    linear-gradient(135deg, rgba(4, 120, 135, .08), rgba(239, 139, 62, .08)),
    var(--ys-cloud) !important;
}

.tm-hero-title .accent-underline,
.tm-grad-text {
  color: var(--ys-teal) !important;
  background: linear-gradient(90deg, var(--ys-teal), var(--ys-sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hero-eyebrow,
.section-eyebrow {
  color: var(--ys-teal-dark) !important;
}

.tm-hero-sub,
.section-sub,
.neutral-500 {
  color: var(--ys-muted) !important;
}

.card-frame,
.tm-city-card,
.card-journey-small,
.card-popular-destination,
.card-spot,
.gallery-home-card,
.card-testimonial,
.card-news {
  border-radius: 8px !important;
  border: 1px solid rgba(16, 35, 41, .08) !important;
  box-shadow: 0 14px 38px rgba(16, 35, 41, .09) !important;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}

.card-journey-small:hover,
.tm-city-card:hover,
.card-popular-destination:hover,
.card-spot:hover,
.gallery-home-card:hover,
.card-news:hover {
  transform: translateY(-7px);
  border-color: rgba(4, 120, 135, .24) !important;
  box-shadow: var(--ys-shadow) !important;
}

.card-image img,
.tm-city-image img,
.card-frame img,
.ys-detail-gallery img {
  transition: transform .45s ease, filter .45s ease;
}

.card-journey-small:hover .card-image img,
.tm-city-card:hover .tm-city-image img,
.card-popular-destination:hover img,
.card-frame:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}

.floating-chip,
.pkghigh span,
.label,
.badge.bg-primary,
.tm-city-tag {
  background: linear-gradient(135deg, var(--ys-sun), #f4b35f) !important;
  color: #1e2426 !important;
  border: 0 !important;
}

.pkgbtn2,
.btn-outline-secondary,
.btn-outline-primary {
  border-color: var(--ys-teal) !important;
  color: var(--ys-teal-dark) !important;
  transition: background .25s ease, color .25s ease, transform .25s ease !important;
}

.pkgbtn2:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  background: var(--ys-teal) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.footer {
  background:
    linear-gradient(135deg, #102329 0%, #035965 62%, #047887 100%) !important;
}

.bg-footer {
  background: transparent !important;
}

.tm-reveal,
.wow,
.card-journey-small,
.tm-city-card {
  animation-duration: .75s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 768px) {
  .tm-hero-banner .banner-image img {
    min-height: 430px;
  }

  .header-logo img,
  .mobile-header-logo img,
  .sidebar-canvas-logo img {
    max-height: 58px;
  }
}
