/* ===================================
   COMPREHENSIVE MOBILE-RESPONSIVE CSS
   Modern Mobile-First Design Principles
   =================================== */

/* Base Mobile-First Approach */
html, body { 
    min-width: 320px; 
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Hide responsive navigation by default */
#limoking-responsive-navigation { 
    display: none; 
}

/* ===================================
   MOBILE PORTRAIT (320px - 479px)
   =================================== */
@media only screen and (max-width: 479px) {
    /* Container adjustments */
    body .container { 
        max-width: 300px; 
        padding: 0 15px;
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 340px; 
    }
    
    /* Typography scaling */
    h1 { font-size: 28px; line-height: 1.2; }
    h2 { font-size: 24px; line-height: 1.3; }
    h3 { font-size: 20px; line-height: 1.4; }
    h4 { font-size: 18px; line-height: 1.4; }
    h5 { font-size: 16px; line-height: 1.4; }
    h6 { font-size: 14px; line-height: 1.4; }
    
    /* Header mobile optimization */
    body .limoking-logo { 
        padding-right: 60px; 
        float: none; 
        text-align: center;
        margin: 15px 0;
    }
    body .limoking-logo-inner { 
        margin: 0 auto; 
    }
    body .limoking-logo-container { 
        padding-top: 10px; 
        padding-bottom: 10px;
    }
    
    /* Mobile navigation */
    #limoking-responsive-navigation { 
        display: block; 
        height: auto; 
        position: static; 
        float: none; 
    }
    #limoking-responsive-navigation .dl-trigger { 
        position: absolute; 
        right: 15px; 
        top: 20px; 
        margin-top: 0; 
        background: #1eacc7;
        border: none;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 14px;
    }
    .dl-menuwrapper > .dl-menu, 
    .dl-menuwrapper > .dl-submenu { 
        margin: 10px 0 0; 
        width: 270px; 
        text-align: left; 
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .dl-menuwrapper .dl-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }
    
    /* Hide desktop navigation */
    .limoking-navigation-wrapper { 
        display: none; 
    }
    
    /* Header contact info */
    .header-style-2-wrapper .limoking-logo-right-text,
    .header-style-3-wrapper .limoking-logo-right-text,
    .header-style-5-wrapper .limoking-logo-right-text { 
        float: none; 
        position: static; 
        text-align: center; 
        margin-top: 0; 
        top: auto; 
        padding: 15px 0; 
        margin-right: 0; 
        font-size: 12px;
        line-height: 1.4;
    }
    .header-style-2-wrapper .limoking-logo-right-text img,
    .header-style-3-wrapper .limoking-logo-right-text img {
        width: 16px;
        height: 16px;
    }
    
    /* Page title optimization */
    .limoking-page-title-wrapper { 
        padding: 60px 0 40px; 
    }
    .limoking-page-title-wrapper .limoking-page-title { 
        font-size: 32px; 
        margin: 0 10px; 
    }
    .limoking-page-title-wrapper .limoking-page-caption { 
        font-size: 18px; 
        margin: 10px 15px 0; 
    }
    
    /* Content sections */
    .section-container, .limoking-item-start-content, .limoking-parallax-wrapper, .limoking-color-wrapper { 
        padding-top: 40px; 
    }
    .limoking-color-wrapper, .limoking-parallax-wrapper, .limoking-full-size-wrapper { 
        padding-bottom: 30px; 
    }
    
    /* Grid system - single column */
    .one-ninth, .one-eighth, .one-seventh, .one-fifth,
    .two-fifth, .three-fifth, .four-fifth,
    .one, .two, .three, .four, .five, .six, .seven,
    .eight, .nine, .ten, .eleven, .twelve { 
        width: 100%; 
        margin-bottom: 20px;
    }
    
    /* Item spacing */
    .limoking-item { 
        margin: 0 0 30px; 
        min-height: 1px; 
    }
    .limoking-item-no-space { 
        margin: 0 0 30px; 
    }
    
    /* Car items */
    .limoking-classic-car .car-rate-info-amount { 
        float: none; 
        display: block; 
        margin-bottom: 15px; 
        text-align: center;
    }
    .limoking-car-item .car-thumbnail img {
        width: 100%;
        height: auto;
    }
    .limoking-car-item .car-classic-content {
        padding: 15px;
    }
    .limoking-car-item .car-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .limoking-car-info-inner {
        margin-bottom: 15px;
    }
    .limoking-car-info {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    /* Testimonials */
    .limoking-testimonial-item .testimonial-item-inner {
        padding: 20px;
        margin: 0 10px;
    }
    .limoking-testimonial-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    .limoking-testimonial-author {
        margin-top: 15px;
    }
    .limoking-testimonial-author-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .limoking-testimonial-author-position {
        font-size: 12px;
    }
    
    /* Buttons */
    .limoking-button, input[type=\
button\], input[type=\submit\] { 
        font-size: 14px; 
        padding: 12px 20px; 
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .limoking-button.large { 
        font-size: 16px; 
        padding: 15px 25px; 
    }
    
    /* Footer optimization */
    .footer-container { 
        padding-top: 30px; 
    }
    .footer-column { 
        margin-bottom: 30px; 
    }
    .footer-wrapper .limoking-widget-title { 
        font-size: 16px; 
        margin-bottom: 15px; 
    }
    .footer-wrapper .textwidget p { 
        font-size: 13px; 
        line-height: 1.5; 
    }
    .footer-wrapper ul li { 
        margin-bottom: 8px; 
    }
    .footer-wrapper ul li a { 
        font-size: 13px; 
    }
    .copyright-container { 
        padding: 15px 0; 
        text-align: center;
    }
    .copyright-left, .copyright-right { 
        float: none; 
        margin: 5px 0; 
        font-size: 12px;
    }
    
    /* Banner slider */
    .limoking-banner-images .flexslider {
        margin: 0;
    }
    .limoking-banner-images .slides li {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }
    .limoking-banner-images .slides li img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Portfolio/Grid items */
    .limoking-portfolio-item, .limoking-blog-item {
        margin-bottom: 20px;
    }
    .portfolio-thumbnail img, .limoking-blog-thumbnail img {
        width: 100%;
        height: auto;
    }
    
    /* Forms */
    input[type=\text\], input[type=\email\], input[type=\password\], textarea { 
        padding: 12px 15px; 
        font-size: 14px;
        border-radius: 4px;
    }
    .gdl-search-form { 
        padding-right: 50px; 
    }
    .gdl-search-form input[type=\submit\] { 
        right: 5px; 
        top: 50%; 
        margin-top: -15px; 
        padding: 10px 15px;
    }
    
    /* Hide elements on mobile */
    .limoking-hide-in-mobile { 
        display: none; 
    }
    .limoking-hide-in-tablet { 
        display: block; 
    }
    
    /* Rate tables */
    .limoking-rate-table-wrapper { 
        display: none; 
    }
    .limoking-rate-table-mobile-wrapper { 
        display: block; 
    }
    
    /* Stunning text items */
    .limoking-stunning-text-item { 
        text-align: center; 
        padding: 20px 15px;
    }
    .limoking-stunning-text-item.type-normal.limoking-button-on { 
        padding-right: 0; 
    }
    .limoking-stunning-text-item.type-normal .stunning-text-button { 
        position: static; 
        margin-top: 15px; 
    }
    .limoking-stunning-text-item.with-padding.limoking-button-on { 
        padding-right: 20px; 
    }
    .limoking-stunning-text-item.with-padding .stunning-text-button { 
        right: 20px; 
    }
    
    /* About us items */
    .limoking-about-us-item.limoking-with-divider .about-us-title { 
        font-size: 24px; 
        margin-bottom: 15px; 
    }
    .limoking-about-us-item.limoking-with-divider .about-us-title-divider { 
        width: 80px; 
        margin: 0 auto 15px; 
    }
    
    /* Service items */
    .limoking-service-with-image-item .service-with-image-thumbnail { 
        float: none; 
        margin: 0 auto 20px; 
        max-width: 200px;
    }
    .limoking-service-with-image-item .service-with-image-content-wrapper { 
        text-align: center; 
    }
    
    /* Feature media items */
    .limoking-feature-media-item.limoking-left .feature-media-thumbnail { 
        float: none; 
        width: auto; 
        margin-right: 0; 
        margin-bottom: 20px;
    }
    .limoking-feature-media-item .feature-media-icon { 
        display: none; 
    }
    
    /* Blog items */
    .limoking-blog-medium .limoking-blog-thumbnail { 
        margin-right: 0; 
        float: none; 
        margin-bottom: 15px; 
        width: auto; 
    }
    
    /* Single page layouts */
    .limoking-portfolio-style1 .limoking-portfolio-description { 
        float: none; 
        margin-right: 0; 
        width: auto; 
    }
    .limoking-portfolio-style1 .limoking-portfolio-info { 
        width: auto; 
        float: none; 
        margin-bottom: 20px; 
    }
    .limoking-portfolio-style2 .limoking-portfolio-thumbnail {
        max-width: 100%; 
        float: none; 
        margin-right: 0; 
        margin-left: 0; 
        width: auto !important; 
    }
    
    /* Slider captions */
    .limoking-caption-wrapper .limoking-caption .limoking-caption-text { 
        display: none; 
    }
    .limoking-caption-wrapper .limoking-caption .limoking-caption-title { 
        margin-bottom: 0; 
        font-size: 14px; 
    }
    .limoking-caption-wrapper .limoking-caption { 
        max-width: 100%; 
        padding: 10px; 
    }
    
    /* Navigation arrows */
    .limoking-item-title .limoking-flex-prev { 
        margin: 0; 
        position: absolute; 
        left: 0; 
        top: 50%; 
        margin-top: -15px;
    }
    .limoking-item-title .limoking-flex-next { 
        margin: 0; 
        position: absolute; 
        right: 0; 
        top: 50%; 
        margin-top: -15px; 
    }
}

/* ===================================
   MOBILE LANDSCAPE (480px - 767px)
   =================================== */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    body .container { 
        max-width: 460px; 
        padding: 0 20px;
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 500px; 
    }
    
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
    
    /* Grid system - two columns for some elements */
    .six { width: 48%; margin-right: 2%; }
    .six:nth-child(2n) { margin-right: 0; }
    
    /* Car items in two columns */
    .limoking-car-column-2 .six {
        width: 48%;
        margin-right: 2%;
        margin-bottom: 20px;
    }
    .limoking-car-column-2 .six:nth-child(2n) {
        margin-right: 0;
    }
    
    /* Banner slider - 3 items per row */
    .limoking-banner-images .slides li {
        width: 32% !important;
        margin-right: 2%;
    }
    .limoking-banner-images .slides li:nth-child(3n) {
        margin-right: 0;
    }
    
    /* Footer - two columns */
    .footer-column.three {
        width: 48%;
        margin-right: 2%;
        margin-bottom: 30px;
    }
    .footer-column.three:nth-child(2n) {
        margin-right: 0;
    }
}

