/* ==========================================================================
   MOBILE-FIRST COMPONENT LIBRARY
   Touch-optimized UI elements for mobile devices
   ========================================================================== */

/* ==========================================================================
   MOBILE SLIDER COMPONENT
   ========================================================================== */
.mobile-slider {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
    border-radius: 0;
    overflow: hidden;
}

.mobile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.mobile-slide.active {
    opacity: 1;
}

.mobile-slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.mobile-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-slide-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ==========================================================================
   MOBILE FORM COMPONENTS
   ========================================================================== */
.mobile-form {
    background: white;
    padding: 15px;
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.mobile-form-group {
    margin-bottom: 20px;
    position: relative;
}

.mobile-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.mobile-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px; /* Prevent iOS zoom */
    background: white;
    transition: all 0.3s ease;
    min-height: 56px; /* Large touch target */
    box-sizing: border-box;
}

.mobile-form-input:focus {
    outline: none;
    border-color: var(--cnvs-themecolor);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.mobile-form-input.with-icon {
    padding-left: 50px;
}

.mobile-form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cnvs-themecolor);
    font-size: 18px;
    pointer-events: none;
}

/* ==========================================================================
   MOBILE VEHICLE CARDS (HORIZONTAL ROWS)
   ========================================================================== */
.mobile-vehicle-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.mobile-vehicle-card {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mobile-vehicle-card:active {
    transform: scale(0.98);
}

.mobile-vehicle-card:hover,
.mobile-vehicle-card.selected {
    border-color: var(--cnvs-themecolor);
    background: rgba(30, 126, 52, 0.05);
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.15);
}

.mobile-vehicle-image {
    width: 70px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 16px;
}

.mobile-vehicle-content {
    flex: 1;
    text-align: left;
}

.mobile-vehicle-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mobile-vehicle-features {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.mobile-vehicle-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cnvs-themecolor);
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 12px;
    background: rgba(30, 126, 52, 0.1);
    border-radius: 8px;
}

/* ==========================================================================
   MOBILE SERVICE TABS
   ========================================================================== */
.mobile-service-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 2px;
}

.mobile-tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 60px;
}

.mobile-tab-button i {
    font-size: 1.2rem;
}

.mobile-tab-button.active {
    background: var(--cnvs-themecolor);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
}

.mobile-tab-button:active {
    transform: scale(0.95);
}

/* ==========================================================================
   MOBILE BUTTONS
   ========================================================================== */
.mobile-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px; /* Large touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.mobile-btn-primary {
    background: linear-gradient(45deg, var(--cnvs-themecolor), #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.3);
}

.mobile-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
}

.mobile-btn-secondary {
    background: white;
    color: var(--cnvs-themecolor);
    border: 2px solid var(--cnvs-themecolor);
}

.mobile-btn-secondary:active {
    background: rgba(30, 126, 52, 0.05);
}

.mobile-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   MOBILE ROUTE CARDS
   ========================================================================== */
.mobile-route-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-route-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mobile-route-card:active {
    transform: scale(0.98);
}

.mobile-route-card:hover,
.mobile-route-card.selected {
    border-color: var(--cnvs-themecolor);
    background: rgba(30, 126, 52, 0.05);
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.15);
}

.mobile-route-icon {
    font-size: 2rem;
    color: var(--cnvs-themecolor);
    margin-bottom: 12px;
}

.mobile-route-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.mobile-route-price {
    background: linear-gradient(45deg, var(--cnvs-themecolor), #20c997);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
}

/* ==========================================================================
   MOBILE EXCURSION CARDS
   ========================================================================== */
.mobile-excursion-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-excursion-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-excursion-card:active {
    transform: scale(0.98);
}

.mobile-excursion-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f6;
}

.mobile-excursion-content {
    padding: 16px;
}

.mobile-excursion-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    line-height: 1.3;
}

.mobile-excursion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-excursion-duration {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-excursion-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cnvs-themecolor);
}

