/* ================= BASE ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: #FFF7F2;
    color: #000;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1330px;
    margin: auto;
    padding: 0 20px !important;
}

/* ================= HEADER ================= */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px !important;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    background: #FA5921;
    color: #fff;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;

}

/* Remove default link styles for logo */
.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Prevent color change on hover/visited */
.logo-link:hover,
.logo-link:visited,
.logo-link:active {
    text-decoration: none;
    color: inherit;
}

/* ================= NAV ================= */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.nav a:hover {
    color: #FA5921;
}

.active {
    color: #FA5921 !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

/* Icon size & color */
.nav-toggle i {
    font-size: 26px;
    color: #000;
}

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

    .nav-toggle {
        display: block;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 12px !important;
    }

    .nav {
        position: fixed;
        /* 🔥 IMPORTANT */
        top: 64px;
        right: 16px !important;
        width: 220px;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        z-index: 9999;

        /* CLOSED STATE */
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    /* OPEN STATE */
    .nav.active {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

/* ================= HERO ================= */
.hero-bg {
    background: linear-gradient(135deg, #FFF3ED, #FFE1D3, #FFF7F2);
}

.hero-container {
    max-width: 700px;
    margin: auto;
    padding: 60px 20px;
    text-align: center;
}

.hero-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-container p {
    color: #555;
}

/* ================= SEARCH ================= */
.search-wrapper {
    margin-top: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 14px;
    display: flex;
    gap: 10px;
    position: relative;
}

.search-field {
    position: relative;
    flex: 1;
}

.search-field input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.search-btn {
    padding: 14px 22px;
    border-radius: 8px;
    border: none;
    background: #FA5921;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ================= DROPDOWN ================= */
/* Reset default ul spacing */
.custom-dropdown ul,
#locationList,
#serviceList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: left;
    max-height: 260px;
    overflow-y: auto;
}

.custom-dropdown-header {
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
}

.custom-dropdown-item {
    padding: 12px 14px;
    cursor: pointer;
    list-style-type: none;
    font-size: 14px;
}

.custom-dropdown-item:hover {
    background: #FFF3ED;
    color: #FA5921;
}

.detect-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    color: #FA5921;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.hidden {
    display: none;
}

/* ================= CATEGORIES ================= */
.section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-image-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-item:hover .category-image-box {
    box-shadow:
        0 10px 20px rgba(250, 89, 33, 0.18),
        0 4px 10px rgba(250, 89, 33, 0.12);
    transform: translateY(-4px);
}

.category-image-box img {
    max-height: 70px;
    transition: transform 0.25s ease;
}

.category-item:hover .category-image-box img {
    transform: scale(1.12);
}

.category-label {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #111;


}

.category-item a,
.category-item a:hover,
.category-item a:focus,
.category-item a:active,
.category-item a:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.category-item:hover .category-label {
    color: #FA5921;
}

.category-toggle {
    display: none;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 20px;
    }

    .category-image-box {
        height: 110px;
        padding: 14px;
    }

    .category-image-box img {
        max-height: 70px;
    }

    .category-label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 per row */
        gap: 14px;
    }

    .category-image-box {
        height: 90px;
        padding: 10px;
        border-radius: 14px;
    }

    .category-image-box img {
        max-height: 52px;
    }

    .category-label {
        font-size: 11px;
        line-height: 1.2;
    }

    .category-item:hover .category-image-box {
        transform: none;
        box-shadow: none;
    }

    /* Hide categories after 8 */
    .category-item:nth-child(n + 9):not(.popular-trigger) {
        display: none;
    }

    .category-toggle {
        display: block;
    }

    .toggle-icon {
        font-size: 26px;
        font-weight: 600;
        color: #FA5921;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 per row */
        gap: 12px;
    }

    .category-image-box {
        height: 84px;
    }

    .category-image-box img {
        max-height: 48px;
    }

    .category-label {
        font-size: 10.5px;
    }
}



/* ================= TRENDING SEARCHES ================= */

.trending-section {
    margin-bottom: 60px;

}

.trending-header {
    margin-bottom: 18px;
}

/* Wrapper */
.trending-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;

}

