/* packages.css — Package Detail Page Styles */

/* ── Hero ─────────────────────────────────────────── */
.pkg-hero {
    margin-top: var(--nav-height, 90px);
    height: 55vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.pkg-hero-inner {
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.pkg-hero-title {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;
}

/* ── Main Layout ──────────────────────────────────── */
.pkg-main {
    padding: 55px 0 75px;
    background: #f5f3ef;
}
.pkg-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: flex-start;
}

/* ── Body Sections ────────────────────────────────── */
.pkg-section {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 26px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.section-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 26px;
    background: #a7854f;
    color: #fff;
}
.section-hdr h2 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}
.section-hdr i {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.pkg-section-incl .section-hdr { background: #2d7a4f; }
.pkg-section-excl .section-hdr { background: #b94040; }
.section-content {
    padding: 22px 26px;
}

/* ── Paragraphs ───────────────────────────────────── */
.pkg-para {
    color: #444;
    line-height: 1.85;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* ── Day Blocks ───────────────────────────────────── */
.day-block {
    border-left: 4px solid #a7854f;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: #faf8f5;
    border-radius: 0 10px 10px 0;
}
.day-title {
    color: #a7854f;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ── Lists ────────────────────────────────────────── */
.pkg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pkg-list li {
    padding: 9px 0 9px 28px;
    border-bottom: 1px solid #f0ebe3;
    color: #444;
    font-size: 0.97rem;
    position: relative;
    line-height: 1.7;
}
.pkg-list li:last-child { border-bottom: none; }

.pkg-section-incl .pkg-list li::before {
    content: '✓';
    position: absolute; left: 0;
    color: #2d7a4f;
    font-weight: 700;
}
.pkg-section-excl .pkg-list li::before {
    content: '✗';
    position: absolute; left: 0;
    color: #b94040;
    font-weight: 700;
}
.pkg-section-body .pkg-list li::before {
    content: '›';
    position: absolute; left: 0;
    color: #a7854f;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Sidebar ──────────────────────────────────────── */
.pkg-sidebar {
    position: sticky;
    top: calc(var(--nav-height, 90px) + 20px);
}
.booking-box {
    background: #fff;
    border-radius: 14px;
    padding: 30px 26px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #a7854f;
}
.booking-box h3 {
    color: #a7854f;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.booking-box p {
    color: #777;
    font-size: 0.93rem;
    margin-bottom: 22px;
    line-height: 1.6;
}
.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    color: #fff;
    font-family: 'Lora', serif;
    min-height: 48px; /* touch target */
}
.book-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.book-btn:last-child { margin-bottom: 0; }
.btn-phone { background: #a7854f; }
.btn-email { background: #555; }
.btn-wa    { background: #25D366; }
.book-btn i { font-size: 1.2rem; flex-shrink: 0; }

/* ── Float Buttons ────────────────────────────────── */
.float-wa {
    position: fixed;
    left: 16px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    animation: bounce 2.5s infinite;
    transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.1); color: #fff; }

.float-top {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    background: #a7854f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.float-top.show { display: flex; }
.float-top:hover { background: #8c6d3d; transform: translateY(-3px); }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-12px); }
    60%       { transform: translateY(-6px); }
}

/* ════════════════════════════════════════════════ */
/*   RESPONSIVE                                     */
/* ════════════════════════════════════════════════ */

/* Tablet (≤960px) */
@media (max-width: 960px) {
    .pkg-layout {
        grid-template-columns: 1fr;
    }
    .pkg-sidebar {
        position: static;
        order: -1; /* booking box floats to top on mobile */
    }
    .booking-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: start;
    }
    .booking-box h3,
    .booking-box p {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    .book-btn { margin-bottom: 0; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .pkg-hero { height: 42vh; min-height: 260px; }
    .pkg-hero-inner { padding: 24px 20px; }
    .pkg-main { padding: 36px 0 55px; }
    .section-hdr { padding: 15px 18px; }
    .section-content { padding: 18px 16px; }
    .day-block { padding: 14px 14px; }
    /* Sidebar sticky offset accounts for 110px nav */
    .pkg-sidebar {
        position: static;
        order: -1;
    }
}

/* Small mobile (≤600px) */
@media (max-width: 600px) {
    .booking-box { grid-template-columns: 1fr; }
    .pkg-hero-title { font-size: clamp(1.2rem, 5vw, 1.7rem); }
}

/* Very small (≤480px) */
@media (max-width: 480px) {
    .float-wa { left: 12px; bottom: 18px; width: 50px; height: 50px; font-size: 1.6rem; }
    .float-top { right: 12px; bottom: 18px; width: 42px; height: 42px; font-size: 1.3rem; }
    .booking-box { padding: 22px 18px; }
    .book-btn { font-size: 0.93rem; padding: 13px 14px; }
}
