:root { 
  --sheet-max: 90vh;            /* 펼쳤을 때 최대높이 : 하단바을 터치 했을때 올리는 최대 높이 */
  --sheet-ease: 200ms ease; 
  --bar-h:40px;
  --icon: 36px; }  
}
 
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
	overflow: hidden;
}

@font-face {
    font-family: "Pretendard-ExtraBold";
    src: url("/service/img/font/Pretendard-ExtraBold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard-SemiBold";
    src: url("/service/img/font/Pretendard-SemiBold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* 탭(설명, 이미지, XR콘텐츠) 이미지 레이아웃 */
#_img-id {
    display: flex;
    flex-wrap: wrap;
    /*gap: 15px; sssss */
    justify-content: flex-start; /* 중요)space-between -> flex-start, 왼쪽 정렬 + gap 간격 유지 */
    padding: 0; /* 좌우 여백 제거 */
}

/* 탭(설명, 이미지, XR콘텐츠) 개별 이미지 컨테이너 */
#_img-id div {
    margin: 3px; /* sssss */
    width: calc(33.33% - 8px); /* 한 줄에 3개씩 정렬, 간격 감안 */
    height: 130px;
    box-sizing: border-box;
    overflow: hidden; /* 넘치는 부분 숨김 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* 배경색 추가 (선택사항) */
}

/* 탭(설명, 이미지, XR콘텐츠) 이미지 */
#_img-id img, video {
    /* max-width: 100%; */
    max-height: 100%;
    object-fit: cover; /* 원본 비율 유지하며 컨테이너에 맞춤 */
}


/* IOS 팝업 HELP 이미지 */
#popupImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
	position: relative;	
}

/* 일반 팝업 이미지 */
#popupImage1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
	position: relative;
}

/* 배경 오버레이 */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#_3dviewer {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

#_head {
    position: relative;
    background: #a4b0be;
    justify-content: space-between;
    align-items: center;
}

/* 20250302 IOS User을 위한 안내 페이지 */
#layerPopup {
    display: none; /* 초기에는 숨김 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5); /* 배경색 투명도 rgba(0, 0, 0, 0.8); */ 
    text-align: center;
    border-radius: 10px;
    z-index: 999;
    cursor: pointer;
	justify-content: center;	/* 이미지세로 정렬 */
	align-items: center;		/* 이미지세로 정렬 */
	pointer-events: auto;       /* 해당 요소가 마우스 이벤트(예: 클릭, 터치, 호버 등)를 정상적으로 수신함. */
}

/* 20251021 이미지: 비율 유지 + 전체 보이기(레터박스 가능) */
#layerPopup img{
  width:100%;
  height:100%;
  object-fit:contain;           /* 핵심 */
  display:block;
  /* 필요시 둥근 모서리 동기화
  border-radius:10px;
  */
}

#closeBtn-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#close-img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}


#_desc-id {
    overflow-x: hidden;
}

#_desc-id p {
    margin-bottom: 0.5rem;
    width: inherit;
    word-break: break-all;
    font-weight: normal;                            /* 글자 두께: 얇게 */
    font-family: Pretendard-Regular, sans-serif;    /* 글꼴: 일반체 */
    line-height: 1.3; /* 위아래 간격 */
}

#_desc-id a {
    display: block;
    width: inherit;
    white-space: normal;
}

#btn-tts {
    background-image: url("/_img/mn_tts_on.png");
    width: 36px;
    height: 36px;
}

#btn-sound-play {
    background-image: url("/_img/mn_sound.png");
    width: 36px;
    height: 36px;
	margin-left: 3px;
}

#stamp-pop-btn {
    background-image: url("/_img/stamp_pop_btn.png");
    display: none;
    position: absolute; /* 추가 */
    right: 114px; /* 126 -> 114 */
    width: 36px;
    height: 36px;
}

/* 20250928 각 아이콘 공통 스타일(크기만 원하는 대로) */
#btn-share-container ._descr_menu {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#btn-linkcp-sharing { background-image: url("/_img/linkcopy.png"); }
#btn-kakaotalk-sharing { background-image: url("/_img/kakaotalk.png"); }
#btn-sms-sharing { background-image: url("/_img/share_sms.png"); }
#btn-facebook-sharing { background-image: url("/_img/facebook.png"); }
#btn-whatapp-sharing { background-image: url("/_img/whatapp.png"); }
#btn-x-sharing { background-image: url("/_img/bt_x.png"); }
#btn-expand { background-image: url("/_img/bt_expand.png"); }	/* 확대 버튼 */
#installBtn { background-image: url("/_img/bt_install.png"); }
#btn-like { background-image: url("/_img/bt_like.png"); }
#btn-share { background-image: url("/_img/bt_share.png"); }
#btn-xrshowroom-add { background-image: url("/_img/bt_xrshowroom_add.png"); }

