/* Booking Widget Styles - Similar to Further Hotel */
.booking-widget {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: 'Red Hat Display', Arial, sans-serif;
}

.booking-widget-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.booking-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.booking-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.date-input-group {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.date-input {
    border: 2px solid #e0e0e0;
    padding: px 50px 8px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border-radius: 4px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Red Hat Display', Arial, sans-serif;
}

.date-input:focus {
    outline: none;
    border-color: #1da8ab;
    box-shadow: 0 0 0 3px rgba(29, 168, 171, 0.1);
}

.date-input:hover {
    border-color: #1da8ab;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.booking-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-now-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Red Hat Display', Arial, sans-serif;
}

.book-now-btn:hover {
    background-color: #1da8ab;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-now-btn:active {
    transform: translateY(0);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #20c55a 100%);
    color: #fff;
    border: none;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20c55a 0%, #1ea952 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

.whatsapp-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 45px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #20c55a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.floating-whatsapp-btn:hover::before {
    left: 100%;
}

.floating-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #20c55a 0%, #1ea952 100%);
    color: #fff;
    text-decoration: none;
}

.floating-whatsapp-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-whatsapp-btn i {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: whatsappPulse 2s infinite;
}

/* Mobile adjustments for floating button */
@media (max-width: 768px) {
    .floating-whatsapp-btn {
        bottom: 105px;
        right: 25px;
        width: 60px;
        height: 60px;
    }
    
    .floating-whatsapp-btn i {
        font-size: 24px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-widget {
        padding: 10px 0;
    }
    
    .booking-form {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide title and date inputs on mobile */
    .booking-title,
    .booking-inputs {
        display: none;
    }
    
    .booking-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }
    
    .book-now-btn {
        padding: 10px 30px;
        font-size: 14px;
        font-weight: 700;
        min-width: 140px;
        border-radius: 4px;
        background-color: #000;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .book-now-btn:hover {
        background-color: #1da8ab;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .whatsapp-btn {
        padding: 10px 12px;
        min-width: 45px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    }
    
    .whatsapp-btn:hover {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    }
}

@media (max-width: 480px) {
    /* Keep date inputs hidden on very small screens */
    .booking-title,
    .booking-inputs {
        display: none;
    }
    
    .booking-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        width: 90%;
        max-width: 280px;
    }
    
    .book-now-btn {
        flex: 1;
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .whatsapp-btn {
        padding: 10px 12px;
        min-width: 45px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    }
    
    .whatsapp-btn:hover {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    }
}

/* Adjust main content to account for fixed booking widget */
body {
    padding-bottom: 44px !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 52px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 52px !important;
    }
}

/* Datepicker popup styling to prevent year cutoff */
.datepicker {
    min-width: 320px !important;
    width: 320px !important;
}

.datepicker table {
    width: 100% !important;
    table-layout: fixed !important;
}

.datepicker .datepicker-switch {
    width: 100% !important;
    min-width: 250px !important;
    text-align: center !important;
    font-size: 14px !important;
    padding: 8px !important;
}

.datepicker th.datepicker-switch {
    width: 100% !important;
    min-width: 250px !important;
}

.datepicker td, .datepicker th {
    width: 45px !important;
    height: 35px !important;
    text-align: center !important;
}

/* Make entire date input clickable */
.date-input-group:hover .date-input {
    border-color: #1da8ab;
}

.date-input-group:hover .calendar-icon {
    color: #1da8ab;
}

.date-input-group:active {
    transform: scale(0.98);
}

/* Override pointer events for better click handling */
.date-input-group .date-input {
    pointer-events: all;
}

.date-input-group .calendar-icon {
    pointer-events: none;
}

/* Hide calendar icons on both date inputs */
#checkin-date + .calendar-icon,
#checkout-date + .calendar-icon {
    display: none;
}


/* Animation for smooth appearance */
.booking-widget {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* IPMS247 Booking Widget Styles - Horizontal Layout */
.booking-widget-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Horizontal layout for booking widget */
.bewarp {
  position: relative !important; 
  width: 100% !important; 
  text-align: left !important; 
  z-index: 400 !important;
  pointer-events: auto !important;
}

.bb_resbox {
  width: 100% !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 15px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  z-index: 200 !important;
  position: relative !important;
  margin: 0 auto !important;
  white-space: nowrap !important;
  max-width: 900px !important;
}

/* Book your stay label */
.bb_resbox::before {
  content: "BOOK YOUR STAY";
  font-weight: 600;
  font-size: 20px;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 15px;
  margin-top: 12px;
}

/* Center container for date inputs */
.bb_resbox .date-center {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-shrink: 0;
}

/* Hide original labels */
.bb_resbox label { 
  display: none !important;
}

/* Style date inputs horizontally */
.bb_resbox input[type="text"] {
  margin: 0 !important; 
  font-size: 13px !important; 
  width: 180px !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 15px !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #333 !important;
  text-align: center !important;
  pointer-events: auto !important;
  z-index: 300 !important;
  position: relative !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
} 

.bb_resbox input[type="text"]:focus {
  border-color: #1da8ab !important;
  outline: none !important;
}

/* Calendar icon for date inputs */
.bb_resbox input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px 16px !important;
  padding-right: 35px !important;
}

