* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f8;
    overflow-x: hidden;
    margin: 0;
    font-size: 18px;
}

/* ===== CONTAINER ===== */
.container.my-4 {
    padding-left: 12px;
    padding-right: 12px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 8px;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(40,69,214,0.08);
    padding: 0.6rem 1rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.navbar .dropdown {
    flex-shrink: 0;
    margin-left: 8px;
}

.navbar .dropdown .btn {
    font-size: 0.95rem;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
}

.navbar .dropdown-menu {
    font-size: 1rem;
}

.navbar .dropdown-item {
    font-size: 1rem;
    padding: 0.55rem 1rem;
}

/* ===== HERO ===== */
.hero {
    background: url('https://images.pexels.com/photos/1402787/pexels-photo-1402787.jpeg?_gl=1*24ns5j*_ga*MTg1OTAxNjc0NC4xNzcyNDMzMDQ0*_ga_8JE65Q40S6*czE3NzI0MzMwNDQkbzEkZzEkdDE3NzI0MzMwNTckajQ3JGwwJGgw') center/cover no-repeat;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: visible !important;
    margin-top: 10px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,20,80,0.72) 0%, rgba(0,0,0,0.45) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem 1.5rem;
    overflow: visible !important;
}

.hero h2 {
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.4;
}

.hero p {
    font-size: 1.05rem;
    text-align: center;
    opacity: 0.88;
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-content { padding: 4rem 2.5rem 2rem; }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.15rem; }
}

/* ===== SEARCH BOX ===== */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

.search-box .form-select,
.search-box .form-control {
    font-size: 1rem;
    border-radius: 10px;
    border: 1.5px solid #e8ecf8;
    padding: 0.75rem 0.9rem;
    color: #1a1a2e;
    background-color: #f8f9ff;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 52px;
}

.search-box .form-select:focus,
.search-box .form-control:focus {
    border-color: #2845D6;
    box-shadow: 0 0 0 3px rgba(40,69,214,0.1);
    background: white;
}

