/* Enhanced destination card styling - toned down version with faded images */
.destination-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    background: #fff;
    transition: all 0.4s ease;
    position: relative;
    border-bottom: none;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.destination-img-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.destination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
    opacity: 0.85;
}

.destination-card:hover .destination-img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
    opacity: 1;
}

.distance-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.destination-card:hover .distance-badge {
    background-color: var(--accent-color, #FFC107);
}

.destination-info {
    padding: 25px;
    position: relative;
}

.destination-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.4rem;
}

.activity-tags {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.destination-card:hover .activity-tag {
    background-color: #eee;
    transform: translateY(-2px);
}

/* Remove the time recommendation section with the redundant distance info */
.time-recommendation {
    display: none;
}

/* Responsive adjustments for destination cards */
@media (max-width: 768px) {
    .destination-img-container {
        height: 220px;
    }
    
    .destination-info {
        padding: 20px;
    }
    
    .destination-title {
        font-size: 1.2rem;
        flex-direction: column;
    }
}

/* Keep the original destination-card styles for backward compatibility */

/* New mosaic gallery styles */
.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    grid-gap: 10px;
    margin: 30px 0;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mosaic-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 10px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover .mosaic-caption {
    opacity: 1;
}

/* Define specific grid positions for feature photos */
.feature-item {
    grid-column: span 2;
    grid-row: span 2;
}

.wide-item {
    grid-column: span 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 150px);
    }
    
    .feature-item, .wide-item {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Enhanced Element Card Styling */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.element-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 5px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.element-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color, #FF6900), var(--primary-color, #FF6900));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.element-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--primary-color, #FF6900);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.element-card:hover:before {
    opacity: 0.03;
}

.element-card h4 {
    display: flex;
    align-items: center;
    color: var(--primary-color, #ff6a00cb);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.element-card h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color, #FF6900);
    transition: width 0.3s ease;
}

.element-card:hover h4:after {
    width: 80px;
}

.element-card h4 i {
    margin-right: 10px;
    font-size: 1.4rem;
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary-color, #ff6a00b7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.element-card:hover h4 i {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary-color, #FF6900);
    color: white;
}

.element-card strong {
    color: var(--primary-dark, #333);
    font-weight: 600;
}

.element-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.element-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.element-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Special styles for food cards */
.element-card.food-card h4 i {
    color: var(--accent-color, #FFC107);
    background: rgba(255, 193, 7, 0.1);
}

.element-card.food-card:hover h4 i {
    background: var(--accent-color, #FFC107);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elements-grid {
        grid-template-columns: 1fr;
    }
    
    .element-card {
        padding: 1.5rem;
    }
}

/* Define specific category colors */
.food-category .element-card {
    border-top-color: #e74c3c;
}

.transport-category .element-card {
    border-top-color: #3498db;
}

.practical-category .element-card {
    border-top-color: #2ecc71;
}

.adventure-category .element-card {
    border-top-color: #f39c12;
}