/* =========================
   BASE STYLES
========================= */
body {
    margin: 0;
    padding: 0;
    background: #ccc;
}

/* =========================
   PAGE WRAPPER
========================= */
.page-container {
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

/* =========================
   FLEX LAYOUT
========================= */
.layout-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT / RIGHT COLUMNS */
.left-side {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   BOX COMPONENT
========================= */
.box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    background: #fff;
    color: #19516B;
    text-decoration: none;
    border: 1px solid #19516B;
    transition: 0.3s;
}

.back-btn:hover {
    background: #19516B;
    color: #fff;
}

/* =========================
   TITLE STYLES
========================= */
.package-title {
    text-align: center;
    font-size: 2rem;
    margin: 25px 0;
    color: #222;
    text-transform: uppercase;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #222;
}

/* =========================
   HIGHLIGHT GRID
========================= */
.highlight-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 190px;
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}

.highlight-card:hover img {
    transform: scale(1.1);
}

.highlight-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* =========================
   DATE TABLE
========================= */
.date-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    background: #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.date-table th,
.date-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-family: 'Segoe UI', sans-serif;
}

.date-table th {
    font-size: 20px;
}

.date-table td {
    font-size: 16px;
}

/* TABLE HEADER COLORS */
thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.year-row td{
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding: 12px 15px;
    border-top: 2px solid #ddd;
}
/* =========================
   TABLE HEADER (AGENCY COLOR)
========================= */
th.th-1 { background: #9E1F25; }  /* SIT */
th.th-2 { background: #6B1E51; }  /* MTB */
th.th-3 { background: #1e68c4; }  /* JJ */
th.th-4 { background: #ff6a00; }  /* SUKA */

/* =========================
   BOOK BUTTON BASE
========================= */
.btn-book {
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    transition: 0.3s;
}

/* =========================
   BOOK BUTTON (AGENCY COLOR)
========================= */
.btn-1 { background: #9E1F25; }
.btn-2 { background: #6B1E51; }
.btn-3 { background: #1e68c4; }
.btn-4 { background: #ff6a00; }

/* hover effect */
.btn-book:hover {
    opacity: 0.85;
}

/* =========================
   TOUR INFO
========================= */
.tour-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-row p {
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    color: #444;
    background: #f9f9f9;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.view-link {
    color: #094bae;
    font-weight: 500;
    cursor: pointer;
}

.no-data{
    color: #888;
    font-style: italic;
    margin: 10px 0;
}

.unavailable-link{
    color: #999;
    font-style: italic;
    cursor: not-allowed;
}

.whatsapp-box{
    text-align:center;
}

.wa-text{
    color:#666;
    font-size:15px;
    line-height:1.6;
    margin-bottom:18px;
}

.wa-qr{
    width:180px;
    max-width:100%;
    border-radius:10px;
    padding:8px;
    background:#fff;
    border:1px solid #ddd;
    margin-bottom:20px;
}

.wa-btn{
    display:inline-block;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    padding:12px 22px;
    border-radius:30px;
    font-weight:600;
    transition:.3s;
}

.wa-btn:hover{
    background:#1EBE5D;
    transform:translateY(-2px);
}

/* =========================
   POPUP MODAL
========================= */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: #fff;
    width: 550px;
    max-width: 90%;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-content h3 {
    font-size: 25px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
}

/* =========================
   INCLUDE / EXCLUDE
========================= */
.include-box h4 {
    color: green;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.exclude-box h4 {
    color: red;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.exclude-box ul,
.sub-include ul {
    line-height: 1.5;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.sub-include {
    margin-top: 10px;
}

.sub-include h5 {
    margin-bottom: 5px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.highlight-word {
    font-weight: 700;
    color: #e67e22;
    font-size: 16px;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================
   RESPONSIVE (TABLET & MOBILE)
========================= */
@media (max-width: 768px) {

    .page-container {
        width: 95%;
    }

    .layout-wrapper {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .hero {
        height: 35vh;
    }

    .package-title {
        font-size: 1.5rem;
        margin: 15px 0;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .box {
        padding: 15px;
        margin-bottom: 15px;
    }

    .highlight-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .highlight-card {
        height: 140px;
    }

    .highlight-name {
        font-size: 12px;
        padding: 8px;
    }

    .date-table th,
    .date-table td {
        padding: 8px;
        font-size: 12px;
    }

    .btn-book {
        padding: 5px 10px;
        font-size: 12px;
    }

    .tour-row p {
        font-size: 13px;
        padding: 8px;
    }

    .popup-content {
        width: 95%;
        padding: 15px;
    }

    .back-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}