* {
	margin: 0;
	padding: 0;
	font-family: 'ChosunGu', sans-serif;
	box-sizing: border-box;
}
button[title*=로그인] {
	display: none;
}
#wrap {
	background-color: #f8f9fa;
	margin: auto;
}

.food {
	width: 90%;
	display: flex;
	gap: 30px;
	padding: 20px;
	margin: auto;
}

/* 왼쪽 이미지 영역 */
.img-section {
	width: 60%;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.main-img {
	position: relative;
	width: 100%;
	height: 450px;
	border: 1px solid gray;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 10px;
}

.main-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.3s;
}

.thumbnail-list {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.thumbnail-list img {
	width: 23%;
	height: 100px;
	border: 2px solid transparent;
	border-radius: 6px;
	object-fit: cover;
	cursor: pointer;
	transition: 0.3s;
}

.thumbnail-list img:hover {
	transform: scale(1.05);
}

.thumbnail-list img.active {
	border-color: #fd5d00;
}

/*좋아요, 즐겨찾기 버튼*/
.img-actions {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: flex;
	gap: 10px;
}

/* 공통 버튼 스타일 */
.img-actions button {
	background: rgba(255, 255, 255, 0.8);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	cursor: pointer;
	transition: 0.2s;
}

.img-actions button:hover {
	transform: scale(1.1);
}

/* 별 버튼 활성화 색 */
.star-btn.is-fav i {
	color: #ff8000;
}

/* 하트 버튼 활성화 색 */
.like-btn.active i {
	color: red;
}

/* 좋아요 숫자 */
.like-count {
	position: absolute;
	bottom: -5px;
	right: -5px;
	font-size: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	padding: 2px 6px;
	border-radius: 10px;
}

/* 오른쪽 데이터 영역 */
.data {
	width: 40%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.d_table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed
}

.d_table tr {
	height: 53px;
	width: 100%;
	display: flex;
}

.d_table tr:nth-child(9){
	height: 100px;
	}

.d_table tr:nth-child(7)>td:first-child{
	width: 100%;
	}

.d_table tr:nth-child(8)>td:first-child{
	width: 100%;
	}
	
.d_table tr:nth-child(9)>td:first-child{
	width: 100%;
	}
	
.d_table tr:nth-child(9)>td:last-child{
	width: 20%;
	}

.d_table tr:nth-child(2)>td:first-child{
	width: 100%;
	}

.d_table tr>td:first-child {
	font-size: 16px;
	font-weight: bold;
	width: 22%;
	text-align: left;
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.d_table tr>td:nth-child(2) {
	font-size: 16px;
	width: 60%;
	display: flex;
	align-items: center;
}

.d_table tr>td:nth-child(3) {
	width: 20%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 20px;
}

.icon-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	border-radius: 50%;
	transition: 0.2s;
}

.icon-btn img {
	width: 24px;
	height: 24px;
	display: block;
}

.icon-btn.active {
	background: rgba(0, 115, 230, 0.2);
}

#B-1, #B-2,.btn-route {
	background: #ece19e;
	border: none;
	color: black;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: 0.3s ease;
	text-decoration: none;
	display: inline-block; /* 인라인 버튼 형태 유지 */
	writing-mode: horizontal-tb; /* ← 텍스트를 무조건 가로로 */
	white-space: nowrap; /* 줄바꿈 방지 */
}

#B-1:hover, #B-2:hover {
	background: #ebb36b;
	transform: translateY(-2px);
}

.d_table td {
	padding: 10px 8px;
	vertical-align: middle;
	font-size: 17px;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
}

.d_table tr:last-child td {
	border-bottom: none;
}

.d_table tr:last-child .bon {
	width: 110px;
}

/* 상호명 */
.d_table h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #222;
}

/* 별점 */
.d_table tr:nth-child(2) td {
	font-size: 20px;
	color: #fbc02d; /* 네이버 별점 노란색 느낌 */
	text-align: left;
	border-bottom: none;
}

/* 버튼 그룹 */
.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px 0;
}