/* ===================================
   TABLET PORTRAIT (768px - 959px)
   =================================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
    body .container { 
        max-width: 720px; 
        padding: 0 20px;
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 760px; 
    }
    
    /* Typography */
    h1 { font-size: 36px; }
    h2 { font-size: 32px; }
    h3 { font-size: 28px; }
    h4 { font-size: 24px; }
    h5 { font-size: 20px; }
    h6 { font-size: 18px; }
    
    /* Grid system */
    .three { width: 31.333%; margin-right: 2%; }
    .three:nth-child(3n) { margin-right: 0; }
    .four { width: 48%; margin-right: 2%; }
    .four:nth-child(2n) { margin-right: 0; }
    .six { width: 48%; margin-right: 2%; }
    .six:nth-child(2n) { margin-right: 0; }
    
    /* Header adjustments */
    .header-inner-header-style-2 .limoking-navigation-wrapper .limoking-main-menu > li > a { 
        padding-left: 25px; 
        font-size: 12px;
    }
    .header-inner-header-style-3 .limoking-navigation-wrapper .limoking-main-menu > li > a { 
        padding-left: 25px; 
        font-size: 12px;
    }
    
    /* Hide search button on tablet */
    #limoking-menu-search-button { 
        display: none; 
    }
    
    /* Service items */
    .limoking-service-half-background-item .limoking-half-left .half-container,
    .limoking-service-half-background-item .limoking-half-right .half-container { 
        max-width: 680px; 
    }
    
    /* Car items - 2 columns */
    .limoking-car-column-2 .six {
        width: 48%;
        margin-right: 2%;
    }
    .limoking-car-column-2 .six:nth-child(2n) {
        margin-right: 0;
    }
    
    /* Footer - 4 columns */
    .footer-column.three {
        width: 23%;
        margin-right: 2%;
    }
    .footer-column.three:nth-child(4n) {
        margin-right: 0;
    }
    
    /* Banner slider - 4 items per row */
    .limoking-banner-images .slides li {
        width: 24% !important;
        margin-right: 1%;
    }
    .limoking-banner-images .slides li:nth-child(4n) {
        margin-right: 0;
    }
}

