main{margin-bottom: 140px;}
.cinema{padding: 0 var(--padding-x); height: 100%; margin-top: 50px;}

/* **********************cinema***************************** */
.theater-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.brand-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #727272;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.brand-tab-button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #f3f3f3;
    background-color: #727272;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.brand-tab-button:hover {
    background-color: #626262;
}

.brand-tab-button.active {
    background-color: #424242;
}

.region-tabs {
    display: flex;
    border-bottom: 2px solid #b0b0b0;
}

.region-tab-button {
    flex-grow: 1;
    padding: 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #626262;
    background-color: #f3f3f3;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.region-tab-button:hover {
    background-color: #e3e3e3;
}

.region-tab-button.active {
    background-color: #555;
    color: #fff;
    border-bottom: 2px solid #555;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

#map {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
}

.theater-list {
    display: none;
    flex-wrap: wrap;
    gap: 30px;
}

.theater-list.active {
    display: flex;
}

.column {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 40px;
}

.column span {
    width: 11.5rem;
    font-size: 15px;
    font-weight: 500;
    color: #1e1e1e;
    cursor: pointer;
}

.column span:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 지도 커스텀 오버레이 마커 스타일 */
.custom-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -100%); /* 마커의 중심을 아래쪽으로 이동 */
}

/* CGV 마커 색상 */
.custom-marker.cgv, .C{
    background-color: #ff0d01;
}

/* 메가박스 마커 색상 */
.custom-marker.megabox, .M{
    background-color: #5c2d91;
}

/* 롯데시네마 마커 색상 */
.custom-marker.lottecinema, .L {
    background-color: #da291c;
}

/* 독립/예술영화관 마커 색상 */
.custom-marker.independent, .독 {
    background-color: #fde800;
}

/*MEDIA QUERIES*/
@media screen and (max-width: 1600px){
    .cinema{margin-top: 120px;}
}

@media screen and (max-width: 1200px){
    .column {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1000px){
    .column {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px){
    .brand-tab-button{font-size: 0.8rem;}
    .region-tab-button{font-size: 0.9rem;}
    .column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575px){
    .brand-tabs .brand-tab-button{font-size: 6px;}
    .region-tabs .region-tab-button{font-size: 6px;}
    .column span{font-size: 8px;}
}