/* Suomi Reitit CSS - Yhtenäinen tyyli muiden moduulien kanssa */

/* Pääsäiliö */
.sr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Moduulirakenne - sama kuin muissa moduuleissa */
.sr-module {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: #f8f9fa;
}

.sr-module-header {
    margin-bottom: 20px;
}

.sr-module-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.sr-module-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.sr-module-content {
    margin: 15px 0;
}

.sr-module-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 0.85em;
    color: #7f8c8d;
}

/* Haku-lomake */
.sr-search-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.sr-form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sr-field {
    flex: 1;
    min-width: 200px;
}

.sr-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.sr-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.sr-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sr-submit-btn:hover {
    transform: translateY(-2px);
}

/* Suositut reitit ja kuntalista */
.sr-popular-routes {
    margin: 40px 0;
}

.sr-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 15px;
    margin-top: 20px;
}

.sr-route-card {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.sr-route-card:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.sr-municipality-list {
    margin: 40px 0;
}

.sr-municipality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px;
    margin-top: 20px;
}

.sr-municipality-item {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s;
}

.sr-municipality-item:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Kohdesivu (From page) */
.sr-destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sr-destination-card {
    display: block;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.sr-destination-card:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Reittisivu (Route page) */
.sr-route-info {
    margin: 20px 0;
}

.sr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.sr-info-item {
    background: white;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.sr-info-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-info-value {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

/* Kartta */
.sr-map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sr-map {
    height: 400px;
    width: 100%;
}

/* Ajo-ohjeet */
.sr-directions {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.sr-directions h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.sr-directions-list {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.sr-directions-list ol {
    padding-left: 25px;
    margin: 0;
    word-wrap: break-word;
}

.sr-directions-list li {
    margin: 8px 0;
    line-height: 1.5;
    word-break: break-word;
}

.sr-directions-list em {
    color: #666;
    font-size: 0.9em;
}

/* Navigointi */
.sr-navigation {
    margin: 30px 0;
}

.sr-nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.sr-nav-links a {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    min-width: 150px;
}

.sr-reverse-link {
    background: #28a745;
    color: white;
}

.sr-reverse-link:hover {
    background: #1e7e34;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.sr-from-link {
    background: #007cba;
    color: white;
}

.sr-from-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.sr-main-link {
    background: #6c757d;
    color: white;
}

.sr-main-link:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.sr-back-link {
    text-align: center;
    margin: 20px 0;
}

.sr-back-link a {
    display: inline-block;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.sr-back-link a:hover {
    background: #545b62;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsiivinen suunnittelu - KORJATTU */
@media (max-width: 768px) {
    .sr-container {
        padding: 15px;
    }
    
    .sr-form-row {
        flex-direction: column;
    }
    
    .sr-field {
        min-width: 100%;
    }
    
    .sr-nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .sr-nav-links a {
        width: 80%;
        text-align: center;
    }
    
    .sr-info-grid {
        grid-template-columns: 1fr;
    }
    
    .sr-route-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sr-municipality-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* Yhteensopivuus muiden moduulien kanssa */
.sr-module .sr-info-item {
    border-left-color: #3498db;
}

.sr-module .sr-info-value {
    color: #3498db;
}