.trending-destinations {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.destinations-grid {
    display: grid;
    /* Bento layout: 6 equal columns to allow 2 on top (3+3) and 3 on bottom (2+2+2) */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: stretch;
}

.destination-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.destination-link {
    display: block;
    text-decoration: none;
    color: var(--e-global-color-aa5884c);
}

.destination-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.destination-image::after {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    /* darker gradient to improve readability; sits under the overlay */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Bento positioning: assume .destination-card are direct children of .destinations-grid
   We target the first 5 items: top row = items 1-2 (span 3 columns each), bottom row = items 3-5 (span 2 columns each) */
.destinations-grid > .destination-card:nth-child(1),
.destinations-grid > .destination-card:nth-child(2) {
    grid-column: span 3; /* each takes half of the 6-column row */
}

.destinations-grid > .destination-card:nth-child(3),
.destinations-grid > .destination-card:nth-child(4),
.destinations-grid > .destination-card:nth-child(5) {
    grid-column: span 2; /* three items across the second row */
}

/* If there are more items, let them flow naturally as full-width rows of 6 columns */
.destinations-grid > .destination-card:nth-child(n+6) {
    grid-column: span 6;
}

/* Responsive fallbacks */


.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
    color: var(--e-global-color-aa5884c);
    z-index: 2; /* ensure overlay sits above the image pseudo-element */
}

.destination-info h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.destination-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--colore-grigio-chiaro);
}

.destination-card:hover .destination-arrow {
    transform: translateX(5px);
}

.min-price {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    opacity: 0.9;
    display: block;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    margin-top: 5px;
    width: 100%;
}

.no-properties {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    opacity: 0.8;
    display: block;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    margin-top: 5px;
    width: 100%;
    font-style: italic;
}

/* Ensure the textual content sits above overlays */
.destination-info,
.destination-info * {
    position: relative;
    z-index: 3;
}