/* Custom fixes to ensure pixel-perfect match with original design */

/* Use CSS variables for all styling - let original design CSS work */

/* PhoneInput (react-international-phone custom) - align with form-control design */
.phone-input-custom {
  border: 1px solid #dee2e6 !important;
}
.phone-input-custom:focus-within {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.phone-input-custom button[aria-haspopup="listbox"]:hover {
  background-color: #f8f9fa !important;
}

/* Header fixes */
header.header-top .navbar .navbar-brand .logo {
  width: 200px;
  height: auto;
}

/* Booking form section - minimal overrides */
.center-form-section {
  border-radius: 12px !important;
  padding: 0.5rem;
}

/* Form fields styling */
.collapse-fields-font {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Ensure date picker inputs match destination font size */
.exact-dates .collapse-fields-font,
.exact-dates input.form-control,
.exact-dates .react-datepicker__input-container input {
  font-size: 1.5rem !important;
  font-weight: bold !important;
}

.label-height label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Navigation tabs - minimal overrides */
.all-category-tabs .nav-link svg {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Icon sizes */
.iconSize-15 {
  width: 15px;
  height: 15px;
}

.iconSize-20 {
  width: 20px;
  height: 20px;
}

.iconSize-25 {
  width: 25px;
  height: 25px;
}

/* Search button */
.btn-ai-search {
  background: linear-gradient(to right, #ffced3, #fef1f2);
  border: 1px solid #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-ai-search svg {
  margin-right: 0.25rem;
}

/* Destination cards overlays */
.overlay-card {
  border-radius: 8px !important;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.overlay-card:hover {
  transform: translateY(-5px);
}

.overlay-card .card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem !important;
}

.green-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(46, 125, 50, 0.85) 0%, rgba(46, 125, 50, 0.4) 50%, transparent 100%);
}

.orange-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(230, 81, 0, 0.85) 0%, rgba(230, 81, 0, 0.4) 50%, transparent 100%);
}

.skyblue-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(3, 169, 244, 0.85) 0%, rgba(3, 169, 244, 0.4) 50%, transparent 100%);
}

.blue-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(25, 118, 210, 0.85) 0%, rgba(25, 118, 210, 0.4) 50%, transparent 100%);
}

.yellow-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(251, 192, 45, 0.85) 0%, rgba(251, 192, 45, 0.4) 50%, transparent 100%);
}

.pink-overlay .card-img-overlay {
  background: linear-gradient(to top, rgba(244, 93, 107, 0.85) 0%, rgba(244, 93, 107, 0.4) 50%, transparent 100%);
}

.left-overlay .card-img-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 2rem !important;
}

/* Exclusive Offers card text */
.left-overlay .card-img-overlay p,
.left-overlay .card-img-overlay h3 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.left-overlay .card-img-overlay .subHeading {
  color: #ffffff !important;
  font-size: 1.75rem !important;
  line-height: 1.3;
  margin-bottom: 1rem !important;
}

