/* 상품 상세 페이지 */
.product-detail-top-con {
  margin-bottom: 30px;
}

.product-detail-top-con .tit-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-detail-top-con .tit-con .tit {
  font-size: 28px;
  font-weight: 600;
  color: #222;
}

.product-detail-top-con .heart-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.product-detail-top-con .heart-icon svg {
  transition: all 0.3s ease;
}

.product-detail-top-con .heart-icon svg:hover {
  fill: #ff6b6b;
}

.product-detail-top-con .money-con {
  margin-bottom: 15px;
}

.product-detail-top-con .money-con .cost {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  margin-right: 10px;
}

.product-detail-top-con .money-con .discount-con {
  display: inline-block;
}

.product-detail-top-con .money-con .discount-per {
  font-size: 22px;
  font-weight: 600;
  color: #ff3e3e;
  margin-right: 10px;
}

.product-detail-top-con .money-con .discount-cost {
  font-size: 26px;
  font-weight: 700;
  color: #222;
}

.product-detail-top-con .asterion-con {
  margin-top: 15px;
}

/* 상품 상세 설명 */
.product-detail-des-con .product-detail-con {
  margin-top: 40px;
}

.product-detail-des-con .detail-des-txt-con {
  margin-bottom: 30px;
}

.product-detail-des-con .detail-des-txt-con .tit {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

.product-detail-des-con .detail-des-txt-con .des {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  white-space: pre-line;
}

.product-detail-des-con .detail-img-con {
  max-height: 800px;
  overflow: hidden;
}

.product-detail-des-con .detail-more-view-con {
  text-align: center;
}

.product-detail-des-con .detail-more-view-con .more-view-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 30px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-detail-des-con .detail-more-view-con .page-description {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

.product-detail-des-con .detail-more-view-con .more-view-btn:hover {
  background: #f0f0f0;
  color: #4d3dbf;
}

.product-detail-des-con.active .detail-img-con {
  max-height: none;
}

/* New Procedure Showcase Styles */
.procedure-showcase {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-bottom: 50px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.procedure-banner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  overflow: hidden;
}

.procedure-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.procedure-information {
  padding: 25px 35px;
}

.procedure-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.procedure-details {
  flex: 1;
}

.procedure-details .rating-common {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

.procedure-details .rating-common .stars {
  font-size: 16px;
  color: #ffcc00;
}

.procedure-details .rating-common .score {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #4d3dbf;
}

.procedure-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
}

.procedure-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.rating-score {
  font-size: 48px;
  font-weight: 700;
  color: #4d3dbf;
  margin-bottom: 8px;
  line-height: 1;
}

.rating-stars {
  font-size: 20px;
  color: #ffcc00;
}

.rating-count {
  font-size: 16px;
  color: #777;
  position: relative;
  padding-left: 12px;
}

.rating-count::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 3px;
  background: #777;
  border-radius: 50%;
  transform: translateY(-50%);
}

.hospital-details {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
}

.hospital-title {
  font-size: 22px;
  font-weight: 600;
  color: #4d3dbf;
  margin-bottom: 10px;
}

.hospital-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 0px 12px 12px 12px;
  border-radius: 8px;
}

.hospital-address p {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.price-container {
  text-align: right;
}

.discount-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #ff3e3e;
  color: #fff;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.price-comparison {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.price-original {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.price-discounted {
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.btn-reserve,
.btn-consult,
.btn-favorite {
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  height: 56px;
}

.btn-reserve {
  padding: 12px 40px;
  font-size: 17px;
  background: #4d3dbf;
  color: #fff;
  border: none;
}

.btn-consult {
  padding: 0;
  font-size: 17px;
  background: #fff;
  color: #4d3dbf;
  border: 1px solid #4d3dbf;
}

.btn-favorite {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  padding: 0;
  background: #fff;
  color: #ff66cc;
  border: 1px solid #ff66cc;
}

.btn-reserve:hover {
  background: #3f31a0;
  /* transform: translateY(-2px); */
}

.btn-consult:hover {
  background: #f9f8ff;
  /* transform: translateY(-2px); */
  border-color: #3f31a0;
}

.btn-favorite:hover {
  border-color: #ff66cc;
  background: #fff0f3;
  /* transform: translateY(-2px); */
}

.surgery-detail-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.surgery-detail-img img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
}