.mobile-excursion-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   MOBILE MAP COMPONENT
   ========================================================================== */
.mobile-map-container {
    background: white;
    border-radius: 16px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-map-header {
    background: var(--cnvs-themecolor);
    color: white;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-map-content {
    padding: 16px;
}

.mobile-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.mobile-route-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mobile-route-info-item {
    text-align: center;
}

.mobile-route-info-label {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.mobile-route-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

/* ==========================================================================
   MOBILE LUGGAGE SELECTOR
   ========================================================================== */
.mobile-luggage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.mobile-luggage-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.mobile-luggage-icon {
    font-size: 1.5rem;
    color: var(--cnvs-themecolor);
    margin-bottom: 8px;
}

.mobile-luggage-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.mobile-luggage-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-luggage-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--cnvs-themecolor);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-luggage-btn:active {
    transform: scale(0.9);
}

.mobile-luggage-btn.minus {
    background: #dc3545;
}

.mobile-luggage-count {
    font-weight: 600;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
    color: #1f2937;
}

/* ==========================================================================
   MOBILE PAYMENT OPTIONS
   ========================================================================== */
.mobile-payment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.mobile-payment-option {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-payment-option:active {
    transform: scale(0.98);
}

.mobile-payment-option.selected {
    border-color: var(--cnvs-themecolor);
    background: rgba(30, 126, 52, 0.05);
}

.mobile-payment-radio {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    accent-color: var(--cnvs-themecolor);
}

.mobile-payment-icon {
    font-size: 1.5rem;
    color: var(--cnvs-themecolor);
    margin-right: 12px;
}

.mobile-payment-content {
    flex: 1;
}

.mobile-payment-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.mobile-payment-description {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ==========================================================================
   MOBILE UTILITIES
   ========================================================================== */
.mobile-spacing-sm { margin: 8px 0; }
.mobile-spacing-md { margin: 16px 0; }
.mobile-spacing-lg { margin: 24px 0; }

.mobile-text-center { text-align: center; }
.mobile-text-left { text-align: left; }
.mobile-text-right { text-align: right; }

.mobile-hidden { display: none !important; }
.mobile-visible { display: block !important; }

.mobile-flex { display: flex; }
.mobile-flex-column { flex-direction: column; }
.mobile-flex-center { justify-content: center; align-items: center; }
.mobile-flex-between { justify-content: space-between; }

.mobile-w-full { width: 100%; }
.mobile-h-full { height: 100%; }

/* ==========================================================================
   TOUCH OPTIMIZATIONS
   ========================================================================== */
.mobile-touch-target {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.mobile-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-tap-highlight {
    -webkit-tap-highlight-color: rgba(30, 126, 52, 0.2);
}

/* ==========================================================================
   MOBILE ANIMATIONS
   ========================================================================== */
@keyframes mobile-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.mobile-animate-fade-in {
    animation: mobile-fade-in 0.3s ease-out;
}

.mobile-animate-scale-in {
    animation: mobile-scale-in 0.2s ease-out;
}

/* ==========================================================================
   DEVICE-SPECIFIC OPTIMIZATIONS
   ========================================================================== */

/* iPhone specific */
@supports (-webkit-appearance: none) {
    .mobile-form-input {
        -webkit-appearance: none;
        border-radius: 12px;
    }
}

/* Android specific */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .mobile-btn {
        background-clip: padding-box;
    }
}

/* Very small screens (iPhone SE, small Android) */
@media (max-width: 375px) {
    .mobile-form {
        padding: 12px;
    }

    .mobile-vehicle-card {
        padding: 12px;
    }

    .mobile-luggage-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mobile-route-info {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
}

/* Large phones (iPhone Plus, large Android) */
@media (min-width: 414px) and (max-width: 768px) {
    .mobile-form {
        padding: 20px;
    }

    .mobile-vehicle-card {
        padding: 20px;
    }

    .mobile-vehicle-image {
        width: 80px;
        height: 60px;
    }
}