/* Driving Directions Page Styles */

/* Form Styles */
.driving-directions-form {
    background: #e0e0e0;
}

.driving-directions-form .form-group {
    margin-bottom: 0;
}

.driving-directions-form .exchange-btn {
    padding-top: 20px;
    text-align: center;
}

.driving-directions-form .exchange-btn img {
    cursor: pointer;
}

.driving-directions-form .submit-btn {
    padding-top: 25px;
}

/* Map and Directions Styles */
.distance-result {
    margin-bottom: 15px;
}

#googleMap {
    width: 100%;
    min-height: 450px;
    height: 450px;
    background: #f0f0f0;
    position: relative;
}

/* Map loading state */
#googleMap.map-loading {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#googleMap.map-loading::before {
    content: "Loading map...";
    color: #666;
    font-size: 1rem;
}

#directions-panel {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.directions-panel-container {
    min-height: 450px;
    height: 450px;
}

#distance-time {
    color: #006400;
}

/* Map Loading Placeholder */
.map-loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
    font-size: 1rem;
    min-height: 450px;
}

.map-loading-placeholder span {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .map-loading-placeholder {
        min-height: 320px;
        font-size: 0.9rem;
    }
}

/* SEO Content Sections */
.seo-content-section {
    margin-top: 40px;
}

.seo-section {
    margin-bottom: 40px;
}

.seo-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.seo-section p {
    line-height: 1.8;
}

.seo-section ol,
.seo-section ul {
    line-height: 1.8;
    margin-left: 20px;
}

.seo-section li {
    margin-bottom: 10px;
}

.seo-section a {
    color: #007bff;
    text-decoration: none;
}

.seo-section a:hover {
    text-decoration: underline;
}

/* Popular Routes Grid */
.popular-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.popular-route-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.popular-route-item strong {
    display: block;
    margin-bottom: 5px;
}

.popular-route-item small {
    color: #666;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

.faq-item p {
    line-height: 1.8;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #googleMap {
        min-height: 320px;
        height: 320px;
    }
    
    .directions-panel-container {
        min-height: 320px;
        height: 320px;
    }
    
    .seo-content-section {
        margin-top: 30px;
    }
    
    .seo-section {
        margin-bottom: 30px;
    }
    
    .seo-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .seo-section p {
        line-height: 1.7;
        font-size: 16px;
    }
    
    .seo-section ol,
    .seo-section ul {
        font-size: 16px;
    }
    
    .popular-routes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .popular-route-item {
        padding: 12px;
    }
    
    .popular-route-item strong {
        font-size: 16px;
    }
    
    .popular-route-item small {
        font-size: 14px;
    }
    
    .faq-item {
        margin-bottom: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .faq-item p {
        line-height: 1.8;
        font-size: 16px;
    }
}

