/* ==================================================
   FINAL RECOMMENDED SYSTEM
================================================== */

:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --text: #475569;
    --muted: #94a3b8;

    --bg: #f3f6fb;
    --card: #ffffff;
    --border: #e8eef5;

    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --shadow-sm: 0 6px 20px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

    --transition: .35s cubic-bezier(.2, .8, .2, 1);
}

/* ==================================================
   PAGE
================================================== */

.tour-detail-page {
    padding: 65px 0 90px;
    background: var(--bg);
}

/* ==================================================
   LAYOUT — Single column always
================================================== */

.tour-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

/* ==================================================
   MAIN CARD SYSTEM
================================================== */

.tour-top,
.tour-banner,
.tour-info-grid,
.tour-section-box,
.sidebar-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ==================================================
   TOP SECTION
================================================== */

.tour-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 28px;
}

.tour-title {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin: 0;
}

/* ==================================================
   META
================================================== */

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tour-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.tour-meta i {
    color: #f59e0b;
}

/* ==================================================
   PRICE BOX
================================================== */

.tour-price-box {
    min-width: 160px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.tour-price-box span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.tour-price-box h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: #dc2626;
}

.tour-price-box small {
    color: #64748b;
}

/* ==================================================
   BANNER
================================================== */

.tour-banner {
    overflow: hidden;
    position: relative;
}

.tour-banner img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.tour-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .18), transparent 45%);
}

/* ==================================================
   SECTION
================================================== */

.tour-section-box {
    padding: 36px;
}

.tour-section-box h2,
.small-title {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--dark);
}

/* ==================================================
   TOUR DETAILS — 2 col desktop, 1 col mobile
================================================== */

.tour-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-col {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.detail-col .detail-badge {
    margin-bottom: 16px;
    display: inline-flex;
}

/* ==================================================
   TYPOGRAPHY
================================================== */

.overview-content p,
.detail-list li {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--text);
}

.detail-list {
    padding-left: 20px;
}

/* ==================================================
   ITINERARY IMAGE — tengah, between day items
================================================== */

.itinerary-image-item {
    border: none !important;
    background: transparent !important;
    padding: 8px 0 !important;
    display: flex;
    justify-content: center;
}

.itinerary-image-wrap {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.itinerary-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================================================
   INFO GRID
================================================== */

.tour-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px;
}

.info-box {
    padding: 24px 18px;
    text-align: center;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

/* ==================================================
   TRANSPORT
================================================== */

.transport-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.transport-card-small {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    overflow: hidden;
    transition: .35s cubic-bezier(.2, .8, .2, 1);
}

.transport-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.transport-image-small {
    overflow: hidden;
}

.transport-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.transport-card-small:hover img {
    transform: scale(1.05);
}

.transport-content-small {
    padding: 18px;
}

.transport-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 14px;
}

.transport-content-small h4 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.transport-content-small p {
    font-size: 14px;
    line-height: 1.75;
    color: #64748b;
    margin: 0;
}

/* ==================================================
   SIDEBAR / HOTEL (merged into main flow)
================================================== */

.sidebar-box {
    padding: 36px;
}

.sidebar-box h3 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

/* ==================================================
   GALLERY
================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f1f5f9;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .16), transparent 60%);
    opacity: 0;
    transition: .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ==================================================
   TABLE
================================================== */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 700;
    border: none;
}

.table tbody td {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* ==================================================
   DETAIL LIST
================================================== */

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list > li {
    padding: 24px;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    background: #fff;
}

.detail-list > li:not(:last-child) {
    margin-bottom: 18px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.include-badge {
    background: #dcfce7;
    color: #166534;
}

.exclude-badge {
    background: #fee2e2;
    color: #991b1b;
}

.sub-detail-list {
    margin-top: 18px;
    padding-left: 0;
    list-style: none;
}

.sub-detail-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.2;
    color: #475569;
}

.sub-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
}

/* ==================================================
   ADDON BOX
================================================== */

.addon-box {
    margin-top: 12px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f2ec;
    border: 1px solid #e8e2d8;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.addon-item:not(:last-child) {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.addon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111827;
    flex-shrink: 0;
}

.addon-text {
    flex: 1;
}

/* ==================================================
   CTA
================================================== */

.tour-cta {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 42px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0f172a, #1e40af);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-lg);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: 20px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 14px 30px rgba(37, 211, 102, .28);
}

.cta-button:hover {
    transform: translateY(-4px);
}

/* ==================================================
   TABLET  (≤ 991px)
================================================== */

@media (max-width: 991px) {

    .tour-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tour-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .transport-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==================================================
   MOBILE  (≤ 767px)
================================================== */

@media (max-width: 767px) {

    .tour-detail-page {
        padding: 70px 0 60px;
    }

    .tour-layout {
        gap: 16px;
    }

    .tour-top {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .tour-top .tour-price-box {
        text-align: left;
    }

    .tour-section-box,
    .sidebar-box {
        padding: 20px;
        border-radius: 20px;
    }

    .tour-title {
        font-size: 22px;
    }

    .small-title {
        font-size: 18px;
    }

    .tour-banner img {
        aspect-ratio: 1/1;
    }

    /* Tour Details — 1 kolom di mobile */
    .tour-details-grid {
        grid-template-columns: 1fr;
    }

    /* Transport */
    .transport-grid-small {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .transport-image-small img {
        height: 200px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        border-radius: 14px;
    }

    /* Itinerary image */
    .itinerary-image-wrap {
        max-width: 100%;
    }

    /* Table */
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 14px;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--dark);
    }

    /* Addon */
    .addon-item {
        padding: 16px 18px;
        font-size: 14px;
    }

    /* CTA */
    .tour-cta {
        padding: 24px 20px;
        margin-top: 30px;
    }

    .cta-button {
        width: 100%;
    }

    .detail-list > li {
        padding: 18px;
    }

}