#btn-home {
	display: flex; 
	justify-content: center;
    width: 36px;
    height: 36px;	
}


#btn-upload {
    background-image: url("/_img/bt_favorite.png");
	background-size: cover;
}

#btn-map {
    background-image: url("/_img/mn_location2.png");
}

#stamp-btn {
    background-image: url("/service/img/stamp.png");
	background-size: cover;
}

#audioPlayer {
    display: none
}

#stamp-box {
    flex-grow: 1;
    display: none;
    justify-content: flex-end;
    margin-right: 5px;
}

#conts-title {
  font-size:18px;
  font-weight:bold;
  display:block;          /* 블록화 */
  text-align:center;      /* 텍스트 중앙 */
  max-width:30ch;         /* 문자를 기준으로 약 50글자 폭 */
  margin:0 auto;          /* 박스 자체도 중앙 */
  white-space:nowrap;     /* 한 줄만 */
  overflow:hidden;        /* 넘치면 숨김 */
  text-overflow:ellipsis; /* … 처리 */
}
/* 20250929 LeftTop -> RightBottom 변경 */
/* 우측 하단 아이콘 스택 (안전영역/하단바 고려) */
.right-bottom-icons{
  position: absolute;
  right: max(10px, env(safe-area-inset-right, 0px) + 10px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); /* 하단 탭바/홈바 위로 */
  display: flex;
  flex-direction: column;
  gap: 10px;                 /* 아이콘 간격 */
  z-index: 9999;
  pointer-events: none;      /* 컨테이너는 이벤트 통과 */
}

.right-bottom-icons *{ pointer-events: auto; }

/* 아이콘 공통 사이즈가 없다면 기본값 부여(필요 시 조절) */
.right-bottom-icons ._descr_menu{
  width: 36px;
  height: 36px;
  border-radius: 50%;  	/*  5px;*/
  backdrop-filter: blur(6px);
}

/* 20250929 아이콘 기본 버튼 */
.rb-btn._descr_menu{
  width: var(--icon);
  height: var(--icon);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
//  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}

/* 공유 래퍼: 자식 absolute 기준점 */
.rb-action{ position: relative; }

/* 20250929 공유 아이콘 줄(왼쪽으로 펼치기) */
.rb-share #btn-share-container {
  position: absolute;
  top: 50%;                 /* 공유 버튼과 같은 라인 */
  transform: translateY(-50%);
  right: calc(100% + 8px);  /* 공유 버튼의 왼쪽, 8px 간격 */
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 99;	
}


/* 20250224  XR콘텐츠 모바일 스타일 */
/* 리스트 전체 가운데 정렬 */
.list_thumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* center -> flex-start */
    align-items: center; /* 세로 정렬 중앙 */
    gap: 1px; /* 20250404 간격보정 */
    /* text-align: center; */
}
/* XR콘텐츠 모바일 3x3 수정 */
.list_thumb li,
.list_thumb li + li {
    width: 31%; /* 31.6% -> 31 */
    margin: 2px 2px 2px 2px !important;
}
/* 컨텐츠 이미지 */
.list_thumb img{
    /*height: auto;*/
    object-fit: cover;
}
.list_thumb .thumb{
    height: 100px;
}
.thumb .info_thumb,
.thumb .info_thumb * {
    padding: 0px;
}
/* 아이콘 글자 크기 조정 */
.thumb .info_thumb .num {
    font-size: 10px;
}
/* 아이콘 크기 조정 */
.thumb .info_thumb .ico_comm {
}
/* 아이콘 간격 조정 */
.thumb .info_thumb dl + dl {
    margin-left: 3px;
}
.list_thumb .cont img{
    height: 40%; 
    margin: 8px 0 0 0;
}
.list_thumb .cont {
    padding: 0px;
}
/* 아이콘과 컨텐츠명 간격 및 위치 조정 */
.list_thumb .cont .thumb_profile {
    width: 30px; /* 10px -> 30px */
    margin: 0 5px 0 5px;
}
/* 텍스트 크기 조정 및 숨김 방지 */
.list_thumb .cont strong {
    max-width: calc(100% - 10px); /* 좌우 여백 고려하여 최대 너비 설정 */
}
/* 글자 크기 */
.list_thumb .cont .thumb_profile + strong {
    font-size: 10px;
}
/* 다운로드 안보이게 */
.list_thumb .download i {
    display: none;
}
/* 애니메이션 및 사운드 아이콘 크기 조정 */
.list_thumb #ani_sound_box img {
    width: 15px;
    height: 15px;
}

