/* Franchise Locator Frontend Styles */

/* 컨테이너 및 레이아웃 */
#franchise-locator-container {
    background: #fff;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 헤더 영역 */
.franchise-header {
    padding: 0;
}

.franchise-tabs {
    display: flex;
    border: 1px solid #e9ecef;
    margin-bottom: /*var(--space-xs)*/ 20px;
}

.franchise-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align:center;
    cursor: pointer;
    font-size: var(--text-m);
    font-weight: 700;
    color: #3d3d3d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.franchise-tab:hover {
    background: #e9ecef;
    color: #212529;
}

.franchise-tab.active {
    background: black;
    color: white;
}

.franchise-search-container {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.franchise-search-container input {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: var(--text-m);
}

.franchise-search-container button {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-size: var(--text-m);
}

.franchise-search-container button:hover {
    background: #005a87;
}

/* 콘텐츠 영역 */
.franchise-content {
    display: flex;
    gap: var(--space-xs);
}

.franchise-map-container {
    flex: 2;
    background: #f8f9fa;
    border: 1px solid #ddd;
    position: relative;
    height: 400px;
}

#franchise-kakao-map {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
}

/* 지도 로딩 및 오류 상태 */
#kakao-map-loading,
.franchise-map-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    z-index: 1;
}

/* SVG 지도 스타일 */
.svg-map-container {
    background: #F6F7FA;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-title {
    text-align: center;
    margin-bottom: 20px;
}

.map-title h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.map-title p {
    margin: 0;
    color: #666;
    font-size: var(--text-m);
}

.korea-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.korea-map-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
}

#korea-map-base {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
}

.map-area {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 4px 8px;
    background: rgba(0, 124, 186, 0.7);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    min-width: 35px;
    opacity: 0.8;
    transform: translateX(-50%) translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.map-area:hover {
    opacity: 1;
    background: var(--primary);
    transform: translateX(-50%) translateY(-50%) scale(1.15);
    box-shadow: 0 2px 8px var(--primary-trans-30);
    border-color: rgba(255, 255, 255, 0.6);
}

.map-area.active {
    opacity: 1;
    background: var(--primary);
    box-shadow: 0 3px 12px rgba(0, 124, 186, 0.8);
    border-color: #fff;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

/* SVG 지도 스타일 */
#korea-svg-map {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.svg-region {
    cursor: pointer;
    transition: all 0.3s ease;
}


.svg-region.active {
    opacity: 1 !important;
    fill: var(--primary-semi-dark) !important;
}

#korea-svg-map text {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    opacity: 0.9;
}

#korea-svg-map rect.text-background {
    pointer-events: none;
}

/* 지역명 hover/active 상태 스타일링 - SVG 텍스트용 */
#korea-svg-map text.text-highlighted {
    fill: white !important;
    font-weight: bold;
}

#korea-svg-map rect.text-background {
    fill: var(--primary-semi-dark);
    rx: 15;
    ry: 15;
}

#korea-svg-map rect.text-background.active {
    fill: var(--primary-semi-dark);
    rx: 15;
    ry: 15;
}

/* active 상태인 지역의 지역명을 흰색으로 */
#korea-svg-map text.text-active {
    fill: white !important;
    font-weight: bold;
}
/* 검색 섹션 스타일 */
.map-search-section {
    height: 100%;
    padding: var(--space-m); 
    padding-bottom: var(--space-xl);
    background: #F6F7FA;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    justify-content: center;;
    border: 1px solid #ddd;
    background-image: url(../../../../uploads/2025/09/gn_golf_search.webp);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: 95% 95%;
    position: relative;
}

.map-search-section p {
    font-weight: bold;
    font-size: var(--text-m);
}

.map-search-section .search-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-search-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: var(--text-m);
}

.map-search-section button {
    padding: 8px 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: var(--text-m);
    display: flex;
    justify-content: center;
    align-items: center;
    Height: 100%;
}

.map-search-section button img{
    height: 20px;
    position: static;
    width: auto;
    margin-bottom: 2px;

}