.left-overlay .card-img-overlay button {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Destination card text styling - enhance visibility without changing colors */
.overlay-card .card-img-overlay h3 {
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.6),
    2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

/* Let original color classes work, just add strong shadows for visibility */
.overlay-card .card-img-overlay .color-text-first-same,
.overlay-card .card-img-overlay .color-text-second {
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(255, 255, 255, 0.7),
    2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* Travel agents section */
.pointBlock {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pointImg {
  flex-shrink: 0;
}

.textWhite {
  color: #ffffff;
}

.textWhite p {
  color: #ffffff !important;
}

/* Minimal button overrides - let original CSS variables work */
.btn-Rounded {
  border-radius: 50px !important;
}

/* Footer styling to match original design */
footer {
  background: url(../img/footer-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(47, 98, 113, 0.95);
  z-index: 1;
}

.footer-sec,
.copyright {
  position: relative;
  z-index: 2;
}

.footer-useful-links .footer-heading {
  color: var(--color-second) !important;
  font-family: var(--font-family-sub-heading);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 10px;
}

.footer-useful-links li {
  margin-bottom: 15px;
}

.footer-useful-links li a,
footer a {
  color: #fff !important;
  text-decoration: none;
}

.footer-useful-links li a:hover,
footer a:hover {
  color: #fff !important;
  opacity: 0.7;
}

.social-icons li {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.webContent.textWhite p,
footer p {
  color: #fff !important;
}

footer .copyright-text {
  color: #fff !important;
}

/* Responsive spacing */
.webNewContent {
  max-width: 1200px;
  margin: 0 auto;
}

.webNewContent1 {
  max-width: 1140px;
  margin: 0 auto;
}

.webContent {
  max-width: 1200px;
  margin: 0 auto;
}

/* Remove typography overrides - let original CSS variables work */
.fw-600 {
  font-weight: 600 !important;
}

/* Card styling */
.card {
  border: none;
}

.trip-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
}

.trip-card .card-img-overlay {
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.trip-card .card-img-overlay .subHeading {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

.trip-card img.top-trip-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Ensure images display correctly */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for Next.js Image component */
span[data-wrapper="true"] {
  display: block !important;
}


/* ============================================
   REACT DATEPICKER STYLING
   ============================================ */
.react-datepicker-wrapper {
  width: 100%;
}

.react-datepicker__input-container {
  width: 100%;
}

.react-datepicker__input-container input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  color: var(--color-gray-2) !important;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-family-content);
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

#hotel-search-form .react-datepicker__input-container input,
#booking-update-form .react-datepicker__input-container input {
  color: #000 !important;
  font-weight: bold;
  font-size: 20px !important;
}

.react-datepicker__input-container input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.react-datepicker {
  font-family: var(--font-family-content);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.react-datepicker__header {
  background-color: var(--color-first-same);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding-top: 12px;
}

.react-datepicker__current-month,
.react-datepicker__day-name {
  color: white;
}

.react-datepicker__day--selected,
.react-datepicker__day--keyboard-selected {
  background-color: var(--color-second)!important;
  color: white;
}

.react-datepicker__day:hover {
  background-color: var(--color-second-light);
}

.react-datepicker__day--disabled {
  color: #ccc;
  cursor: not-allowed;
}

.react-datepicker__triangle {
  display: none;
}

.react-datepicker-popper {
  z-index: 9999 !important;
}

/* ============================================
   ADDITIONAL DATEPICKER IMPROVEMENTS
   ============================================ */

/* Make date inputs clickable */
.collapse-fields {
  cursor: pointer;
  position: relative;
}

.exact-dates {
  position: relative;
  width: 100%;
}

/* Ensure calendar appears above everything */
.react-datepicker-popper {
  z-index: 10000 !important;
}

.react-datepicker__tab-loop {
  position: absolute;
  z-index: 10000;
}

/* Better calendar styling */
.react-datepicker__month-container {
  background: white;
}

.react-datepicker__navigation {
  top: 10px;
}

.react-datepicker__navigation--previous {
  left: 10px;
}

.react-datepicker__navigation--next {
  right: 10px;
}

.react-datepicker__day--outside-month {
  color: #ccc;
}

.react-datepicker__day--today {
  font-weight: bold;
  background-color: #f0f0f0;
}

/* Input field should show pointer cursor */
.react-datepicker__input-container input {
  cursor: pointer !important;
}

/* Smooth transition for calendar */
.react-datepicker {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure proper spacing */
.react-datepicker__day {
  margin: 0.2rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
}

/* Better hover state */
.react-datepicker__day:hover:not(.react-datepicker__day--disabled) {
  background-color: var(--color-first-same);
  color: white;
  cursor: pointer;
}

/* ============================================
   MAKE DATE FIELDS FULLY CLICKABLE
   ============================================ */

/* Make entire date field area clickable like Rooms & Guests */
.exact-dates .collapse-fields {
  cursor: pointer !important;
  user-select: none;
  transition: background-color 0.2s ease;
}

.exact-dates .collapse-fields:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.exact-dates .collapse-fields:active {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Prevent input from capturing clicks - let parent handle it */
.react-datepicker__input-container input {
  pointer-events: none !important;
  user-select: none;
}

/* Re-enable pointer events when calendar is open */
.react-datepicker__input-container input:focus {
  pointer-events: auto !important;
}

/* Visual feedback that entire area is clickable */
.collapse-fields.cursor-pointer {
  border-radius: 4px;
  transition: all 0.2s ease;
}

.collapse-fields.cursor-pointer:hover {
  background-color: rgba(47, 98, 113, 0.05);
}

/* Consistent styling with Rooms & Guests */
.startDate .collapse-fields,
.endDate .collapse-fields {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-modal{
  position: fixed !important;
  height: 100%;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 9999 !important;
  inset: 0 !important;
}

/* Skeleton Loader Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Make LocationSearchInput label bold - override search result page font-weight: 500 */
/* Match the input value color (form-control default color) */
.search-result-page .booking-form-section .collapse-fields label.d-block.fw-bold {
  font-weight: 500 !important;
}

/* Decrease input value font size slightly */
.search-result-page .booking-form-section .collapse-fields .collapse-fields-font {
font-size: 20px !important;
font-weight: bold !important;
}

.form-check-input:focus {
  border-color: #dee2e6 !important;
  outline: 0;
}

/* ============================================================
   FLIGHT BOOKING / MANAGE BOOKING STYLES
   ============================================ */
/* .review-flight-card-header { background: var(--color-first-same); border-radius: 8px 8px 0 0; }
.review-flight-card-header h3 { color: #fff; }
.review-flight-card-header svg { stroke: var(--color-second); }
   Scoped exclusively under .flight-manage-page
   Added to all flight booking pages:
     /flight-booking
     /flight-booking/cancel
     /flight-booking/cancel/reason
     /view-refund-details
     /view-refund-status
   DO NOT remove the .flight-manage-page prefix —
   these class names (.path-dot, .plane, .passenger-price-summary etc.)
   are shared across the codebase and WILL conflict with SRP / other pages.
   ============================================================ */

/* Card header — teal background with white title */
/* .flight-manage-page .review-flight-card-header { background: var(--color-first-same); border-radius: 8px 8px 0 0; }
.flight-manage-page .review-flight-card-header h3 { color: #fff; }
.flight-manage-page .review-flight-card-header svg { stroke: var(--color-second); } */

/*
   Flight path (route visualisation) styles are intentionally NOT overridden here.
   The original definitions live in cardnew.css (already loaded via layout.tsx):
     .flight-path  → height: 30px
     .path-line    → dashed border-top, full width
     .path-dot     → 8px orange #ff9800 circle
     .dot-start    → border only (bg-white Bootstrap class on the span makes it hollow)
     .dot1         → left: 44%
     .dot2         → left: 50%
     .dot-end      → right: 0, background: #afafaf
     .plane        → right: 0, vertically centred
   Do NOT add overrides here — they will conflict with SRP which uses the same classes.
*/

/* Layover divider line between flight segments */
.flight-manage-page .flight-switch-line { border-top: 1px dashed #d1d5dc; margin: 0; }
.flight-manage-page .flight-switch-line small { position: relative; top: -10px; background: #fff; }

/* Responsive width utilities for flight route columns */
.flight-manage-page .w-s-50 { width: 50%; }
.flight-manage-page .w-s-100 { width: 100%; }
@media (max-width: 767px) {
  .flight-manage-page .w-s-50 { width: 50%; }
  .flight-manage-page .w-s-100 { width: 100%; }
}

/* Payment / price summary list rows */
/* .flight-manage-page .passenger-price-summary { list-style: none; border-bottom: 1px solid #f0f0f0; }
.flight-manage-page .passenger-price-summary li { padding: 4px 0; }
.flight-manage-page .passenger-price-summary-total { border-top: 2px solid #e0e0e0; border-bottom: none !important; } */

/* ============================================================
   FLIGHT HOME PAGE STYLES
   Scoped exclusively under .flight-home-page
   Applied only to: /flights page (app/(public)/flights/page.tsx)
   DO NOT remove the .flight-home-page prefix —
   classes like .popular-detail, .recent-flight, .card-blue,
   .card-pink, .card-icon, .destination-date are used by the
   UI team in SRP and other pages — removing scope WILL conflict.
   ============================================================ */

/* Popular flights carousel section */
.flight-home-page .flight-offer .swiper-pagination-bullet-active { background-color: var(--color-second) !important; }
.flight-home-page .flight-offer .swiper-slide { box-shadow: none; }
.flight-home-page .flight-offer .nav-tabs .nav-link { color: var(--color-first); }
.flight-home-page .flight-offer .nav-tabs .nav-link.active { background-color: var(--color-second) !important; color: var(--color-white-same) !important; border-radius: var(--bs-border-radius) !important; }
.flight-home-page .flight-offer .swiper-nav { float: right; }
.flight-home-page .flight-offer .swiper-wrapper { padding-top: 0; }
.flight-home-page .flight-offer .nav-tabs { margin-bottom: -30px; z-index: 3; position: relative; width: 80%; }
.flight-home-page .flight-offer img:hover { opacity: 0.9; }

/* Popular flight destination image card */
.flight-home-page .flight-destination { position: relative; }
.flight-home-page .flight-destination img { border-radius: 6px; width: 100%; }
.flight-home-page .popular-detail {
  position: absolute; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgb(27 71 84 / 99%), rgba(0,0,0,0.1));
  padding: 6px 10px 5px 11px; width: 100%; border-radius: 0 0 6px 6px;
}
.flight-home-page .destination-date { color: var(--color-white-same) !important; }

/* Explore By Country carousel */
.flight-home-page .explore-countrys { position: relative; overflow: hidden; }
.flight-home-page .explore-countrys img { border-radius: 6px; height: 160px; object-fit: cover; width: 100%; }
.flight-home-page .country-detail {
  background: linear-gradient(180deg, rgba(0,0,0,0.0001) -4.82%, #000000 87.02%);
  position: absolute; bottom: 0; left: 0; width: 100%; border-radius: 0 0 6px 6px;
}
.flight-home-page .country-flag { right: 7px; top: 5px; }

/* Recent search cards */
.flight-home-page .recent-flight { min-height: 110px; }
.flight-home-page .recent-search .swiper-nav { right: 5px; top: 5px; }

/* Feature cards (Search / Secure / Flexible) */
.flight-home-page .card-blue { background: #F1FCFF; border: 1px solid #DEF3F9 !important; }
.flight-home-page .card-pink { background: #fffafa; border: 1px solid #FBF2F2 !important; }
.flight-home-page .card-icon { width: 80px; height: 80px; object-fit: contain; object-position: center; }

/* FAQ accordion */
.flight-home-page .faq .accordion-button:not(.collapsed) { background: #f7f7f7 !important; color: #000000 !important; outline: none; }

/* Height utility — only needed on flight home */
.flight-home-page .h30 { height: 30px; }

/* Mobile cover image */
@media screen and (max-width: 767px) {
  .flight-home-page .mobile-cover { object-fit: cover; width: 100%; }
}

/* Cabin class select in flight booking form */
.flight-home-page .select-Flight-mode { color: var(--color-white-same); font-size: 0.9rem; cursor: pointer; outline: none; }
.flight-home-page .select-Flight-mode option { color: #333; background: #fff; }

/* Flight booking form — white text + large font for date picker inputs */

.exact-dates .react-datepicker__input-container input.flight-dates.collapse-fields-font {
  font-size: 1.2rem !important;
}
 
/* Flight booking form — white text + large font for date/city inputs.
   Scoped to .flight-home-page .booking-tab-section so the hotel
   booking form (same .booking-tab-section class) is NOT affected. */
.flight-home-page .booking-tab-section .collapse-fields-font,
.flight-home-page .booking-tab-section .react-datepicker__input-container input {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
}
.flight-home-page .booking-tab-section .react-datepicker__input-container input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
}
.flight-home-page .booking-tab-section input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.location-blocks .leaving-location-block,
.location-blocks .going-location-block,
.swap-location-button {
  width: 100% !important;
}

@media (min-width: 768px) {
  .location-blocks .leaving-location-block,
  .location-blocks .going-location-block {
    flex: 1 1 0;
  }
    .swap-location-button {
      width: auto !important;
    }
}

.top-flight-legs-tabs .nav-link.active {
  background-color: #e9fbff !important;
  border-color: var(--color-first) !important;
  color: var(--color-black);
}

.top-flight-legs-tabs .nav-link.active span {
  color: var(--color-black) !important;
}

.top-flight-legs-tabs .nav-link.w-250 {
  width: 250px !important;
  min-width: 250px !important;
}

.flight-card:has(input[type="radio"]:checked) {
  border-color: var(--color-second) !important;
}