/*
 * Copyright (c) Baidu, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import 'variable.less';
@import (reference) 'tokens.less';

.@{prefix}-location-card {
    .cos-flex();
    .cos-space-pt-md();
    .cos-space-pb-md();

    &-thumbnail {
        .cos-space-mr-sm();
        width: 87px;
        height: 87px;
    }
    // 右侧内容部分
    &-content {
        flex: 1;
        overflow: hidden;
    }
    &-line {
        .cos-flex();
        .cos-items-center();
        .cos-color-text-minor();
    }
    &-address,
    &-hours {
        .cos-line-clamp-1();
    }
    &-title {
        .cos-line-clamp-1();
        .cos-font-medium();
        .cos-color-text();
        .cos-text-left();
    }
    .cos-score {
        .cos-shrink-0();
        &, .cos-score-count {
            height: 16px;
            line-height: 16px;
        }
    }
    &-no-score {
        flex: 0 0 auto;
    }
    &-category {
        .cos-space-ml-xxs();
    }
    &-cost {
        .cos-space-ml-xxs();
    }
    &-tags {
        .cos-flex-wrap();
        overflow: hidden;
        max-height: 16px;

        .cos-tag {
            .cos-line-clamp-1();
            .cos-flex();

            &:not(:last-child) {
                .cos-space-mr-xxs();
            }
        }
    }
}
