@charset "utf-8"; .main-top-header {
    margin-bottom: 10px;
}

.main-top-header .list-main {
    display: flex;
    /* margin-bottom:5px; */
    flex-wrap: wrap;
    background: #f3f3f3;
    padding: 4px 2px;
    margin-bottom: 2px;
    border-radius: 2px;
}

.main-top-header .addr-list {
}

.main-top-header .addr-list .item.active {
    background: red;
    color : white;
}

.main-top-header .addr-list .item {
    padding: 4px 7px;
    color: black;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    margin: 1px 2px;
    font-size: 1.1em;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
}

.addr-sub-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.addr-sub-list .item {
    padding: 5px;
    font-size: 1.1em;
    margin: 5px;
}

.addr-sub-list .item.active {
    background: red;
    color : white;
}

.main-top-header .comptype-list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.main-top-header .comptype-list .item.active {
    background: red;
    color : white;
}

.main-top-header .comptype-list .item {
    padding: 4px 7px;
    color: black;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    margin: 1px 2px;
    font-size: 1.1em;
    cursor: pointer;
    width: auto;
    flex-grow: 1;
    text-align: center;
}

.main-comp-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.main-comp-list .item {
    width: 20%;
    padding: 3px;
    display: block;
    /* margin-bottom: 5px; */
}
.main-comp-list .item.opga:before {
    content:"오피가이드";
    display:block;
    position:absolute;
    color:white;
    background:#00bf01;
    padding:2px 4px;
    border-radius:5px;
    margin-left:2px;
    z-index: 2;
}

.main-comp-list .item .item-inner {
    display: block;
    padding: 4px;
    background: #f3f3f3;
    border-radius: 7px;
    overflow: hidden;
}

.main-comp-list .item .thumb {
    padding-bottom: 75%;
    display: block;
    position: relative;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.main-comp-list .item .thumb .img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-comp-list .item .thumb .img img {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
    margin: 0px auto;
    object-fit: cover;
}

.main-comp-list .item .name {
    font-size: 1.3em;
    color: red;
    font-weight: bolder;
    /* width: 100px; */
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
    display: block;
}

.main-comp-list .item .name .cmpname {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
}

.main-comp-list .item .name .type {
    color: gray;
    font-size: 0.8em;
    margin-left: 1px;
    font-weight: lighter;
    display: inline-block;
}

.main-comp-list .item .name .addr {
    color: gray;
    font-size: 0.8em;
    margin-left: 1px;
    font-weight: lighter;
    display: inline-block;
}

.main-comp-list .item .name .addr:after {
    content: "-" ;
    display: inline-block ;
}

.main-comp-list .item .contact {
    font-size: 1.2em;
    padding: 0px 0px 5px 0;
}

.main-comp-list .item .addr {
}

.main-comp-list .item .btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-comp-list .item .btn-wrap .btn {
    width: 49%;
    font-size: 1.2em;
    font-weight: normal;
    cursor: pointer;
}

.main-comp-list .item .btn-wrap .btn.btn-info {
    background: white;
}

.main-comp-list .item .btn-wrap .btn.btn-call {
    background: white;
}

.cmp_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgb(0 0 0 / 32%);
    align-items: center;
}

.cmp_modal .cmp_modal_inner {
    margin: 0 auto;
    width: calc( 100% - 20% );
    max-width: 800px;
    min-height: calc(100% - 3.5rem);
    display: flex;
    /* align-items: center; */
    max-height: calc( 100% - 50px );
    overflow-y: hidden;
    overflow-x: hidden;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #8d8d8d;
    padding: 10px;
    flex-direction: column;
}

.cmp_modal .cmp_modal_inner .modal-top {
    display: flex;
    width: 100%;
}

.cmp_modal .cmp_modal_inner .modal-top .tab {
    display: flex;
    /* width: 100%; */
    flex-grow: 1;
}

.cmp_modal .cmp_modal_inner .modal-top .tab .tmenu {
    padding: 10px 0px;
    margin: 0 10px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid rgb(255 66 66 / 0%);
    color: gray;
}

.cmp_modal .cmp_modal_inner .modal-top .tab .tmenu:hover {
    border-bottom: 2px solid #ffb9b9 ;
}

.cmp_modal .cmp_modal_inner .modal-top .tab .tmenu.active {
    border-bottom: 2px solid #ff4242;
    color: black;
}

.cmp_modal .cmp_modal_inner .modal-top .tab-right .adm-tab {
    display: flex;
    margin-right: 20px;
    align-items: center;
}

.cmp_modal .cmp_modal_inner .modal-top .tab-right .tmenu {
    display: flex;
    align-items: center;
    padding: 2px;
    font-size: 16px;
    color: red;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid red;
    border-radius: 4px;
}

.cmp_modal .cmp_modal_inner .modal-top .tab-right .tmenu.modi {
}

.cmp_modal .cmp_modal_inner .modal-review {
    display: none;
}

.cmp_modal .cmp_modal_inner .modal-cmnt {
    display: none;
}

.cmp_modal .cmp_modal_inner .modal-foot {
}

.cmp_modal .cmp_modal_inner .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: white;
    background-clip: padding-box;
    /* border: 1px solid rgba(0,0,0,.2); */
    /* border-radius: .3rem; */
    outline: 0;
    /* height: 100%; */
    text-align: center;
    max-height: calc( 100% - 50px );
    overflow-y: scroll;
    overflow-x: hidden;
}

.cmp_modal .cmp_modal_inner .modal-content img {
    max-width: 100%;
}

.tab-right {
    /* .tab-right에 대한 스타일 선언 */
    display: flex;
}

.tab-right .close {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tab-right .close:before, .tab-right .close:after {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    background-color: black;
}

.tab-right .close:before {
    transform: rotate(45deg);
}

.tab-right .close:after {
    transform: rotate(-45deg);
}

.index-btm-btn {
    margin: 10px;
    text-align: center;
}

.index-btm-btn .index-next-btn {
    font-size: 17px;
    color: white;
    background: #575757;
    border: 0;
    padding: 7px 13px;
    border-radius: 2px;
}


@media only screen and (max-width: 600px) {
    .main-comp-list .item {
        width: 25%;
        /* padding: 5px 5px 5px 0; */
        display: block;
        /* margin-bottom: 5px; */
    }
}

@media only screen and (max-width: 520px) {
    .main-comp-list .item {
        width: 33.3%;
        /* padding: 5px 5px 5px 0; */
        display: block;
        /* margin-bottom: 5px; */
    }
}

@media only screen and (max-width: 380px) {
    .main-comp-list .item {
        width: 50%;
        /* padding: 5px 5px 5px 0; */
        display: block;
        /* margin-bottom: 5px; */
    }
}