.search-btn {
    background: linear-gradient(135deg, #2845D6, #1e38c4);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    min-height: 52px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(40,69,214,0.3);
}

.search-btn:hover, .search-btn:active {
    background: linear-gradient(135deg, #1e38c4, #1630a8);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40,69,214,0.4);
}

/* ===== SECTIONS ===== */
.section-title {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.45rem;
}

.about-img {
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

#section-tentang-kami h5 {
    font-size: 1.1rem !important;
    line-height: 1.5;
}

#section-tentang-kami p {
    font-size: 1rem !important;
    line-height: 1.8;
}

.category-title {
    font-weight: 700;
    color: #2845D6;
    margin-top: 2rem;
    border-left: 4px solid #2845D6;
    padding-left: 10px;
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* ===== CAR CARDS ===== */
.car-card {
    border: none;
    border-radius: 16px;
    border-left: 4px solid #2845D6;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    background: white;
}

.car-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.car-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.car-desc small {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.7;
}

.price-text {
    color: #2a8a00;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 4px;
}

/* ===== WHY BOX ===== */
.why-box {
    background: white;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    border-left: 3px solid #2845D6;
    transition: transform 0.2s;
}

.why-box:hover { transform: translateY(-2px); }

.why-box h6 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.why-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

/* ===== BOOK BUTTON ===== */
.btn-book {
    background: linear-gradient(135deg, #2845D6, #1e38c4);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    padding: 11px 0;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s;
    display: flex;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-book:hover, .btn-book:active {
    background: linear-gradient(135deg, #1e38c4, #1630a8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40,69,214,0.3);
    color: white;
}

/* ===== FILTER RESULTS ===== */
#filter-results-section { display: none; }
#filter-results-section.active { display: block; }
#section-tentang-kami.hidden,
#section-harga.hidden { display: none; }

.result-badge {
    background: #2845D6;
    color: white;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 1rem;
    font-weight: 600;
}

.no-result {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.no-result i {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
    color: #ddd;
}

.filter-tag {
    background: #f0f4ff;
    border: 1px solid #d0d8f5;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.95rem;
    color: #444;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}

.btn-reset-filter {
    background: transparent;
    border: 1.5px solid #2845D6;
    color: #2845D6;
    border-radius: 10px;
    font-size: 1rem;
    padding: 7px 16px;
    white-space: nowrap;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filter:hover {
    background: #2845D6;
    color: white;
}

/* ===== CLIENT SECTION ===== */
.clients-section {
    background: white;
    border-radius: 20px;
    padding: 2rem 0 2.5rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    overflow: hidden;
}

.clients-section-header {
    padding: 0 1.5rem;
}

.clients-section p {
    font-size: 0.97rem;
}

/* Marquee wrapper */
.marquee-outer {
    position: relative;
    overflow: hidden;
}

/* Fade edges */
.marquee-outer::before,
.marquee-outer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.marquee-outer::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.marquee-outer::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* Two rows of logos */
.marquee-row {
    display: flex;
    width: max-content;
    gap: 20px;
    padding: 8px 0;
}

.marquee-row-1 {
    animation: marquee-ltr 30s linear infinite;
}
.marquee-row-2 {
    animation: marquee-rtl 35s linear infinite;
    margin-top: 0;
}

.marquee-row:hover {
    animation-play-state: paused;
}

@keyframes marquee-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Individual logo card */
.client-logo-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    min-width: 180px;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.client-logo-box:hover {
    border-color: #2845D6;
    box-shadow: 0 4px 16px rgba(40,69,214,0.1);
}

.client-logo-box img {
    max-width: 140px;
    max-height: 68px;
    object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0f0f2d, #1a1a2e);
    color: #9a9ab8;
    padding: 2.5rem 0 1.5rem;
    border-radius: 20px;
    overflow: hidden;
}

.footer-content { padding: 0 1.5rem; }

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.footer p, .footer a {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

.footer .col-6.col-md-3,
.footer .col-12.col-md-3 { margin-bottom: 1.5rem; }

.footer-address-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #9a9ab8;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.footer-address-item:hover {
    color: #b0b8e0;
}

.footer-address-item span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-icon {
    color: #4d6fff;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-link {
    color: #9a9ab8 !important;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
}
.footer-link:hover { color: #b0b8e0 !important; }

.social-icons a {
    color: #9a9ab8;
    font-size: 1.7rem;
    margin-right: 14px;
    transition: color 0.2s;
}

.social-icons a:hover { color: #4d6fff; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 20px;
    right: 16px;
    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wa-float:hover {
    background: linear-gradient(135deg, #1ebe5d, #18a050);
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}

/* ===== ACCORDION ===== */
.accordion-button {
    font-size: 1.05rem;
    padding: 1rem 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    background: white;
    line-height: 1.5;
}

.accordion-button:not(.collapsed) {
    color: #2845D6;
    background: #f0f4ff;
    box-shadow: none;
}

.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(24%) sepia(95%) saturate(3000%) hue-rotate(220deg);
}

.accordion-body {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    padding: 1rem 1.1rem;
}

.accordion-item {
    border: 1px solid #e8ecf8;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

/* ===== TERMS ===== */
.terms-section ul { font-size: 1rem; padding-left: 1.2rem; }
.terms-section h6 { font-size: 1.05rem; }
.terms-section li { margin-bottom: 8px; line-height: 1.65; }

/* ===== DATE PICKER ===== */
.dp-wrapper { position: relative; }

.dp-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    background: #f8f9ff;
    font-size: 1rem;
    min-height: 52px;
    border: 1.5px solid #e8ecf8;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dp-trigger:hover, .dp-trigger:focus {
    border-color: #2845D6;
    box-shadow: 0 0 0 3px rgba(40,69,214,0.1);
    background: white;
}

.dp-popup {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    width: 330px;
    padding: 16px;
    border: 1px solid #e5e9ff;
    animation: dp-fadein 0.15s ease;
}

@media (max-width: 400px) {
    .dp-popup { width: calc(100vw - 16px); }
}

@keyframes dp-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dp-month-year {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
}

.dp-nav {
    background: #f0f4ff;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    color: #2845D6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.15s;
}

.dp-nav:hover { background: #2845D6; color: white; }

.dp-legend {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dp-leg {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.dp-leg-self   { background: #e8f5e1; color: #2d6a00; border: 1px solid #b6dea0; }
.dp-leg-driver { background: #e8eeff; color: #2845D6; border: 1px solid #b0bff5; }

.dp-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 3px;
}

.dp-day-name {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
}

.dp-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-cell {
    border-radius: 8px;
    padding: 2px 1px 4px;
    text-align: center;
    cursor: pointer;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.15s;
}

.dp-cell:not(.dp-past):not(.dp-empty):hover { background: #f0f4ff; }
.dp-cell.dp-empty  { cursor: default; }
.dp-cell.dp-past   { cursor: default; opacity: 0.3; }

.dp-cell.dp-today .dp-num {
    background: #2845D6;
    color: white;
    border-radius: 50%;
}

.dp-cell.dp-selected {
    background: #eef1ff;
    border: 1.5px solid #2845D6;
}
.dp-cell.dp-selected .dp-num { color: #2845D6; font-weight: 700; }

.dp-num {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-price {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    width: 100%;
    text-align: center;
}
.dp-price-self   { color: #2d6a00; }
.dp-price-driver { color: #2845D6; }

.dp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f8;
}

.dp-btn-clear {
    background: none; border: none;
    color: #e74c3c; font-size: 0.95rem;
    cursor: pointer; font-weight: 600; padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}
.dp-btn-clear:hover { background: #fef0f0; }

.dp-btn-today {
    background: none; border: none;
    color: #2845D6; font-size: 0.95rem;
    cursor: pointer; font-weight: 600; padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}
.dp-btn-today:hover { background: #f0f4ff; }

/* ===== ACTIVE FILTER AREA ===== */
#active-filters { margin-top: 4px; }

/* ===== RESULTS HEADER ===== */
#filter-results-section .d-flex { align-items: center !important; }
#filter-results-section h5 { font-size: 1.1rem !important; margin-bottom: 2px; }

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== IMPROVED CARD GRID SPACING ===== */
.row.g-3 > [class*='col-6'] .car-card {
    border-radius: 14px;
}

/* ===== SECTION CARDS MOBILE ===== */
@media (max-width: 575px) {
    .container.my-4 { padding-left: 10px; padding-right: 10px; }

    /* NAVBAR MOBILE */
    .navbar {
        padding: 0.55rem 0.85rem !important;
        flex-wrap: nowrap !important;
    }
    .navbar-brand {
        font-size: 1.05rem !important;
        gap: 7px;
        max-width: calc(100% - 100px);
    }
    .logo {
        height: 28px !important;
    }
    .navbar .dropdown .btn {
        font-size: 0.9rem !important;
        min-height: 38px !important;
        padding: 0.35rem 0.75rem !important;
    }
    .navbar .dropdown-item {
        font-size: 0.95rem !important;
        padding: 0.55rem 1rem !important;
    }

    .section-title, h4 { font-size: 1.25rem !important; }
    .category-title { font-size: 1.1rem !important; }
    .about-img { height: 140px !important; }

    .hero h2 { font-size: 1.3rem !important; }
    .hero p { font-size: 1rem !important; }

    .why-section .col-md-4 { flex: 0 0 50%; max-width: 50%; }
    .why-box { padding: 0.85rem 0.9rem; }
    .why-box h6 { font-size: 0.97rem !important; }
    .why-box p { font-size: 0.92rem !important; }

    .car-card { border-radius: 12px; }
    .car-title { font-size: 1.05rem !important; }
    .car-desc small { font-size: 0.93rem !important; }
    .price-text { font-size: 1.1rem !important; }
    .btn-book { font-size: 0.95rem !important; padding: 10px 0 !important; min-height: 46px; }

    .search-box .form-select,
    .search-box .form-control {
        font-size: 1rem !important;
        min-height: 52px !important;
    }
    .search-btn { font-size: 1rem !important; min-height: 52px; padding: 0.8rem 1rem !important; }

    .accordion-button { font-size: 1rem !important; padding: 0.9rem 1rem !important; }
    .accordion-body { font-size: 0.97rem !important; }

    .terms-section ul { font-size: 0.95rem !important; }
    .terms-section li { margin-bottom: 7px; line-height: 1.6; }

    .mt-5 { margin-top: 2rem !important; }
    .mt-4 { margin-top: 1.25rem !important; }

    h4 { font-size: 1.25rem !important; }

    .footer { border-radius: 16px; }
    .footer-content { padding: 0 1rem; }
    .footer-title { font-size: 1rem !important; }
    .footer p, .footer a { font-size: 0.92rem !important; }

    .footer-address-item {
        font-size: 0.88rem !important;
        gap: 0.45rem;
    }
    .footer-icon { font-size: 0.88rem; }

    .footer .col-12.col-md-3 { flex: 0 0 100%; max-width: 100%; }
    .footer .col-6.col-md-3 { flex: 0 0 50%; max-width: 50%; }

    .clients-section p { font-size: 0.97rem !important; }
    .client-logo-box {
        height: 90px;
        min-width: 140px;
        padding: 14px 18px;
    }
    .client-logo-box img {
        max-width: 110px;
        max-height: 54px;
    }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) {
    .car-card:hover { transform: none; }
    .btn-book:hover { transform: none; }
    .search-btn:hover { transform: none; }
    .wa-float:hover { transform: none; }
}

/* ===== SEARCH FORM MOBILE ===== */
@media (max-width: 767px) {
    .search-box { padding: 0.9rem; }
    .search-box .row { gap: 0.5rem !important; }
    .search-box .col-md,
    .search-box .col-auto { flex: 0 0 100%; max-width: 100%; }
    .search-btn { padding: 0.75rem 1rem; font-size: 1rem; }
}

/* ===== LANDSCAPE PHONE ADJUSTMENTS ===== */
@media (max-width: 812px) and (orientation: landscape) {
    .hero-content { padding: 1.5rem 1.5rem 1rem; }
    .hero h2 { font-size: 1.2rem; }
}