.map-search-section img{
    position: absolute;
    width: 20%;
    height: auto;
    top: 0;
    right: 0;
}

.region-search-section {
    height: 100%;
    padding: var(--space-m);
    padding-bottom: var(--space-xl);
    background: #F6F7FA;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    justify-content: center;;
    border: 1px solid #ddd;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: 95% 95%;
    position: relative;
}
#standalone-consult-form{
padding: var(--space-m) var(--space-l);
    border: 0.5px solid rgba(0, 0, 0, 0.6);
}



/* 골프장 배경 이미지 (기본값) */
.region-search-section {
    background-image: url(../../../../uploads/2025/09/gn_golf_search.webp);
}

/* 콘도 배경 이미지 */
#franchise-locator-container[data-category="condo"] .region-search-section {
    background-image: url(../images/gn_condo_search.png);
}

#franchise-locator-container[data-category="condo"] .map-search-section {
    background-image: url(../images/gn_condo_search.png);
}

/* 피트니스 배경 이미지 */
#franchise-locator-container[data-category="fitness"] .region-search-section {
    background-image: url(../images/gn_fitness_search.png);
}

#franchise-locator-container[data-category="fitness"] .map-search-section {
    background-image: url(../images/gn_fitness_search.png);
}

.region-search-section p {
    font-weight: bold;
    font-size: var(--text-m);
}

.region-search-section .search-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.region-search-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: var(--text-m);
}

.region-search-section button {
    padding: 8px 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: var(--text-m);
height: 100%;
aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;

}

.region-search-section button img{
    height: 20px;
    position: static;
    width: auto;
    margin-bottom: 2px;

}

.region-search-section img{
    position: absolute;
    width: 20%;
    height: auto;
    top: 0;
    right: 0;
}

/* 공지사항 스타일 */
.franchise-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 카카오맵 관련 스타일 */
.kakao-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
}

.kakao-map-placeholder .map-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

#kakao-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
}

/* 모달 관련 스타일 */
.franchise-detail-map {
    height: 300px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

#map-search-btn{aspect-ratio: 1/1;}

/* 지역명은 직접 텍스트로 표시 */

.selected-region-info {
    text-align: center;
    padding: 15px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    margin-top: 20px;
}

.selected-region-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.selected-region-info p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: var(--text-m);
}

.franchise-button-small {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: var(--text-m);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.franchise-button-small:hover {
    background: #005a87;
}

.map-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
}

.franchise-list-container {
    flex: 3;
    background: #fff;
}

/* 지역 탭 */
.franchise-region-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 5px;
}

.region-tab {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--text-m);
    color: #495057;
    transition: all 0.2s ease;
}

.region-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.region-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 필터 초기화 버튼 스타일 */
.region-tab.filter-reset-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: 500;
}

.region-tab.filter-reset-btn:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* 테이블 스타일 */
.franchise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-m);
}

.franchise-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: var(--text-m);
}

.franchise-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.franchise-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.franchise-row:hover {
    background: #f8f9fa;
}

.franchise-row strong {
    color: #212529;
    font-weight: 600;
}

.franchise-row small {
    color: #6c757d;
    font-size: 12px;
}

/* 버튼 스타일 */
.franchise-link-btn,
.franchise-info-btn,
.franchise-consult-btn {
    padding: 0px;
    border: none;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.franchise-link-btn img,
.franchise-info-btn img,
.franchise-consult-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.franchise-link-btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.franchise-link-btn:hover,
.franchise-info-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
    color: #212529;
}

.franchise-consult-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.franchise-consult-btn:hover {
    background: #005a87;
    border-color: #005a87;
}

/* 모달 스타일 */
.franchise-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.franchise-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.franchise-modal-content.franchise-info-modal {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.franchise-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #adb5bd;
    font-size: 28px;
    font-weight: 400 !important;
    cursor: pointer;
        padding-bottom: 9px;
}

.franchise-modal-close:hover {
    color: #495057;
}

.franchise-modal-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

#franchise-info-content {
    padding: 20px;
    line-height: 1.6;
}

#franchise-info-content h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 20px;
}

#franchise-info-content p {
    margin: 10px 0;
}

