/* =========================
   일반
========================= */

body {
  font-size: .875rem;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
}

.feather {
  width: 16px;
  height: 16px;
}

.sight {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

html, body {
  height: 100%;
}

.main-content {
  flex: 1;
  padding-bottom: 80px;
}

.center-map {
  max-width: 820px;
  margin: 0 auto;
}

/* =========================
   홈페이지 한의원 카드
========================= */

.location-link {
  display: block;
  text-decoration: none;
  color: inherit;
  perspective: 1200px;
}

.location-link * {
  text-decoration: none !important;
  color: inherit;
}

/* -------------------------
   카드 본체
------------------------- */
.location-card {
  --underline-width: 180px;
  --card-padding: 22px;
  max-width: 400px;
  min-height: 280px;
  margin: 0 auto;
  position: relative;
  padding: var(--card-padding);
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;

  background: linear-gradient(145deg, #ffffff, #f0f0f0);

  box-shadow:
    0 6px 14px rgba(0,0,0,0.12),
    0 18px 30px rgba(0,0,0,0.08);

  transition:
    transform 0.6s cubic-bezier(.16,1,.3,1),
    box-shadow 0.6s ease;
}

/* 카드 호버 */
.location-link:hover .location-card {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

/* -------------------------
   타이틀
------------------------- */
.location-card .title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  padding-bottom: 4px;
  position: relative;
}

/* ❗ 밑줄은 카드 기준 */
/* .location-card::after {
  content: "";
  position: absolute;
  left: var(--card-padding);
  top: 64px;
  height: 2px;
  width: var(--underline-width);
  background: #111;

  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.location-link:hover .location-card::after {
  transform: scaleX(1);
} */

/* -------------------------
   정보 영역
------------------------- */
.location-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 14px;
  column-gap: 22px;
}

.location-card dt {
  font-weight: 500;
  color: #666;
}

.location-card dd {
  font-size: 1.2rem;
  font-weight: 500;
  color: #111;
}

/* -------------------------
   화살표 버튼
------------------------- */
.arrow-btn {
  width: 46px;
  height: 46px;
  margin-left: auto;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;

  transition:
    transform 0.45s cubic-bezier(.16,1,.3,1),
    background 0.45s ease;
}

.location-link:hover .arrow-btn {
  transform: translateX(8px) rotate(360deg);
  background: #333;
}

/* =========================
   INTRO CARD
   ========================= */

.intro-card {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px 28px 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  min-height: 280px;
}

/* 세로 컬러 바 */
.intro-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  background: #000;
  border-radius: 4px;
}

.intro-item {
  display: flex;
  gap: 12px;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 12px;
}

/* 아이콘 */
.intro-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1rem;
  flex-shrink: 0;
}

/* 텍스트 */
.intro-card p {
  margin: 0;
  line-height: 1.6;
}

.intro-card strong {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}


/* -------------------------
   모바일
------------------------- */
@media (max-width: 576px) {

  .location-card {
    --underline-width: calc(100% - 120px);
    padding: 24px 24px 0px;
  }

  .location-card .title {
    font-size: 1.2rem;
    margin-bottom: 14px;
    padding-right: 60px;
  }

  /* 밑줄 위치 모바일 보정 */
  /* .location-card::after {
    left: 24px;
    top: 62px;
  } */

  .location-card dl {
    grid-template-columns: 88px 1fr;
    row-gap: 6px;
    column-gap: 12px;
  }

  .location-card dt {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
  }

  .location-card dd {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: keep-all;
  }

  .location-card > .d-flex {
    align-items: flex-start;
  }

  .arrow-btn {
    position: absolute;
    top: 26px;
    right: 22px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    z-index: 5;
  }

  .intro-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 20px 20px 28px;
  }

  .intro-card::before {
    top: 12px;
    bottom: 12px;
  }
}


/* =========================
   한의원 상세 페이지
========================= */

.info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #333;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  top: -0.33em;
}

.info-item.tel .icon {
  background: #111;
  color: #fff;
}

.info-item strong {
  font-weight: 600;
  font-size: 1rem;
}


