/*
Theme Name: RajaTrip.id Theme
Version: 1.1 (Simplified)
Text Domain: rajatrip
*/

/* ===== Font Definitions ===== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbVmUiAo.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('font/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWub2bVmUiAo.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjalmUiAo.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS Variables ===== */
:root {
    --primary: #2dd4bf;
    --secondary: #6b7280;
    --price: #002b11;
    --title: #0c341c;
    --neutral-white: #ffffff;
    --neutral-gray: #f3f4f6;
    --text-dark: #1a202c;
    --hover-black: rgba(0, 0, 0, 0.4);
    --hover-nav: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --icon-light: #2f6b4a;
    --supporting: #10b981;
    --star-color: #0c341c;
    --gallery-text-color: #ffffff;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--neutral-white);
    color: var(--text-dark);
}
h2 { line-height: 1.25; }
h3 { line-height: 1.3; }
.product-card .price { line-height: 1.2; }
.container { max-width: 1200px; margin-left: auto; margin-right: auto; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Product Card (General) ===== */
.product-card {
    background-color: var(--neutral-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--neutral-gray);
}
.product-card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
.product-card .image-container { position: relative; overflow: hidden; height: 300px; }
.product-card .image-container img { width: 100%; height: 100%; object-fit: cover; }
.product-card .image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hover-black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 3;
}
.product-card:hover .image-overlay { opacity: 1; }
.product-card .price { font-size: 1.25rem; font-weight: 700; color: var(--price); margin-bottom: 0.5rem; }
.product-card h3 { color: var(--title); }

/* ===== Slider (General) ===== */
.product-slide { display: none; }
.product-slide.active { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
.nav-btn-product {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--neutral-white);
    color: var(--title);
    width: 40px; height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--title);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    z-index: 10;
}
.nav-btn-product:hover { background-color: var(--hover-nav); transform: translateY(-50%) scale(1.1); }
.nav-btn-product.prev { left: -25px; }
.nav-btn-product.next { right: -25px; }
.loading-spinner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 12px;
}
.loading-spinner-overlay.hidden { display: none; }
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 50px; height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Duration Tabs ===== */
.duration-tabs-nav { display: flex; overflow-x: auto; border-bottom: 2px solid var(--neutral-gray); margin-bottom: 2rem; }
.tab-item { padding: 0.75rem 1rem; cursor: pointer; color: var(--secondary); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.tab-item:hover { color: var(--title); }
.tab-item.active { color: var(--title); border-bottom-color: var(--title); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Phone Section (Mobile Only) ===== */
.content-white-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.phone-section-card { display: flex; align-items: center; padding: 20px; }
.phone-section .icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background-color: #0c341c;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 15px;
    color: white; /* Makes SVG inside white */
}
.phone-section .icon-circle svg { fill: currentColor; width: 30px; height: 30px; }
.phone-section .text-content { display: flex; flex-direction: column; align-items: flex-start; }
.phone-section .main-text { font-size: 1.2em; font-weight: 600; color: #0c341c; text-decoration: underline; }
.phone-section .sub-text { font-size: 0.9em; color: #6b7280; margin-top: 5px; }

/* ===== Info Cards (Why Choose Us & Testimonials) ===== */
.why-choose-card,
.testimonial-card {
    background-color: var(--neutral-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease-in-out;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--neutral-gray);
}
.why-choose-card:hover,
.testimonial-card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
.why-choose-card i, .why-choose-card svg { margin-bottom: 1rem; }
.testimonial-card .stars { display: flex; gap: 4px; color: var(--star-color); font-size: 1.25rem; margin-bottom: 0.75rem; }
.why-choose-card h3,
.testimonial-card h3.author { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.testimonial-card h3.author { color: var(--title); margin-top: 0.5rem; }
.why-choose-card p,
.testimonial-card p { font-size: 1rem; color: var(--text-dark); }

/* ===== Destination Gallery ===== */
#gallery-destinasi .product-card .image-container { height: 450px; border-radius: 0.75rem; }
#gallery-destinasi .product-card { padding: 0; }
#gallery-destinasi .product-card .content-container { display: none; }
.destination-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 3rem 1rem 1rem;
    color: var(--gallery-text-color);
    z-index: 2;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}
.destination-overlay h3 { font-size: 1.25rem; font-weight: 700; color: var(--gallery-text-color); }

/* ===== Hero Paket Section Height ===== */
#hero-paket .hero-paket-box {
    height: 450px;
}

/* ===== Blog Section (REVISED FOR READABILITY) ===== */
.blog-see-more-btn {
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease-in-out;
}
.blog-see-more-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.blog-grid-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.blog-card {
    display: block;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}
.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.blog-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-arrow {
    transform: translateX(5px);
}
.blog-card-large {
    min-height: 450px;
}
.blog-card-small {
    min-height: 217px;
}


/* ===== Customer Moments (Marquee) ===== */
#customer-moments { background-color: var(--neutral-gray); padding-top: 2rem; padding-bottom: 2rem; }
.marquee-container { overflow: hidden; position: relative; width: 100%; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
.marquee-content { display: flex; width: fit-content; animation: scroll 60s linear infinite; }
.marquee-item {
    flex-shrink: 0;
    width: 40vw;
    max-width: 350px;
    height: 240px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.marquee-item:hover img { transform: scale(1.05); }
.marquee-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}
.marquee-item:hover .marquee-overlay { opacity: 1; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CTA Section ===== */
#cta-section { background-color: var(--neutral-white); color: var(--text-dark); border-top: 1px solid var(--neutral-gray); }
.cta-btn { transition: all 0.3s ease; }
.cta-btn-primary { background-color: var(--primary); color: var(--title); }
.cta-btn-primary:hover { background-color: #26a69a; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.cta-btn-secondary { background-color: transparent; border: 2px solid var(--title); color: var(--title); }
.cta-btn-secondary:hover { background-color: var(--title); color: var(--neutral-white); }

/* ===== Footer ===== */
.site-footer { background-color: var(--title); color: var(--neutral-gray); font-size: 0.9rem; }
.site-footer a { color: var(--neutral-gray); transition: color 0.3s ease; }
.site-footer a:hover { color: var(--neutral-white); }
.site-footer .footer-title { font-weight: 600; color: var(--neutral-white); margin-bottom: 1rem; }
.site-footer .brand-logo { color: var(--primary); }

/* ===== Show More / Accordion Button (Mobile) ===== */
.accordion-btn {
    display: none;
    width: 100%;
    padding: 1rem;
    background-color: var(--neutral-white);
    color: var(--title);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    border: 2px solid var(--title);
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.accordion-btn:hover { background-color: var(--hover-nav); }

/* =================================== */
/* ===== RESPONSIVE STYLES (Mobile) ===== */
/* =================================== */
@media (max-width: 767px) {
    #paket-bulan-madu,
    #paket-pilihan-front {
        display: none;
    }
    .accordion-btn { display: block; }

    .product-slide .product-card {
        border-radius: 0;
        flex-direction: row;
        align-items: center;
    }
    .product-slide .product-card .image-container {
        width: 40%;
        height: 150px;
        flex-shrink: 0;
        border-radius: 0 !important;
    }
    .product-slide .product-card .image-container img {
        border-radius: 0 !important;
    }
    .product-slide .product-card .content-container {
        width: 60%;
        padding: 0.5rem 1rem;
    }
    .product-slide .product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
    .product-slide .product-card .price { font-size: 1rem; margin-bottom: 0; }

    .tab-content:not(.show-all-active) .product-slide.active .product-card:first-child {
        flex-direction: column;
        border-radius: 0.75rem;
    }
    .tab-content:not(.show-all-active) .product-slide.active .product-card:first-child .image-container {
        width: 100%;
        height: 300px;
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }
    .tab-content:not(.show-all-active) .product-slide.active .product-card:first-child .image-container img {
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }
    .tab-content:not(.show-all-active) .product-slide.active .product-card:first-child .content-container {
        width: 100%;
        padding: 1rem;
    }

    #gallery-destinasi .product-slide.active {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        gap: 1rem;
        grid-template-columns: none;
    }
    #gallery-destinasi .product-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        flex-direction: column;
        border-radius: 0.75rem;
    }
    #gallery-destinasi .product-card .image-container {
        width: 100%;
        height: 313px !important;
        border-radius: 0.75rem !important;
    }
    #gallery-destinasi .product-card .image-container img {
        border-radius: 0.75rem !important;
    }
    #gallery-destinasi #show-more-gallery,
    #gallery-destinasi #show-less-gallery {
        display: none !important;
    }
    #gallery-destinasi .nav-btn-product {
        display: flex !important;
        top: 125px;
        transform: translateY(-50%);
        width: 40px; height: 40px;
        z-index: 10;
    }
    #gallery-destinasi .nav-btn-product.prev { left: 10px; }
    #gallery-destinasi .nav-btn-product.next { right: 10px; }

    .marquee-item {
        width: 85vw;
        height: 200px;
    }
}