/* Viewport */
.trending-viewport {
    overflow-x: auto;
    /* ✅ allow swipe */
    overflow-y: hidden;
    width: 100%;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Hide scrollbar */
.trending-viewport::-webkit-scrollbar {
    display: none;
}

/* Track */
.trending-list {
    display: flex;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Card */
.trend-card {
    flex: 0 0 calc((100% - 42px) / 4);
    /* 4 cards desktop */
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100px;

}

.trend-card:hover {
    box-shadow:
        0 10px 20px rgba(250, 89, 33, 0.18),
        0 4px 10px rgba(250, 89, 33, 0.12);
    transform: translateY(-4px);

}

.trend-card img {
    width: 120px;
    height: 100%;
    object-fit: cover;

}



.trend-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trend-content h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.explore-link {
    font-size: 13px;
    color: #FA5921;
    font-weight: 500;
}

/* Arrows */
.trend-nav {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    border: none;
    background: #FA5921;
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 138, 137, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.trend-nav i {
    font-size: 20px;
}

.trend-nav:hover {
    transform: scale(1.08);

}

/* Hide prev initially */
.trend-nav.prev {
    display: none;
}

.category-drawer .drawer-item {
    text-decoration: none;
    color: #111;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .trend-card {
        flex: 0 0 calc((100% - 14px) / 2);
        /* 2 cards mobile */
    }

    .trend-card img {
        width: 70px;
        height: 100%;
        object-fit: cover;

    }

    .trending-wrapper {
        display: flex;
        align-items: center;
        gap: 4px;
        position: relative;

    }

    .trend-nav {
        width: 28px;
        height: 28px;
        border-radius: 100%;
        border: none;
        background: #FA5921;
        color: #fff;
        box-shadow: 0 8px 20px rgba(139, 138, 137, 0.35);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        z-index: 10;
    }

    .trend-nav i {
        font-size: 14px;
    }

    /* Optional: hide arrows on very small screens */
    @media (max-width: 480px) {
        .trend-nav {
            display: none;
        }
    }
}

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

.utility-section {
    max-width: 1340px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.utility-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.utility-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.utility-info p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
}

.utility-link {
    color: #FA5921;
    font-weight: 600;
    text-decoration: none;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 20px;
}

.utility-item {
    background: #fff;
    border-radius: 14px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.utility-item img {
    width: 50px;
    height: 50px;
}

.utility-item span {
    font-size: 13px;
    font-weight: 500;
}

.utility-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(250, 89, 33, 0.25);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .utility-card {
        grid-template-columns: 1fr;
    }

    .utility-info {
        text-align: center;
    }
}


/* ================= CTA ================= */
.cta {
    background: #FA5921;
    color: #fff;
    padding: 30px 0;
}

.cta-inner {
    text-align: center;
    padding: 50px 20px;
}

.cta-btn {
    margin-top: 20px;
    padding: 14px 26px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    font-weight: 600;
}

.popular-cities {
    background: #fff;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
}

.popular-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.popular-list {
    font-size: 14px;
    line-height: 1.9;
}

.popular-list a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-list a:hover {
    color: #FA5921;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .popular-list {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* ================= BACKDROP ================= */

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ================= DESKTOP DRAWER (RIGHT SLIDE) ================= */

.category-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 1100px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    padding: 22px 28px;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.category-drawer.active {
    right: 0;
}

/* ================= HEADER ================= */

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-title h3 {
    font-size: 22px;
    font-weight: 600;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

/* ================= SEARCH ================= */

.drawer-search {
    position: relative;
    width: 300px;
}

.drawer-search input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.drawer-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

/* ================= CONTENT GRID ================= */

.drawer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 40px;
}

/* ================= ITEM ================= */

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
}

.drawer-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.drawer-item:hover span {
    color: #FA5921;
}

/* ================= MOBILE (BOTTOM SHEET) ================= */

@media (max-width: 768px) {
    .category-item:nth-child(n + 9):not(.popular-trigger) {
        display: none;
    }

    .category-drawer {
        top: auto;
        bottom: -100%;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 85vh;
        padding: 12px 16px;
        border-radius: 18px 18px 0 0;
        transition: bottom 0.35s ease;
        overflow-y: auto;

        /* Safe-area support (Pixel / iPhone / notch devices) */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .category-drawer.active {
        bottom: 0;
    }

    .drawer-backdrop {
        backdrop-filter: blur(2px);
    }

    /* Sticky header so close button NEVER cuts off */
    .drawer-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 5;
        padding: 14px 4px 16px;
        border-bottom: 1px solid #eee;
        margin-bottom: 16px;
    }

    .drawer-close {
        font-size: 24px;
        padding: 6px;
    }

    /* Optional drag handle (UX polish) */
    .drawer-header::before {
        content: "";
        width: 36px;
        height: 4px;
        background: #ddd;
        border-radius: 4px;
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
    }

    .drawer-search {
        width: 100%;
        margin-bottom: 12px;
    }

    .drawer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .drawer-item {
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #f1f1f1;
        transition: background 0.2s ease;
    }

    .drawer-item:hover {
        background: #FFF3ED;
    }
}

/* ================= FOOTER ================= */
/* Footer */
.footer {
    background: #000;
    color: #d1d5db;

}

.footer-container {
    max-width: 1280px;
    margin: auto;
    padding: 50px 0px 10px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
}



.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-text {
    font-size: 13px;
    margin-bottom: 12px;
    color: #9ca3af;
}

.footer-contact p {
    font-size: 13px;
    color: #e5e7eb;
    margin: 0;
}

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

.footer-links a {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    cursor: pointer;
    color: #d1d5db !important;
    transition: color 0.2s ease !important;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FA5921 !important;
}

.highlight-link {
    color: #FA5921;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 14px;
    font-size: 12px;
    border-top: 1px solid #1f2933;
    color: #9ca3af;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px 0;

}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #FA5921;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.footer-social a:hover {
    background: #FA5921;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(250, 89, 33, 0.45);
}

/* ================= JD STYLE MOBILE FOOTER ================= */
@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 6px;
    }

    .footer-col {
        border-bottom: 1px solid #1f2933;
        padding: 16px 20px !important;
        text-align: left;
    }

    /* Brand section stays open */
    .footer-col:first-child {
        border-bottom: none;
        text-align: center;
        padding: 24px 20px;
    }

    /* Accordion titles */
    .jd-accordion-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        color: #fff;
    }

    /* Plus / minus */
    .jd-accordion-toggle::after {
        content: "+";
        font-size: 20px;
        font-weight: 400;
        color: #fff;
        transition: transform 0.2s ease;
    }

    /* Accordion content */
    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
    }

    /* Open state */
    .footer-col.active .footer-links {
        max-height: 500px;
        margin-top: 12px;
    }

    .footer-col.active .jd-accordion-toggle::after {
        content: "−";
    }

    /* Footer bottom */
    .footer-bottom {
        font-size: 11px;
        padding: 14px;
        text-align: center;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    /* 👈 KEY FIX */
    margin: 5vh auto;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* 👈 IMPORTANT */
}

/* iframe must fill modal */
.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

.close {
    position: absolute;
    top: 1px;
    right: 28px;
    z-index: 2;
    font-size: 34px;
    cursor: pointer;
}