
.search-fixed-panel {
    margin-top: 0;
    padding: 0px 0 0;
    flex: 1;
}
.header-left{
    display: flex;
    flex: 1;
    align-items: center;
}
.search-fixed-panel .container{
    padding: 0;
}
.search-fixed-box{
    display: flex;
    background: #ebebeb;
    flex: 0.7;
    border-radius: 12px;
    max-width: 960px;
    margin-left: 125px;
}
#edit_location_input{
    color: #030303;
}
.close_ipt{
    margin-top: 5px;
}
.search-bar-wrap {
    height: 50px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 0px;
    position: relative;
}
/* .search-bar-wrap::after{
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 1px;
    background-color: #a7a7a7;
    height: 30px;
} */
.gps-display-wrapper{
    margin-bottom: 0;
    padding: 2px 0;
    background: transparent;
    max-width: 50%;
    min-width: auto;
}
.search-icon{
    margin-right: 0;
    height: 50px;
    width: 50px;
}
.gps-edit-btn{
    width: 22px;
    height: 22px;
    margin-left: 3px;
    background: rgb(6 6 6 / 30%);
}
.gps-edit-btn img {
    width: 10px;
}
.search-bar-wrap i { color: #9ca3af; margin-right: 12px; font-size: 18px; }
.search-bar-wrap input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px; color: #333; }

.user-location-row {
    display: flex; align-items: center; font-size: 13px; color: var(--text-sub); width: fit-content;
}
#user-addr-text{
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    max-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-location-row i.fa-location-dot { color: #ef4444; margin-right: 8px; }
.edit-loc-icon {
    margin-left: 10px; cursor: pointer; color: var(--primary-color);
    visibility: hidden; opacity: 0; transition: 0.3s;
}
.user-location-row:hover .edit-loc-icon { visibility: visible; opacity: 1;display: block; }

#search-loading {
    display: none; padding: 100px 0; text-align: center;
}
.spinner-gif {
    width: 60px; height: 60px; border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%; animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.search-results-main { padding: 80px 0 80px; min-height: 100vh;margin-left: 230px;width: 100%;max-width: 625px;}

.afs-container { margin-bottom: 35px; }
.ad-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 20px; margin-bottom: 15px; position: relative;
}
.ad-card::before { content: "赞助商广告"; position: absolute; top: 12px; right: 20px; font-size: 11px; color: #059669; background: #ecfdf5; padding: 2px 8px; border-radius: 4px; }
.ad-card h4 { color: #1a0dab; font-size: 19px; margin-bottom: 8px; text-decoration: underline; cursor: pointer; }
.ad-card p { font-size: 14px; color: #4b5563; line-height: 1.5; }

.nearme-item-card {
    display: flex; background: #fff;
    margin-bottom: 20px; overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    border-bottom: 1px solid #d2d2d2 ;
    padding-bottom: 10px;
}
/* .nearme-item-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); } */

.item-image {
    width: 300px; 
    background-size: cover; background-position: center;
    flex-shrink: 0;
}

.item-content {
    flex: 1; padding: 0;
    display: flex; flex-direction: column; justify-content: center;
}

.item-content h3 { 
    margin-bottom: 0;
    color: #1a0dab;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
 }
.item-meta,.item-street  { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #474747; margin-bottom: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px; 
    padding-bottom: 2px;
    user-select: none;
}
.item-meta i { color: var(--primary-color); width: 18px; text-align: center; }
.item-street { font-family: 'Courier New', Courier, monospace; }

.pagination-wrap { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.pg-btn {
    min-width: 40px; height: 40px; border: 1px solid #e5e7eb; background: #fff;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); font-weight: bold; }

.nearme-list-container{
    padding-top: 10px;
}


@media (max-width: 768px) {
    .logo{
        display: none;
    }
    
    .nearme-item-card {      
        height: auto;
        width: 98%;
        margin: 10px auto; 
    }
    .item-image { 
        width: 100px;
        height: 100px;
        object-fit: cover;
        padding-left: 3px;
        border-radius: 5px;
     }
    .item-image-wrap{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .item-content{
        padding: 5px 15px;
        margin-left: 0;
    }
    .item-content h3{
        font-size: 17px;
        margin-bottom: 3px;
    }
    .gps-display-wrapper{
        min-width: auto;
        max-width: auto;
    }
}


/* Overrides for result page */
.logo a i{ color: var(--primary-color); }

@media (max-width: 1680px) {
    .search-results-main{
        margin-left: 10%;
    }
    .search-fixed-box{
        margin-left: 4%;
    }
}
@media (max-width: 1360px) {
    .search-results-main{
        margin-left: 120px;
    }
    .search-fixed-box{
        margin-left: 5%;
    }
}
@media (max-width: 768px) {
    #site-header{
        height: 45px;
        padding: 0 10px;
    }
    .search-results-main{
        padding: 50px 0 80px;
    }
    .search-icon,.search-bar-wrap{
        height: 40px;
    }
    .search-results-main{
        margin-left: 0;
    }
    .search-fixed-box{
        margin-left: 0px;
        flex: 1;
    }
    .header-right{
        display: none;
    }
}