/* 데스크탑과 태블릿에서는 br 숨김 (한 줄) */
.mobile_br {
    display: none;
}

/* ===== 지노블 오시는 길 메인 섹션 ===== */
.location_main_section {
    position: relative;
    width: 100%;
    height: 580px; /* 데스크탑 기본 높이 */
    margin-top: 70px; /* top_banner 높이만큼 여백 - 기본값 */
    background-image: url('/theme/gnoble/images/about/main_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.location_main_container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location_main_content {
    text-align: center;
    color: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location_main_title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.location_navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.location_nav_item {
    flex: 1;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(72, 67, 60, 0.8);
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location_nav_item:last-child {
    border-right: none;
}

.location_nav_item span {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: block;
}

.location_nav_item.active span {
    color: #D4AF5F;
    font-weight: 600;
}

.location_nav_item:hover span {
    color: #D4AF5F;
}

.location_nav_item:hover {
    background: rgba(72, 67, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.location_nav_item:focus {
    outline: 2px solid #D4AF5F;
    outline-offset: 2px;
}

.location_nav_item:active {
    transform: translateY(0);
}

/* ===== 반응형 디자인 ===== */

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .location_main_section {
        height: 580px;
        margin-top: 70px; /* 데스크탑 top_banner 높이 */
    }
    
    .location_main_title {
        font-size: 40px; /* 데스크탑 */
        margin-bottom: 60px;
    }
    
    .location_navigation {
        max-width: 1200px;
    }
    
    .location_nav_item {
        padding: 20px 0;
    }
    
    .location_nav_item span {
        font-size: 18px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .location_main_section {
        height: 520px; /* 태블릿 중간값 */
        margin-top: 60px; /* 태블릿 top_banner 높이 */
    }
    
    .location_main_title {
        font-size: 35px; /* 태블릿 중간값 */
        margin-bottom: 50px;
    }
    
    .location_navigation {
        max-width: 100%;
    }
    
    .location_nav_item {
        padding: 18px 0;
    }
    
    .location_nav_item span {
        font-size: 16px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .location_main_section {
        height: 480px; /* 모바일 중간값 */
        margin-top: 55px; /* 모바일 top_banner 높이 */
    }
    
    .location_main_container {
        padding: 0 15px;
    }
    
    .location_main_title {
        font-size: 32px; /* 모바일 중간값 */
        margin-bottom: 40px;
    }
    
    .location_navigation {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0;
    }
    
    .location_nav_item {
        padding: 15px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .location_nav_item:nth-child(2n) {
        border-right: none;
    }
    
    .location_nav_item:nth-child(n+3) {
        border-bottom: none;
    }
    
    .location_nav_item span {
        font-size: 15px; /* 모바일 중간값 */
    }
    
    /* 모바일에서는 br 표시 (두 줄) */
    .mobile_br {
        display: block;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .location_main_section {
        height: 435px; /* 작은 모바일 */
        margin-top: 55px; /* 작은 모바일 top_banner 높이 */
    }
    
    .location_main_container {
        padding: 0 15px;
    }
    
    .location_main_title {
        font-size: 30px; /* 작은 모바일 */
        margin-bottom: 35px;
    }
    
    .location_navigation {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0;
    }
    
    .location_nav_item {
        padding: 12px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .location_nav_item:nth-child(2n) {
        border-right: none;
    }
    
    .location_nav_item:nth-child(n+3) {
        border-bottom: none;
    }
    
    .location_nav_item span {
        font-size: 13px; /* 작은 모바일 */
    }
    
    /* 작은 모바일에서도 br 표시 (두 줄) */
    .mobile_br {
        display: block;
    }
}

/* ===== 오시는 길 타이틀 섹션 ===== */
.location_title_section {
    background-color: #FFFFFF;
    padding: 100px 0 40px 0; /* 데스크탑 기본값 */
}

.location_title_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.location_title {
    font-size: 40px; /* 데스크탑 기본값 */
    font-weight: 700;
    color: #333333;
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .location_title_section {
        padding: 100px 0 40px 0; /* 데스크탑 */
    }
    
    .location_title {
        font-size: 40px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .location_title_section {
        padding: 87px 0 35px 0; /* 태블릿 중간값 */
    }
    
    .location_title {
        font-size: 35px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .location_title_section {
        padding: 81px 0 32px 0; /* 모바일 중간값 */
    }
    
    .location_title_container {
        padding: 0 15px;
    }
    
    .location_title {
        font-size: 32px; /* 모바일 중간값 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .location_title_section {
        padding: 75px 0 30px 0; /* 작은 모바일 */
    }
    
    .location_title_container {
        padding: 0 15px;
    }
    
    .location_title {
        font-size: 30px; /* 작은 모바일 */
    }
}

/* ===== 오시는 길 섹션1 ===== */
.location_section1 {
    background-color: #FFFFFF;
    padding: 0 0 100px 0; /* 데스크탑 기본값 - 상단 0, 하단 100 */
}

.location_section1_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.location_section1_content {
    text-align: center;
}

/* 탭 스타일 */
.location_tabs {
    display: flex;
    justify-content: stretch;
    margin-bottom: 40px;
    width: 100%;
}

.location_tab {
    background: #FFFFFF;
    border: 0.5px solid #DDDDDD;
    padding: 16px 32px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #777777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
}

.location_tab:first-child {
    border-radius: 8px 0 0 8px;
}

.location_tab:last-child {
    border-radius: 0 8px 8px 0;
}

.location_tab.active {
    background: #D4AF60;
    color: #fff;
    border: 0.5px solid #DDDDDD;
}

/* 콘텐츠 스타일 */
.location_content {
    display: flex;
    gap: 0px;
    align-items: flex-start;
}

.location_map_container {
    flex: 1;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    aspect-ratio: 600/322;
}

.location_map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
}

.location_image_container {
    flex: 1;
    position: relative;
    aspect-ratio: 600/322;
}

.location_image {
    display: none;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.location_image.active {
    display: block;
}

.location_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}

/* 주소 및 연락처 정보 */
.location_info {
    margin-top: 40px;
    text-align: left;
}

.location_info_seoul,
.location_info_jeju {
    display: none;
}

.location_info_seoul.active,
.location_info_jeju.active {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.location_info_item {
    display: flex;
    align-items: flex-start;
    gap: 160px;
}

.location_info_title {
    font-family: 'Noto Serif KR', serif;
    font-size: 40px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
    flex: 0 0 auto;
    min-width: 190px;
}

.location_info_content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.location_info_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    color: #48433C;
    margin: 0;
    line-height: 1.6;
    font-weight: normal;
}

.location_info_subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    color: #48433C;
    margin: 0;
    line-height: 1.5;
    font-weight: normal;
}

.location_info_subway {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.subway_number {
    background: #697215;
    color: #FFFFFF;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subway_line {
    background: #A71F32;
    color: #FFFFFF;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 15px;
}

.subway_station {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    color: #48433C;
    font-weight: normal;
}

.location_tel .location_info_text {
    font-size: 18px;
    font-weight: normal;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .location_section1 {
        padding: 0 0 100px 0; /* 데스크탑 - 상단 0, 하단 100 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .location_section1 {
        padding: 0 0 80px 0; /* 태블릿 중간값 - 상단 0, 하단 80 */
    }
    
    .location_tabs {
        margin-bottom: 35px;
    }
    
    .location_tab {
        padding: 14px 28px;
        font-size: 16px;
        flex: 1;
    }
    
    .location_content {
        gap: 0px;
    }
    
    .location_map_container {
        aspect-ratio: 600/322;
    }
    
    .location_map {
        height: 100%;
    }
    
    .location_image_container {
        aspect-ratio: 600/322;
    }
    
    .location_image img {
        height: 100%;
    }
    
    .location_info_seoul.active,
    .location_info_jeju.active {
        gap: 35px;
    }
    
    .location_info_item {
        gap: 120px;
    }
    
    .location_info {
        margin-top: 35px;
    }
    
    .location_info_title {
        font-size: 35px;
        min-width: 90px;
    }
    
    .location_info_text {
        font-size: 16px;
    }
    
    .location_info_subtitle {
        font-size: 16px;
    }
    
    .subway_number {
        font-size: 11px;
        width: 26px;
        height: 26px;
        padding: 7px;
    }
    
    .subway_line {
        font-size: 11px;
        padding: 3px 6px;
        border-radius: 12px;
    }
    
    .subway_station {
        font-size: 16px;
    }
    
    .location_tel .location_info_text {
        font-size: 16px;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .location_section1 {
        padding: 0 0 60px 0; /* 모바일 중간값 - 상단 0, 하단 60 */
    }
    
    .location_section1_container {
        padding: 0 15px;
    }
    
    .location_tabs {
        margin-bottom: 30px;
    }
    
    .location_tab {
        padding: 12px 24px;
        font-size: 15px;
        flex: 1;
    }
    
    .location_content {
        flex-direction: column;
        gap: 0px;
    }
    
    .location_map_container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 600/322;
    }
    
    .location_map {
        height: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .location_image_container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 600/322;
    }
    
    .location_image img {
        height: 100%;
    }
    
    .location_info_seoul.active,
    .location_info_jeju.active {
        flex-direction: column;
        gap: 25px;
    }
    
    .location_info_item {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }
    
    .location_info {
        margin-top: 30px;
        text-align: left;
    }
    
    .location_info_title {
        font-size: 32px;
        min-width: auto;
    }
    
    .location_info_text {
        font-size: 15px;
    }
    
    .location_info_subtitle {
        font-size: 15px;
    }
    
    .subway_number {
        font-size: 10px;
        width: 24px;
        height: 24px;
        padding: 6px;
    }
    
    .subway_line {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .subway_station {
        font-size: 15px;
    }
    
    .location_tel .location_info_text {
        font-size: 15px;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .location_section1 {
        padding: 0 0 50px 0; /* 작은 모바일 - 상단 0, 하단 50 */
    }
    
    .location_section1_container {
        padding: 0 15px;
    }
    
    .location_tabs {
        margin-bottom: 25px;
    }
    
    .location_tab {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
    }
    
    .location_content {
        flex-direction: column;
        gap: 0px;
    }
    
    .location_map_container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 600/322;
    }
    
    .location_map {
        height: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .location_image_container {
        aspect-ratio: 600/322;
    }
    
    .location_image img {
        height: 100%;
    }
    
    .location_info_seoul.active,
    .location_info_jeju.active {
        flex-direction: column;
        gap: 20px;
    }
    
    .location_info_item {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
    
    .location_info {
        margin-top: 25px;
        text-align: left;
    }
    
    .location_info_title {
        font-size: 30px;
        min-width: auto;
    }
    
    .location_info_text {
        font-size: 13px;
    }
    
    .location_info_subtitle {
        font-size: 13px;
    }
    
    .subway_number {
        font-size: 9px;
        width: 22px;
        height: 22px;
        padding: 5px;
    }
    
    .subway_line {
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 8px;
    }
    
    .subway_station {
        font-size: 13px;
    }
    
    .location_tel .location_info_text {
        font-size: 13px;
    }
}
