/* Add this CSS to fix mobile responsiveness issues */

/* Global mobile fixes */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

/* Container and layout fixes */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Navbar fixes */
.navbar {
    padding: 10px 0 !important;
}

.hero-title {
    font-size: 28px !important;
    line-height: 1.2;
}

/* Mobile responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 22px !important;
    }
    
    .fs-xl-10, .fs-lg-8, .fs-7 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    
    .fs-1 {
        font-size: 16px !important;
    }
    
    h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 18px !important;
        line-height: 1.3;
    }
    
    h5 {
        font-size: 16px !important;
        line-height: 1.3;
    }
    
    p {
        font-size: 14px !important;
        line-height: 1.4;
    }
    
    .font-cursive {
        font-size: 24px !important;
    }
}

/* Tours grid responsive */
.tours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tour-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tour-card-content {
    padding: 15px;
}

.tour-card-content h2 {
    font-size: 18px !important;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tour-card-content p {
    font-size: 14px !important;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tour-card-content a {
    display: inline-block;
    background: #8B4513;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.tour-card-content a:hover {
    background: #DAA520;
}

/* Card grid responsive fixes */
@media (max-width: 768px) {
    .col-md-4 {
        margin-bottom: 20px;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
    }
    
    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-body h4 {
        font-size: 16px !important;
        margin-bottom: 8px;
    }
    
    .card-body .fs-1 {
        font-size: 18px !important;
        font-weight: bold;
    }
    
    .card-body .fs-0 {
        font-size: 13px !important;
    }
}

/* Service cards responsive */
@media (max-width: 768px) {
    .service-card h4 {
        font-size: 16px !important;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 13px !important;
        line-height: 1.4;
    }
}

/* Dune buggy section responsive - targeting the inline styled section */
section[style*="background:#f9f4ef"] {
    margin: 20px auto !important;
    padding: 15px !important;
    max-width: 95% !important;
    overflow: hidden !important;
}

section[style*="background:#f9f4ef"] > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 15px !important;
}

@media (min-width: 768px) {
    section[style*="background:#f9f4ef"] > div[style*="display:flex"] {
        flex-direction: row !important;
        align-items: center !important;
    }
}

section[style*="background:#f9f4ef"] img {
    width: 100% !important;
    border-radius: 12px !important;
    max-width: 100% !important;
}

section[style*="background:#f9f4ef"] h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

@media (max-width: 768px) {
    section[style*="background:#f9f4ef"] h2 {
        font-size: 18px !important;
    }
    
    section[style*="background:#f9f4ef"] p {
        font-size: 14px !important;
    }
    
    section[style*="background:#f9f4ef"] li {
        font-size: 13px !important;
    }
    
    section[style*="background:#f9f4ef"] span[style*="font-size:22px"] {
        font-size: 18px !important;
    }
    
    section[style*="background:#f9f4ef"] button,
    section[style*="background:#f9f4ef"] a[style*="padding:10px"] {
        padding: 8px 14px !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Why choose section responsive - targeting the inline styled section */
section[style*="background:#fffbe9"] {
    margin: 20px auto !important;
    padding: 15px 20px !important;
    max-width: 95% !important;
    overflow: hidden !important;
}

section[style*="background:#fffbe9"] h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

section[style*="background:#fffbe9"] p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    section[style*="background:#fffbe9"] h2 {
        font-size: 18px !important;
    }
    
    section[style*="background:#fffbe9"] p {
        font-size: 13px !important;
    }
}

/* Testimonial section responsive */
@media (max-width: 768px) {
    .carousel-item .card h5 {
        font-size: 16px !important;
    }
    
    .carousel-item .card p {
        font-size: 13px !important;
    }
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-heading-color {
        font-size: 16px !important;
        margin-bottom: 15px;
    }
    
    .list-unstyled li a {
        font-size: 13px !important;
    }
}

/* CTA section responsive */
@media (max-width: 768px) {
    .py-8 {
        padding: 30px 15px !important;
    }
    
    .py-8 h2 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }
    
    .form-control {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
    
    .btn {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}

/* WhatsApp float responsive */
.whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 20px !important;
    right: 20px !important;
}

.whatsapp-icon {
    width: 24px !important;
    height: 24px !important;
}

.whatsapp-chat-bubble {
    bottom: 80px !important;
    right: 20px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

/* Back to top button responsive */
#back-to-top {
    bottom: 90px !important;
    right: 80px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
}

@media (max-width: 480px) {
    #back-to-top {
        right: 20px !important;
        bottom: 140px !important;
    }
}

/* Prevent horizontal scroll */
.container-fluid,
.row,
.col-*,
[class*="col-"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Image responsive fixes */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Position absolute elements fixes for mobile */
@media (max-width: 768px) {
    .position-absolute {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .d-none.d-xl-block,
    .d-none.d-lg-block {
        display: none !important;
    }
    
    .ms-xl-n4,
    .me-10,
    .me-xxl-0 {
        margin: 0 !important;
    }
}

/* Navigation responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white !important;
        padding: 15px !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    }
    
    .navbar-nav {
        text-align: center !important;
    }
    
    .nav-item {
        margin: 5px 0 !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    
    section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .tours-grid {
        padding: 15px 10px !important;
    }
    
    .tour-card-content {
        padding: 12px !important;
    }
    
    .hero-title {
        font-size: 18px !important;
    }
}