/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

.rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.ride-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ride-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ride-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ride-card-content {
    padding: 20px;
}

.ride-title {
    font-size: 18px;
    line-height: 1.3;
    padding-bottom: 0;
}

.ride-title a {
    color: #333;
    text-decoration: none;
}

.ride-title a:hover {
    color: #e74c3c;
}

.ride-country {
    margin-bottom: 10px;
}

.ride-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ride-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    background: #f8f8f8;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Statistika blokk */
.ride-stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 20px 0;
}

.ride-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.ride-stat-icon {
    font-size: 24px;
}

.ride-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.ride-stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ride-gpx-download {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.ride-gpx-download:hover {
    opacity: 0.7;
}

/* Kõrgusprofiil */
.ride-elevation-chart {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin: 20px 0;
}

/* Navigatsioon */
.ride-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.ride-nav-prev,
.ride-nav-next {
    flex: 1;
}

.ride-nav-next {
    text-align: right;
}

.ride-navigation a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.ride-navigation a:hover {
    background: #f8f8f8;
}

.ride-nav-arrow {
    font-size: 20px;
    color: #e74c3c;
}

.ride-nav-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.ride-nav-title {
    font-size: 15px;
    font-weight: 600;
}

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 1405px) {
  
}
 
/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 1100px) and (max-width: 1405px) {
 
}
 
/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
 
}
 
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {
 
}
 
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
 
}
 
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {
    img.alignright {
        display: block;
        float: none;
        margin: 0 0 1em 0;
    }
}