#franchise-info-content strong {
    color: #495057;
}

.franchise-info-details {
    line-height: 1.6;
}

.franchise-info-details p {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.franchise-info-details strong {
    min-width: 80px;
    margin-right: 10px;
    color: #333;
}

.franchise-info-details a {
    color: var(--primary);
    text-decoration: none;
}

.franchise-info-details a:hover {
    text-decoration: underline;
}

.franchise-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.franchise-description strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

#consult-form{
    border: 1px solid #ddd;
    padding: var(--space-l) var(--space-m);
}

.franchise-detail-map {
    border-radius: 4px;
    overflow: hidden;
}

/* 폼 스타일 */
#franchise-consult-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
    font-size: var(--text-m);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: var(--text-m);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.franchise-submit-btn,
.franchise-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: var(--text-m);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.franchise-submit-btn {
    background: var(--primary);
    color: white;
    flex: 1;
}

.franchise-submit-btn:hover {
    background: #005a87;
}

.franchise-cancel-btn {
    background: #6c757d;
    color: white;
    flex: 0 0 80px;
}

.franchise-cancel-btn:hover {
    background: #545b62;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .franchise-content {
        flex-direction: column;
    }
    
    .franchise-map-container {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    #franchise-kakao-map {
        height: 300px !important;
    }
    
    .franchise-tabs {
        flex-direction: column;
    }
    
    .franchise-tab {
        text-align: center;
    }
    
    .franchise-region-tabs {
        justify-content: center;
    }
    
    .franchise-table {
        font-size: 12px;
    }
    
    .franchise-table th,
    .franchise-table td {
        padding: 8px 4px;
    }
    
    .franchise-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .franchise-cancel-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .consultation-form-wrapper.standalone-form .form-row{
        border: 1px solid #ddd;
    }

    #consult-form{
        padding: 0;
    }

    .privacy-agreement{
        padding: 15px;
    }

    .franchise-search-container input {
        width: 60%;
        margin-bottom: 10px;
    }
    
    .franchise-search-container button {
        width: 35%;
        margin-left: 0;
    }
    
    .franchise-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .franchise-region-tabs {
        padding: 5px;
        gap: 3px;
    }
    
    .region-tab {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* 모바일에서 전체 컨테이너 패딩 제거 */
    #franchise-locator-container {
        padding: 0;
    }

    .franchise-content {
        gap: 0;
        padding: 0;
    }

    /* 모바일에서 지도 컨테이너 가로/세로 가득 채우기 */
    .franchise-map-container {
        width: 100vw; /* 뷰포트 전체 너비 */
        height: 70vh; /* 뷰포트 높이의 70% (min-height 대신 height 사용) */
        margin-left: calc(-50vw + 50%); /* 중앙 정렬하면서 전체 너비 확보 */
        padding: 0;
        border-left: none;
        border-right: none;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
    }

    .svg-map-container {
        padding: 0; /* 모든 패딩 제거 */
        height: 100%; /* 부모 높이 전체 사용 */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .korea-map-wrapper {
        width: 130%;
        height: 100%; /* 부모 높이 전체 사용 */
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1; /* 남은 공간 모두 차지 */
    }

    .korea-map-container {
        width: 100%;
        height: 100%; /* 부모 높이 전체 사용 */
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* 패딩 제거 */
    }

    /* SVG 지도 크기 최대화 */
    #korea-svg-map {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        display: block; /* inline 여백 제거 */
    }

    #korea-map-base {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    /* 지도 타이틀도 조정 */
    .map-title h3 {
        font-size: 18px;
        padding: 0 10px;
    }

    .selected-region-info {
        padding: 0 10px;
    }

    /* 지도 아래 골프장 목록 컨테이너도 조정 */
    .franchise-list-container {
        padding: 15px 0;
    }
}

