/* Tablet & Mobile Responsive Design - 768px and below */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links li {
        margin: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid, .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 400px;
    }
    
    .serving-img {
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Chatbot Mobile Styles */
    #chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    #chatbot-window {
        position: fixed;
        bottom: 0;
        left: 10px;
        right: 10px;
        top: auto;
        width: auto;
        height: 60vh; /* Takes up 60% of screen height */
        max-height: 500px;
        border-radius: 12px 12px 0 0; /* Rounded only on top */
        z-index: 9999;
    }
    
    #chatbot-button {
        width: 55px;
        height: 55px;
    }
    
    #chatbot-header {
        padding: 15px;
        background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    }
    
    .header-info h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .header-info p {
        font-size: 12px;
        margin: 5px 0 0 0;
    }
    
    .close-btn {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
    
    #chatbot-messages {
        padding: 10px;
        font-size: 14px;
    }
    
    .message {
        max-width: 85%;
        margin-bottom: 12px;
    }
    
    .message.bot {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .message.user {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .quick-actions {
        gap: 6px;
        margin-top: 10px;
    }
    
    .quick-action {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 16px;
        flex: 1;
        min-width: auto;
        text-align: center;
    }
    
    #chatbot-quick-actions {
        padding: 12px 10px;
        background: white;
        border-top: 1px solid #e9ecef;
    }
    
    #chatbot-quick-actions .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }

    /* Mobile backdrop for chatbot */
    #chatbot-window::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: auto;
    }

    /* Slide up animation for mobile chatbot */
    #chatbot-window {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    #chatbot-window.open {
        transform: translateY(0);
    }
}

/* Small Mobile Devices - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .service-content, .team-content {
        padding: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .attraction-card, .beach-card {
        padding: 1.2rem;
    }
    
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }

    /* Very small screen chatbot adjustments */
    #chatbot-window {
        left: 5px;
        right: 5px;
        height: 55vh; /* Slightly smaller on very small screens */
    }
    
    #chatbot-container {
        bottom: 10px;
        right: 10px;
    }
    
    #chatbot-button {
        width: 50px;
        height: 50px;
    }
    
    .quick-action {
        font-size: 11px;
        padding: 7px 8px;
    }
    
    .header-info h3 {
        font-size: 15px;
    }
    
    .header-info p {
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .cta, .hero, header {
        background: #fff !important;
        color: #333 !important;
    }
    
    .nav-links, .cta-buttons {
        display: none;
    }
    
    .service-img, .team-img, .serving-img {
        background: #f5f5f5 !important;
    }
    
    .map-container iframe {
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card, .team-card, .feature, .attraction-card, .beach-card, .faq-item {
        border: 2px solid #333;
    }
    
    .cta-btn {
        border: 2px solid #333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}