.tb-ajax-search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tb-ajax-search-main-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9;
}

.tb-ajax-search-form-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.tb-ajax-search-input-wrapper {
    position: relative;
    display: flex !important;
    align-items: stretch;
    background: #fff;
    border: 2px solid #166534;
    border-radius: 50px;
    padding: 0;
    flex-grow: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tb-ajax-search-icon {
    display: flex !important;
    align-items: center;
    color: #2c571b !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.tb-ajax-search-input-wrapper.active,
.tb-ajax-search-input-wrapper:focus-within {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(44, 87, 27, 0.1) !important;
}

.tb-ajax-search-input {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 16px !important;
    color: #333 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    line-height: normal !important;
}

.tb-ajax-search-input::placeholder {
    color: #999 !important;
}

.tb-ajax-search-clear {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #999 !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center;
}

.tb-ajax-search-submit {
    display: none !important;
}

.tb-ajax-search-submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #166534 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.tb-btn-text {
    display: none !important;
}

.tb-btn-icon {
    display: block !important;
}

.tb-ajax-search-submit-btn:hover {
    background: #14532d !important;
}

/* Quick Suggestions */
.tb-ajax-search-quick-suggestions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tb-quick-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 !important;
}

.tb-quick-tag {
    background: #eef7f2 !important;
    color: #198754 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: normal !important;
    text-decoration: underline !important;
}

.tb-quick-tag:hover {
    background: #dcf0e4 !important;
    color: #146c43 !important;
}

/* Dropdown Panel */
.tb-ajax-search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #eee;
}

.tb-ajax-search-dropdown.show {
    display: block;
}

.tb-dropdown-content {
    padding: 20px;
}

/* Location Result */
.tb-location-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    color: inherit !important;
    text-decoration: none !important;
}
.tb-location-result:hover {
    opacity: 0.8;
    color: inherit !important;
    text-decoration: none !important;
}

.tb-location-info h4 {
    margin: 0 0 5px 0;
    color: #198754;
    font-size: 15px;
    font-weight: 600;
}

.tb-location-info p {
    margin: 0;
    color: #6b6b6b;
    font-size: 13px;
}

.tb-location-meta {
    text-align: right;
}

.tb-location-badge {
    display: inline-block;
    background: #eef7f2;
    color: #198754;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tb-location-count {
    color: #6b6b6b;
    font-size: 11px;
}

/* Horizontal Scroll Sections */
.tb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 12px 0;
    border-left: 3px solid #198754;
    padding-left: 8px;
}

.tb-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none; /* Firefox */
}

.tb-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Explore Cards */
.tb-explore-card {
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
    cursor: pointer;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s;
}
.tb-explore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #dcf0e4;
}

.tb-explore-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    margin-bottom: 8px;
}

.tb-explore-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-explore-image-wrapper.is-product {
    background: #ffffff;
}

.tb-explore-image-wrapper.is-product img {
    object-fit: contain;
}

.tb-explore-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(25, 135, 84, 0.9);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.tb-explore-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: rgba(22, 101, 52, 0.9) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

.tb-explore-card h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #262626;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-explore-card p {
    margin: 0;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nearby Cards */
.tb-nearby-card {
    min-width: 140px;
    max-width: 140px;
    height: 100px !important;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}
.tb-nearby-card:hover {
    transform: scale(1.03);
}

.tb-nearby-image-wrapper {
    position: relative;
    height: 100% !important;
    width: 100%;
}

.tb-nearby-image-wrapper img {
    width: 100%;
    height: 100px !important;
    object-fit: cover;
}

.tb-nearby-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 135, 84, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: background 0.3s;
}
.tb-nearby-card:hover .tb-nearby-overlay {
    background: rgba(25, 135, 84, 0.75);
}

@media (max-width: 768px) {
    .tb-ajax-search-submit {
        display: none !important;
    }

    /* Change search results from horizontal scroll to vertical list layout */
    .tb-horizontal-scroll {
        flex-direction: column !important;
        overflow-x: visible !important;
        gap: 12px !important;
        padding-bottom: 0 !important;
    }

    .tb-explore-card {
        min-width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 4px 12px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        background: #fdfdfd !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
        align-items: start !important;
    }

    .tb-explore-image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 80px !important;
        height: 80px !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .tb-explore-badge {
        font-size: 8px !important;
        padding: 1px 4px !important;
        top: 4px !important;
        left: 4px !important;
    }

    .tb-explore-count {
        font-size: 9px !important;
        padding: 1px 4px !important;
        bottom: 4px !important;
        right: 4px !important;
    }

    .tb-explore-card h5 {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .tb-explore-card p {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        height: auto !important;
        -webkit-line-clamp: 2 !important;
    }
}