/* 20250414 위도/경도 있을 때 추가 스타일 */
.image-container .xr-container.location-mode {
    top: 8px;     /* 상단 여백 */
    left: 8px;    /* 좌측 여백 */
    bottom: auto; /* bottom 해제 (하단 고정 없애기) */
    transform: none; /* 중앙 정렬 해제 */
}

/* 20250504 말풍선 */
.bubble {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -150px;
	translateY: (-50%);
	background: #cceeff;
	color: #000;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;			// 글줄간격 50%
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
	white-space : pre-line;
	z-index: 50;
	width: 300px;
	height: 280px;
	overflow-y: auto;			// 글자 스크롤
	text-align: left;
}

.bubble::after {
	content: "";
	position: absolute;
	top: -10px;
	left: 25px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-bottom-color: #cceeff;
}



.fitsize {
    object-fit: cover;         /* 박스를 꽉 채우며 비율 유지, 잘림 있음 */
    object-position: center;   /* 중심 기준으로 자름 */
}


.data_tp_icon {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    width: 30px !important;
    height: 30px !important;
    border-radius: unset !important;
}	


._title {
    position: relative;
    font-size: 240%;
    font-family: Pretendard-ExtraBold, serif;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f9fc; /* #202020 */
    text-align: left; /* center */
}

._descr::-webkit-scrollbar {
    width: 8px; /* 스크롤바의 너비 */
}

._descr::-webkit-scrollbar-thumb {
    height: 30%; /* 스크롤바의 길이 */
    background: #9F9F9F; /* 스크롤바의 색상 */
    border-radius: 15px;
}



.image-container img.background {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.overlay-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2; /* 이미지보다 위 */
  background: transparent;
}

/* 20250802 iframe 위에 layer popup 이 되도록 z-index 설정 */
.image-container {
  position: relative;
  z-index: 1;
}

