/* ===============================================================
   TeamVibe | Unified Experience Cards
   FOR: virtual.blade.php, unique.blade.php, recreational.blade.php
   Keep loaded AFTER home-platinum.css; featured.blade.php untouched.
   =============================================================== */

/* Section background and Dubai skyline same design as featured. */
.tv-unified-experiences.pl-tall-card-section {
    padding: 0 0 38px !important;
    background: #fffaf7;
    overflow: hidden;
}
.tv-unified-experiences .pl-featured-heading-bg {
    position: relative;
    min-height: 235px;
    padding: 24px 0 50px;
    background: url('/assets_frontend/images/featured-heading-bg.png') center top / cover no-repeat;
    box-sizing: border-box;
}
.tv-unified-experiences .pl-experience-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
}
.tv-unified-experiences .pl-featured-heading-copy { min-width: 0; }
.tv-unified-experiences .pl-featured-top-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    color: #fff; background: #ff812a;
    font-size: 10px; font-weight: 800; line-height: 1.1;
}
.tv-unified-experiences .pl-featured-heading-copy h2 {
    color: #142650; font-size: clamp(24px,2.2vw,33px) !important;
    line-height: 1.15; letter-spacing: -.035em;
    margin: 11px 0 6px !important; font-weight: 850;
}
.tv-unified-experiences .pl-featured-heading-copy p {
    color: #405065; font-size: 13px !important; line-height: 1.5;
    margin: 0 !important;
}
.tv-unified-experiences .pl-experience-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.tv-unified-experiences .pl-featured-see-all {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 36px; padding: 0 14px; border: 1px solid #f47720;
    border-radius: 30px; background: #fff; color: #ee641d;
    font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap;
}
.tv-unified-experiences .pl-featured-see-all:hover { background: #f47720; color: #fff; }

/* Carousel: old file gives 590px tall cards; explicitly reset it. */
.tv-unified-experiences .pl-featured-carousel-wrap {
    position: relative; width: 100%; margin-top: -12px; z-index: 2;
}
.tv-unified-experiences .pl-featured-carousel-wrap .pl-event-grid {
    display: flex !important;
    gap: 16px !important;
    align-items: stretch;
    padding: 0 1px 12px !important;
    margin: 0 !important;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none;
}
.tv-unified-experiences .pl-event-grid::-webkit-scrollbar { display: none; }
.tv-unified-experiences .pl-event-card.pl-featured-card {
    flex: 0 0 calc((100% - 48px) / 4) !important;
    min-width: 0; min-height: 0 !important; max-height: none !important;
    height: auto !important; margin: 0 !important; padding: 0 !important;
    align-self: stretch; display: flex !important; flex-direction: column;
    border: 1px solid #f5dfd1; border-radius: 15px;
    overflow: hidden; background: #fff;
    box-shadow: 0 8px 18px rgba(51, 34, 22, .09);
    scroll-snap-align: start;
}
.tv-unified-experiences .pl-featured-image-wrap {
    position: relative; flex: 0 0 auto; width: 100%;
    box-sizing: border-box; padding: 4px 4px 0;
}
.tv-unified-experiences .pl-featured-image-wrap .pl-event-image {
    display: block; width: 100%; height: 155px !important;
    min-height: 0 !important; flex: none !important;
    border-radius: 11px 11px 0 0; overflow: hidden;
}
.tv-unified-experiences .pl-featured-image-wrap .pl-event-image img {
    display: block; width: 100%; height: 100%;
    object-fit: cover !important; transition: transform .25s ease;
}
.tv-unified-experiences .pl-featured-card:hover .pl-event-image img { transform: scale(1.04); }
.tv-unified-experiences .pl-featured-card-badge {
    position: absolute; top: 13px; left: 13px; z-index: 5;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 30px; border: 0;
    color: #fff; background: #ff7423; font-size: 10px;
    font-weight: 800; line-height: 1; white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.tv-unified-experiences .pl-featured-card-badge.is-booked { background: #8e22e7; }
.tv-unified-experiences .pl-featured-card-badge.is-trending { background: #12b943; }
.tv-unified-experiences .pl-featured-card-badge.is-favorite { background: #2477ec; }
.tv-unified-experiences .pl-featured-card-badge i { color: #fff; font-size: 10px; }

/* Body spacing follows compact Top Team Building card. */
.tv-unified-experiences .pl-featured-card .pl-event-body {
    display: flex !important; flex-direction: column;
    flex: 1 1 auto !important; height: auto !important;
    min-height: 0 !important; gap: 0;
    padding: 10px 12px 12px !important;
}
.tv-unified-experiences .pl-featured-category {
    display: inline-flex; align-items: center; gap: 4px;
    margin: 0 0 5px; color: #465063; font-size: 9px;
    font-weight: 800; line-height: 1.2;
}
.tv-unified-experiences .pl-featured-category i { color: #f47720; font-size: 10px; }
.tv-unified-experiences .pl-featured-card h3 {
    margin: 0 0 5px !important; color: #142650;
    font-size: 15px !important; font-weight: 800; line-height: 1.2;
}
.tv-unified-experiences .pl-featured-card h3 a { color: inherit; text-decoration: none; }
.tv-unified-experiences .pl-featured-card .pl-event-description {
    margin: 0 0 9px !important; padding: 0 !important;
    min-height: 0 !important; max-height: none !important;
    color: #48556b; font-size: 11px !important; line-height: 1.4;
}
.tv-unified-experiences .pl-featured-card .pl-event-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: auto 0 8px !important; padding: 0 !important;
    min-height: 0 !important;
}
.tv-unified-experiences .pl-event-card-footer p { margin: 0; font-size: 11px !important; line-height: 1.2; }
.tv-unified-experiences .pl-event-card-footer p strong { color: #142650; font-size: 12px; font-weight: 800; }
.tv-unified-experiences .pl-event-card-footer p span { color: #657184; }
.tv-unified-experiences .pl-event-duration { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.tv-unified-experiences .pl-event-duration i { color: #f47720; font-size: 12px; }
.tv-unified-experiences .pl-featured-card .pl-event-capacity {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%; min-height: 0 !important; margin: 0 0 9px !important;
    padding: 6px 10px !important; border: 0; border-radius: 9px;
    background: #fff5ee; box-sizing: border-box;
}
.tv-unified-experiences .pl-event-capacity > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tv-unified-experiences .pl-event-capacity > span + span { border-left: 1px solid #efd9ca; padding-left: 12px; }
.tv-unified-experiences .pl-event-capacity small { color: #b18c7d; font-size: 8px !important; line-height: 1.1; }
.tv-unified-experiences .pl-event-capacity strong { color: #17233d; font-size: 10px !important; font-weight: 750; line-height: 1.2; }
.tv-unified-experiences .pl-featured-quote-wrap {
    display: flex; align-items: center; justify-content: center;
    margin: 0 0 9px !important; padding: 0 !important; min-height: 0 !important;
}
.tv-unified-experiences .pl-featured-quote-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; min-height: 28px; box-sizing: border-box;
    padding: 5px 12px; border: 1px solid #f47720;
    border-radius: 30px; background: #fff; color: #eb661c;
    font-size: 10px; font-weight: 800; line-height: 1.2; text-decoration: none;
}
.tv-unified-experiences .pl-featured-quote-btn:hover { color: #fff; background: #f47720; }
.tv-unified-experiences .pl-featured-card .pl-event-loved-by {
    display: flex; align-items: center; gap: 8px;
    margin: 0 !important; padding: 8px 0 0 !important;
    min-height: 0 !important; border-top: 1px solid #f4dfd1;
}
.tv-unified-experiences .pl-event-loved-by > span { flex-shrink: 0; color: #243049; font-size: 9px; white-space: nowrap; }
.tv-unified-experiences .pl-event-loved-logos {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.tv-unified-experiences .pl-event-loved-logos img {
    display: block; width: 100%; max-width: 60px; height: 20px;
    margin: 0 auto; object-fit: contain;
}

/* Recreational: a second row, no invented group discount. */
.tv-unified-recreational .tv-group-rate {
    display: flex; align-items: center; gap: 6px;
    margin: -2px 0 7px; color: #7a6270;
    font-size: 10px; line-height: 1.25;
}
.tv-unified-recreational .tv-group-rate i { color: #f47720; font-size: 11px; }
.tv-unified-recreational .tv-group-rate strong { color: #e66a20; font-weight: 800; }

/* Large side arrows, like your completed featured carousel. */
.tv-unified-experiences .pl-featured-side-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 8;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%; color: #fff;
    background: #f47720; box-shadow: 0 4px 12px rgba(225,95,21,.18);
    cursor: pointer;
}
.tv-unified-experiences .pl-featured-side-prev { left: -60px; }
.tv-unified-experiences .pl-featured-side-next { right: -60px; }
.tv-unified-experiences .pl-featured-side-arrow:hover { background: #d85c16; }
.tv-unified-experiences .pl-featured-side-arrow:disabled { opacity: .4; cursor: default; }
.tv-unified-experiences .pl-featured-side-arrow i { color: #fff; font-size: 15px; }

@media (max-width: 1450px) {
    .tv-unified-experiences .pl-featured-side-prev { left: -44px; }
    .tv-unified-experiences .pl-featured-side-next { right: -44px; }
}
@media (max-width: 1199px) {
    .tv-unified-experiences .pl-featured-heading-bg { min-height: 210px; }
    .tv-unified-experiences .pl-event-card.pl-featured-card { flex-basis: calc((100% - 32px) / 3) !important; }
    .tv-unified-experiences .pl-featured-side-prev { left: -15px; }
    .tv-unified-experiences .pl-featured-side-next { right: -15px; }
}
@media (max-width: 820px) {
    .tv-unified-experiences .pl-event-card.pl-featured-card { flex-basis: calc((100% - 16px) / 2) !important; }
    .tv-unified-experiences .pl-featured-heading-bg { background-size: cover; }
}
@media (max-width: 600px) {
    .tv-unified-experiences.pl-tall-card-section { padding-bottom: 26px !important; }
    .tv-unified-experiences .pl-featured-heading-bg { min-height: 180px; padding: 22px 0 28px; }
    .tv-unified-experiences .pl-experience-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tv-unified-experiences .pl-featured-heading-copy h2 { font-size: 25px !important; }
    .tv-unified-experiences .pl-featured-heading-copy p { font-size: 12px !important; }
    .tv-unified-experiences .pl-featured-carousel-wrap { margin-top: 5px; }
    .tv-unified-experiences .pl-event-card.pl-featured-card { flex-basis: min(84%, 300px) !important; }
    .tv-unified-experiences .pl-featured-side-arrow { width: 34px; height: 34px; }
    .tv-unified-experiences .pl-featured-side-prev { left: -7px; }
    .tv-unified-experiences .pl-featured-side-next { right: -7px; }
}
@media (prefers-reduced-motion: reduce) {
    .tv-unified-experiences .pl-event-grid { scroll-behavior: auto; }
}



/* ==========================================================
   TEAMVIBE - HEADING TEXT VISIBILITY FIX
   Virtual, Unique and Recreational
   ========================================================== */

/* Keep the same background dimensions */
#top-virtual .pl-featured-heading-bg,
#top-unique .pl-featured-heading-bg,
#top-recreational .pl-featured-heading-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Soft white overlay behind heading text */
#top-virtual .pl-featured-heading-bg::before,
#top-unique .pl-featured-heading-bg::before,
#top-recreational .pl-featured-heading-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(255, 250, 247, 0.97) 0%,
        rgba(255, 250, 247, 0.94) 23%,
        rgba(255, 250, 247, 0.82) 37%,
        rgba(255, 250, 247, 0.35) 58%,
        rgba(255, 250, 247, 0.02) 80%
    );
}

/* Keep heading content above the overlay */
#top-virtual .pl-featured-heading-bg .tb-container,
#top-unique .pl-featured-heading-bg .tb-container,
#top-recreational .pl-featured-heading-bg .tb-container {
    position: relative;
    z-index: 2;
}

/* All headings stay dark and readable */
#top-virtual .pl-featured-heading-copy h2,
#top-unique .pl-featured-heading-copy h2,
#top-recreational .pl-featured-heading-copy h2 {
    color: #11244a !important;
    font-weight: 850 !important;
    text-shadow: none !important;
}

/* Readable descriptions */
#top-virtual .pl-featured-heading-copy p,
#top-unique .pl-featured-heading-copy p,
#top-recreational .pl-featured-heading-copy p {
    color: black !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Keep the orange badge prominent */
#top-virtual .pl-featured-top-badge,
#top-unique .pl-featured-top-badge,
#top-recreational .pl-featured-top-badge {
    position: relative;
    z-index: 3;
}

/* Mobile: stronger background behind full-width text */
@media (max-width: 767px) {
    #top-virtual .pl-featured-heading-bg::before,
    #top-unique .pl-featured-heading-bg::before,
    #top-recreational .pl-featured-heading-bg::before {
        background: linear-gradient(
            90deg,
            rgba(255, 250, 247, 0.97) 0%,
            rgba(255, 250, 247, 0.90) 65%,
            rgba(255, 250, 247, 0.35) 100%
        );
    }
}
