/* =========================
   PACKAGE VIEW PAGE
   Depends on: style.css (tokens + base classes)
========================= */

/*  Wrapper ─ */
.pkg-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

/*  Hero ─ */
.pkg-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-heading) 100%);
    color: var(--color-white);
    padding: 3rem 0 0;
    position: relative;
    overflow: hidden;
}

/* subtle dot texture */
.pkg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pkg-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pkg-topper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-navy-border);
    margin-bottom: 0.75rem;
}

.pkg-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.pkg-hero__subtitle {
    font-size: 1rem;
    color: var(--color-navy-border);
    line-height: 1.65;
    margin: 0 0 2rem;
    max-width: 500px;
}

.pkg-hero__meta {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pkg-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pkg-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-navy-border);
}

.pkg-meta-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.pkg-meta-id {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy-light);
}

/* Hero actions — reuse .button & .button-outline but override colours for dark bg */
.pkg-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pkg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);            /* brand orange #ff6a3e */
    color: var(--color-white) !important;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(255, 106, 62, 0.4);
    white-space: nowrap;
}

.pkg-btn-primary:hover {
    background: #e85c2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 106, 62, 0.5);
    color: var(--color-white) !important;
    text-decoration: none;
}

.pkg-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pkg-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white) !important;
    text-decoration: none;
}

/* Hero image placeholder */
.pkg-hero__image-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-hero__image-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-hero__image-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /* change this number to move crop */
    object-position: center 70%;

    display: block;
}

.pkg-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

.pkg-image-placeholder::before {
    content: '🏖';
    font-size: 3.5rem;
    opacity: 0.5;
}

/* Wave */
.pkg-hero__wave {
    display: block;
    width: 100%;
    height: 55px;
    margin-bottom: -2px;
}

/*  Quick-facts bar ─ */
.pkg-facts {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pkg-facts__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    overflow-x: auto;
}

.pkg-fact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem 1.1rem 0;
    flex: 1;
    min-width: 155px;
    border-right: 1px solid var(--color-border-light);
}

.pkg-fact:last-child { border-right: none; }

.pkg-fact__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: var(--color-navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.pkg-fact__label {
    font-size: 0.72rem;
    color: var(--color-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pkg-fact__value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
}

/*  Body layout ─ */
.pkg-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.pkg-main { display: flex; flex-direction: column; gap: 1.5rem; }
.pkg-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1.5rem; }

/*  Content cards (reuses shadow tokens)  */
.pkg-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.pkg-card__heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--color-border-light);
}

.pkg-card__icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-navy-light);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.pkg-card__body {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/*  Item list (flights / hotels / extras) ─ */
.pkg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pkg-list__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s;
}

.pkg-list__item:hover {
    background: var(--color-navy-selected);
    border-color: var(--color-navy-border);
}

.pkg-list__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: var(--color-navy-light);
    color: var(--color-navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pkg-list__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pkg-list__name {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.pkg-list__detail {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.pkg-list__price {
    font-weight: 700;
    color: var(--color-navy-mid);
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: right;
}

.pkg-list__price small {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.7rem;
}

.pkg-empty {
    padding: 1.5rem;
    text-align: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    color: var(--color-muted);
    font-size: 0.88rem;
}

/*  Booking sidebar box ─ */
.pkg-book-box {
    background: var(--color-white);
    border: 2px solid var(--color-navy-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card-lg);
}

.pkg-book-box__label {
    font-size: 0.7rem;
    color: var(--color-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pkg-book-box__price {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin: 0.2rem 0 0.15rem;
}

.pkg-book-box__note {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.pkg-book-box__cta {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.pkg-book-box__divider {
    height: 1px;
    background: var(--color-border);
    margin: 1.25rem 0;
}

.pkg-book-box__back {
    display: block;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: 0.5rem;
}

.pkg-book-box__back:hover {
    color: var(--color-navy-mid);
    text-decoration: underline;
}

.pkg-book-box__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pkg-book-box__perks li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--color-text);
}

.pkg-book-box__perks li::before {
    content: '✓';
    color: var(--color-success-text);
    font-weight: 800;
    flex-shrink: 0;
}

/*  CTA strip ─ */
.pkg-cta-strip {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-heading) 100%);
    color: var(--color-white);
    margin-top: 0;
}

.pkg-cta-strip__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.pkg-cta-strip h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--color-white);
}

.pkg-cta-strip p {
    color: var(--color-navy-border);
    margin: 0;
    font-size: 0.95rem;
}

/*  Responsive  */
@media (max-width: 900px) {
    .pkg-hero__inner {
        grid-template-columns: 1fr;
    }
    .pkg-hero__image-card {
        display: none;
    }
    .pkg-body {
        grid-template-columns: 1fr;
    }
    .pkg-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .pkg-hero__inner {
        padding: 0 1rem 2.5rem;
    }
    .pkg-body {
        padding: 1.5rem 1rem;
    }
    .pkg-facts__inner {
        padding: 0 1rem;
    }
    .pkg-cta-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1rem;
    }
}
