/* ==========================================================
📍 AUTOCOMPLETE DROPDOWN — PRODUCTION UI
FILE: 09-autocomplete.css
========================================================== */

/* ==========================================================
🧱 ROOT FIX (CRITICAL — OVERFLOW + STACKING)
========================================================== */

.cls-location-section,
.cls-address-container {
    position: relative;
    overflow: visible !important;
}

/* ==========================================================
📦 DROPDOWN CONTAINER
========================================================== */

.cls-autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;

    display: none;
    max-height: 280px;
    overflow-y: auto;

    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);

    z-index: 9999999 !important;

    /* ✨ Premium elevation */
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.05);

    /* smooth open */
    animation: clsDropdownFade 0.18s ease;

    /* stacking fix */
    transform: translateZ(0);
}

/* ==========================================================
📍 ITEM
========================================================== */

.cls-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;

    cursor: pointer;

    border-bottom: 1px solid rgba(0, 0, 0, 0.04);

    transition: all 0.18s ease;
}

/* last item */
.cls-autocomplete-item:last-child {
    border-bottom: none;
}

/* icon */
.cls-autocomplete-item::before {
    content: "📍";
    font-size: 13px;
    opacity: 0.6;
}

/* hover */
.cls-autocomplete-item:hover {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.08),
        rgba(168, 85, 247, 0.08)
    );
}

/* active (future keyboard support) */
.cls-autocomplete-item.active {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.16),
        rgba(168, 85, 247, 0.16)
    );
}

/* ==========================================================
📭 EMPTY STATE
========================================================== */

.cls-autocomplete-empty {
    padding: 14px 16px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ==========================================================
🧵 SCROLLBAR
========================================================== */

.cls-autocomplete-results::-webkit-scrollbar {
    width: 6px;
}

.cls-autocomplete-results::-webkit-scrollbar-track {
    background: transparent;
}

.cls-autocomplete-results::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
}

.cls-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

/* ==========================================================
✨ ANIMATION
========================================================== */

@keyframes clsDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
























/* ==========================================================
🔥 ADDRESS INPUT (FINAL FIXED SYSTEM)
========================================================== */

/* ======================================
📦 CONTAINER
====================================== */
.cls-address-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}


/* ======================================
🧱 INPUT WRAPPER
====================================== */
.cls-address-field {
    position: relative;
    flex: 1;
    min-width: 0;
}


/* ======================================
📍 ICON (INSIDE INPUT)
====================================== */
.cls-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    z-index: 2; /* 🔥 important */
    pointer-events: none;
}

/* ICON IMAGE */
.cls-input-icon img,
.cls-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}


/* ======================================
✏️ INPUT FIELD
====================================== */
.cls-custom-location-fields .cls-address-text {

    width: 100%;
    height: 52px;

    padding-left: 44px; /* 🔥 icon ke liye space */
    padding-right: 14px;

    border-radius: 16px;
    border: 1px solid transparent;

    outline: none;

    font-size: 14px;
    font-weight: 500;
    color: #111827;

    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #4f6bff, #7a5cff) border-box;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.06),
        0 4px 14px rgba(0,0,0,0.12);

    transition: all 0.25s ease;

    position: relative;
    z-index: 1;
}


/* ======================================
🖱️ HOVER
====================================== */
.cls-custom-location-fields .cls-address-text:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}


/* ======================================
🎯 FOCUS
====================================== */
.cls-custom-location-fields .cls-address-text:focus {
    box-shadow:
        0 0 0 3px rgba(79,107,255,0.15),
        0 10px 25px rgba(79,107,255,0.25);

    transform: translateY(-1px);
}


/* ======================================
💬 PLACEHOLDER
====================================== */
.cls-custom-location-fields .cls-address-text::placeholder {
    color: #9ca3af;
    font-weight: 400;
}


/* ======================================
📍 DETECT BUTTON
====================================== */
.cls-icons-outside {
    flex-shrink: 0;
}

.cls-icons-outside button {

    width: 52px;
    height: 52px;

    border-radius: 16px;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}


/* ======================================
📱 MOBILE FIX
====================================== */
@media (max-width: 768px) {

    .cls-address-container {
        align-items: center;
        gap: 8px;
    }

    .cls-custom-location-fields .cls-address-text {
        height: 48px;
        font-size: 12px;
        padding-left: 32px;
    }

    .cls-icons-outside button {
        width: 48px;
        height: 48px;
    }

}