/* 버튼 스타일 */
.btn {
	background: #ece19e;
	border: none;
	color: #000;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: .3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}



.btn:hover {
	background: #ebb36b;
	transform: translateY(-2px);
}


.btn.active {
	background-color: #ece19e;
	color: #fff;
	border-color: #ebb36b;
}


.bon-group{
 display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 60px 0;
}

.bon{
	height: 30px;
	width: 85px;
	background-color: #f8f8f8; 
	border-radius: 20px;
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	grid-area: submit; 
}

.bon.active{
    background-color:  #ece19e;
    color: black;
}

.reportAndVersion{
	 display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:6px; 
}





.R-insert {
	width: 70%;
	margin: 20px auto;
	text-align: center;
	margin-bottom: 5px !important; /* 버튼 밑에 딱 5px만 */
	padding-bottom: 0 !important;
}

.reviewb {
	width: 300px;
	height: 48px;
	font-weight: 800;
	border-radius: 24px;
	font-size: 22px;
	margin-bottom: 6px;
}

.review {
	width: 70%;
	padding: 20px;
	margin: auto;
	margin-top: 0 !important; /* 리뷰 위 기본 여백 제거 */
	padding-top: 0 !important;
	/* background-color: skyblue; */
}

.R-reviews.no-photo { height: auto; }
.R-reviews.no-photo .R-contents { width: 100%; }


/* 리뷰 카드 */
.R-reviews {
	width: 100%;
	height: 200px;
	margin-top: 20px;
	display: flex;
	gap: 10px;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 10px;
	background-color: #fff;
	transition: 0.2s;
}

/*리뷰수정 버튼*/
.review-edit-btn {
	background: #ece19e;
	border: none;
	color: black;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: 0.3s ease;
	text-decoration: none;
	display: inline-block;
	writing-mode: horizontal-tb;
	white-space: nowrap;
}

.review-edit-btn:hover {
	background: #ebb36b;
	transform: translateY(-2px);
}

.R-reviews:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 이미지 영역 */
.R-imgs {
	position: relative;
	width: 30%;
	min-width: 150px;
	overflow: hidden;
	border-radius: 8px;
}

.R-imgs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	flex: 0 0 100%;
	border-radius: 8px;
}

.R-imgs .R-track {
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.3s ease;
}

/* 슬라이드 버튼 */
.R-prvbtn, .R-nxtbtn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	background: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
	transition: 0.2s;
}

.R-prvbtn:hover, .R-nxtbtn:hover {
	background: rgba(255, 255, 255, 1);
}

.R-prvbtn {
	left: 5px;
}

.R-nxtbtn {
	right: 5px;
}

.review-like-btn {
	position: relative;
}

.review-like-btn i {
	color: #999;
	transition: transform 0.25s ease, color 0.25s ease;
}

