

cp-nearby-ferratas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 38px;
}

.detail-nearby-ferrata-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s ease;
}


.detail-nearby-ferrata-card:not(.nearby-card-country):hover .nearby-title {
    color: var(--btn-hover, #99ad18);
}


.nearby-card-country {
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.country-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.country-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.country-overlay {
    position: absolute;
    inset: 0;
   
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
}

.nearby-card-country:hover .country-bg-wrapper img {
    transform: scale(1.05);
}

.country-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 20px;
    color: #ffffff;
}

.country-content svg {
    margin-bottom: auto;
}

.country-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.country-content p {
    margin: 0 0 16px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
}

.country-link-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.nearby-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.nearby-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.nearby-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--text-main, #1a1a1a);
    transition: transform 0.2s, color 0.2s;
}

.nearby-save-btn:hover {
    transform: scale(1.1);
    color: #e53935;
}

.nearby-save-btn svg {
    width: 16px;
    height: 16px;
}


.nearby-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nearby-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main, #1a1a1a);
    line-height: 1.3;
   
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.nearby-region {
    font-size: 0.85rem;
    color: var(--text-muted, #5e5e5e);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.nearby-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #5e5e5e);
    margin-top: 4px;
}

.n-stat-dot {
    font-size: 1rem;
    line-height: 0.5;
}

.n-stat-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-main, #1a1a1a);
}

.n-stat-diff {
    display: flex;
    align-items: center;
    gap: 4px;
}


.diff-square {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}




@media (max-width: 900px) {
    cp-nearby-ferratas {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}


@media (max-width: 600px) {
    cp-nearby-ferratas {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        
       
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
        gap: 12px;
    }
    
    cp-nearby-ferratas::-webkit-scrollbar {
        display: none;
    }

    .detail-nearby-ferrata-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
}