/* Responsive Fixes for Mobile Devices */

/* Banner Section Mobile Fixes */
@media (max-width: 767.98px) {
  .banner-section-two {
    min-height: auto !important;
    height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 30px !important;
    display: block !important;
  }
  
  .banner-section-two .auto-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .banner-section-two .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .banner-section-two .content-column {
    padding: 30px 15px;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .banner-section-two .booking-form-column {
    padding: 30px 15px;
    margin-bottom: 0 !important;
  }
  
  .banner-section-two .content-column h1.title {
    font-size: 32px;
    line-height: 1.3;
    text-align: center;
  }
  
  .banner-section-two .content-column .text {
    font-size: 16px;
    text-align: center;
  }
  
  .banner-section-two .btn-box {
    text-align: center;
  }
}

/* About Section Mobile Fixes */
@media (max-width: 767.98px) {
  .about-section-seven .info-block {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .about-section-seven .info-block .inner {
    justify-content: center;
  }
  
  .about-section-seven .info-block .title {
    font-size: 16px;
  }
  
  .about-section-seven .image-column {
    margin-bottom: 30px;
    display: block !important;
  }
  
  .about-section-seven .image-column .inner-column {
    display: block !important;
    padding: 0 !important;
    text-align: center !important;
  }
  
  /* Désactiver les animations WOW sur mobile pour forcer l'affichage */
  .about-section-seven .image-column .inner-column.wow,
  .about-section-seven .image-column .image-1.wow,
  .about-section-seven .image-column .image-2.wow {
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  }
  
  .about-section-seven .image-column .image-1,
  .about-section-seven .image-column .image-2 {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  }
  
  .about-section-seven .image-column .image-1 img,
  .about-section-seven .image-column .image-2 img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .about-section-seven.style-luxury2 .image-column .inner-column {
    padding: 0 !important;
  }
  
  .about-section-seven.style-luxury2 .image-column .image-1 img,
  .about-section-seven.style-luxury2 .image-column .image-2 img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .about-section-seven .content-column {
    text-align: center !important;
  }
  
  .about-section-seven .content-column .inner-column {
    text-align: center !important;
  }
  
  .about-section-seven .sec-title {
    text-align: center !important;
  }
  
  .about-section-seven .sec-title .text {
    text-align: center !important;
  }
  
  .about-section-seven .sec-title h2 {
    text-align: center !important;
  }
  
  .about-section-seven .sec-title .sub-title {
    text-align: center !important;
  }
  
  .about-section-seven .outer-box {
    justify-content: center !important;
    align-items: center !important;
  }
  
  .about-section-seven .info-block {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .about-section-seven .info-block .inner {
    justify-content: center !important;
  }
  
  .about-section-seven .btn-box {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .about-section-seven .btn-box a,
  .about-section-seven .btn-box .theme-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Also target style-luxury2 variant for mobile */
  .about-section-seven.style-luxury2 .content-column {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .outer-box {
    justify-content: center !important;
  }
  
  .about-section-seven.style-luxury2 .content-column .inner-column {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title .text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title h2 {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title .sub-title {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .btn-box {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .about-section-seven.style-luxury2 .btn-box a,
  .about-section-seven.style-luxury2 .btn-box .theme-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Additional About Section Centering for all breakpoints */
@media (max-width: 991.98px) {
  .about-section-seven .content-column {
    text-align: center !important;
  }
  
  .about-section-seven .sec-title .text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .about-section-seven .outer-box {
    justify-content: center !important;
    align-items: center !important;
  }
  
  .about-section-seven .info-block {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .about-section-seven .info-block .inner {
    justify-content: center !important;
  }
  
  /* Target the specific style-luxury2 variant */
  .about-section-seven.style-luxury2 .content-column {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .content-column .inner-column {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title .text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title h2 {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .sec-title .sub-title {
    text-align: center !important;
  }
  
  .about-section-seven.style-luxury2 .outer-box {
    justify-content: center !important;
  }
}

/* Services Section Mobile Fixes */
@media (max-width: 991.98px) {
  .service-section .service-block-six {
    margin-bottom: 30px;
  }
}

@media (max-width: 575.98px) {
  .service-section .service-block-six {
    margin-bottom: 20px;
  }
  
  .service-section .service-block-six .title {
    font-size: 20px;
  }
}

/* Features Section Mobile Fixes */
@media (max-width: 991.98px) {
  .features-section .features-column {
    margin-top: 30px;
  }
  
  .features-section .content-column {
    text-align: center;
  }
  
  .features-section .btn-box {
    text-align: center;
  }
}

/* Housing Section Mobile Fixes */
@media (max-width: 991.98px) {
  .about-section .image-column {
    margin-bottom: 30px;
  }
  
  .about-section .info-column {
    padding: 0 15px;
  }
  
  .about-section .content-column {
    text-align: center;
  }
  
  .about-section .btn-box {
    text-align: center;
  }
  
  .about-section .icon-box {
    text-align: center;
  }
}

/* Contact Page Mobile Fixes */
@media (max-width: 991.98px) {
  .contact-details .contact-details__right {
    margin-top: 40px !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .contact-details .sec-title {
    padding-right: 0 !important;
    text-align: center;
  }
  
  .contact-details form {
    padding-right: 0 !important;
  }
  
  .contact-details__info {
    text-align: center;
  }
  
  .contact-details__info li {
    text-align: center;
  }
}

/* Tours Page Mobile Fixes */
@media (max-width: 991.98px) {
  .room-service-section .room-service-block-one {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .room-service-section .room-service-block-one .title {
    font-size: 22px;
  }
  
  .room-service-section .room-service-block-one .text {
    font-size: 15px;
  }
}

/* News/Destinations Section Mobile Fixes */
@media (max-width: 767.98px) {
  .news-section .news-block-four {
    margin-bottom: 30px;
  }
}

/* Testimonials Section Overflow Fix */
.testimonial-section-luxury {
  position: relative;
  overflow: hidden !important;
}

/* Fix the background width that's causing overflow */
.testimonial-section-luxury.style-luxury2 .bg-image {
  width: 50% !important;
  max-width: 50vw !important;
}

/* Fix the negative margin that's causing overflow */
.testimonial-section-luxury.style-luxury2 .content-column .inner-column .content-box {
  margin-right: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .testimonial-section-luxury.style-luxury2 .bg-image {
    width: 45% !important;
  }
}

@media (max-width: 991.98px) {
  .testimonial-section-luxury .content-column {
    padding: 30px 15px;
  }
  
  .testimonial-section-luxury.style-luxury2 .bg-image {
    width: 0 !important;
    display: none;
  }
  
  .testimonial-section-luxury .bg-image .text-rotate {
    display: none;
  }
}

/* General Mobile Spacing Fixes */
html {
  overflow-x: hidden !important;
  max-width: 100%;
}

body {
  overflow-x: hidden !important;
  max-width: 100%;
}

.page-wrapper {
  overflow-x: hidden !important;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .auto-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  section {
    overflow-x: hidden;
  }
  
  .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .row > * {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Button Responsive Fixes */
@media (max-width: 575.98px) {
  .theme-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  .btn-box {
    margin-top: 20px;
  }
}

/* Form Field Mobile Fixes */
@media (max-width: 575.98px) {
  .bk-form .frm-field,
  .contact-details .form-control,
  .contact-details .mb-3 {
    font-size: 14px;
  }
  
  .bk-form .form-submit button,
  .contact-details button {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Fix calendar date input overflow on iPhone */
  .bk-form .frm-field input,
  .bk-form .frm-field select,
  .bk-form .frm-field .date-pick {
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding-right: 50px !important; /* Space for icon */
  }
  
  .bk-form .frm-field {
    overflow: hidden;
    max-width: 100%;
  }
  
  /* Ensure flatpickr input doesn't overflow */
  input.flatpickr-input,
  input.date-pick {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
}

/* iPhone and smaller mobile devices - Calendar input fix */
@media (max-width: 767.98px) {
  /* Fix for calendar date input outline overflow */
  .bk-form .frm-field {
    position: relative;
    overflow: hidden;
    max-width: 100%;
  }
  
  .bk-form .frm-field input,
  .bk-form .frm-field select {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Specific fix for date picker input */
  .bk-form .frm-field input.date-pick,
  .bk-form .frm-field input[name="date-time"] {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 50px !important;
  }
  
  /* Ensure booking form container doesn't overflow */
  .booking-form-column .inner-column {
    overflow: hidden;
    max-width: 100%;
  }
  
  .booking-form-column .bk-form {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Progress Bar Mobile Fixes */
@media (max-width: 767.98px) {
  .progress-info {
    margin-top: 30px;
  }
}

/* Image Mobile Fixes */
@media (max-width: 767.98px) {
  .image-box img,
  .image img {
    width: 100%;
    height: auto;
  }
}

/* Title Mobile Fixes */
@media (max-width: 575.98px) {
  .sec-title {
    text-align: center;
  }
  
  .sec-title h2 {
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
  }
  
  .sec-title .sub-title {
    font-size: 14px;
    text-align: center;
  }
  
  .sec-title .text {
    text-align: center;
  }
}

/* Page Title Breadcrumb Icon Fix - Use simple text separator */
.page-breadcrumb li:after {
  font-family: inherit !important;
  content: "/" !important;
  font-weight: normal !important;
  font-size: 14px !important;
  opacity: 0.7;
}

/* Reduce top padding on about-section to decrease space after header */
.about-section {
  padding-top: 50px !important;
}

@media (max-width: 767.98px) {
  .about-section {
    padding-top: 40px !important;
  }
}

/* Reduce top padding on banner-section-two to decrease space after header */
.banner-section-two {
  padding-top: 0px !important;
}

.banner-section-two.style-luxury2 {
  padding-top: 0px !important;
}

@media (max-width: 767.98px) {
  .banner-section-two {
    padding-top: 0px !important;
  }
  
  .banner-section-two.style-luxury2 {
    padding-top: 0px !important;
  }
}

/* Page Title Mobile Centering */
@media (max-width: 767.98px) {
  .page-title .title-outer {
    text-align: center;
  }
  
  .page-title .title {
    text-align: center;
  }
  
  .page-title .page-breadcrumb {
    justify-content: center;
  }
}

/* Footer Mobile Fixes */
@media (max-width: 767.98px) {
  .footer-column {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-widget {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    text-align: center;
  }
  
  .footer-widget .logo {
    text-align: center;
  }
  
  .footer-widget .widget-content {
    text-align: center;
  }
  
  .footer-widget .text {
    text-align: center;
  }
  
  .footer-widget .user-links {
    text-align: center;
  }
  
  .footer-widget .contact-list {
    text-align: center;
  }
  
  .footer-widget .contact-list .inner {
    text-align: center;
  }
  
  .footer-widget .social-icon {
    justify-content: center;
  }
  
  .footer-bottom .copyright-text {
    text-align: center;
  }
}

/* Mobile Menu Fixes */
@media (max-width: 991.98px) {
  .mobile-menu {
    width: 300px;
  }
  
  .mobile-menu .navigation {
    padding: 20px 0;
  }
}

/* Events Section Styling */
.events-section {
  background-color: #f8f5f0;
  padding-top: 70px;
  padding-bottom: 70px;
}

.event-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  height: 100%;
}

.event-card h4 {
  color: #222;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

.event-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-card ul li {
  color: #666;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.event-card ul li:last-child {
  margin-bottom: 0;
}

.event-card ul li i {
  color: #C19D68;
  position: absolute;
  left: 0;
  top: 3px;
}

/* Comprehensive Mobile Centering for All Sections */
@media (max-width: 767.98px) {
  /* About Luxury2 Section */
  .about-section-luxury2 .content-column {
    text-align: center;
  }
  
  .about-section-luxury2 .btn-box {
    text-align: center;
  }
  
  .about-section-luxury2 .progress-info {
    text-align: center;
  }
  
  /* Events Section */
  .events-section {
    text-align: center;
  }
  
  .events-section .sec-title {
    text-align: center;
  }
  
  .events-section .event-card {
    text-align: center;
  }
  
  .events-section .event-card ul {
    text-align: left;
  }
  
  /* Testimonials */
  .testimonial-section-luxury .content-column {
    text-align: center;
  }
  
  .testimonial-section-luxury .sec-title {
    text-align: center;
  }
  
  .testimonial-block-seven {
    text-align: center;
  }
  
  /* News/Destinations Blocks */
  .news-section .news-block-four .content-box {
    text-align: center;
  }
  
  .news-section .sec-title {
    text-align: center;
  }
  
  /* Room Service Section */
  .room-service-section .sec-title {
    text-align: center;
  }
  
  /* Contact Info Boxes */
  .contact-info-box {
    text-align: center;
  }
  
  .contact-list-one li {
    text-align: center;
  }
  
  /* Social Links */
  .social-links {
    justify-content: center;
  }
  
  .social-icon-one {
    justify-content: center;
  }
}

/* Additional Mobile Centering for Medium Devices */
@media (max-width: 991.98px) {
  .about-section-luxury2 .content-column {
    text-align: center;
  }
  
  .features-section .content-column .sec-title {
    text-align: center;
  }
}

/* Ensure all main headings and buttons are centered on mobile */
@media (max-width: 767.98px) {
  /* Center main section headings */
  section h1,
  section h2,
  section h3,
  section h4 {
    text-align: center;
  }
  
  /* Center section titles */
  .sec-title h1,
  .sec-title h2,
  .sec-title h3,
  .sec-title h4 {
    text-align: center;
  }
  
  .btn-box,
  .form-submit {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .theme-btn {
    margin: 0 auto;
  }
  
  /* Center content boxes */
  section .content-box {
    text-align: center;
  }
  
  section .inner-column {
    text-align: center;
  }
  
  section .content-column {
    text-align: center;
  }
  
  /* Center images */
  .image-column {
    text-align: center;
  }
  
  figure {
    text-align: center;
  }
  
  /* Center text descriptions */
  section .text {
    text-align: center;
  }
  
  /* Itinerary boxes responsive */
  .itinerary-box {
    padding: 20px !important;
  }
  
  .itinerary-box .day-item {
    margin-bottom: 15px;
  }
  
  .itinerary-box h5 {
    font-size: 18px !important;
  }
}

/* Wedding section styling */
#wedding .icon-box {
  text-align: center;
  padding: 15px;
}

#wedding .icon-box .icon {
  font-size: 36px;
  color: #C19D68;
}

#wedding .icon-box .title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 10px 0;
}

#wedding .icon-box .text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  #wedding .icon-box {
    margin-bottom: 20px;
  }
}

/* Itinerary section styling */
.itinerary-box .day-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.itinerary-box .day-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(193, 157, 104, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float i {
  line-height: 60px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    font-size: 25px;
  }
  
  .whatsapp-float i {
    line-height: 50px;
  }
}

/* Ensure it stays above other floating elements */
.whatsapp-float {
  z-index: 9999;
}

/* Animation for attention */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

