/**
 * Single Package Overview CSS
 * 
 * @package Tourify
 * @subpackage Tourify/template-parts/single-page/package-init/css
 * @since 1.0.0
 */

/* =========================================================
   STICKY TAB NAVIGATION & WRAPPER
   ========================================================= */

:root {
    --cb-sticky-top-offset: 85px;
}

body.admin-bar {
    --cb-sticky-top-offset: 117px;
}

/* Wrapper container */
.package-details-nav-sticky-wrap {
    position: relative;
    z-index: 35;
    margin: 20px 0 28px 0;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .package-details-nav-sticky-wrap {
        position: -webkit-sticky;
        position: sticky;
        top: var(--cb-sticky-top-offset, 85px);
        margin: 18px 0 34px 0;
        padding: 6px 0;
        pointer-events: none; /* Allows clicks outside the pill bar to reach content underneath */
    }

    .package-details-nav-sticky-wrap .package-details-navigation {
        pointer-events: auto; /* Re-enable clicks on the navigation tabs */
    }
}

.package-details-navigation {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 5px;
    margin: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

/* Floating / Stuck state shadow enhancement on desktop */
@media (min-width: 1024px) {
    .package-details-nav-sticky-wrap.is-stuck .package-details-navigation {
        background-color: rgba(255, 255, 255, 0.98);
        border-color: #cbd5e1;
        box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 1023px) {
    .package-details-nav-sticky-wrap {
        position: relative;
        top: auto;
        margin: 20px 0 28px 0;
    }

    .package-details-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 100%;
        padding: 6px;
        overflow: visible;
        white-space: normal;
        border-radius: 16px;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }

    .package-details-tab {
        justify-content: flex-start;
        text-align: left;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 10px;
    }
}

@media (max-width: 500px) {
    .package-details-nav-sticky-wrap {
        margin: 15px 0 24px;
    }

    .package-details-tab {
        gap: 6px;
        padding: 9px 8px;
        font-size: 12px;
    }
}

/* Hide navigation scrollbars entirely */
.package-details-navigation::-webkit-scrollbar {
    display: none;
}

.package-details-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: #0c4a85;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: 26px;
    transition: all 0.22s ease-in-out;
    user-select: none;
    outline: none;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .package-details-tab {
        gap: 6px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (min-width: 1280px) {
    .package-details-tab {
        gap: 8px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

.package-details-tab:not(.active):hover {
    background-color: #f1f5f9;
    color: #0284c7;
}

.package-details-tab:focus-visible {
    box-shadow: 0 0 0 2px #0284c7;
}

.package-details-tab.active {
    background-color: #005fa3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 95, 163, 0.28);
}

.package-details-tab .dashicons,
.package-details-tab i {
    font-size: 15px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.package-details-tab:hover .dashicons,
.package-details-tab:hover i {
    transform: scale(1.12);
}

@media (min-width: 768px) {
    .package-details-tab .dashicons,
    .package-details-tab i {
        font-size: 16px;
        width: 18px;
        height: 18px;
    }
}


/* SECTION : OVERVIEW */
.sub-title {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #037E95;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .sub-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

.title {
    background-image: linear-gradient(to right, #124B8C, #0FA3C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    font-size: clamp(22px, 3.5vw, 32px);
    margin-bottom: 18px;
    line-height: 1.25;
}



.package-overview-content {
    font-size: 15px;
    line-height: 1.7;
    color: #7789a3;
}

@media (min-width: 768px) {
    .package-overview-content {
        font-size: 17px;
        line-height: 1.75;
    }
}

.package-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #f1f5f9;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    gap: 16px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    position: relative;
}

.overview-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.overview-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #F9A61D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.overview-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-text strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 600;
}

.overview-text span {
    font-size: 15px;
    font-weight: 700;
    color: #124b8c;
}

.overview-text .package-badge {
    display: inline-block;
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.overview-text .package-badge:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}






/* Tablet Optimization Layout (2 Columns x 2 Rows) */
@media (max-width: 1023px) {
    .package-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Safely clear desktop vertical grid line dividers on tablet layout shifts */
    .overview-item::after {
        display: none;
    }
}

/* Smartphone Portrait Screen Optimization (1 Stacked Grid Column) */
@media (max-width: 640px) {
    .package-overview {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .overview-item {
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 16px;
    }

    .overview-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}