/*
Theme Name: TravelPro Agency
Theme URI: https://ElangDigital.web.id
Author: Maspenx
Description: Tema travel & tour SEO friendly dengan CPT Tour + Booking.
Version: 1.3
Text Domain: travelpro
*/

/* RESET & BASE */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #020617;
}

a {
    color: #0ea5e9;
    text-decoration: none;
}

a:hover {
    color: #0284c7;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.tp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111827;
    color: #ffffff;
    border-bottom: 1px solid rgba(15,23,42,0.8);
    backdrop-filter: blur(12px);
}

.tp-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
}

.tp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Default order (desktop): logo, nav, actions */
.tp-logo           { order: 1; }
.tp-nav            { order: 2; }
.tp-header-actions { order: 3; }

.tp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

.tp-logo span.icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

/* NAV DESKTOP */

.tp-nav {
    display: flex;
    align-items: center;
}

.tp-nav .tp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.tp-nav .tp-menu li a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
}

.tp-nav .tp-menu li a:hover {
    color: #0ea5e9;
}

/* HEADER ACTIONS: WA + HAMBURGER */

.tp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WHATSAPP BUTTON */

.tp-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #22c55e;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.tp-cta-whatsapp:hover {
    background: #16a34a;
}

/* HAMBURGER BUTTON */

.tp-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.tp-menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
}

/* NEWS TICKER */

.tp-newsticker {
    background: #f97316;
    color: #ffffff;
    font-size: 14px;
    overflow: hidden;
}

.tp-newsticker-track {
    overflow: hidden;
    width: 100%;
}

/* teks berjalan kiri -> kanan */
.tp-newsticker-marquee {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 16px;
    animation: tp-marquee-ltr 40s linear infinite;
}

.tp-ticker-item {
    display: inline-block;
    margin-right: 40px;
}

@keyframes tp-marquee-ltr {
    100% {
        transform: translateX(-100%);
    }
    0% {
        transform: translateX(100%);
    }
}

/* HERO HOME */

.tp-hero {
    padding: 60px 0 40px;
    background: radial-gradient(circle at top left, #0ea5e9 0, #0369a1 25%, #020617 60%);
    color: #ffffff;
}

.tp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

/* Hero text */

.tp-hero-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
}

.tp-hero-subtitle {
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 24px;
    color: #e5e7eb;
}

.tp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tp-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(15,23,42,0.25);
    border: 1px solid rgba(148,163,184,0.7);
}

.tp-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.tp-stat {
    font-size: 13px;
}

.tp-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* HERO SLIDER */

.tp-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.6);
    background: #020617;
}

.tp-hero-slider img {
    display: block;
    width: 100%;
    height: auto;
}

/* SEARCH CARD (CARI TOUR) */

.tp-search-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 18px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.6);
    color: #0f172a;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.tp-search-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tp-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tp-form-group label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.tp-input,
.tp-form-group select,
.tp-form-group input[type="text"],
.tp-form-group input[type="search"],
.tp-form-group input[type="month"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
    background: #f9fafb;
    appearance: none;
}

.tp-input:focus,
.tp-form-group select:focus,
.tp-form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14,165,233,0.35);
}

.tp-btn-primary {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 14px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.tp-btn-primary:hover {
    filter: brightness(0.95);
}

/* SECTIONS */

.section {
    padding: 50px 0;
    background: #f3f4f6;
}

.section-dark {
    background: #020617;
    color: #e5e7eb;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* TENTANG KAMI */

.tp-about-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    color: #e5e7eb;
}

/* MENGAPA MEMILIH KAMI */

.tp-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tp-reason-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.05);
    border: 1px solid #e5e7eb;
}

.tp-reason-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

/* TOUR CARDS */

.tp-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tp-tour-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    border: 1px solid #e5e7eb;
}

.tp-tour-thumb {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.tp-tour-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.tp-tour-card:hover .tp-tour-thumb img {
    transform: scale(1.04);
}

.tp-tour-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(15,23,42,0.8);
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 999px;
}

.tp-tour-body {
    padding: 14px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-tour-title {
    font-size: 15px;
    font-weight: 700;
}

.tp-tour-meta {
    font-size: 13px;
    color: #6b7280;
}

.tp-tour-price {
    margin-top: 6px;
    font-weight: 800;
    color: #0ea5e9;
    font-size: 16px;
}

.tp-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 14px;
    border-top: 1px solid #e5e7eb;
}

.tp-btn-outline {
    border-radius: 999px;
    padding: 7px 14px;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    font-size: 13px;
    font-weight: 600;
}

.tp-btn-outline:hover {
    background: #0ea5e9;
    color: #ffffff;
}

/* TESTIMONIAL */

.tp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tp-testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    text-align: center; /* langsung di sini saja */
}

.tp-testimonial-name {
    font-weight: 700;
    margin-top: 8px;
    font-size: 14px;
}

/* wrapper gambar */
.tp-testimonial-avatar {
    width: 80px;          /* opsional */
    margin: 0 auto 12px;  /* center horizontal */
}

