/* Digicells Flight Booking — Travel Packages carousel
   Self-contained styles, namespaced under .dcfb-packages-section,
   cannot affect any other part of the plugin's front end. */

.dcfb-packages-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: inherit;
}

.dcfb-packages-title {
    text-align: center;
    font-size: 1.75em;
    font-weight: 700;
    margin: 0 0 28px;
    color: #1a1a2e;
}

.dcfb-packages-empty {
    text-align: center;
    color: #888;
}

.dcfb-packages-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dcfb-packages-viewport {
    flex: 1;
    overflow: hidden;
}

.dcfb-packages-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    will-change: transform;
}

.dcfb-package-card {
    /* width is set at runtime by packages.js so exactly 3 (desktop) /
       2 (tablet) / 1 (mobile) cards are visible in the viewport. */
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.dcfb-package-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.dcfb-package-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}
.dcfb-package-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dcfb-package-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9bfc7;
    background: linear-gradient(135deg, #f3f4f6 0%, #e9ebee 100%);
}

.dcfb-package-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dcfb-package-title {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
    line-height: 1.3;
}

.dcfb-package-desc {
    font-size: 0.88em;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.dcfb-package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.dcfb-package-price {
    font-size: 1em;
    font-weight: 700;
    color: #0066cc;
}

.dcfb-package-plus {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}
.dcfb-package-plus:hover {
    background: #0066cc;
    transform: scale(1.08);
}

.dcfb-package-arrow {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 3;
}
.dcfb-package-arrow:hover {
    background: #222;
    transform: scale(1.06);
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
    .dcfb-packages-title { font-size: 1.55em; }
}

/* ---------- Mobile: switch to a stacked list of rows ---------- */

.dcfb-packages-mobile-list {
    display: none; /* shown only at <=600px below */
    flex-direction: column;
    gap: 12px;
}

.dcfb-package-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dcfb-package-row-thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
.dcfb-package-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dcfb-package-row-thumb .dcfb-package-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9bfc7;
    background: linear-gradient(135deg, #f3f4f6 0%, #e9ebee 100%);
}

.dcfb-package-row-body {
    flex: 1;
    min-width: 0;
}

.dcfb-package-row-title {
    font-size: 0.92em;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.dcfb-package-row-desc {
    font-size: 0.78em;
    color: #6b7280;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcfb-package-row-price {
    display: block;
    font-size: 0.82em;
    font-weight: 700;
    color: #0066cc;
}

.dcfb-package-row-plus {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    align-self: center;
}

@media (max-width: 600px) {
    .dcfb-packages-desktop-only { display: none; }
    .dcfb-packages-mobile-list { display: flex; }
}

/* Mobile */
@media (max-width: 600px) {
    .dcfb-packages-section { padding: 28px 14px; }
    .dcfb-packages-title { font-size: 1.4em; margin-bottom: 18px; }
    .dcfb-package-title { font-size: 1em; }
    .dcfb-package-arrow { width: 32px; height: 32px; font-size: 16px; }
    .dcfb-package-plus { width: 32px; height: 32px; }
}