/* 로딩 상태 */
.franchise-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.franchise-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 빈 상태 */
.franchise-empty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.franchise-empty::before {
    content: "📍";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 지역으로 찾기 UI */
.franchise-region-container {
    background: #fff;
}

.region-selectors {
    display: flex;
    gap: var(--space-xs);
}

.region-flex-2{
    display: flex;
    flex: 2;
}

.region-column-inner {
    flex: 1;
}
.region-column:last-child{
    flex: 3;
}

.region-column h4 {
    margin: 0 0 10px 0;
    font-size: var(--text-m);
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.region-list {
    border: 1px solid #ced4da;
    background: #fff;
    max-height: 400px;
    padding: 10px;
    overflow-y: auto;
    height: 100%;
}

.region-column-inner:last-child .region-list{
    border-left: none;
}

.region-list.disabled {
    background: #f9f9f9;
    pointer-events: none;
    height: 100%;
}

.region-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: var(--text-m);
    color: #495057;
    transition: all 0.2s ease;
}

.region-item:last-child {
    border-bottom: none;
}

.region-item:hover {
    background: var(--primary-light-trans-30);
    color: var(--primary);
}

.region-item.selected {
    background: var(--primary);
    color: white;
}

.region-item.selected:hover {
    background: #005a87;
}

.region-empty {
    text-align: center;
    color: #6c757d;
    height: 100%;
    font-size: var(--text-m);
    display: flex;
    align-items: center;
    justify-content: center;
}

.franchise-results {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    min-height: 120px;height: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.franchise-results p {
    margin: 0;
    color: #6c757d;
    text-align: center;
    font-size: var(--text-m);
    padding: 15px;
}

.franchise-result-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.franchise-result-item:hover {
    background: #e7f3ff;
    border-color: var(--primary);
}

.franchise-result-item:last-child {
    margin-bottom: 0;
}

.franchise-result-name {
    font-weight: 600;
    color: #212529;
    font-size: var(--text-m);
    margin-bottom: 4px;
}

.franchise-result-address {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 6px;
}

.franchise-result-actions {
    display: flex;
    gap: 8px;
}

.franchise-result-btn {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.franchise-result-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
    color: #212529;
}

.franchise-result-btn.consult {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.franchise-result-btn.consult:hover {
    background: #005a87;
    border-color: #005a87;
}

/* 반응형 - 지역으로 찾기 */
@media (max-width: 768px) {
    .region-selectors {
        flex-direction: column;
        gap: 15px;
    }
    
    .franchise-results {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    
    .franchise-result-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .franchise-result-btn {
        text-align: center;
    }
}

/* 상세 리스트 테이블 스타일 */
.franchise-detail-list {
    background: #fff;
    padding: 20px 0;
}

.franchise-detail-list h4 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.detail-list-content {
    background: #fff;
    border-top: 1px solid #3d3d3d;
    overflow: hidden;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.detail-table thead {
    background: #f8f9fa;
}

.detail-table th {
    padding: 15px 8px;
    text-align: center;
    font-weight: 600;
    font-size: var(--text-m);
    color: #495057;
    border-bottom: 1px solid #3d3d3d;
    white-space: nowrap;
}

.detail-table th:first-child, .detail-table th:nth-child(2){
    width: 15%;
}

.detail-table th:nth-child(3){
    width: 40%;
}

.detail-table th:nth-child(4), .detail-table th:nth-child(5), .detail-table th:last-child{
    width: 10%;
}

.detail-table td:first-child{
    width: 10%;
}
.detail-table td:nth-child(2){
	width: 20%;
}

.detail-table td:nth-child(3){
    width: 40%;
}

.detail-table td:nth-child(4), .detail-table td:nth-child(5), .detail-table td:last-child{
    width: 10%;
}

.detail-table td {
    padding: 15px 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    font-size: var(--text-m);
    color: #495057;
    text-align: center;
    font-style: normal;
}

.detail-table tbody tr:hover {
    background: #f8f9fa;
}


.detail-table .no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.golf-course-names .course-name {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    text-decoration: none;
    font-size: var(--text-m);
    transition: all 0.2s ease;
    cursor: pointer;
}

.golf-course-names .course-name:hover {
    background: #e7f3ff;
    border-color: var(--primary);
    color: var(--primary);
}

.golf-course-names .course-name:last-child {
    margin-bottom: 0;
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 12px;
    background: #fff;
    border-radius: 3px;
    color: #495057;
    cursor: pointer;
    font-size: var(--text-m);
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-btn:disabled {
    display: none;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    padding: 6px 12px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    font-size: var(--text-m);
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.pagination-number:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-number.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 테이블 버튼 스타일 */
.detail-table .franchise-link-btn,
.detail-table .franchise-info-btn,
.detail-table .franchise-consult-btn {
    padding: 0px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    background: #fff;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.detail-table .franchise-link-btn img,
.detail-table .franchise-info-btn img,
.detail-table .franchise-consult-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.detail-table .franchise-link-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.detail-table .franchise-consult-btn {
    background: none;
    color: #fff;
}


/* 반응형 - 상세 테이블 */
@media (max-width: 768px) {
    .detail-table {
        font-size: 12px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 8px 6px;
    }
    
    .detail-table th:nth-child(3),
    .detail-table td:nth-child(3) {
        display: none; /* 주소 컬럼 숨김 */
    }
    
    .pagination {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: 2;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .detail-table td:nth-child(2){
        width: 40%;
    }

    .detail-table .franchise-link-btn img,
    .detail-table .franchise-info-btn img,
    .detail-table .franchise-consult-btn img {
    width: 20px;
    height: 20px;
    }

    .region-list{
        max-height: 300px;
    }

    .franchise-detail-list {
        padding: 15px 0;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 6px 4px;
        font-size: var(--text-s);
    }
    
    .detail-table th:nth-child(4),
    .detail-table td:nth-child(4) {
        display: none; /* 홈페이지 컬럼도 숨김 */
    }
}

/* 모달 스타일 */
.franchise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.franchise-modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.franchise-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e9ecef;
}

.franchise-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: var(--h3);
    font-weight: 700;
}

.franchise-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.franchise-modal-close:hover {
    color: #333;
}

.franchise-modal-body {
    padding: var(--space-s) var(--space-l);
}

.privacy-content h4{
    margin-block-start: var(--space-s);
}

.privacy-content p{
    margin-block-start: var(--space-xs);
}

.franchise-modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

/* 지점 정보 컨테이너 스타일 */
.location-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

/* 지점 정보 표시 스타일 */
.location-info {
    margin: 0;
}

/* 지점 정보 모달 내 지도 컨테이너 */
.location-map-container {
    display: flex;
    flex-direction: column;
}

.location-map-container #location-info-map {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-row span {
    color: #333;
    flex: 1;
    line-height: 1.4;
}

.info-row a {
    color: var(--primary);
    text-decoration: none;
}

.info-row a:hover {
    text-decoration: underline;
}

.info-row.description {
    flex-direction: column;
    align-items: flex-start;
}

.info-row.description label {
    margin-bottom: 8px;
}

.description-content {
    line-height: 1.5;
    color: #555;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 폼 그룹 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: var(--text-m);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--text-m);
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 버튼 스타일 */
.franchise-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: var(--text-m);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.franchise-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

.franchise-btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.franchise-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
}

.franchise-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.franchise-btn:disabled:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .franchise-modal {
        padding: 10px;
    }
    
    .franchise-modal-content {
        max-width: none;
    }
    
    .franchise-modal-header,
    .franchise-modal-body,
    .franchise-modal-footer {
        padding: var(--space-s);
    }
    
    .franchise-modal-footer {
        flex-direction: column-reverse;
    }
    
    .franchise-btn {
        width: 100%;
        margin: 0;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row label {
        margin-bottom: 5px;
        margin-right: 0;
        min-width: auto;
    }
    
    /* 모바일에서 지점 정보 컨테이너를 세로로 배치 */
    .location-info-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .location-map-container #location-info-map {
        height: 250px;
    }
}

/* ==================== 새로운 상담신청 모달 스타일 ==================== */

/* 상담신청 모달 전체 */
.consultation-modal {
    max-width: 1000px !important;
    width: 95% !important;
}

.consultation-modal .franchise-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding-bottom: 8px;
}

.consultation-modal .franchise-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

/* 헤더 영역 */
.consultation-header {
    color: white;
    text-align: center;
    padding: 60px 30px;
    position: relative;
    background-image:url(../images/form-header-bg.png);
    background-size: cover;

    background-position-x: right;
}

.consultation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="golf" patternUnits="userSpaceOnUse" width="100" height="100"><circle fill="rgba(255,255,255,0.1)" cx="20" cy="30" r="8"/><circle fill="rgba(255,255,255,0.05)" cx="70" cy="60" r="5"/><circle fill="rgba(255,255,255,0.08)" cx="50" cy="80" r="6"/></pattern></defs><rect width="1200" height="400" fill="url(%23golf)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.consultation-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: white;
}

.consultation-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 폼 영역 */
.consultation-form-area {
    padding: 40px 30px;
    background: #fff;
}

.form-title-section {
    margin-bottom: var(--space-xs);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-title-section h3 {
    margin: 0;
    font-size: var(--h4);
    color: var(--primary);
    font-weight: 700;
}

.required-notice {
    margin: 0;
    font-size: 14px;
    color: #e74c3c;
    font-weight: 500;
}

/* 2열 레이아웃 */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-column {
    flex: 1;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group:hover {
    border-color: #dae4ea;
}

.form-group:focus-within {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-column .form-group:last-child{
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c5282;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    border: 1px solid #ddd;
    padding: 8px;
}

/* 전체 폭 필드 */
.full-width {
    margin-top: 10px;
}

.full-width .form-group {
    padding: 25px;
}

/* 체크박스/라디오 그룹 */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: #2c5282;
    background: #f8f9ff;
}

.checkbox-label input[type="radio"]:checked + span,
.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
    padding: 0;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 16px !important;
    height: 16px !important;
    border-radius: 0  !important;
    border: 1px solid #ddd !important;
}

.checkbox-label input[type="radio"]:checked,
.checkbox-label input[type="checkbox"]:checked {
    accent-color: #2c5282;
}

.privacy-agreement{
    display: flex;
}

.privacy-agreement .checkbox-label {
    border: none;
    padding: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.privacy-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    margin-left: 8px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy-link:hover {
    border-bottom-color: #2c5282;
    color: var(--primary-dark);
}

/* 상담신청 버튼 */
.consultation-submit {
    text-align: center;
    margin-top: 40px;
}

.consultation-submit-btn {
    background: var(--primary);
    width: 100%;
    color: white;
    padding: 18px 60px;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consultation-submit-btn:hover {
    background: linear-gradient(135deg, #2a4f7a 0%, #1a365d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.consultation-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 82, 130, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .consultation-modal {
        width: 95% !important;
        margin: 10px !important;
    }

    .consultation-header {
        padding: 40px 20px;
    }

    .consultation-header h2 {
        font-size: 24px;
    }

    .consultation-header p {
        font-size: 15px;
    }

    .consultation-form-area {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        padding: 15px;
        margin-bottom: 20px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .consultation-submit {
        padding: 20px 0;
    }

    .consultation-submit-btn {
        padding: 15px 40px;
        font-size: 16px;
        min-width: 180px;
    }

    .consultation-modal .franchise-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}

/* 독립형 상담신청 폼 스타일 */
.consultation-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e9ecef;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.consultation-form-wrapper .consultation-header {
    background-image: url(../images/form-header-bg.png);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.consultation-form-wrapper .consultation-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.consultation-form-wrapper .consultation-header p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.consultation-form-wrapper .consultation-form-area {
    padding: 40px 30px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .consultation-form-wrapper {
        border-radius: 0px;
        border: none;
    }

    .consultation-form-wrapper .consultation-header {
        padding: 30px 20px;
    }

    .consultation-form-wrapper .consultation-header h2 {
        font-size: 24px;
    }

    .consultation-form-wrapper .consultation-header p {
        font-size: 14px;
    }

    .consultation-form-wrapper .consultation-form-area {
        padding: 30px 20px;
    }
}

/* 독립형 숏코드에서 헤더 숨기기 */
/* consultation-header는 쇼트코드 show_header 옵션으로 제어됨 */