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

/* Use CSS variables for all styling - let original design CSS work */
.wrapper {
  padding-top: 80px;
}

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

.booking-form-section {
  background: transparent;
}

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

.label-height label {
  font-size: 0.75rem;
  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;
}

.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);
  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;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