/* Hide selects and other elements not needed */
.bb_resbox select {
  display: none !important;
}

/* Style the book now button */
input[type="button"]#bb_resBtn, input#bb_resBtn { 
  margin: 0 0 0 15px !important; 
  -webkit-appearance: none !important; 
  appearance: none !important; 
  border-radius: 3px !important; 
  line-height: 32px !important; 
  height: 32px !important;
  padding: 0 80px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background: #1da8ab !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}   

#bb_resBtn:hover {
  background: #1da8ab !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(29, 168, 171, 0.3) !important;
}

/* Datepicker trigger button styling */
button.ui-datepicker-trigger { 
  display: none !important;
}

/* IPMS247 specific styles */
.ui-datepicker .ui-datepicker-title select { 
  display: initial;
}

.slider-wrapper {
  z-index: 0 !important;
}

/* Mobile and Tablet responsive for IPMS247 - Show only BOOK NOW button */
@media only screen and (max-width: 1024px) {
  .booking-widget {
    padding: 0 !important;
  }
  
  #bb_resBookingBox {
    padding: 0 0 8px 0 !important;
  }
  
  .bb_resbox {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Hide the "BOOK YOUR STAY" label */
  .bb_resbox::before {
    display: none !important;
  }
  
  /* Hide date inputs container */
  .bb_resbox .date-center {
    display: none !important;
  }
  
  /* Hide all date input fields */
  .bb_resbox input[type="text"] {
    display: none !important;
  }
  
  /* Center and style the BOOK NOW button */
  input[type="button"]#bb_resBtn, input#bb_resBtn {
    padding: 10px 30px !important;
    font-size: 14px !important;
    height: 40px !important;
    line-height: 1 !important;
    border-radius: 5px !important;
    width: auto !important;
    min-width: 220px !important;
    margin: -15px 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #1da8ab !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: none !important;
  }
  
  input[type="button"]#bb_resBtn:hover, input#bb_resBtn:hover {
    background: #1da8ab !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(29, 168, 171, 0.4) !important;
  }
}

/* Mobile specific adjustments */
@media only screen and (max-width: 480px) {
  .booking-widget {
    padding: 0 !important;
  }
  
  #bb_resBookingBox {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 0 10px 0 !important;
  }
  
  .bb_resbox {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  
  /* Ensure BOOK NOW button is perfectly centered */
  input[type="button"]#bb_resBtn, input#bb_resBtn {
    padding: 12px 25px !important;
    font-size: 13px !important;
    height: 42px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    width: auto !important;
    max-width: 280px !important;
    min-width: 250px !important;
    margin: -20px 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: none !important;
  }
}

/* Critical fixes for datepicker clickability after scroll */
.ui-datepicker {
  z-index: 99999 !important;
  position: fixed !important;
  pointer-events: auto !important;
}

/* Ensure all datepicker elements are clickable */
.ui-datepicker * {
  pointer-events: auto !important;
}


/* Removed duplicate bewarp rule that was overriding the layout */

/* Removed duplicate bb_resbox rule that was overriding the layout */

/* Removed duplicate input rule that was overriding our styling */ 

/* Fix datepicker trigger button */
button.ui-datepicker-trigger { 
  margin: 0px !important; 
  padding: 0px !important;
  z-index: 400 !important;
  position: relative !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure video and overlay don't block clicks */
.video-wrapper,
.overlay,
.hero-video,
.hero-content {
  pointer-events: none !important;
}

/* Force booking widget and datepicker to be always clickable */
.booking-widget,
.booking-widget *,
.ui-datepicker,
.ui-datepicker *,
.bb_resbox,
.bb_resbox * {
  pointer-events: auto !important;
}

/* Minimal datepicker fixes - preserve original styling */
.ui-datepicker {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* Ensure datepicker elements are clickable */
.ui-datepicker * {
  pointer-events: auto !important;
}

/* Style for past/disabled dates in datepicker */
.ui-datepicker .ui-state-disabled,
.ui-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable {
  opacity: 0.4 !important;
}

.ui-datepicker .ui-state-disabled span,
.ui-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable span {
  color: #999 !important;
  background-color: #f5f5f5 !important;
}

/* Past dates styling */
.ui-datepicker td.ui-datepicker-other-month,
.ui-datepicker td.ui-datepicker-unselectable.ui-state-disabled {
  background-color: #f0f0f0 !important;
}

.ui-datepicker td.ui-datepicker-other-month a,
.ui-datepicker td.ui-datepicker-unselectable.ui-state-disabled span {
  color: #aaa !important;
}
