.search-results {
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.search-results-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
}

.place-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.place-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.place-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.place-item-icon i {
    font-size: 18px;
    color: #4A90E2;
}

.place-item-content {
    flex: 1;
    min-width: 0;
}

.place-item-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-item-category {
    margin: 0 0 3px 0;
    font-size: 13px;
    color: #4A90E2;
    font-weight: 500;
}

.place-item-address {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-item-address i {
    font-size: 10px;
    margin-right: 5px;
}

.place-item-action {
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-view-place {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.btn-view-place:hover {
    color: #4A90E2;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.search-loading p {
    margin-top: 20px;
    font-size: 16px;
}

.no-results,
.search-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.no-results p,
.search-error p {
    margin-top: 15px;
    font-size: 16px;
}

.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: #4A90E2;
    position: relative;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 18px;
}

.place-popup h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2c3e50;
}

.place-popup p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.popup-category {
    color: #4A90E2;
    font-weight: 600;
}

.popup-address,
.popup-phone,
.popup-website {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-address i,
.popup-phone i,
.popup-website i {
    color: #4A90E2;
    font-size: 12px;
}

.popup-website a {
    color: #4A90E2;
    text-decoration: none;
}

.popup-website a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-results {
        max-height: none;
    }

    .place-item {
        padding: 12px 15px;
    }

    .place-item-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }

    .place-item-icon i {
        font-size: 16px;
    }

    .place-item-name {
        font-size: 15px;
    }

    .place-item-category {
        font-size: 12px;
    }

    .place-item-address {
        font-size: 11px;
    }
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    min-width: 200px;
}

/* Bus lines styling */
.place-item-lines {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.place-item-lines i {
    font-size: 11px;
    margin-right: 3px;
}

.bus-line-badge {
    display: inline-block;
    background: #4A90E2;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin: 0 2px;
}

.popup-lines {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.popup-lines i {
    color: #4A90E2;
    font-size: 12px;
}