/* ===================================== */
/* ===== RESPONSIVE STYLES (Desktop) ===== */
/* ===================================== */
@media (min-width: 768px) {
    .hero-text h2 { font-size: 2.5rem; }
    .product-slide.active { grid-template-columns: repeat(2, 1fr); }
    .phone-section { display: none; }
    .marquee-item { width: 25vw; }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #paket-berdasarkan-durasi .product-slide.active,
    #paket-pilihan-front .product-slide.active { 
        grid-template-columns: repeat(4, 1fr); 
    }

    #gallery-destinasi .product-slide.active { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (min-width: 1350px) {
    .nav-btn-product { display: flex; }
}


/* ==================================================== */
/* ===== CSS TAMBAHAN UNTUK HERO SECTION BARU ========= */
/* ==================================================== */

.hero-section h1, .hero-section p {
    font-family: 'Poppins', sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.search-dropdown {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.search-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}
.search-dropdown-item:hover {
    background-color: #f3f4f6;
}
.search-dropdown-heading {
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.hero-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}
.hero-slide {
    flex: 0 0 100%;
}
.hero-slide img {
    width: 100%;
    height: 300px; /* Desktop height */
    object-fit: cover;
    border-radius: 0.75rem;
}
.hero-dots-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.hero-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.hero-dot.active {
    background-color: #ffffff;
}

#mobile-hero-search-modal {
    background-color: #ffffff;
    z-index: 50;
    transition: opacity 0.3s ease-out;
}
#mobile-hero-search-modal.opacity-0 {
    opacity: 0;
}

.testimonial-card .stars {
    display: flex;
    gap: 4px;
}
.phone-section .icon-circle {
    color: white;
}

@media (max-width: 767px) {
    .hero-slide img {
        height: 200px;
    }
    #mobile-hero-search-card {
        display: block !important;
    }
    .hero-section .hidden.md\\:flex {
        display: none;
    }
}
@media (min-width: 768px) {
    #mobile-hero-search-card {
        display: none !important;
    }
}