/* gambar bulat */
.tp-testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}



/* CTA */

.tp-cta {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
    border-radius: 18px;
    padding: 26px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tp-cta-title {
    font-size: 20px;
    font-weight: 800;
}

.tp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
}

.btn-secondary {
    background: #0f172a;
    color: #ffffff;
}

/* FOOTER */

.tp-footer {
    background: #020617;
    color: #9ca3af;
    padding: 26px 0;
    font-size: 13px;
}

.tp-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tp-footer-col-title {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 8px;
    font-size: 14px;
}

.tp-footer-bottom {
    border-top: 1px solid #111827;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* GENERIC SPACING */

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* RESPONSIVE */

@media (max-width: 960px) {
    .tp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tp-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tp-testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE HEADER ORDER: logo, actions (WA+hamburger), nav di bawah */

@media (max-width: 768px) {

    .tp-header-inner {
        flex-wrap: wrap;
    }

    .tp-logo           { order: 1; }
    .tp-header-actions { order: 2; }
    .tp-nav            { order: 3; width: 100%; }

    .tp-menu-toggle {
        display: block;
    }

    .tp-nav {
        margin-top: 8px;
        display: none;
    }

    .tp-nav.is-open {
        display: block;
    }

    .tp-nav .tp-menu {
        flex-direction: column;
        gap: 0;
    }

    .tp-nav .tp-menu li {
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .tp-nav .tp-menu li a {
        padding: 10px 0;
    }
}

@media (max-width: 640px) {
    .tp-tour-grid,
    .tp-testimonial-grid,
    .tp-reason-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tp-header-inner {
        gap: 8px;
    }
    .tp-search-box {
        max-width: 100%;
    }
}

/* layout dua kolom */
.single-tour-layout.tp-single-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tour-main-left {
    flex: 2;
}

.tour-main-right {
    flex: 1;
}

/* judul & hero */
.tour-hero img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin-bottom: 16px;
}

.tour-flyer-content {
    margin-top: 8px;
}

/* tab */
.tour-tabs {
    list-style: none;
    padding: 0;
    margin: 20px 0 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tour-tabs li {
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 999px;
    font-size: 14px;
    color: #6b7280;
}

.tour-tabs li.active {
    background: #1d4ed8;
    color: #fff;
}

.tour-tab-content {
    display: none;
    padding-top: 8px;
}

.tour-tab-content.active {
    display: block;
}

/* sidebar card */
.tour-price-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 20px 24px;
    position: sticky;
    top: 100px;
}

.tour-price-card .label {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.tour-price-card .price {
    font-size: 28px;
    font-weight: 700;
    color: #e11d48;
    margin-bottom: 10px;
}

.tour-multi-price {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 10px;
}
.tour-multi-price td {
    padding: 4px 0;
}
.tour-multi-price td:first-child {
    color: #6b7280;
}
.tour-multi-price td:last-child {
    text-align: right;
    font-weight: 600;
}


.tp-single-hero {
    padding: 24px 0 8px;
}

.tp-single-hero .tp-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;      /* ganti jika mau lebih gelap/terang */
    margin: 0;
}

.tp-single-hero .tp-single-meta {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

.tour-title-main {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 16px 0 6px;
}

.tour-price-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
    padding: 20px 24px 24px;
}

.tour-price-card .label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.tour-price-card .price {
    font-size: 28px;
    font-weight: 800;
    color: #e11d48; /* bisa disesuaikan */
    margin-bottom: 8px;
}

.tour-card-separator {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.tour-price-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
    color: #4b5563;
}

.tour-price-card .features li {
    margin-bottom: 6px;
}

.tour-price-card .btn-cta {
    display: block;
    text-align: center;
    background: #22c55e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.hotel-stars {
    color: #facc15; /* kuning */
    margin-left: 4px;
    font-size: 13px;
}


.tp-single-box.tp-related-box {
    margin-top: 20px;   /* atau 48px sesuai selera */
}

/* ===== MOBILE LAYOUT SINGLE TOUR ===== */
@media (max-width: 768px) {

    /* jadikan satu kolom */
    .tp-single-main.single-tour-layout {
        display: block !important;
    }

    .tour-main-left,
    .tour-main-right,
    .tp-single-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* card harga tidak sticky dan turun ke bawah konten */
    .tour-price-card {
        position: static !important;
        margin-top: 16px;
    }

    /* tab tetap pill, bukan bullet */
    .tour-tabs {
        display: flex !important;
        flex-wrap: wrap;
        list-style: none !important;
        padding-left: 0 !important;
        margin: 12px 0 16px !important;
        gap: 8px;
    }

    .tour-tabs li {
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 13px;
    }

    .tour-title-main {
        font-size: 22px;
        line-height: 1.3;
    }

    .tp-single-box.tp-related-box {
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .tp-main-nav {
        display: none;
    }
    .tp-main-nav.is-open {
        display: block;
    }
}