/* ===================================
   TABLET LANDSCAPE (960px - 1100px)
   =================================== */
@media only screen and (min-width: 960px) and (max-width: 1100px) {
    body .container { 
        max-width: 920px; 
        padding: 0 20px;
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 960px; 
    }
    
    /* Typography */
    h1 { font-size: 40px; }
    h2 { font-size: 36px; }
    h3 { font-size: 30px; }
    h4 { font-size: 26px; }
    h5 { font-size: 22px; }
    h6 { font-size: 18px; }
    
    /* Header style 5 adjustments */
    body .header-style-5-wrapper .limoking-logo { 
        margin-top: 15px; 
        margin-bottom: 15px; 
        float: none; 
        text-align: center; 
    }
    body .header-style-5-wrapper .limoking-logo-inner { 
        margin: 0 auto; 
    }
    body .header-style-5-wrapper .limoking-navigation { 
        display: inline-block; 
        text-align: left; 
        line-height: 1.7; 
    }
    body .header-style-5-wrapper .limoking-navigation-wrapper .limoking-main-menu > li > a { 
        padding-bottom: 15px; 
        font-size: 12px;
    }
    body .limoking-header-wrapper.header-style-5-wrapper .limoking-header-inner { 
        padding-top: 1px; 
    }
    body .limoking-header-wrapper.header-style-5-wrapper .limoking-logo-right-wrapper { 
        float: none; 
    }
    body .limoking-header-wrapper.header-style-5-wrapper .limoking-logo-right-text { 
        text-align: center; 
        margin-top: 0; 
    }
    body .limoking-header-wrapper.header-style-5-wrapper .limoking-logo-right-wrapper .limoking-navigation-wrapper { 
        float: none; 
        text-align: center; 
        line-height: 0; 
    }
    body .limoking-header-wrapper.header-style-5-wrapper #limoking-navigation-gimmick { 
        margin-top: -10px; 
    }
    .limoking-header-wrapper.header-style-5-wrapper { 
        position: relative; 
    }
    
    /* Navigation adjustments */
    .header-inner-header-style-2 .limoking-navigation-wrapper .limoking-main-menu > li > a { 
        padding-left: 35px; 
        font-size: 12px;
    }
    .header-inner-header-style-3 .limoking-navigation-wrapper .limoking-main-menu > li > a { 
        padding-left: 35px; 
        font-size: 12px;
    }
    
    /* Car items - 2 columns */
    .limoking-car-column-2 .six {
        width: 48%;
        margin-right: 2%;
    }
    .limoking-car-column-2 .six:nth-child(2n) {
        margin-right: 0;
    }
    
    /* Banner slider - 5 items per row */
    .limoking-banner-images .slides li {
        width: 19% !important;
        margin-right: 1%;
    }
    .limoking-banner-images .slides li:nth-child(5n) {
        margin-right: 0;
    }
}

