/**
 * Home Experiences Bento Grid
 * Feature: home-activities-integration
 *
 * Desktop: Bento Grid layout (2fr 1fr 1fr)
 * Mobile: Horizontal scroll snap carousel
 */

/* Section Container */
.home-experiences {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.home-experiences__header {
    text-align: center;
    margin-bottom: 2rem;
}

.home-experiences__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.home-experiences__subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Bento Grid - Desktop */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Bento Card */
.bento-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.bento-card:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Main Card (spans 2 rows) */
.bento-card--main {
    grid-row: span 2;
}

/* Card Image */
.bento-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.bento-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-card__image {
    transform: scale(1.05);
}

.bento-card--main .bento-card__image {
    height: 280px;
}

/* Badge */
.bento-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ffc107;
    color: #1a1a2e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.bento-card__badge--free {
    background: #28a745;
    color: white;
}

/* Card Content */
.bento-card__content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-card__destination {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.bento-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-card--main .bento-card__title {
    font-size: 1.25rem;
    -webkit-line-clamp: 3;
}

.bento-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.bento-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bento-card__description {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-card__price {
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

/* CTA Section */
.home-experiences__cta {
    text-align: center;
    margin-top: 2rem;
}

.home-experiences__cta-btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-experiences__cta-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile: Horizontal Scroll Carousel */
@media (max-width: 767px) {
    .home-experiences {
        padding: 2.5rem 0;
    }

    .home-experiences__header {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .home-experiences__title {
        font-size: 1.4rem;
    }

    .home-experiences__subtitle {
        font-size: 0.9rem;
    }

    .bento-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        padding: 0 1rem;
    }

    .bento-grid::-webkit-scrollbar {
        display: none;
    }

    .bento-card {
        flex: 0 0 85vw;
        max-width: 320px;
        scroll-snap-align: center;
    }

    .bento-card--main {
        grid-row: auto;
    }

    .bento-card__image,
    .bento-card--main .bento-card__image {
        height: 180px;
    }

    .bento-card__title,
    .bento-card--main .bento-card__title {
        font-size: 1rem;
    }

    .home-experiences__cta {
        padding: 0 1rem;
    }

    .home-experiences__cta-btn {
        display: block;
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .bento-card--main {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-card--main .bento-card__image {
        height: 220px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .home-experiences {
        padding: 5rem 0;
    }

    .home-experiences__title {
        font-size: 2rem;
    }
}
