﻿/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    direction: rtl;
    text-align: right;
}
.div-footer{
    background-color: #49a34d;
    color: white;
    border-radius: 10px;
}
.app-container {
    max-width: 768px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.bus-image {
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.logo {
    width: 40px;
    height: 40px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.bus-illustration {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: 1;
}

/* Main Content */
.main-content {
    padding: 20px;
    padding-bottom: 100px;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    margin-top: -80px;
    z-index: 4;
    position: relative;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

    .form-input:focus {
        outline: none;
        border-color: #4caf50;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    }

    .form-input::placeholder {
        color: #999;
    }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .search-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    }

    .search-button:active {
        transform: translateY(0);
    }

/* Popular Destinations */
.popular-destinations {
    margin-top: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.destinations-grid {
    display: block;
    overflow: auto;
    white-space: nowrap;
}

.destination-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: 180px;
}

    .destination-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .destination-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

.destination-info {
    padding: 16px;
    text-align: center;
}

    .destination-info h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

.routes-section {
    background-color: #26ad7730;
    border-radius: 10px;
    padding: 8px;
    margin-top: 24px;
}

    .routes-section ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .routes-section .section-title {
        text-align: right;
    }

    .routes-section .list {
        padding: 6px 22px;
    }

footer {
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: 13px;
}

.social-icons {
    margin: 12px;
}
/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 60px;
}

    .nav-item:hover {
        background-color: #f5f5f5;
    }

    .nav-item.active {
        color: #4caf50;
    }

        .nav-item.active .nav-icon {
            color: #4caf50;
        }

.nav-icon {
    color: #666;
    transition: color 0.3s ease;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 480px) {
    .header {
        padding: 16px;
    }

    .header-title {
        font-size: 16px;
    }

    .main-content {
        padding: 16px;
        padding-bottom: 100px;
    }

    .search-card {
        padding: 20px;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .nav-label {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .form-input {
        padding: 14px 45px 14px 14px;
        font-size: 15px;
    }

    .search-button {
        padding: 16px;
        font-size: 15px;
    }
}

/* RTL Specific Adjustments */
[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

[dir="rtl"] .form-input {
    padding: 16px 16px 16px 50px;
}

@media (max-width: 360px) {
    [dir="rtl"] .form-input {
        padding: 14px 14px 14px 45px;
    }
}

/* Animation for form interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card {
    animation: fadeInUp 0.6s ease-out;
}

.destination-card {
    animation: fadeInUp 0.6s ease-out;
}

    .destination-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .destination-card:nth-child(3) {
        animation-delay: 0.2s;
    }