.image-container a {
  display: block;
  height: 100%;
  width: 100%;
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */ 
.image-container .xr-container {
    position: absolute;
    bottom: 20px;
    left: 50%; 
    transform: translateX(-50%);
    display: flex;
    align-items: center;
	z-index: 3; 
}

.xr-container{ position:relative; display:inline-block;}
.xr-container .button{ display:block; }

/* XR 버튼 오른쪽에 손가락을 붙이고 좌우로 흔들기 */
.finger-hint{
  position:absolute;
  left: calc(100% + 6px);   /* 버튼 오른쪽 6px */
  top: 50%;
  width: 40px; height:auto;
  pointer-events: none;     /* 클릭 간섭 방지 */
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  animation: fingerX 1.5s ease-in-out infinite;
}

@keyframes fingerX{
  0%,100% { transform: translate(0,  -50%); }
  50%     { transform: translate(14px, -50%); } /* ← 진폭(14px) 조절 */
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */
.image-container img.button {
    position: static; /* 기존 absolute 제거 */
    width: 36px; /* 버튼 크기 */
    height: auto;
    cursor: pointer;
	z-index: 3; /* 이미지보다 위 */
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */
.bgimage-text {
    position: static; 			/* 기존 absolute 제거 */
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    white-space: nowrap; 		/* 줄바꿈 방지 */
    color: white;             	/* 글씨 색을 흰색으로 설정 */
    text-shadow:
		0 0 2px black,
		0 0 4px black,
		-1px -1px 0 black,     	/* 왼쪽 위 */
		1px -1px 0 black,      	/* 오른쪽 위 */
		-1px  1px 0 black,     	/* 왼쪽 아래 */
		1px  1px 0 black;      	/* 오른쪽 아래 */
}

.image-row {
  display: flex;
    justify-content: center;
  gap: 1px; /* 이미지 간 1px 간격 */
}

.image-row img {
    /*margin-top: 5px; !* 위 마진 *!*/
  width: 40px; /* 원하는 크기 설정 */
  height: auto; /* 비율 유지 */
}

/* 20250203  언어 드롭다운 스타일 */
.dropdown {
    position: relative;
    display: inline-block;
}

.selected-image {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
	bottom: calc(100% + 8px);  /* 버튼 위로 8px 띄움 */
    z-index: 100;
	
    /* 아래→위로 살짝 떠오르는 효과 */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;	
}

/* 드롭다운 활성화 시 */
.dropdown.active .dropdown-menu {
    display: grid;
	opacity: 1;
    transform: translateY(0);
}

.dropdown-menu img {
    padding: 1px 0;
}


/* 아이콘 스타일 */
.icon-normal {
    width: 36px; /* 아이콘 크기 */
    height: 36px;
}


/* 선택된 탭(설명, 이미지, XR콘텐츠) */
.tab-content {
    display: none;
    padding: 1px;
}

/* 선택된 탭(설명, 사진, 영상)만 보이기 */
.tab-content.active {
    display: block;
}


/* 20250217  탭 버튼 내 텍스트 스타일 */
.tab-text {
    display: inline-block;
    width: 70px; /* 최대 50px까지만 표시 */
    overflow: hidden; /* 넘치는 글자 숨김 */
    text-overflow: ellipsis; /* 초과 시 '...' 표시 */
    white-space: nowrap; /* 줄바꿈 방지 */
    text-align: center; /* 중앙 정렬 (필요 시 추가 가능) */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 262px;
    height: 200px;
}

.swiper-slide img {
    display: block;
    width: 262px;
    height: 200px;
    object-fit: cover;
    /*border-radius: 15px;*/
}

._descr_head {
    position: relative;
    height: unset;
    /*overflow-x: auto;*/
}

._descr_menus {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 0;
}

._descr_menu {
    background-size: contain;
    width: 40px;	
    height: 40px;
    margin-right: 0px;
    cursor: pointer;
}


/* 공통 설정 */
._win {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100); /* JS로 정확한 높이 지정 */
  overflow: hidden;
}

._win1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 이미지/비디오 영역 */
._viewer {
  position: relative;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1.3	;
  overflow: hidden;
}

._viewer > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

._viewer img,
._viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

._descr {
  font-size: 15px;
  position: relative;
  padding: 16px;
  border-radius: 10px;
  background: #f1f1f196;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 20250815 KDW 하단영역을 drag 기능 추가 */
/* 맨 아래 고정 1줄 바(탭 아님) */
.bottom-bar{
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--bar-h);
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0,0,0,.10);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; 
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar__btn{
  display:flex; justify-content:center; align-items:center; gap:8px;
  font-size:14px; color:#5b6170; background:none; border:0; height:100%;
  cursor:pointer; user-select:none;
}
.bottom-bar__btn.active{ color:#006383; font-size:16px; font-weight:bold; }

/* 시트: 바를 가리지 않도록 bottom을 바 높이만큼 띄움 + 바보다 위(z-index:40) */
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--bar-h);
  height: 27vh;                        /* 초기 높이 */
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 30px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
  transition: height var(--sheet-ease);
  padding-bottom: env(safe-area-inset-bottom);
  will-change: height;
  touch-action: none;     /* 스크롤 대신 제스처 */
  z-index: 40;
}
.sheet--dragging { transition: none; }

/* 손잡이: 우측 3줄 아이콘, 우측 20~50px 여백 */
.sheet__handle{
  height: 25px; flex: 0 0 auto;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 100px 0px 0px;
  cursor: ns-resize;
  touch-action: none;     /* 스크롤 대신 제스처 */
  position: relative; z-index: 40;
}
.sheet__handle::before{
  content: "";
  width: 32px; height: 2px; background: #c9ced7; border-radius: 999px;
  box-shadow: 0 -6px 0 0 #c9ced7, 0 6px 0 0 #c9ced7;
}


/* === 가로모드 (좌우 분할: viewer 65%, descr 35%) === */
@media (orientation: landscape){
  /* 화면 바운스/체인 스크롤 방지(모바일 안정성) - 선택 사항 */
  html, body { overscroll-behavior: none; }
  ._win1 {
    display:flex; flex-direction:row;
  }

  /* 우측 패널: 화면 가로의 35% 고정, 전체 높이 */
  .sheet {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    width: 35vw;           /* 요구사항 */
    height: 100vh;
    z-index: 40;
    overflow: auto;        /* 내부 스크롤 */
    padding-right: env(safe-area-inset-right); /* 노치 대응(선택) */
  }

  /* 뷰어 영역은 남은 65%를 사용 */
  ._viewer{
    position: fixed;           /* 화면(뷰포트) 기준으로 자리 고정. 스크롤해도 그대로 */
    width: calc(100vw - 35vw); /* = 65vw */
    height: 90vh;
    margin-right: 35vw;        /* 우측 고정 패널만큼 밀어내기(겹침 방지) */
	bottom: max(20px, env(safe-area-inset-bottom, 0px) + 20px); 
  }
}


/* === 세로모드: 태블릿 === */
@media screen and (orientation: portrait) and (min-width: 768px) {
  ._viewer {
    height: 70svh;
  }

  .sheet {
    height: 30svh;
  }
}

