         /* ======================================== */
         /* ======== 공통 레이아웃 시작 부분==========  */
         /* ======================================== */


/* 1. 여기에 추가: 스크롤바가 생겨도 화면이 밀리지 않게 공간 확보 */
html { scrollbar-gutter: stable; }

/* 2. 기본 배경은 흰색으로 설정 (세로 스크롤 허용) */
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: #fff; overflow-y: auto; }

/* 3. 헤더 프레임: 메뉴 드롭다운과 모바일 사이드바를 위해 높이 확보 */
 .header-frame { width: 100%; 
         height: 100px; /* 기본 높이 */
         border: none; position: fixed; top: 0; left: 0; z-index: 1000; 
         transition: height 0.3s ease; /* 부드러운 높이 변화 */
         pointer-events: auto; /* 마우스 이벤트 허용 */
         }

/* 4. 마우스를 올리면 드롭다운 메뉴가 보일만큼 높이를 늘림 */
.header-frame:hover { height: 400vh; }

/* 5. 푸터 프레임: 하단 흰 줄 제거 및 밀착 */
.footer-frame { 
    width: 100%; height: 80px; border: none; 
    display: block; vertical-align: top; background: #1a1a1a; }



         /* ======================================== */
         /* ======== 본문 수정부분 작성 위치 시작 부분==========  */
         /* ======================================== */

/* 1. 메인 섹션 */
.location-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    min-height: calc(60vh - 180px); 
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 5px; padding-bottom: 50px; flex: 1; position: relative; z-index: 1;
    gap: 20px;
    background: #fff;
    box-sizing: border-box;
    flex: 1;    
    position: relative;
    z-index: 1;
}

/* 2. 좌측 정보 */
.contact-info {
    flex: 0 0 370px; /* 늘어나지 않고 딱 300px 고정 (기존보다 축소) */
    min-width: 280px; /* 최소 너비도 살짝 축소 */
}


.info-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child { border-bottom: none; }

.info-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0a4a44; /* 로고 포인트 컬러 */
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
    white-space: nowrap; /* 텍스트 한 줄 유지 */
}

.transport {
    font-weight: 700;
    color: #0a4a44;
    margin-right: 10px;
    font-size: 13px;
}

* 1. 버튼들을 가로로 나란히 배치 */
.map-links {
    display: flex;
    flex-direction: row; /* 가로 방향 배치 */
    gap: 10px;           /* 이미지 사이 간격 */
    margin-top: 15px;
}

/* 2. 이미지 버튼 스타일링 */
.map-img-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.map-img-btn:hover {
    transform: scale(1.05); /* 마우스 올렸을 때 살짝 커지는 효과 */
}

.map-img-btn img {
    display: block;
    width: 180px;  /* 이미지 너비 (필요에 따라 조절하세요) */
    height: auto;  /* 비율 유지 */
}

/* 3. 지도 영역 */
.map-area {
    flex: 1.5;
    width: 900vh;
    height: 600vh;
    max-height: 600px;
    position: relative;
    background: #f8f8f8;
    border: 1px solid #eee;
    z-index: 1;
   overflow: hidden; /* 추가: 지도가 컨테이너를 벗어나지 않도록 함 */
}

#kakaoMap {
    width: 100% !important;
    height: 100% !important;
}

