/* ==========================================================================
   GoTo Venue Search - Category Carousels + Featured Location
   ========================================================================== */

.gvs-categories {
    margin-top: 64px;
}

.gvs-category-section {
    padding-top: 40px;
    border-top: 1px solid #e2e5e9;
    margin-bottom: 48px;
}

.gvs-category-section:first-child {
    border-top: none;
    padding-top: 0;
}

/* ---------- Header: title + "Se alle" link ---------- */

.gvs-category-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.gvs-category-section__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #151a1f !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
}

.gvs-category-section__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px !important;
    font-weight: 500;
    color: #2563eb !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.gvs-category-section__link:hover {
    color: #1d4ed8 !important;
}

.gvs-category-section__link svg {
    transition: transform 0.15s ease;
}

.gvs-category-section__link:hover svg {
    transform: translateX(3px);
}

/* ---------- Carousel wrapper + arrows ---------- */

.gvs-carousel-wrapper {
    position: relative;
    /* Bleed right to viewport edge */
    margin-right: calc(-50vw + 50%);
}

.gvs-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e5e9;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #151a1f;
    padding: 0;
    transition: box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.gvs-carousel-arrow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gvs-carousel-arrow--prev {
    left: -18px;
}

.gvs-carousel-arrow--next {
    right: max(16px, calc((100vw - 1400px) / 2 + 16px));
}

.gvs-carousel-arrow--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------- Horizontal scroll container ---------- */

.gvs-category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    /* Right padding so last card peeks off edge */
    padding-right: 40px;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gvs-category-scroll::-webkit-scrollbar {
    display: none;
}

/* Cards inside carousel */
.gvs-category-scroll .gvs-venue-card {
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gvs-category-scroll .gvs-venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gvs-category-scroll .gvs-venue-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.gvs-category-scroll .gvs-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #151a1f;
}

.gvs-category-scroll .gvs-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.gvs-category-scroll .gvs-venue-card:hover .gvs-card-image img {
    transform: scale(1.05);
}

.gvs-category-scroll .gvs-card-content {
    padding: 10px 14px 12px;
}

.gvs-category-scroll .gvs-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 4px !important;
    color: #151a1f !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.gvs-category-scroll .gvs-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.gvs-category-scroll .gvs-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.gvs-category-scroll .gvs-card-detail__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #6b7280;
    opacity: 0.7;
}

.gvs-category-scroll .gvs-venue-card__link:focus-visible {
    outline: 3px solid #FF4455;
    outline-offset: 2px;
    border-radius: 12px;
}

/* ==========================================================================
   Featured Location Grid — 3 equal cards
   ========================================================================== */

.gvs-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gvs-featured-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gvs-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gvs-featured-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.gvs-featured-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #151a1f;
}

.gvs-featured-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.gvs-featured-card:hover .gvs-featured-card__image img {
    transform: scale(1.05);
}

.gvs-featured-card__content {
    padding: 10px 14px 12px;
}

.gvs-featured-card__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 4px !important;
    color: #151a1f !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gvs-featured-card .gvs-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.gvs-featured-card .gvs-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.gvs-featured-card .gvs-card-detail__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #6b7280;
    opacity: 0.7;
}

.gvs-featured-card__link:focus-visible {
    outline: 3px solid #FF4455;
    outline-offset: 2px;
    border-radius: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
    .gvs-category-scroll {
        padding-right: 32px;
    }

    .gvs-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gvs-featured-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .gvs-categories {
        margin-top: 48px;
    }

    .gvs-category-section {
        padding-top: 28px;
        margin-bottom: 36px;
    }

    .gvs-category-section__title {
        font-size: 19px !important;
    }

    /* Reset bleed on mobile — wrapper stays within content */
    .gvs-carousel-wrapper {
        margin-right: -20px;
    }

    .gvs-category-scroll {
        padding-right: 20px;
    }

    /* Hide arrows on mobile — touch scroll */
    .gvs-carousel-arrow {
        display: none;
    }

    .gvs-category-scroll .gvs-venue-card {
        min-width: 240px;
    }

    .gvs-category-scroll .gvs-card-image {
        height: 160px;
    }

    /* Featured grid: stack vertically */
    .gvs-featured-grid {
        grid-template-columns: 1fr;
    }

    .gvs-featured-card:last-child {
        grid-column: auto;
    }

    .gvs-featured-card__image {
        height: 180px;
    }
}