/* 상세 페이지 탭 */
.detail-tabs {
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
}

.tab-btn {
  padding: 20px 30px;
  font-size: 18px;
  letter-spacing: -0.5px;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  border-bottom: 3px solid #4d3dbf;
}

.tab-content {
  padding: 20px 0 40px;
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sale-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 10px;
}

.sale-price .discount {
  font-size: 28px;
  font-weight: 600;
  color: rgb(255, 0, 195);
  margin-bottom: 7px;
}

.sale-price .price-before {
  font-size: 18px;
  color: #999;
  font-weight: 500;
  text-decoration: line-through;
  margin-bottom: 5px;
}

.sale-price .price {
  font-size: 28px;
  font-weight: 700;
  color: #4d3dbf;
}

/* 탭 내부 콘텐츠 스타일 */
.tab-content h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.tab-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #4d3dbf;
  border-radius: 2px;
}

.surgery-desc {
  margin-bottom: 60px;
  background-color: rgb(255, 255, 255);
  padding: 0px 10px;
  border-radius: 15px;
}

.surgery-desc p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  word-break: keep-all;
  word-wrap: break-word;
}

.surgery-features {
  padding: 0 10px;
}

.surgery-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.surgery-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: #4d3dbf;
  border-radius: 50%;
}

.surgery-process {
  margin-bottom: 80px;
}

.process-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.process-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50px;
  width: 1px;
  height: calc(100% - 20px);
  background-color: #ddd;
}

.process-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background-color: #4d3dbf;
  color: white;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  position: relative;
  z-index: 1;
  min-width: 40px;
  aspect-ratio: 1/1;
}

.process-desc {
  flex: 1;
}

.process-desc h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.process-desc p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* 후기(리뷰) 섹션 - 깔끔한 스타일 */

/* 리뷰 헤더 스타일 */
.reviews-header {
  margin-bottom: 24px;
}

.reviews-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reviews-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.reviews-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.total-rating-badge {
  background: #4d3dbf;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.review-count {
  color: #666;
  font-size: 14px;
}

/* 리뷰 요약 */
.review-summary {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.rating-overview {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.main-rating {
  text-align: center;
  min-width: 120px;
}

.rating-score {
  font-size: 48px;
  font-weight: 700;
  color: #4d3dbf;
  line-height: 1;
  margin-bottom: 8px;
}

.rating-stars {
  color: #ffc107;
  font-size: 20px;
  margin-bottom: 8px;
}

.rating-desc {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* 리뷰 사진 모음 */
.review-photos-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  text-align: center;
}

.photos-gallery {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.photo-item {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid #e9ecef;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-more-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #4d3dbf;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.photo-more-btn span {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.more-text {
  font-size: 12px;
}

/* 리뷰 목록 */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.review-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
}

.review-main-info {
  flex: 1;
  min-width: 0;
}

.review-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.review-date {
  font-size: 13px;
  color: #666;
}

.reviewer-info .rating-stars {
  font-size: 14px;
  color: #ffc107;
  margin-top: 2px;
}

.review-toggle-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.review-toggle-btn.active {
  transform: rotate(180deg);
  color: #4d3dbf;
}

/* 리뷰 상세 내용 */
.review-detail {
  display: none;
  background: #fafbff;
}

.review-detail.active {
  display: block;
}

.review-content {
  padding: 20px;
}

/* 시술 정보 상세 */
.procedure-detail-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  min-width: 60px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: right;
}

/* 후기 사진 */
.review-photos {
  margin-bottom: 20px;
}

.photo-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.photo-item-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  /* 컨테이너를 정사각형 비율로 만듭니다. */
  aspect-ratio: 1 / 1; 
}

.photo-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 1;
}

.photo-item-wrapper img {
  width: 100%;
  height: 100%; /* 부모 높이에 맞춤 */
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-text {
  margin-bottom: 20px;
}

.review-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.review-text p:last-child {
  margin-bottom: 0;
}

/* 리뷰 액션 버튼 */
.review-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f3f4;
}

.helpful-btn,
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-number.active {
  background: #4d3dbf;
  color: white;
}

.page-dots {
  padding: 0 8px;
  color: #666;
  font-size: 14px;
}

/* 이미지 모달 */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.image-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.image-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Styles */
@media screen and (max-width: 1199px) {
  .procedure-banner {
    padding-bottom: 50%;
  }
}

