:root {
    --primary-red: #D32F2F;
    --primary-orange: #FF5722;
    --accent-yellow: #FFC107;
    --text-dark: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-red) !important;
}

.navbar-brand span {
    color: var(--primary-orange);
}

.navbar-brand img {
    height: 42px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-left: 15px;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Buttons */
.btn-custom-red {
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 25px;
    border: none;
    transition: all 0.3s;
}

.btn-custom-red:hover {
    background-color: #b71c1c;
    color: white;
    transform: translateY(-2px);
}

/* Hero Carousel */
.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Default untuk Desktop */
    min-height: 400px;
    max-height: 500px;
}
.hero-wrapper {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

/* Keep every orange listing header at the same visual depth. */
.page-list-hero {
    min-height: 336px;
    display: flex;
    align-items: center;
}

.page-list-hero > .container {
    width: 100%;
}

@media (max-width: 991.98px) {
    .page-list-hero {
        min-height: 0;
    }
}

/* Section Titles */
.section-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2rem;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* Visa Cards */
.visa-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.visa-card:hover {
    transform: translateY(-5px);
}

.visa-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.visa-badge {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

/* Trip Cards */
.trip-card {
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trip-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.trip-card img {
    border-radius: 15px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.trip-title {
    font-weight: 700;
    color: #333;
}

.trip-desc {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Agar tombol selalu di bawah */
}

/* Why Choose Us Section */
.why-us-section {
    background: var(--why-us-background) no-repeat center center;
    background-size: cover;
    color: white;
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.why-us-content-wrapper {
    padding: 60px 0;
    padding-right: 20px;
}

.why-us-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-grid {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-icon-circle i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h3 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-content p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Right Side Image Stack */
.col-image-flush {
    padding: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-stack-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.image-stack-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stack-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stack-img.wide {
    grid-column: span 2;
    height: 200px;
}

.stack-img:hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile (di bawah 992px) */
@media (max-width: 991px) {

    /* Text Alignment */
    .why-us-content-wrapper {
        padding: 32px 18px;
        text-align: center;
    }

    .why-us-title {
        font-size: 1.75rem;
    }

    /* Fitur menjadi vertikal di mobile agar rapi */
    .feature-item {
        flex-direction: column;
        align-items: center;
        margin-bottom: 18px;
    }

    .feature-icon-circle {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .col-image-flush {
        padding: 20px !important;
    }

    .image-stack-card {
        max-width: 100%;
    }

    .image-stack-container {
        grid-template-columns: 1fr;
    }

    .stack-img,
    .stack-img.wide {
        grid-column: span 1;
        height: 170px;
    }

    /* Navbar adjustments */
    .navbar-collapse {
        margin-top: 15px;
        background: white;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    /* Trip slider tweaks */
    .trip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 8px;
        margin: 0 -8px;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }
    .trip-row::-webkit-scrollbar {
        display: none;
    }
    .trip-col {
        flex-basis: 78%;
        max-width: 78%;
        scroll-snap-align: start;
    }
}

/* Mobile Phones (di bawah 576px) */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .carousel-item img {
        min-height: unset;
        max-height: unset;
        height: auto;
        object-fit: contain;
    }

    .visa-card img {
        height: 160px;
    }

    .why-us-title {
        font-size: 1.4rem;
    }

    .feature-grid {
        row-gap: 8px;
    }
    .feature-item {
        margin-bottom: 12px;
    }
    .feature-content h3 {
        font-size: 0.95rem;
    }
    .feature-content p {
        font-size: 0.8rem;
    }

    /* Trip slider on extra small */
    .trip-col {
        flex-basis: 85%;
        max-width: 85%;
    }
}

/* Home banner navigation */
#heroCarousel .hero-slide-indicators {
    position: static;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 22px 16px;
    background: transparent;
}

#heroCarousel .hero-slide-indicators [data-bs-target] {
    position: relative;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #969696;
    opacity: 1;
    overflow: hidden;
    transition: width 0.25s ease;
}

#heroCarousel .hero-slide-indicators .active {
    width: 42px;
}

#heroCarousel .hero-slide-indicators .active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #111;
    transform-origin: left;
    animation: hero-slide-progress 5s linear forwards;
}

#heroCarousel:hover .hero-slide-indicators .active::after {
    animation-play-state: paused;
}

#heroCarousel .hero-slide-indicators button:focus-visible {
    outline: 2px solid #e02120;
    outline-offset: 4px;
}

@keyframes hero-slide-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    #heroCarousel .hero-slide-indicators [data-bs-target] {
        transition: none;
    }
    #heroCarousel .hero-slide-indicators .active::after {
        animation: none;
    }
}
/* Preserve the full banner at every screen size. */
#heroCarousel .carousel-item img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
}

.hero-wrapper {
    background: transparent;
}

#heroCarousel .carousel-inner {
    border-radius: 18px;
}

/* Home trip cards */
.home-trip-grid {
    display: grid;
    grid-template-columns: repeat(var(--trip-columns, 3), minmax(0, 1fr));
    gap: 24px;
}
.home-trips .home-trip-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e8e8ec;
    border-radius: 20px;
    text-align: left;
}
.home-trip-image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #fff7f2;
}
.home-trips .home-trip-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
}
.home-trip-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 8px 8px;
}
.home-trips .home-trip-title {
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 2.8em;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.home-trip-title a {
    color: #252832;
    text-decoration: none;
}
.home-trip-title a:hover { color: #e02120; }
.home-trip-destination {
    color: #6a6e78;
    font-size: 0.85rem;
    line-height: 1.65;
    min-height: 3.3em;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.home-trip-footer { margin-top: auto; }
.home-trip-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid #ededf0;
    margin-bottom: 16px;
}
.home-trip-price span { color: #777b85; font-size: 0.78rem; }
.home-trip-price strong { color: #e02120; font-size: 1.2rem; font-weight: 700; }
.home-trips .home-trip-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #fbbf24;
    font-size: 0.88rem;
}
.home-trips .home-trip-all {
    padding: 12px 28px;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    font-size: 0.88rem;
}
@media (max-width: 991px) {
    .home-trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575px) {
    .home-trip-grid { grid-template-columns: 1fr; gap: 20px; }
    .home-trips .home-trip-title { min-height: 0; }
    .home-trip-destination { min-height: 0; }
}
.home-trip-eyebrow {
    margin-bottom: 10px;
    color: #a74729;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.home-trips .home-trip-heading {
    color: #252832;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: 12px;
}
.home-trip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.75rem;
}
.home-trip-category {
    background: #fff1e9;
    color: #a74729;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
}
.home-trip-duration { color: #777b85; white-space: nowrap; }
.home-trip-duration i { margin-right: 3px; }
.home-trips .home-trip-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}
.home-trip-intro {
    font-size: 0.85rem;
    color: #6a6e78;
    line-height: 1.7;
    min-height: 3.4em;
    margin-bottom: 14px;
}
.home-trips .home-trip-destination {
    font-size: 0.75rem;
    line-height: 1.75;
    min-height: 3.5em;
    color: #8a5140;
}
.home-trip-destination i { margin-right: 4px; color: #e02120; }
@media (max-width: 575px) {
    .home-trips .home-trip-title,
    .home-trip-intro,
    .home-trips .home-trip-destination { min-height: 0; }
}
