/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN FIXES
   For EXPLORE Travel Website
   Mobile-First Enhanced UI
   ======================================== */

/* ========================================
   GLOBAL SCROLLBAR HIDING
   Hide scrollbar while keeping scroll functionality
   ======================================== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: none;
}

/* IE and Edge Legacy */
body {
    -ms-overflow-style: none;
}

/* Ensure scrolling still works */
html, body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ========================================
   MOBILE DEVICES (≤576px)
   Enhanced Professional Mobile UI
   ======================================== */
@media (max-width: 576px) {
    /* ===== HERO BACKGROUND OPTIMIZATION ===== */
    .hero {
        /* Disable fixed attachment on mobile for better performance */
        background-attachment: scroll !important;
        /* Optimize background rendering */
        background-size: cover !important;
        background-position: center center !important;
        /* Better image quality on mobile */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Prevent blurry scaling */
        -webkit-transform: translateZ(0) scale(1.0);
        transform: translateZ(0) scale(1.0);
        will-change: transform;
    }
    
    .hero::after {
        /* Optimize secondary background */
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
    }
    
    /* ===== NAVIGATION ===== */
    nav {
        padding: 12px 5% !important;
        height: 70px;
        display: flex;
        align-items: center;
    }
    
    .logo {
        height: 50px !important;
        width: 50px !important;
        flex-shrink: 0;
    }
    
    .whole {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    .whole.active {
        left: 0;
    }
    
    .whole li {
        width: 100%;
        text-align: center;
    }
    
    .whole li a {
        font-size: 18px !important;
        padding: 15px 25px !important;
        display: block;
        width: 100%;
        border-radius: 10px;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 26px;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        margin-left: auto;
    }
    
    /* ===== HERO CONTENT ===== */
    .hero {
        padding-top: 70px !important;
        min-height: 100vh;
    }
    
    .content {
        padding: 20px 15px !important;
    }
    
    .content h1 {
        font-size: 48px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .tagline {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 14px 35px !important;
        font-size: 16px !important;
        margin-top: 15px !important;
        width: auto;
        max-width: 90%;
    }
    
    /* ===== PAGE HEADERS ===== */
    .page-header {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }
    
    .page-header h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .page-header p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    /* ===== CHATBOT ===== */
    .chatbot-toggle {
        width: 56px !important;
        height: 56px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 22px !important;
        z-index: 1002;
    }
    
    .chatbot-modal {
        width: calc(100vw - 30px) !important;
        height: calc(100vh - 140px) !important;
        bottom: 90px !important;
        right: 15px !important;
        max-height: calc(100vh - 140px) !important;
        z-index: 1001;
        border-radius: 15px !important;
    }
    
    .chatbot-header {
        padding: 15px !important;
    }
    
    .chatbot-header h3 {
        font-size: 16px !important;
    }
    
    .chatbot-messages {
        padding: 15px !important;
        font-size: 14px !important;
    }
    
    .chatbot-input-area {
        padding: 12px !important;
    }
    
    .chatbot-input-area input {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
    
    .chatbot-input-area button {
        padding: 12px 15px !important;
        font-size: 16px !important;
    }
    
    .chatbot-suggestions {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 15px !important;
    }
    
    .suggestion-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    /* ===== DESTINATIONS PAGE ===== */
    .destinations-container {
        padding: 90px 15px 30px 15px !important;
    }
    
    .search-filter-section {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
        border-radius: 12px !important;
    }
    
    .search-bar {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .search-bar input {
        width: 100% !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .search-bar button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .filters {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filters select {
        width: 100% !important;
        min-width: 100% !important;
        padding: 14px 15px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .reset-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .results-info {
        font-size: 15px !important;
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 5px !important;
    }
    
    .destination-card {
        max-width: 100% !important;
        border-radius: 12px !important;
    }
    
    .destination-card img {
        height: 200px !important;
    }
    
    .card-content {
        padding: 18px !important;
    }
    
    .card-title h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    .card-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    .learn-more-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin-top: 12px !important;
    }
    
    /* ===== GALLERY PAGE ===== */
    .gallery-container {
        padding: 90px 15px 30px 15px !important;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 0 5px !important;
    }
    
    .gallery-item {
        border-radius: 12px !important;
        height: 250px !important;
    }
    
    .gallery-item img {
        height: 100% !important;
    }
    
    /* ===== CONTACT PAGE ===== */
    .contact-container {
        padding: 90px 15px 30px 15px !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 5px !important;
    }
    
    .contact-card {
        padding: 25px 20px !important;
        border-radius: 12px !important;
    }
    
    .contact-card i {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    .contact-card h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .contact-card p,
    .contact-card a {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* ===== FEEDBACK PAGE ===== */
    .feedback-container {
        padding: 90px 15px 30px 15px !important;
        max-width: 100% !important;
    }
    
    .feedback-form {
        padding: 25px 20px !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }
    
    .feedback-form h2 {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }
    
    .form-group {
        margin-bottom: 18px !important;
    }
    
    .form-group label {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 15px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .form-group textarea {
        min-height: 120px !important;
    }
    
    .name-inputs {
        flex-direction: column !important;
        gap: 18px !important;
    }
    
    .name-inputs input {
        width: 100% !important;
    }
    
    .rating-stars {
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .rating-stars i {
        font-size: 28px !important;
    }
    
    .submit-btn {
        padding: 14px 30px !important;
        font-size: 16px !important;
        width: 100% !important;
        border-radius: 10px !important;
    }
    
    /* ===== FOOTER ===== */
    .site-footer {
        padding: 30px 15px 20px 15px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
    }
    
    .footer-section {
        padding: 0 10px !important;
    }
    
    .footer-section h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    .footer-links {
        gap: 10px !important;
    }
    
    .social-links {
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 15px !important;
    }
    
    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .footer-bottom {
        padding: 15px 10px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    /* ===== NO RESULTS MESSAGE ===== */
    .no-results {
        padding: 40px 20px !important;
    }
    
    .no-results i {
        font-size: 48px !important;
    }
    
    .no-results h3 {
        font-size: 22px !important;
        margin: 15px 0 10px 0 !important;
    }
    
    .no-results p {
        font-size: 15px !important;
    }
}

/* ========================================
   TABLET DEVICES (577px - 768px)
   ======================================== */
@media (min-width: 577px) and (max-width: 768px) {
    /* ===== HERO BACKGROUND OPTIMIZATION ===== */
    .hero {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
    }
    
    .hero::after {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    nav {
        padding: 18px 5%;
    }
    
    .logo {
        height: 55px !important;
        width: 55px !important;
    }
    
    .whole {
        gap: 25px;
    }
    
    .whole li a {
        font-size: 16px;
    }
    
    .content h1 {
        font-size: 64px !important;
    }
    
    .tagline {
        font-size: 18px !important;
    }
    
    .cta-button {
        padding: 14px 40px !important;
        font-size: 18px !important;
    }
    
    .chatbot-modal {
        width: 420px;
        height: 580px;
        z-index: 1001;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 25px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .search-filter-section {
        padding: 25px !important;
    }
    
    .page-header h1 {
        font-size: 42px !important;
    }
}

/* ========================================
   SMALL DESKTOP (769px - 1024px)
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ========================================
   LARGE DESKTOP (≥1025px)
   ======================================== */
@media (min-width: 1025px) {
    .destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-modal {
        height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        bottom: 70px !important;
    }
    
    .chatbot-header {
        padding: 10px 15px !important;
    }
    
    .chatbot-messages {
        padding: 10px !important;
    }
    
    .chatbot-input-area {
        padding: 10px !important;
    }
    
    .chatbot-suggestions {
        padding: 8px 15px !important;
    }
}

/* ========================================
   PREVENT HORIZONTAL OVERFLOW
   ======================================== */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    position: relative;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for long text overflow */
.card-description,
.card-title h3,
.footer-section p,
.contact-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ========================================
   TOUCH-FRIENDLY BUTTON SIZES
   ======================================== */
@media (max-width: 768px) {
    button,
    .cta-button,
    .learn-more-btn,
    a[class*="btn"],
    .submit-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* ========================================
   IMPROVED READABILITY ON SMALL SCREENS
   ======================================== */
@media (max-width: 576px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    p {
        line-height: 1.6;
    }
}

/* ========================================
   STICKY ELEMENTS ON MOBILE
   ======================================== */
@media (max-width: 768px) {
    nav {
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .destinations-container,
    .gallery-container,
    .contact-container,
    .feedback-container {
        padding-top: 90px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chatbot-modal,
    .destination-card,
    .gallery-item,
    .contact-card,
    .feedback-form {
        border: 2px solid currentColor;
    }
    
    button,
    .cta-button {
        border: 2px solid currentColor;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .chatbot-toggle,
    .chatbot-modal,
    nav,
    .mobile-menu-toggle,
    .social-links,
    .search-filter-section {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .destination-card,
    .gallery-item,
    .contact-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   ADDITIONAL MOBILE POLISH
   ======================================== */
@media (max-width: 576px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Better tap highlighting */
    * {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
    
    /* Prevent text size adjustment */
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Better form inputs on mobile */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Card hover effects disabled on mobile */
    .destination-card:hover,
    .gallery-item:hover,
    .contact-card:hover {
        transform: none;
    }
    
    /* Better spacing for sections */
    section {
        padding: 20px 15px;
    }
}

/* Made with Bob - Enhanced Mobile UI */

/* Made with Bob */