@media screen and (max-width: 991px) {
  .procedure-information {
    padding: 25px;
  }

  .procedure-content {
    flex-direction: column;
    gap: 30px;
  }

  .procedure-details {
    padding-right: 0;
  }

  .procedure-details .rating-common {
    justify-content: flex-end;
  }

  .hospital-details {
    align-items: flex-start;
  }

  .price-container {
    text-align: left;
  }

  .price-comparison {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .procedure-showcase {
    border-radius: 15px;
    margin-bottom: 30px;
  }

  .procedure-banner {
    padding-bottom: 50%;
  }

  .procedure-information {
    padding: 20px;
  }

  .procedure-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .procedure-details .rating-common {
    justify-content: flex-end;
  }

  .procedure-rating {
    margin-bottom: 5px;
  }

  .rating-stars,
  .rating-score {
    font-size: 14px;
  }

  .rating-count {
    font-size: 14px;
  }

  .hospital-title {
    font-size: 18px;
  }

  .hospital-address {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .discount-tag {
    padding: 5px 10px;
    font-size: 14px;
  }

  .price-original {
    font-size: 16px;
  }

  .price-discounted {
    font-size: 22px;
  }

  .btn-reserve,
  .btn-consult,
  .btn-favorite {
    height: 48px;
  }

  .btn-reserve,
  .btn-consult {
    font-size: 15px;
  }

  .btn-favorite {
    font-size: 15px;
  }

  .sale-price {
    gap: 10px;
  }

  .sale-price .discount {
    font-size: 22px;
  }

  .sale-price .price-before {
    font-size: 16px;
  }

  .sale-price .price {
    font-size: 22px;
    gap: 8px;
  }

  .surgery-detail-img {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }

  .surgery-detail-img img {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Only hide BR tags on mobile */
  .surgery-desc br {
    display: none;
  }

  .surgery-desc p {
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
  }

  .tab-content h3 {
    font-size: 20px;
  }

  .process-num {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 16px;
  }

  .rating-overview {
    margin-bottom: 20px;
  }

  .photos-gallery {
    gap: 8px;
  }

  .photo-item,
  .photo-more-btn {
    width: 60px;
    height: 60px;
  }

  .photo-more-btn span {
    font-size: 14px;
  }

  .more-text {
    font-size: 10px;
  }

  .review-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .photo-item-wrapper img {
    height: 100px;
  }

  .photo-label {
    font-size: 11px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
  }

  .review-header {
    padding: 16px;
  }

  .review-content {
    padding: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .procedure-detail-info {
    padding: 16px;
    margin-bottom: 16px;
  }

  .info-item {
    padding: 10px 14px;
  }

  .info-label {
    font-size: 12px;
    min-width: 55px;
  }

  .info-value {
    font-size: 13px;
  }

  /* 갤러리 모달 모바일 스타일 */
  .photo-gallery-content {
    width: 95%;
    height: 95%;
    top: 2.5%;
  }

  .gallery-header {
    padding: 16px 20px;
  }

  .gallery-header h3 {
    font-size: 18px;
  }

  .gallery-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .gallery-body {
    padding: 16px;
  }

  .gallery-section h4 {
    font-size: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .gallery-item img {
    height: 120px;
  }
}

@media screen and (max-width: 480px) {
  .procedure-banner {
    padding-bottom: 50%;
  }

  .procedure-title {
    font-size: 22px;
  }

  .procedure-details .rating-common {
    justify-content: flex-end;
  }

  .price-discounted {
    font-size: 20px;
  }

  .action-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .btn-reserve,
  .btn-consult,
  .btn-favorite {
    height: 44px;
  }

  .btn-reserve,
  .btn-consult {
    font-size: 14px;
  }

  .btn-favorite {
    font-size: 14px;
  }

  .sale-price {
    gap: 8px;
  }

  .sale-price .discount {
    font-size: 18px;
  }

  .sale-price .price-before {
    font-size: 14px;
  }

  .sale-price .price {
    font-size: 18px;
    gap: 6px;
  }

  .surgery-detail-img {
    padding: 0 10px;
  }

  .surgery-detail-img img {
    margin-bottom: 15px;
  }

  .surgery-desc p {
    font-size: 14px;
    line-height: 1.5;
  }

  .surgery-features {
    padding: 0;
  }

  .process-item {
    align-items: flex-start;
  }

  .process-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 14px;
    border-radius: 50%;
    margin-right: 15px;
  }

  .tab-btn {
    padding: 12px 15px;
    font-size: 14px;
  }

  .rating-stars {
    font-size: 20px;
  }

  .review-item {
    margin-bottom: 12px;
  }

  .photo-item,
  .photo-more-btn {
    width: 50px;
    height: 50px;
  }

  .photo-more-btn span {
    font-size: 12px;
  }

  .more-text {
    font-size: 9px;
  }

  .review-title {
    font-size: 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .procedure-detail-info {
    padding: 16px;
    margin-bottom: 16px;
  }

  .info-item {
    padding: 10px 12px;
  }

  .info-label {
    font-size: 12px;
    min-width: 50px;
  }

  .info-value {
    font-size: 13px;
  }

  /* 480px 이하 갤러리 모달 스타일 */
  .photo-gallery-content {
    width: 98%;
    height: 98%;
    top: 1%;
    border-radius: 12px;
  }

  .gallery-header {
    padding: 12px 16px;
  }

  .gallery-header h3 {
    font-size: 16px;
  }

  .gallery-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .gallery-body {
    padding: 12px;
  }

  .gallery-section {
    margin-bottom: 24px;
  }

  .gallery-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .gallery-item img {
    height: 100px;
  }
}

/* Hospital Detail 스타일링 */
.hospital-info-link {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hospital-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.hospital-link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.hospital-details {
  flex: 1;
}

.hospital-name {
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hospital-location {
  color: #000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 1.1rem;
}

.hospital-location i {
  color: #4d3dbf;
}

.hospital-arrow {
  color: #999;
  font-size: 16px;
}

.hospital-arrow i {
  transition: transform 0.3s ease;
}

.description-content {
  display: flex;
  padding: 20px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.description-details {
  padding: 20px 0;
  flex-grow: 1;
  width: 100%;
}

.description-details .description-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.description-details .description {
  color: #000;
  font-weight: 450;
  font-size: 1.1rem;
  
  white-space: pre-wrap;
  line-height: 1.4;
}

/* 비포 애프터 이미지 */
.before-after-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.before-after-item {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.before-after-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ba-desc {
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 의사 프로필 */
.doctor-info {
  margin: 20px 0 40px;
}

.doctor-profile {
  display: flex;
  gap: 25px;
  border-radius: 15px;
}

.doctor-image {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.doctor-name h4 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.specialist-text {
  font-size: 15px;
  color: #666;
  font-weight: 400;
}

.specialist-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #4d3dbf;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
}

.doctor-specialties ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.doctor-specialties li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #f0eeff;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  color: #4d3dbf;
}

/* 병원 상세 정보 */
.hospital-detail {
  margin-bottom: 50px;
}

.hospital-detail h3 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.hospital-detail h3:first-child {
  margin-top: 0;
}

.hospital-image {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

.hospital-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hospital-hours {
  margin-bottom: 40px;
}

.hospital-hours h4 {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-left: 25px;
}

.hospital-hours h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-image: url('../img/clock-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.hospital-hours ul {
  padding-left: 25px;
}

.hospital-hours li {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hospital-hours li::before {
  content: '-';
  position: absolute;
  left: 0;
}

.hospital-map {
  margin-top: 40px;
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}

/* 후기사진 모아보기 모달 */
.photo-gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.photo-gallery-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #fafbfc;
  border-radius: 16px 16px 0 0;
}

.gallery-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.gallery-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.gallery-body {
  padding: 24px;
}

.gallery-section {
  margin-bottom: 32px;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

.gallery-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4d3dbf;
  display: inline-block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.review-list .rating-stars,
.review-summary .rating-stars {
  letter-spacing: 2px;
}

.star-filled {
  color: #ffc107; /* 채워진 별 색상 */
}

.star-empty {
  color: #e0e0e0; /* 비어있는 별 색상 */
}

/* 이미지 모달 스타일 */
.image-modal {
  display: none; /* 평소에는 숨겨둠 */
  position: fixed; /* 화면 전체에 고정 */
  z-index: 10000; /* 다른 요소들보다 위에 오도록 설정 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* 반투명 검은 배경 */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: auto; /* 내용이 클 경우 스크롤 */
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.image-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
}

.image-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.image-close:hover,
.image-close:focus {
  color: #bbb;
  text-decoration: none;
}