/* =========================
   체질침이란 페이지
========================= */

/* 소개 박스 */
.about-box.premium {
  max-width: 1000px;
  padding: 3.5rem 3rem;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.98),
    rgba(248,250,252,0.98)
  );
  border-radius: 1.75rem;
  line-height: 1.9;
  font-size: 1.05rem;
  color: #374151;

  /* 그림자 */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
}

/* 문단 간격 */
.about-box p {
  margin-bottom: 1.6rem;
}

/* 강조 텍스트 */
.about-box strong {
  font-weight: 600;
  color: #111827;
}

/* 마지막 문단 강조 */
.about-box .highlight {
  margin-top: 2.5rem;
  padding-left: 1.2rem;
  border-left: 3px solid #000;
  color: #1f2937;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .about-box.premium {
    padding: 2.5rem 1.75rem;
    font-size: 1rem;
  }
}



/* =========================
   진료 예약 페이지
========================= */
 
/* -------------------------
   폼 전체 카드
------------------------- */
.appointment-form {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 3.5rem 3rem;

  background: #fff;
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.04);
}

/* -------------------------
   라벨
------------------------- */
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

/* -------------------------
   입력창 / 셀렉트
------------------------- */
.form-control,
.form-select {
  height: 56px;
  padding: 0 16px;

  font-size: 0.95rem;
  background-color: #fff;

  border-radius: 10px;
  border: 1px solid #e1e1e1;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-control::placeholder {
  color: #aaa;
}

.form-control:focus,
.form-select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* -------------------------
   개인정보 박스
------------------------- */
.privacy-box {
  background: #fafafa;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #eee;

  line-height: 1.7;
}

.privacy-box strong {
  font-weight: 600;
  color: #111;
}

.form-check-label {
  cursor: pointer;
}

/* -------------------------
   제출 버튼
------------------------- */
#submitBtn {
  width: 100%;
  padding: 18px 0;

  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;

  border-radius: 16px;
  border: none;

  background: #111;
  color: #fff;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#submitBtn:hover:not(:disabled) {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

#submitBtn:disabled {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}


/* =========================
   Header
========================= */

/* 헤더 전체 */
.whhead {
  height: 72px;
  z-index: 1000;
}

/* 브랜드 */
.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

/* 메뉴 */
.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

/* hover 밑줄 효과 */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* 예약 버튼 */
.navbar .btn-dark {
  border-radius: 999px;
  font-size: 0.95rem;
}

/* 모바일 navbar collapse 배경 */
.navbar-collapse {
  background-color: #ffffff;
}


/* =========================
   Footer
========================= */

.wh-footer {
  background-color: #ffffff;
  border-top: 1px solid #eee;
  padding: 40px 0 30px;
  font-size: 0.9rem;
  color: #555;
}

.wh-footer .footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 10px;
}

.wh-footer .footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #777;
}

.wh-footer .footer-nav a {
  color: #555;
  text-decoration: none;
  margin-right: 16px;
  position: relative;
}

.wh-footer .footer-nav a:hover {
  color: #000;
}

.wh-footer .footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.wh-footer .footer-nav a:hover::after {
  width: 100%;
}

.wh-footer .footer-info {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
}

.wh-footer .copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #aaa;
}

/* 모바일 정렬 */
@media (max-width: 991px) {
  .wh-footer {
    text-align: center;
  }

  .wh-footer .footer-nav a {
    margin: 0 10px;
  }
}




/* =========================
   Admin 전체 목록
========================= */
 
.admin-toolbar .btn {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
}

.admin-toolbar .form-control {
  border-radius: 12px;
}


/* =========================
   비급여항목 페이지
========================= */

table th {
  background-color: #fafafa;
  font-weight: 600;
}

table td, table th {
  padding: 14px;
  font-size: 0.95rem;
}


/* =========================
   네이버맵
========================= */

#map {
  width: 100%;
  max-width: 820px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.customoverlay {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 6px 10px;

  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #111;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 말풍선 꼬리 */
.customoverlay::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.85);
}

.customoverlay::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid rgba(0, 0, 0, 0.25);
}
