/* ============================================================
   LANKAQUEST - SEARCH & DROPDOWN CLEAN CSS
============================================================ */

/* 1. සර්ච් බොක්ස් ප්‍රධාන ආකෘතිය */
.attraction-search-box {
    position: relative !important;
    width: min(650px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.attraction-search-box span {
    font-size: 1.3rem;
}

.attraction-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 5px;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.attraction-search-box input::placeholder {
    color: #888;
}

/* 2. සර්ච් ඩ්‍රොප්ඩවුන් ලැයිස්තුව (මැදට ගැනීම සහ නිවැරදි ඉඩ හැසිරවීම) */
#attractionSearchResults {
    position: absolute !important;
    top: calc(100% + -60px) !important;
    left: 50% !important;
    /* ලැයිස්තුව තිරස් අතට මැදට ගැනීම සඳහා */
    transform: translateX(-50%) !important;
    /* හරියටම මධ්‍යගත කිරීම (Center) */
    width: 92% !important;
    /* සර්ච් බොක්ස් එකෙන් 92% ක පළලක් ලබා දෙයි */
    max-width: 580px !important;
    /* උපරිම පළල සීමාව */
    z-index: 999999 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(250, 248, 248, 0.08) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

/* ඩ්‍රොප්ඩවුන් එක සැඟවී ඇති විට */
#attractionSearchResults[hidden] {
    display: none !important;
}

/* 3. තනි සර්ච් ප්‍රතිඵල ලින්ක් එක */
.attraction-search-result {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.attraction-search-result:hover {
    background: #f4f7f6 !important;
    transform: translateX(2px) !important;
}

/* ප්‍රතිඵල රූපය */
.search-result-image {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-result-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.search-result-placeholder {
    font-size: 20px !important;
}

/* අන්තර්ගතය */
.search-result-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    overflow: hidden !important;
}

.search-result-content strong {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a252f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.search-result-content span {
    font-size: 12px !important;
    color: #7f8c8d !important;
}

.search-result-content small {
    font-size: 11px !important;
    color: #95a5a6 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ඊතල සංකේතය */
.search-result-arrow {
    font-size: 16px !important;
    color: #bdc3c7 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    flex-shrink: 0 !important;
    padding-right: 4px !important;
}

.attraction-search-result:hover .search-result-arrow {
    color: #0f8b8d !important;
    transform: translateX(3px) !important;
}

/* ප්‍රතිඵල නොමැති අවස්ථා සඳහා */
.search-no-results {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    justify-content: center !important;
    color: #687674 !important;
}

.search-no-results span {
    font-size: 18px !important;
}

.search-no-results p {
    font-size: 14px !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Scrollbar Design */
#attractionSearchResults::-webkit-scrollbar {
    width: 6px !important;
}

#attractionSearchResults::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

#attractionSearchResults::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 4px !important;
}

#attractionSearchResults::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0 !important;
}

/* 4. මොබයිල් (Mobile) ප්‍රතිචාරක සැකසුම් */
@media (max-width: 600px) {
    #attractionSearchResults {
        width: 95% !important;
        /* මොබයිල් වලදී තිරයට හරියටම ගැලපෙන ලෙස 95% දක්වා ඉඩ ලබා දේ */
        max-height: 320px !important;
    }

    .attraction-search-result {
        padding: 8px 10px !important;
    }

    .search-result-image {
        width: 40px !important;
        height: 40px !important;
    }
}