/* DAPPER FLEX — Destination Carousel CSS */

.dapper-flex-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Row: parent col + swiper-outer side by side */
.dapper-flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Parent fixed column */
.dapper-flex-parent-col {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    background: #1a3a4a;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}
.dapper-flex-parent-col.dapper-flex-solid-bg    { background: #1a3a4a; }
.dapper-flex-parent-col.dapper-flex-gradient-bg { background: linear-gradient(135deg, #1a3a4a, #2d6a8a); }

/* Swiper outer wrapper — holds Swiper plus arrows positioned relative to it */
.dapper-flex-swiper-outer {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

.dapper-flex-global-mode .dapper-flex-swiper-outer { flex: 1 1 100%; }

.dapper-flex-swiper {
    width: 100%;
    overflow: hidden; /* Swiper handles its own clipping */
}

/* Each Swiper slide */
.swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* Child card fills its slide */
.dapper-flex-card {
    position: relative;
    height: 260px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #222;
    box-sizing: border-box;
    display: block;
}

/* Images */
.dapper-flex-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    display: block;
}

.dapper-flex-parent-col:hover .dapper-flex-img { transform: scale(1.06); }
.dapper-flex-card:hover       .dapper-flex-img { transform: scale(1.08); }

/* Overlay */
.dapper-flex-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.72));
    z-index: 1;
    pointer-events: none;
    transition: background 300ms ease;
}

/* Card content layer */
.dapper-flex-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 14px;
    box-sizing: border-box;
}

.dapper-flex-pos-bottom-left   { justify-content: flex-end;   align-items: flex-start; }
.dapper-flex-pos-bottom-center { justify-content: flex-end;   align-items: center; text-align: center; }
.dapper-flex-pos-center        { justify-content: center;     align-items: center; text-align: center; }
.dapper-flex-pos-top-left      { justify-content: flex-start; align-items: flex-start; }

/* Typography */
.dapper-flex-title {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.dapper-flex-title a { color: inherit; text-decoration: none; }

.dapper-flex-subheader,
.dapper-flex-subheader a {
    display: inline-block;
    font-size: 11px;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-bottom: 3px;
}
.dapper-flex-subheader a:hover { color: #fff; }

.dapper-flex-parent-sublabel {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* Badge */
.dapper-flex-badge {
    position: absolute;
    z-index: 3;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
}
.dapper-flex-badge-top-right    { top: 10px;    right: 10px; }
.dapper-flex-badge-top-left     { top: 10px;    left: 10px; }
.dapper-flex-badge-bottom-right { bottom: 10px; right: 10px; }
.dapper-flex-badge-bottom-left  { bottom: 10px; left: 10px; }

/* Explore button */
.dapper-flex-explore-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
    align-self: flex-start;
}
.dapper-flex-explore-btn:hover { background: rgba(255,255,255,0.38); color: #fff; }

.dapper-flex-desc {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin: 4px 0 0;
    line-height: 1.4;
}
.dapper-flex-breadcrumb {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
    display: block;
}

.dapper-flex-card.dapper-flex-current { box-shadow: 0 0 0 3px #fff; }

.dapper-flex-no-results {
    padding: 24px;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* Arrows — positioned relative to .dapper-flex-swiper-outer */
.dapper-flex-prev,
.dapper-flex-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    z-index: 10;
    padding: 0;
}
.dapper-flex-prev { left: 8px; }
.dapper-flex-next { right: 8px; }
.dapper-flex-prev:hover,
.dapper-flex-next:hover { background: #f0f0f0; box-shadow: 0 3px 12px rgba(0,0,0,0.2); }
.dapper-flex-prev.swiper-button-disabled,
.dapper-flex-next.swiper-button-disabled { opacity: 0.3; cursor: not-allowed; }
.dapper-flex-prev svg,
.dapper-flex-next svg { display: block; fill: #000; width: 16px; height: 16px; }

/* Pagination dots overrides */
.dapper-flex-swiper .swiper-pagination {
    bottom: -28px !important;
    position: absolute;
}

/* Dot style variants */
.dapper-flex-dots-line .swiper-pagination-bullet {
    width: 22px !important;
    height: 3px !important;
    border-radius: 2px !important;
}
.dapper-flex-dots-line .swiper-pagination-bullet-active {
    width: 38px !important;
}
.dapper-flex-dots-square .swiper-pagination-bullet {
    border-radius: 2px !important;
}

/* Mobile stack */
.dapper-flex-mobile-header {
    display: none;
    position: relative;
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dapper-flex-card,
    .dapper-flex-parent-col { height: 220px; }
}

@media (max-width: 767px) {
    .dapper-flex-card,
    .dapper-flex-parent-col { height: 180px; }

    .dapper-flex-mobile-stack .dapper-flex-mobile-header { display: block; }
    .dapper-flex-mobile-stack .dapper-flex-parent-col    { display: none;  }

    .dapper-flex-prev { left: 4px; }
    .dapper-flex-next { right: 4px; }
}
