﻿/* ===============================
   BASE
================================ */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000; /* default fallback */
}

a { text-decoration:none;}

/* ===============================
   APP CONTAINER
================================ */

    .app {
        width: 100%;
        max-width: 720px;
        margin: auto;
        background: #fcffff;
        min-height: 100vh;
        padding-bottom: 80px;
        box-shadow: 0 0 25px rgba(0,0,0,0.08);
        position: relative; /* REQUIRED */
    }

.page-containers {
    padding: 14px;
}
/* ===============================
   HEADER FIX
================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 720px;
    height: 56px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    transform: translateX(-50%); /* CENTER under app */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    box-sizing: border-box;
    gap: 10px;
}

@media (max-width: 480px) {
    .topbar { padding: 0 10px; }
}

.app {
    padding-top: 56px;
}

.topbar {
    transition: transform 0.2s ease;
}

.ad_input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

    .ad_input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 3px rgba(13,110,253,0.4);
    }

select.ad_input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M3 5l5 5 5-5H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px;
}




.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    font-size: 22px;
    cursor: pointer;
}

.brand {
    font-weight: 700;
    font-size: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .header-right a {
        text-decoration: none;
    }

.location-badge {
    font-size: 12px;
    background: #f1f3f9;
    padding: 6px 10px;
    border-radius: 12px;
}

.sticky-add-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100%);
    max-width: 720px;
    background: #e53935;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
    z-index: 9999;
}

    /* Price */
    .sticky-add-bar .price {
        font-size: 18px;
    }

/* ADD Button */
.add-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
}

/* Mobile Safe Area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sticky-add-bar {
        bottom: calc(0px + env(safe-area-inset-bottom));
    }
}


/* ===============================
   SIDE MENU
================================ */
.side-menu {
        position: fixed;
    overflow: auto;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #111;
    color: #fff;
    z-index: 2000;
    transition: 0.3s ease;
    padding-top: 16px;
    visibility: hidden;
}

    .side-menu.open {
        left: 0px;
        visibility: unset;
    }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-weight: 600;
}
    .side-menu-header .close {
        cursor: pointer;
        top: 0;
    }

.side-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

    .side-menu a:hover {
        background: #222;
        
    }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }



.page-alert {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    color: #111;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    width: 700px;
    max-width: 90%;
    text-align: center;
    display: none;
}

/* COLOR VARIANTS */
.alert-red {
    background: #dc3545;
    color: #fff;
}
/* error */
.alert-green {
    background: #198754;
    color: #fff;
}
/* success */
.alert-yellow {
    background: #ffc107;
    color: #000;
}
/* warning */
.alert-blue {
    background: #0d6efd;
    color: #fff;
}
/* info */
.alert-black {
    background: #111;
    color: #fff;
}

.link-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
}

    .link-btn:disabled {
        color: gray;
        cursor: not-allowed;
    }

/* ===============================
   OVERLAY
================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1500;
    display: none;
}

    .menu-overlay.show {
        display: block;
    }


/* Left & Right slots (prevent shifting) */
.left-slot,
.right-slot {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back button */
.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

/* Logo (true center) */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

    .logo img {
        max-height: 32px;
    }

/* Notification */
.notify-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}

    .notify-btn .dot {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 8px;
        height: 8px;
        background: red;
        border-radius: 50%;
    }

/* ===============================
   LOCATION BAR
================================ */
.location-bar {
    padding: 10px 16px;
    background: #f8f9fd;
    font-size: 13px;
    font-weight: 500;
}

    .location-bar .address {
        font-size: 11px;
        color: #777;
    }

/* ===============================
   SEARCH
================================ */
.search-box {
    padding: 12px 16px;
}

    .search-box input {
        width: 100%;
        border-radius: 14px;
        border: none;
        padding: 10px 14px;
        background: #f0f1f5;
        outline: none;
    }

.lazy-img {
    background: #f1f1f1;
    min-height: 120px;
    display: block;
}




.carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* 🔥 center */
    padding: 16px;
}

.comnon-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* 🔥 center */
    padding: 16px;
}




/* ===============================
   CAROUSEL
================================ */

/* OUTER WRAPPER (centers carousel) */
.carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* 🔥 center */
    padding: 16px;
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden; /* 🔥 hide overflow */
    border-radius: 16px;
    background: #eee;
}

/* TRACK */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* SLIDE */
.carousel-slide {
    flex: 0 0 100%; /* 🔥 important for sliding */
    height: 100%;
}

    /* IMAGE */
    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ===============================
   ARROWS
================================ */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

    .carousel-btn.prev {
        left: -20px;
    }

    .carousel-btn.next {
        right: -20px;
    }

/* ===============================
   DOTS
================================ */

.carousel-dots {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

    .carousel-dots span {
        width: 16px;
        height: 4px;
        background: rgba(255,255,255,0.6);
        border-radius: 10px;
        cursor: pointer;
    }

        .carousel-dots span.active {
            background: #fff;
        }

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}



/* ===============================
   OFFER CARD
================================ */
.offer-card {
    margin: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #e6e7ff;
}

/* ===============================
   GRID / ICONS
================================ */
.section {
    padding: 0 16px 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.icon-card {
    background: #f8f9fd;
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
    font-size: 20px;
}

    .icon-card span {
        display: block;
        font-size: 11px;
        margin-top: 4px;
    }

/* ===============================
   SERVICE CARD
================================ */

.service-card {
    margin: 16px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef0ff, #f7f8ff);
}

/* Header */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .service-header h4 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

.price {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 6px 12px;
}

/* Service list */
.service-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
}

    .service-list li {
        font-size: 14px;
        color: #444;
        padding: 6px 0 6px 26px;
        position: relative;
    }

        .service-list li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 5px;
            font-size: 13px;
            color: #22c55e;
        }