.review-like-btn:hover {
	transform: scale(1.15);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.review-like-btn:hover i {
	color: #ff4d4d;
	transform: scale(1.2);
}

/* 활성화 상태 */
.review-like-btn.active {
	background: #ffe6e6;
	box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
}

.review-like-btn.active i {
	color: #ff1a1a;
	transform: scale(1.2);
}

/* 좋아요 숫자 스타일 */
.review-like-btn .like-count {
	position: absolute;
	bottom: -5px;
	right: -5px;
	font-size: 11px;
	background: #ff4d4d;
	color: white;
	padding: 2px 5px;
	border-radius: 10px;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 내용 영역 */
.R-contents {
	width: 70%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.R-cont1 {
	width: 100%;
	margin-top: 10px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.R-cont1>span {
	min-width: 80px;
	text-align: center;
}

.R-cont1>p {
	width: 130px;
	text-align: center;
	font-size: 18px;
	color: #fbc02d; /* 별점 색 */
}

.R-cont1 .R-mem-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-right: 15px;
	position: relative;
}

.img-action {
	position: static;
}

.img-action button {
	position: relative;
	top: auto;
	transform: none;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 16px;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.img-action button:hover {
	transform: scale(1.1);
}

.R-cont3 {
	margin-top: 12px;
	flex: 1;
}

.R-cont3 textarea {
	width: 100%;
	height: 90px;
	resize: none;
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.review-empty {
	margin: 0 auto;	
	width: 68%;
	height: 100px;
	margin-top: 20px auto;
	display: flex;
	gap: 20px;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 10px;
	background-color: #fff;
	transition: 0.2s;
}

/* =========================
           모바일 반응형
        ========================= */
@media ( max-width : 600px) {
	.food {
		flex-direction: column; /* 세로 배치 */
		width: 90%;
		gap: 15px 0;
		padding: 0;
	}
	.img-section {
		width: 100%;
		height: auto;
	}
	.main-img {
		height: 250px; /* 모바일에서는 이미지 높이 축소 */
	}
	.thumbnail-list img {
		height: 60px; /* 모바일에서 썸네일 작게 */
	}
	.data {
		width: 100%;
		height: auto;
		padding: 15px;
		box-shadow: none; /* 모바일에서는 그림자 제거 */
	}
	.btn.btn-report {
		margin-left: 12px;
	}
	.R-insert {
		width: 95%;
		margin: 20px auto;
	}
	.reviewb {
		width: 200px;
	}
	.review {
		width: 95%;
		padding: 12px;
		margin: 20px auto;
	}
	
	.R-reviews.no-photo { height: auto; }

	/* 리뷰 카드 세로 배치 */
	.R-reviews {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px;
		gap: 12px;
		height: 400px;
	}

	/* 이미지 작게 */
	.R-imgs {
		width: 100%; 
		height: 400px; /* 높이 줄임 */
		border-radius: 6px;
		align-self: center;
	}
	.R-imgs img {
		border-radius: 6px;
	}

	/* 내용 영역 */
	.R-contents {
		width: 100%;
	}

	/* 닉네임 + 별점 */
	.R-cont1 .R-mem-btn {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: flex-start; /* space-between → 시작 정렬 */
		gap: 8px;
		padding-right: 0; /* 겹침 여지 제거 */
	}
	.R-cont1 input {
		width: 120px;
		height: 24px;
		font-size: 13px;
		padding-left: 5px;
	}
	.R-cont1 p {
		font-size: 14px; /* 별점 작게 */
	}

	/* 태그 */
	.R-cont2 {
		margin-top: 8px;
	}
	.R-cont2 span {
		padding: 3px 10px;
		margin-right: 6px;
		font-size: 11px;
	}

	/* 리뷰 텍스트 */
	.R-cont3 {
		margin-top: 8px;
	}
	.R-cont3 textarea {
		width: 100%;
		height: 60px;
		font-size: 13px;
		line-height: 1.3;
	}

	/* 버튼도 조금 작게 */
	.R-prvbtn, .R-nxtbtn {
		width: 24px;
		height: 24px;
		font-size: 16px;
		line-height: 22px;
	}
	
	/* 공통 */
  .data { height: auto; }
  .d_table { table-layout: auto; width: 100%; }
  .d_table td { padding: 8px 6px; font-size: 15px; }

  /* ---------------------------
     1) 상호명 행 (1번째 tr)
     구조: [라벨][가게명][공유][수정]
     --------------------------- */
  .d_table tr:nth-child(1) {
    display: grid;
    grid-template-columns: 72px 1fr auto auto; /* 라벨, 내용, 공유, 수정 */
    column-gap: 8px;
    align-items: center;
    height: 50px;
  }
  .d_table tr:nth-child(1) > td { width: auto !important; display: block; }
  .d_table tr:nth-child(1) > td:first-child { /* 라벨(상호명) */
    font-weight: 700;
    white-space: nowrap;
  }
  .d_table tr:nth-child(1) > td.S-name { /* 상호명 내용 */
    overflow-wrap: anywhere;
    word-break: keep-all;
    text-align: left;
  }
  .d_table tr:nth-child(1) > td.kongbtn { /* 공유 버튼 칸 */
    display: flex; justify-content: flex-end; align-items: center; padding-right: 0;
  }
  .d_table tr:nth-child(1) > td:last-child { /* 수정 버튼 칸 */
    display: flex; justify-content: flex-end; align-items: center; padding-right: 0;
  }

  /* ---------------------------
     2) 별점 행 (2번째 tr)
     전체 폭으로 한 줄만
     --------------------------- */
  .d_table tr:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr;
    height: 50px;
  }
  .d_table tr:nth-child(2) td {
    grid-column: 1 / -1;
    font-size: 16px;
    border-bottom: none;
  }

  /* ---------------------------
     3) 주소 행 (3번째 tr)
     구조: [라벨][주소][길찾기]
     (HTML상 3번째 td가 버튼을 담은 칸)
     --------------------------- */
  .d_table tr:nth-child(3) {
    display: grid;
    grid-template-columns: 72px 1fr auto; /* 라벨, 주소, 길찾기 */
    column-gap: 8px;
    align-items: center;
    height: 50px;
  }
  .d_table tr:nth-child(3) > td { width: auto !important; display: block; }
  .d_table tr:nth-child(3) > td:nth-child(2) { /* 주소 내용 */
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
  .d_table tr:nth-child(3) > td:nth-child(3) { /* 길찾기 버튼 칸 */
    display: flex; justify-content: flex-end; align-items: center; padding-right: 0;
  }

  /* ---------------------------
     4) 전화/운영/브레이크타임 행
     구조: [라벨][내용(전폭)]
     --------------------------- */
  /* 전화/운영/브레이크타임 행 공통 */
  .d_table tr:nth-child(4),
  .d_table tr:nth-child(5),
  .d_table tr:nth-child(6) {
    display: grid;
    grid-template-columns: auto 1fr; /* 라벨은 auto, 내용은 남은 공간 */
    column-gap: 8px;
    align-items: flex-start; /* 위쪽 맞춤 */
    height: auto;            /* 높이 자동 */
  }

  /* 라벨(브레이크타임) */
  .d_table tr:nth-child(6) > td:first-child {
    white-space: nowrap; /* "브레이크타임"은 줄바꿈 없이 고정 */
    font-weight: bold;
  }

  /* 내용 */
  .d_table tr:nth-child(6) > td:last-child {
    white-space: normal;      /* 줄바꿈 허용 */
    word-break: break-word;   /* 너무 긴 경우 줄바꿈 */
    overflow-wrap: anywhere;  /* 띄어쓰기 없는 문자열도 강제 줄바꿈 */
  }

  /* ---------------------------
     5) 주차/카테고리 행
     버튼만 전폭 사용 (읽기 쉬움)
     --------------------------- */
  .d_table tr:nth-child(7),
  .d_table tr:nth-child(8) {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }
  .bon-group {
    display: flex;
    flex-wrap: wrap;    /* 줄바꿈 */
    gap: 8px;
    padding: 4px 0;     /* 60px → 8px */
    justify-content: flex-start;
  }
  .bon {
    flex: 0 1 auto;
    min-width: 92px;
    height: 34px;
  }

  /* ---------------------------
     6) 가격대 + 신고 행 (마지막 tr)
     구조: [가격대 버튼들][신고]
     --------------------------- */
  /* 가격대 + 신고 행 */
  .d_table tr:last-child {
    display: block;       /* grid 대신 block으로 */
    height: auto;
    position: relative;   /* 신고 버튼을 내부 우측하단 고정 */
  }
  

  /* 가격대 버튼 영역 */
  .d_table tr:last-child > td:first-child {
    padding-bottom: 45px;  /* 신고 버튼 공간 확보 */
  }

  /* 신고 버튼 영역 */
  .d_table tr:last-child > td:last-child {
    position: absolute;
    bottom: 8px;   /* 하단 여백 */
    right: 8px;    /* 오른쪽 여백 */
    padding: 0;
    margin: 0;
  }

  /* 버튼 크기 모바일 최적화 */
  .d_table tr:last-child > td:last-child button {
    min-width: 70px;
    padding: 6px 10px;
    font-size: 13px;
  }

	.d_table tr:last-child .bon {
	width: 100px;
}
}