/* 사무소안내 페이지 전용 스타일 */

/* intro-content 영역 내의 branch-content가 올바른 레이아웃을 갖도록 조정 */
.intro-content .branch-content {
  width: 100%;
  position: relative;
}

/* 지점명 헤더 */
.branch-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-left: 1px;
}

.branch-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #134197 43.75%, #f2f5f9 100%);
  position: relative;
  margin-right: 12px;
}

.branch-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9d9d9;
}

.branch-title {
  font-size: 24px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

/* 지도 컨테이너 - intro-content 영역에 맞게 조정 */
.map-container {
  width: 100%;
  max-width: 100%;
  height: 400px;
  position: relative;
  margin-bottom: 40px;
}

/* 네이버 지도 iframe 스타일 */
.map-container iframe {
  border-radius: 8px;
}

/* 지점별 이미지 (지도 대체) - 동일 크기로 표시 */
.map-container .branch-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* 지점 정보 박스 - 지도/이미지 아래, 연락처 박스 위 */
.branch-info-overlay {
  position: static;
  width: 100%;
  margin-top: 0;
  margin-bottom: 30px;
  height: auto;
  min-height: 140px;
  background: rgba(19, 65, 151, 0.9);
  border-radius: 10px;
  box-shadow: 4px 4px 12px rgba(19, 65, 151, 0.3);
  padding: 40px;
  box-sizing: border-box;
}

.branch-name {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 18px 0;
}

.branch-address-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px 0;
}

.branch-address {
  font-size: 16px;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* 연락처 컨테이너 */
.contact-container {
  display: flex;
  gap: 20px;
  margin-top: 0;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 280px;
  max-width: 100%;
  height: 140px; /* PC에서 고정 높이 설정 */
  min-height: 140px;
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 30px 25px;
  box-sizing: border-box;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: #f2f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* 카드 내에서 전체 높이 사용 */
}

.contact-info h4 {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  margin: 0 0 8px 0;
}

.contact-info p {
  font-size: 15px;
  color: #464646;
  margin: 0;
}

/* 사이드바 메뉴에서 active 지점명 bold 처리 및 밑줄 추가 */
.intro-sidebar .submenu a.active {
  font-weight: bold !important;
  color: #000 !important;
  background: none !important;
  text-decoration: underline !important;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .intro-content .branch-content {
    padding: 0;
  }

  .contact-container {
    flex-direction: column;
    gap: 15px;
  }

  .contact-card {
    min-width: auto;
    height: auto; /* 1200px 이하에서는 auto로 변경 */
  }

  .contact-info {
    height: auto; /* 1200px 이하에서는 auto로 변경 */
  }
}

/* 태블릿 해상도 (1024px) 전용 스타일 */
@media (min-width: 901px) and (max-width: 1024px) {
  .branch-content {
    padding: 20px;
  }

  /* 지점명 헤더를 지도 위쪽에 별도 배치 */
  .branch-header {
    margin-bottom: 50px;
  }

  /* 지도 영역 높이 조정 */
  .map-container {
    height: 480px;
    margin-bottom: 0; /* 오버레이가 바로 아래 위치하므로 마진 제거 */
  }

  /* 지도 정보 오버레이를 지도 바로 아래에 배치 */
  .branch-info-overlay {
    margin-bottom: 20px;
  }

  /* 연락처 컨테이너를 2개 카드가 나란히 배치되도록 조정 */
  .contact-container {
    display: flex;
    gap: 18px;
    margin-top: 0;
    flex-wrap: nowrap;
  }

  .contact-card {
    flex: 1;
    width: 483px;
    max-width: 483px;
    min-width: 483px;
    height: 160px;
    min-height: 160px;
  }

  .contact-icon {
    width: 78px;
    height: 78px;
    margin-right: 20px;
  }

  .contact-icon svg {
    width: 36px;
    height: 36px;
  }

  .contact-info h4 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .contact-info p {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .branch-info-overlay {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .branch-header {
    margin-bottom: 20px;
  }

  .branch-title {
    font-size: 20px;
  }

  .map-container {
    height: 300px;
    margin-bottom: 20px;
  }

  .branch-info-overlay {
    margin-bottom: 20px;
    padding: 20px;
  }

  .branch-name {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .branch-address-label,
  .branch-address {
    font-size: 14px;
  }

  .contact-container {
    margin-top: 30px;
  }

  .contact-card {
    height: auto;
    padding: 30px 20px;
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .contact-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .contact-info p {
    font-size: 14px;
  }
}

/* 20250710 농협소개 사무소안내 모바일용 */

@media (max-width: 767px) {
  .branch-mobile-wrapper {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 32px;
  }

  .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .info-row i {
    margin-right: 8px;
    color: #134197;
  }

  .label {
    font-weight: bold;
    margin-right: 6px;
    white-space: nowrap;
  }

  .value {
    flex: 1;
    word-break: keep-all;
  }
  .branch-info-overlay {
    display: none !important;
  }
}
/* 20250710 농협소개 사무소안내 모바일용 */