/* ===================================
   DESKTOP (1101px+)
   =================================== */
@media only screen and (min-width: 1101px) {
    body .container { 
        max-width: 1140px; 
        padding: 0 20px;
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 1180px; 
    }
    
    /* Full desktop functionality */
    .limoking-hide-in-tablet { 
        display: block; 
    }
    .limoking-hide-in-tablet-mobile { 
        display: block; 
    }
    
    /* Car items - 2 columns */
    .limoking-car-column-2 .six {
        width: 48%;
        margin-right: 2%;
    }
    .limoking-car-column-2 .six:nth-child(2n) {
        margin-right: 0;
    }
    
    /* Banner slider - 5 items per row */
    .limoking-banner-images .slides li {
        width: 19% !important;
        margin-right: 1%;
    }
    .limoking-banner-images .slides li:nth-child(5n) {
        margin-right: 0;
    }
}

/* ===================================
   LARGE DESKTOP (1400px+)
   =================================== */
@media only screen and (min-width: 1400px) {
    body .container { 
        max-width: 1320px; 
    }
    body .body-wrapper.limoking-boxed-style { 
        max-width: 1360px; 
    }
    
    /* Enhanced spacing for large screens */
    .section-container, .limoking-item-start-content, .limoking-parallax-wrapper, .limoking-color-wrapper { 
        padding-top: 80px; 
    }
    .limoking-color-wrapper, .limoking-parallax-wrapper, .limoking-full-size-wrapper { 
        padding-bottom: 60px; 
    }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .limoking-button,
    input[type=\button\],
    input[type=\submit\],
    .limoking-car-button {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Larger navigation items */
    .limoking-main-menu > li > a {
        padding: 15px 20px;
    }
    
    /* Disable hover effects on touch devices */
    .limoking-car-item:hover .car-overlay,
    .portfolio-thumbnail:hover .portfolio-overlay {
        opacity: 0;
    }
    
    /* Show overlay on touch */
    .limoking-car-item:active .car-overlay,
    .portfolio-thumbnail:active .portfolio-overlay {
        opacity: 0.8;
    }
}

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

/* Focus states for accessibility */
.limoking-button:focus,
input[type=\button\]:focus,
input[type=\submit\]:focus,
.limoking-car-button:focus {
    outline: 2px solid #1eacc7;
    outline-offset: 2px;
}

.limoking-main-menu > li > a:focus {
    outline: 2px solid #1eacc7;
    outline-offset: 2px;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.limoking-text-center { text-align: center; }
.limoking-text-left { text-align: left; }
.limoking-text-right { text-align: right; }

.limoking-mb-0 { margin-bottom: 0; }
.limoking-mb-10 { margin-bottom: 10px; }
.limoking-mb-20 { margin-bottom: 20px; }
.limoking-mb-30 { margin-bottom: 30px; }

.limoking-mt-0 { margin-top: 0; }
.limoking-mt-10 { margin-top: 10px; }
.limoking-mt-20 { margin-top: 20px; }
.limoking-mt-30 { margin-top: 30px; }

.limoking-p-0 { padding: 0; }
.limoking-p-10 { padding: 10px; }
.limoking-p-20 { padding: 20px; }
.limoking-p-30 { padding: 30px; }

/* ===================================
   SCROLLBAR STYLING
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1eacc7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6db7c6;
}

/* ===================================
   SELECTION STYLING
   =================================== */
::selection {
    background: #1eacc7;
    color: white;
}

::-moz-selection {
    background: #1eacc7;
    color: white;
}
