/**
 * Callaway Golf 매장 찾기 스타일시트
 * 리팩토링 버전
 */

/* 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 전역 스타일 */
body {
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c4c4c4, #c4c4c4);
}

::-webkit-scrollbar-button {
    display: none;
}

/* 컨텐츠 컨테이너 */
#content-container {
    margin: 0;
    padding: 0;
    border-top: 1px solid #cecece;
    width: 100%;
    max-width: 100%;
}

/* PC일 때 max-width 1400px */
@media (min-width: 769px) {
    #content-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* 검색 폼 */
#tranMgrajax {
    display: flex;
}

/* 모바일에서 flex 제거 */
@media (max-width: 768px) {
    #tranMgrajax {
        display: block;
    }
}

/* 좌측 네비게이션 패널 */
.map_navi {
    position: absolute;
    margin: 20px;
    width: 410px;
    height: 75%;
    padding: 20px 15px;
    z-index: 200;
    background-color: #fff;
}

.map_navi h3 {
    padding: 0;
    margin: 0 0 30px 0;
}

.map_navi .row-fluid {
    padding: 0;
    margin: 0 0 30px 0;
    position: relative;
}

.map_navi .retail_search_field {
    margin: 0 0 30px 0;
}

.map_navi .retail_option_field {
    position: absolute;
    margin: 0 0 60px 0;
    padding: 50px 0 0 0;

    background-color: #fff;
    display: none;
    z-index: 10;
    width: 100%;
}

/* 모바일에서는 항상 숨김 */
@media (max-width: 768px) {
    .map_navi .retail_option_field {
        display: none !important;
    }
}

.map_navi .retail_result_parent {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 84%;
		top:120px;
}

.map_navi .retail_result {
    position: absolute;
    display: none;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: 90%;
    width: 100%;
    float: left;
    left: 0;
    padding: 30px 15px;
    z-index: 11;
}

.retail_result_1 {
    border-bottom: 2px solid #f6f6f6;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.map_navi .retail_result p {
    margin: 0 0 8px 0;
}

.map_navi select {
    margin: 0 0 30px 0;
    width: 100%;
    color: #000;
}

.map_navi p {
    font-size: 14px;
}

.map_navi font {
    padding: 0;
    line-height: 46px;
}

/* 검색 UI */
.retail_ui {
    border: 1px solid #ccc;
    border-radius: 30px;
    background: white;
    position: relative;
    display: flex;
}

.retail_ui input {
    background-color: #fff;
}

/* 모바일에서 입력창 더 길게 */
@media (max-width: 768px) {
    .retail_ui input.col-xs-10 {
        width: calc(85% + 40px) !important; /* 좌측 기준으로 우측으로 40px 확장 */
        flex: 0 0 calc(85% + 40px) !important;
        max-width: calc(85% + 40px) !important;
    }
    
    .retail_ui button.col-xs-2 {
        width: calc(15% - 40px) !important; /* 버튼 너비 조정 */
        flex: 0 0 calc(15% - 40px) !important;
        max-width: calc(15% - 40px) !important;
    }
}

.retail_ui button {
    padding: 0;
    border: none;
    background: none;
}

/* 검색 버튼 (retail_search_btn) */
#retail_search_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    background: transparent;
}

#retail_search_btn svg {
    fill: #333;
    transition: fill 0.3s ease;
}

#retail_search_btn:hover svg {
    fill: #000;
}

/* PC 스타일 */
@media (min-width: 769px) {
    #retail_search_btn {
        width: 48px; /* 24px * 2 = 48px (200%) */
        height: 48px; /* 24px * 2 = 48px (200%) */
        margin: 0px 0 0 0;
    }
    
    #retail_search_btn svg {
        fill: #999; /* 회색 */
        height: 30px;
    }
    
    #retail_search_btn:hover svg {
        fill: #666; /* 호버 시 더 진한 회색 */
    }
}

/* 모바일 스타일 */
@media (max-width: 768px) {
    .retail_ui #retail_search_btn,
    #retail_search_btn {
        
        
        margin: 9px 0 0 -50px; /* 좌측으로 50px 이동 */
    }
    
		#retail_search_btn svg {
			width: 32px ;
			
			margin-bottom: 8px;
	}
}

/* 검색 필터 버튼 (retail_search_filter) */
#retail_search_filter {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    z-index: 10; /* z-index 위로 */
}

#retail_search_filter svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.3s ease;
}

#retail_search_filter:hover svg {
    fill: #000;
}

/* PC 스타일 */
@media (min-width: 769px) {
    #retail_search_filter {
        width: 48px;
        height: 48px;
        margin: 0px 0 0 0;
    }
    
    #retail_search_filter svg {
        width: 28px;
        height: 28px;
        fill: #999; /* 회색 */
    }
    
    #retail_search_filter:hover svg {
        fill: #666; /* 호버 시 더 진한 회색 */
    }
}

