/* Mobile App Styles - Sri Chaitanya Travels */

/* ===== MOBILE APP BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #64748B;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item.active {
    color: #f12f3a;
}

.mobile-bottom-nav .nav-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 500;
    display: block;
}

.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #f12f3a;
    border-radius: 3px 3px 0 0;
}

/* ===== MOBILE-FIRST STYLES ===== */
@media (max-width: 768px) {
    /* Hide desktop navbar */
    .navbar .navbar-collapse {
        display: none !important;
    }
    
    .navbar .navbar-brand img {
        max-width: 140px !important;
    }
    
    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Mobile hamburger menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        animation: fadeIn 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background: white;
        z-index: 2001;
        padding: 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 28px;
        color: #64748B;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-menu-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-nav li {
        margin-bottom: 5px;
    }
    
    .mobile-menu-nav a {
        display: flex;
        align-items: center;
        padding: 15px;
        color: #1E293B;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .mobile-menu-nav a:hover,
    .mobile-menu-nav a.active {
        background: rgba(241, 47, 58, 0.1);
        color: #f12f3a;
    }
    
    .mobile-menu-nav a i {
        width: 40px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    /* Touch-friendly buttons */
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-search,
    .btn-whatsapp,
    .btn-submit,
    .btn-submit-booking {
        min-height: 50px;
        font-size: 16px !important;
        padding: 14px 24px !important;
        border-radius: 12px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile Call Button */
    .mobile-call-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        background: #f12f3a;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        margin-left: 10px;
        box-shadow: 0 2px 10px rgba(241, 47, 58, 0.3);
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 600;
    }
    
    .mobile-call-btn:hover {
        background: #d11a2a;
        transform: translateY(-2px);
    }
    
    /* Touch-friendly inputs */
    .form-control,
    .form-select,
    input,
    select,
    textarea {
        min-height: 50px !important;
        font-size: 16px !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Card optimizations */
    .vehicle-card,
    .offer-card,
    .package-card,
    .feature-card,
    .contact-info-card {
        border-radius: 16px !important;
        margin-bottom: 16px;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 120px 0 80px !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .hero-description {
        font-size: 15px !important;
        padding: 0 10px;
    }
    
    /* Search bar mobile */
    .search-bar {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }
    
    .search-bar .form-select,
    .search-bar .form-control {
        width: 100% !important;
        min-height: 50px !important;
    }
    
    .btn-search {
        width: 100% !important;
        min-height: 50px !important;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0 !important;
    }
    
    /* Container padding */
    .container {
        padding: 0 16px !important;
    }
    
    /* Footer mobile */
    .footer {
        padding: 40px 0 80px !important;
    }
    
    /* Modal mobile */
    .booking-modal-content,
    .modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px auto !important;
        border-radius: 20px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .booking-modal-body,
    .modal-body {
        padding: 20px !important;
    }
    
    /* Map mobile */
    .map-container iframe {
        height: 300px !important;
    }
    
    /* Vehicle specs mobile */
    .vehicle-spec {
        padding: 12px 8px !important;
        border-radius: 10px !important;
    }
    
    .vehicle-spec i {
        font-size: 18px !important;
    }
    
    .vehicle-spec .small {
        font-size: 12px !important;
    }
    
    /* Price mobile */
    .vehicle-price {
        font-size: 20px !important;
    }
    
    /* Suggested searches */
    .suggested-searches {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .suggested-searches .badge {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }
    
    /* Info cards */
    .info-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }
    
    /* Form container */
    .form-container {
        padding: 20px !important;
        border-radius: 16px !important;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 25px !important;
        border-radius: 16px !important;
    }
    
    /* News cards */
    .news-card img {
        height: 200px !important;
    }
    
    /* Stats section */
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stat-number {
        font-size: 40px !important;
    }
    
    .stat-label {
        font-size: 16px !important;
    }
    
    /* Destinations carousel */
    .destinations-carousel {
        gap: 12px !important;
        padding: 0 16px !important;
    }
    
    .destination-circle {
        width: 70px !important;
        height: 70px !important;
    }
    
    .destination-item {
        width: 80px !important;
    }
    
    .destination-name {
        font-size: 11px !important;
    }
    
    /* Hide desktop-only elements */
    .destinations-nav-btn {
        display: none !important;
    }
    
    /* Smooth scroll */
    html {
        scroll-behavior: smooth;
    }
    
    /* Remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Button tap effect */
    .btn-primary-custom:active,
    .btn-secondary-custom:active,
    .btn-search:active,
    .btn-whatsapp:active {
        transform: scale(0.98) !important;
        opacity: 0.9;
    }
    
    /* Card tap effect */
    .vehicle-card:active,
    .offer-card:active,
    .package-card:active {
        transform: scale(0.98) !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1E293B;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #f12f3a;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(241, 47, 58, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(241, 47, 58, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== PULL TO REFRESH INDICATOR ===== */
.pull-refresh {
    display: none;
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #f12f3a, #d11a2a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: top 0.3s ease;
}

.pull-refresh.active {
    top: 0;
}

.pull-refresh i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* ===== NOTIFICATION BADGE ===== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #f12f3a;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ===== SAFE AREA FOR NOTCH ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ===== ADDITIONAL MOBILE APP ENHANCEMENTS ===== */
@media (max-width: 768px) {
    /* App-like header */
    .navbar {
        padding: 10px 0 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    }
    
    .navbar-brand img {
        max-width: 130px !important;
    }
    
    /* Smooth page transitions */
    .vehicle-card,
    .offer-card,
    .package-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    /* Touch-optimized spacing */
    .container {
        padding: 0 12px !important;
    }
    
    /* Mobile card swipe hint */
    .vehicle-card::after,
    .offer-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .vehicle-card:hover::after,
    .offer-card:hover::after {
        opacity: 1;
    }
    
    /* Mobile typography */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3 !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .section-subtitle {
        font-size: 14px !important;
    }
    
    /* Mobile grid */
    .row {
        margin: 0 -8px !important;
    }
    
    .col-lg-3,
    .col-md-6 {
        padding: 0 8px !important;
    }
    
    /* Mobile button groups */
    .btn-group {
        display: flex;
        gap: 8px;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    /* Hide footer on mobile (use bottom nav instead) */
    .footer {
        display: none !important;
    }
    
    /* Show compact footer for contact info */
    .mobile-footer {
        display: block !important;
        padding: 20px 0 90px !important;
        background: #1E293B !important;
        color: white !important;
    }
    
    .mobile-footer .container {
        padding: 0 16px !important;
    }
    
    /* Mobile contact buttons */
    .mobile-contact-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 12px;
        margin-bottom: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
    }
    
    .mobile-contact-btn.whatsapp {
        background: #25D366;
        color: white;
    }
    
    .mobile-contact-btn.call {
        background: #f12f3a;
        color: white;
    }
    
    /* Mobile map */
    .map-container {
        border-radius: 16px !important;
        overflow: hidden;
    }
    
    /* Mobile form labels */
    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    /* Mobile hero background */
    .hero-section {
        background-attachment: scroll !important;
    }
    
    /* Mobile carousel */
    .destinations-carousel {
        scroll-snap-type: x mandatory !important;
    }
    
    .destination-item {
        scroll-snap-align: start !important;
    }
    
    /* Mobile tabs */
    .mobile-tabs {
        display: flex !important;
        background: white;
        border-radius: 12px;
        padding: 4px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        color: #64748B;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-tab.active {
        background: #f12f3a;
        color: white;
    }
    
    /* Mobile search suggestions */
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        max-height: 200px;
        overflow-y: auto;
        margin-top: 8px;
    }
    
    .search-suggestion-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .search-suggestion-item:hover {
        background: #f8fafc;
    }
    
    /* Mobile skeleton loading */
    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
    }
    
    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    /* Mobile toast notification */
    .toast {
        position: fixed;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: #1E293B;
        color: white;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 14px;
        z-index: 3000;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    
    /* Mobile progress bar */
    .progress-bar-mobile {
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        overflow: hidden;
    }
    
    .progress-bar-mobile .progress {
        height: 100%;
        background: #f12f3a;
        transition: width 0.3s ease;
    }
    
    /* Mobile chip/badge */
    .chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: #f1f5f9;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        color: #475569;
    }
    
    .chip.active {
        background: rgba(241, 47, 58, 0.1);
        color: #f12f3a;
    }
    
    /* Mobile divider */
    .divider {
        height: 1px;
        background: #e2e8f0;
        margin: 20px 0;
    }
    
    /* Mobile avatar */
    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-sm {
        width: 32px;
        height: 32px;
    }
    
    .avatar-lg {
        width: 56px;
        height: 56px;
    }
    
    /* Mobile rating stars */
    .rating-stars {
        color: #fbbf24;
        font-size: 16px;
    }
    
    /* Mobile price tag */
    .price-tag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 12px;
        background: rgba(241, 47, 58, 0.1);
        border-radius: 8px;
        font-weight: 700;
        color: #f12f3a;
        font-size: 16px;
    }
    
    /* Mobile status badge */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .status-badge.available {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }
    
    .status-badge.booked {
        background: rgba(241, 47, 58, 0.1);
        color: #f12f3a;
    }
    
    /* Mobile card actions */
    .card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    
    .card-actions .btn {
        flex: 1;
        min-height: 44px;
    }
    
    /* Mobile search bar with icon */
    .search-input-wrapper {
        position: relative;
    }
    
    .search-input-wrapper i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }
    
    .search-input-wrapper input {
        padding-left: 48px !important;
    }
    
    /* Mobile bottom sheet */
    .bottom-sheet {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
        z-index: 2500;
        transition: bottom 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .bottom-sheet.active {
        bottom: 70px;
    }
    
    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        margin: 12px auto;
    }
    
    /* Mobile ripple effect */
    .ripple {
        position: relative;
        overflow: hidden;
    }
    
    .ripple::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .ripple:active::after {
        width: 200px;
        height: 200px;
    }
}

/* ===== MOBILE FOOTER (HIDDEN ON DESKTOP) ===== */
.mobile-footer {
    display: none;
}

@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .fab {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}