/* 커스텀 오버레이 스타일 (세련된 디자인) */
.custom-overlay {
    position: relative;
    bottom: 10px;
    border-radius: 4px;
    border: 1px solid #111;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.overlay-box {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-box .title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* 아래쪽 꼬리표 모양 */
.overlay-tail {
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: rotate(45deg);
}


/* 프로젝트 상단 내비게이션 스타일 */
.news-nav {
  display: flex;
  flex-direction: column; /* 세로(위-아래) 방향으로 배치 */
  align-items: center;    /* 전체 요소를 가로 중앙 정렬 */
  justify-content: center;
  padding: 0px 0;
  margin-top: 105px; 
  margin-bottom: 20px;
}

.nav-title {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0a4a44;
  margin-bottom: 20px;   /* 제목과 아래 탭 사이의 간격 */
  text-align: center;    /* 텍스트 중앙 정렬 */
}

.nav-tabs {
  display: flex;
  gap: 10px; /* 항목 사이 공간을 띄움 (원하는 만큼 조절 가능) */
  flex: 1;
  justify-content: center; /* 중앙 배치 */
}

.tab-item {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  
  /* 박스 크기를 동일하게 설정 */
  width: 176px;        /* 버튼의 동일한 가로 너비 */
  height: 40px;        /* 버튼의 동일한 세로 높이 */
  display: flex;       /* 중앙 정렬을 위해 flex 사용 */
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  background-color: #fff;
  letter-spacing: 0.5px;
}

/* ALL 및 활성화된 탭 스타일 */
.tab-item.active {
  background-color: #0a4a44 !important; /* 비아건축 로고 색상 */
  color: #fff !important;
  border-color: #0a4a44 !important;
}

.tab-item:hover:not(.active) {
  border-color: #0a4a44; /* 호버 시 테두리만 로고 색상으로 */
  color: #0a4a44;
}



         /* ======================================== */
         /* ======== 반응형 대응 시작 부분==========  */
         /* ======================================== */

@media (max-width: 1024px) {

    /* 1. 메인 컨테이너: 상단 여백(80px -> 40px) 대폭 축소 */
    .location-main {
        display: block !important; /* flex 해제 (중앙 정렬보다 밀착 우선) */
        justify-content: center !important; /* 본문 내용 세로 중앙 배치 */
        width: 100% !important;
        min-height: 0 !important;   /* 중요: 최소 높이 해제 */
        height: auto !important;     /* 중요: 내용만큼만 높이 잡기 */
        flex: none !important;       /* 중요: 남은 공간 채우기 해제 */
 
        padding: 0px 10px 10px 10px !important; 
        margin: 0 !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }

    /* 2. 지도 영역: 화면 상단에 딱 붙도록 마진 제거 */
    .map-area {
        order: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
        height: 230px !important; 
        margin: 0 !important; /* 마진 0으로 변경 */
        border: none !important;
        border-radius: 0 !important;
    }

    /* 3. 정보 영역 (텍스트 간격 대폭 축소) */
    .contact-info {
        order: 2 !important;
        padding: 0px 10px 10px 10px !important; /* 좌우 여백 15px 유지 */
    }

    .office-name {
        font-size: 20px !important; /* 타이틀 크기 살짝 축소 */
        margin-bottom: 12px !important; /* 타이틀 하단 간격 축소 */
        letter-spacing: -0.03em !important;
    }

    .info-item {
        margin-bottom: 4px !important; /* 항목 사이 간격 최소화 */
        padding-bottom: 4px !important; /* 항목 내부 간격 최소화 */
        border-bottom: 1px solid #f8f8f8 !important; /* 연한 구분선 */
    }

    .info-item label {
        font-size: 9px !important; /* 라벨 크기 축소 */
        margin-bottom: 2px !important; /* 라벨과 본문 사이 간격 축소 */
    }

    .info-item p {
        font-size: 13px !important; /* 본문 글씨 크기 미세 축소 */
        line-height: 1.3 !important; /* 줄 간격 축소 */
        margin: 0 !important;
    }

    .transport {
        font-size: 11px !important;
        margin-right: 4px !important;
    }

    /* 4. 하단 지도 링크 버튼: 한 줄 유지 */
    .map-links {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-top: 0px !important;
    }

    .map-img-btn img {
        width: 170px !important; /* 한 줄에 나오도록 크기 조절 */
        height: 40px !important;
    }

    /* 5. 카카오 지도 객체 크기 강제 */
    #kakaoMap {
        width: 100% !important;
        height: 100% !important;
        min-height: 250px !important;
    }

    .news-nav {
        flex-direction: column;
        gap: 5px;
        margin-top: 70px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .nav-title {
        font-size: 25px;
        margin-top: 5px;
        margin-bottom: 5px;
   }
    .nav-tabs {
        width: 100%;
        display: flex;         /* flexbox 활성화 확인 */
        flex-wrap: nowrap;     /* 한 줄로 가득 채우려면 nowrap, 줄바꿈 허용시 wrap */
        gap: 3px;
        padding: 0;            /* 불필요한 패딩 제거 */
    }

    .tab-item {
        flex: 1;               /* 핵심: 자식 요소가 너비를 균등하게 나눠 가짐 */
        min-width: 0;          /* 텍스트가 길어질 경우 대비 */
        text-align: center;    /* 텍스트 중앙 정렬 */
        font-size: 12px;
        height: 30px;        
    }


}