/* Book button */
.book-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 20px rgba(34,197,94,0.35);
    transition: 0.25s ease;
}

    .book-btn:hover {
        transform: translateY(-2px);
    }

    .book-btn:active {
        transform: scale(0.98);
    }

/* ===============================
   BOTTOM NAV (FINAL SINGLE VERSION)
================================ */
/* ===============================
   BOTTOM NAV – FIXED
================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;  /*SAME as .app (mobile default) */
    height: 60px;
    background: #fff;
    display: none;
    padding-left:20px;
    padding-right:20px;
    justify-content: space-between;
    align-items: safe center;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 999;
    border-top: 1px solid #ddd;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
    display: none;
    align-content: safe center;
    gap: 10px;
}
    .bottom-nav > :only-child {
        margin-left: auto;
    }

    .bottom-nav.show {
        display: flex;
        z-index: 999;
    }
    .login-btn:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        opacity: 0.8;
    }

/* Tabs */
/*.bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #777;
    text-decoration: none;
    padding: 6px 0;
}*/

    /* Active */
    /*.bottom-nav a.active {
        color: #5A5AF5;
    }*/



.login-page {
    width: 100%;
    margin: auto;
    background: #fff;
    padding: 24px;
}

.login-header {
    text-align: center;
    margin: 40px 0 30px;
}

    .login-header h2 {
        margin-bottom: 6px;
    }

    .login-header p {
        color: #666;
        font-size: 14px;
    }

.login-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 16px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
}

.otp-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

    .otp-box input {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        border: 1px solid #ddd;
        text-align: center;
        font-size: 18px;
    }

.resend {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin-top: 12px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #e11d48;
    cursor: pointer;
    font-size: 14px;
}
/*///JS but//*/

.btn-processing {
    pointer-events: none;
    opacity: 0.75;
}

    .btn-processing i {
        margin-right: 6px;
    }


.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
/* PAGE TITLE */
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 15px;
}

/* GRID → 2 items per row on mobile */
.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 10px 15px;
}
/* IMAGE */
.car-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* OVERLAY GRADIENT */
.car-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100% );
    pointer-events: none;
    border-radius: 10px;
}

.car-name {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    z-index: 2; /* IMPORTANT */
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.car-card:active {
    transform: scale(0.97);
}

/* TABLET */
@media (min-width: 768px) {
    .car-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .car-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* GLOW ON HOVER */
.car-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    /* Hover / Focus (Desktop) */
    .car-card:hover,
    .car-card:focus {
        transform: translateY(-4px) scale(1.02);
        border-radius: 12px;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25), 0 12px 28px rgba(13, 110, 253, 0.35);
    }
    /* MOBILE TAP EFFECT */
    .car-card:active {
        transform: scale(0.96);
        border-radius: 12px;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.35), 0 8px 20px rgba(13, 110, 253, 0.45);
    }


.ad_list-container {
}

    .ad_list-container h3 {
        margin-bottom: 12px;
    }

.ad_list-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    background: #fff;
    position: relative;
}

    /* hide radio button */
    .ad_list-card input[type="radio"] {
        display: none;
    }

    .ad_list-card .ad_list-content {
        flex-grow: 1;
    }

.ad_list-type {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
}

.ad_list-text {
    font-size: 14px;
    color: #555;
}

.ad_list-card:hover {
    border-color: #888;
}

/* selected state with border + tick */
.ad_list-card input:checked + .ad_list-content::after {
    content: "✔";
    position: absolute;
    right: 12px;
    top: 12px;
    font-weight: bold;
}

.ad_list-selected,
.ad_list-card input:checked + .ad_list-content {
    border-color: #ee5a46 !important;
}

.ad_list-card input:checked + .ad_list-content {
    color: #000;
}

.ad_actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-weight: bold;
}

.app-checkout-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

/*appp*/

/* MODAL WRAPPER INSIDE APP */
.full-app  {
    position: absolute;
    inset: 0;
    display: none;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(6px);
    touch-action: none;
    z-index: 99999;
    animation: slideInRTL .32s cubic-bezier(0.25, 0.9, 0.35, 1);
}

@keyframes slideInRTL {from {transform: translateX(100%);opacity: .95;}
    to {transform: translateX(0);opacity: 1;}}


/* MAIN CONTENT HOLDS THE LAYOUT */
.full-app-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: slideIn .28s ease-out;
    height: 100vh; /* important */
}

/* FIX HEADER */
.full-app-header {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 10;
}

/* SCROLLABLE BODY */
.full-app-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    background: #fff;
}

/* FIX FOOTER */
.full-app-footer {
    flex-shrink: 0;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
    z-index: 10;
    display: flex;
    align-content: safe center;
    gap: 10px;
}

/* =========================
   MOBILE LOADER OVERLAY
========================= */
.m-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    touch-action: none;
}

    .m-loader.hidden {
        display: none;
    }

/* Loader box */
.m-loader-box {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

    /* Dots animation */
    .m-loader-box .dot {
        width: 10px;
        height: 10px;
        background: #007bff;
        border-radius: 50%;
        animation: bounce 1.2s infinite ease-in-out;
    }

        .m-loader-box .dot:nth-child(2) {
            animation-delay: .15s;
        }

        .m-loader-box .dot:nth-child(3) {
            animation-delay: .3s;
        }

/* Text */
.m-loader-text {
    font-size: 14px;
    color: #333;
    letter-spacing: .3px;
}

/* Animation */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: .3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile performance tweak */
@media (prefers-reduced-motion: reduce) {
    .dot {
        animation: none;
    }
}