/* 모바일 스타일 */
@media (max-width: 768px) {
	#retail_search_filter {
		position: absolute;
		top: 65px;
		right: 10px;
		width: 36px;
		height: 36px;
		margin: 0;
		z-index: 10;
}
    
    #retail_search_filter svg {
        width: 20px;
        height: 20px;
    }
    
    /* retail_ui를 기준으로 필터 버튼 위치 설정 */
    .retail_ui {
        position: relative;
    }
}

/* 입력 필드 */
input[type="text"],
textarea {
    outline: none;
    box-shadow: none !important;
    border: none;
}

input:focus:invalid {
    outline: none;
    box-shadow: none !important;
    border: none;
}

/* 검색 결과 푸터 */
.retail_footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* 버튼 스타일 */
.new_btn_2 {
    padding: 7px;
    font-size: 13px;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all .1s;
    cursor: pointer;
}

.new_btn_2:hover {
    background-color: #333;
}

#retail_option_result {
    display: inline-block;
}

/* 닫기 버튼 */
.option-close {
    margin: 15px 0 0 0;
    padding: 0px;
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 8px;
    line-height: 22px;
    text-align: center;
    border: 2px solid #111;
    border-radius: 20px;
    font-weight: 700;
    transition: transform .4s;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.option-close:hover {
    transform: rotate(90deg);
}

.option-close2 {
    display: none;
}

/* 검색 결과 닫기 버튼 - PC에서는 숨김 */
.retail-result-close {
    display: none;
}

/* 내비게이션 버튼 (모바일) */
.navi_btn_mo {
    display: none;
}

/* 카테고리 버튼 */
.map_cate {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    background-color: #000 !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate:focus {
    outline: none !important;
}

.map_cate2 {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    background-color: #ea6500 !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate2:focus {
    outline: none !important;
}

.map_cate2:hover {
    background-color: #d45a00 !important;
}

.map_cate3,
button.map_cate3,
button[class*="map_cate3"],
button[class~="map_cate3"],
.col-md-12 button.map_cate3,
.col-lg-12 button.map_cate3,
.col-xs-12 button.map_cate3 {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    background-color: #143b80 !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate3:focus,
button.map_cate3:focus,
.col-md-12 button.map_cate3:focus,
.col-lg-12 button.map_cate3:focus,
.col-xs-12 button.map_cate3:focus {
    outline: none !important;
}

.map_cate3:hover,
button.map_cate3:hover,
.col-md-12 button.map_cate3:hover,
.col-lg-12 button.map_cate3:hover,
.col-xs-12 button.map_cate3:hover {
    background-color: #0f2d5c !important;
}

/* 비활성화된 카테고리 버튼 */
.map_cate_inactive_gear,
button.map_cate_inactive_gear,
button[class*="map_cate_inactive_gear"],
button[class~="map_cate_inactive_gear"],
.col-md-12 button.map_cate_inactive_gear,
.col-lg-12 button.map_cate_inactive_gear,
.col-xs-12 button.map_cate_inactive_gear {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid #000 !important;
    border-radius: 50px !important;
    color: #000 !important;
    background-color: #fff !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate_inactive_gear:focus,
button.map_cate_inactive_gear:focus,
.col-md-12 button.map_cate_inactive_gear:focus,
.col-lg-12 button.map_cate_inactive_gear:focus,
.col-xs-12 button.map_cate_inactive_gear:focus {
    outline: none !important;
}

.map_cate_inactive_gear:hover,
button.map_cate_inactive_gear:hover,
.col-md-12 button.map_cate_inactive_gear:hover,
.col-lg-12 button.map_cate_inactive_gear:hover,
.col-xs-12 button.map_cate_inactive_gear:hover {
    background-color: #f5f5f5 !important;
}

.map_cate_inactive_apparel,
button.map_cate_inactive_apparel,
button[class*="map_cate_inactive_apparel"],
button[class~="map_cate_inactive_apparel"],
.col-md-12 button.map_cate_inactive_apparel,
.col-lg-12 button.map_cate_inactive_apparel,
.col-xs-12 button.map_cate_inactive_apparel {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid #ea6500 !important;
    border-radius: 50px !important;
    color: #ea6500 !important;
    background-color: #fff !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate_inactive_apparel:focus,
button.map_cate_inactive_apparel:focus,
.col-md-12 button.map_cate_inactive_apparel:focus,
.col-lg-12 button.map_cate_inactive_apparel:focus,
.col-xs-12 button.map_cate_inactive_apparel:focus {
    outline: none !important;
}

.map_cate_inactive_apparel:hover,
button.map_cate_inactive_apparel:hover,
.col-md-12 button.map_cate_inactive_apparel:hover,
.col-lg-12 button.map_cate_inactive_apparel:hover,
.col-xs-12 button.map_cate_inactive_apparel:hover {
    background-color: #f5f5f5 !important;
}

.map_cate_inactive_ces {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid #143b80 !important;
    border-radius: 50px !important;
    color: #143b80 !important;
    background-color: #fff !important;
    display: inline-block !important;
    width: auto !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.map_cate_inactive_ces:focus {
    outline: none !important;
}

.map_cate_inactive_ces:hover {
    background-color: #f5f5f5 !important;
}

.map_cate_text {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    color: #fff;
    background-color: #000;
    display: inline-block;
    width: auto !important;
    padding: 5px 10px !important;
    float: right;
    margin-top: -20px !important;
}

/* 라디오 버튼 */
.radio_cate {
    width: 100%;
    padding-left: 15px;
}

.radio_cate_label {
    margin: 0 5px 0 5px;
    cursor: pointer;
}

/* 팝업 정보 */
.popinfo {
    padding: 10px;
    position: relative;
}

/* 모바일 버튼 */
#mobile_btn {
    display: none;
}

/* 접근성 */
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 반응형 - 모바일 (768px 미만) */
@media (max-width: 768px) {
    .navi_btn_mo {
        display: inline-block;
    }

    .location_pin {
        position: absolute;
        right: 0;
        padding: 10px 24px;
    }

    .map_navi {
        top: 60px;
        width: 100%;
        height: auto;
        margin: 0;
        background: none;
        z-index: 100 !important;
    }

    /* 모바일 메뉴 열릴 때 매장찾기 UI 숨김 */
    body.is-mobile-menu-open .map_navi {
        display: none !important;
    }

    .map_navi h3 {
        display: none;
    }

    .retail_ui input {
        width: inherit;
    }

    .retail_search_field {
        width: 100%;
    }

    .search-filter {
        background: transparent;
        border: none;
        font-size: 24px;
        padding: 0;
    }

    .map_navi .retail_option_field {
        height: 100%;
        position: fixed;
        top: 50px;
        left: 0;
        padding: 80px 30px 0;
        background-color: #fff;
        z-index: 100 !important;
    }

    .retail_footer {
        display: block;
    }

    .option-close {
        display: block;
        position: fixed;
        top: 70px;
        right: 15px;
        z-index: 101;
    }
    
    .option-close2 {
        display: none;
    }

    .map_navi .retail_result {
        position: fixed;
        left: 0;
        top: var(--header-height, 100px);
        width: 100%;
        height: 100% !important;
        padding: 50px 30px;
        display: inline-block;
        background-color: #fff;
        z-index: 100 !important;
    }
    
    .retail-result-close {
        display: flex;
        position: fixed;
        top: calc(var(--header-height, 100px) + 15px);
        right: 15px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 2px solid #111;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 102;
        transition: transform .4s, background-color .2s;
    }
    
    .retail-result-close:hover {
        transform: rotate(90deg);
        background-color: #f5f5f5;
    }
    
    .retail-result-close svg {
        width: 12px;
        height: 12px;
        fill: #111;
    }

    #mobile_btn {
        display: block;
        margin-top: 80px;
    }
}

/* 반응형 - 태블릿 이상 (768px 이상) */
@media (min-width: 768px) {
    #mobile_btn {
        display: none;
    }
}

/* 지도 컨테이너 */
.map_container {
    width: 100%;
    min-height: 600px;
    position: relative;
}

/* 프린트 스타일 */
@media print {
    .map_navi {
        display: none;
    }
    
    .map_container {
        width: 100%;
        height: auto;
    }
}

/* 모바일 매장 정보 모달 */
.store-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.store-modal.active {
    opacity: 1;
    visibility: visible;
}

.store-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.store-modal-content {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.store-modal.active .store-modal-content {
    transform: translateY(0);
}

.store-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.store-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.store-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.store-modal-body {
    padding: 10px 0;
}

.store-info-item {
    margin-bottom: 20px;
}

.store-info-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.store-info-value {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #000;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: -8px -12px;
}

.phone-link:hover,
.phone-link:active {
    background-color: #f0f9ff;
    color: #0284c7;
}

.phone-link svg {
    flex-shrink: 0;
    color: #0284c7;
}

.copy-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.copy-btn:hover,
.copy-btn:active {
    background-color: #f5f5f5;
    border-color: #000;
    color: #000;
}

.copy-btn svg {
    display: block;
}

/* 네비게이션 버튼 영역 */
.store-navi-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.navi-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navi-btn:active {
    transform: scale(0.95);
    background-color: #f5f5f5;
}

.navi-btn img {
    width: 60px;

    object-fit: contain;
}

.navi-btn span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.navi-btn:hover {
    border-color: #000;
}

/* 네비게이션 버튼 개별 색상 */
.navi-naver {
    border-color: #03C75A;
}

.navi-naver:hover,
.navi-naver:active {
    background-color: #f0fdf4;
    border-color: #03C75A;
}

.navi-kakao {
    border-color: #FEE500;
}

.navi-kakao:hover,
.navi-kakao:active {
    background-color: #fffbeb;
    border-color: #FEE500;
}

.navi-tmap {
    border-color: #1B8EF2;
}

.navi-tmap:hover,
.navi-tmap:active {
    background-color: #eff6ff;
    border-color: #1B8EF2;
}

/* PC에서는 모달 표시 안함 */
@media (min-width: 768px) {
    .store-modal {
        display: none !important;
    }
}
