/* =========================================================
   RESET & BASE
========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "맑은 고딕", "Malgun Gothic", sans-serif;
  background-color: #E5DFD5;
  color: #22252a;
  overflow-x: hidden;
}

/* =========================================================
   HEADER (FULL WIDTH)
========================================================= */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;        /* ⭐ 핵심 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  gap: 18px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.header-cs {
  background: #ffe4e6;
  color: #dc2626;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* =========================================================
   MAIN APP CONTAINER (PC 기준)
========================================================= */
.app {
  max-width: 1000px;            
  margin: 0 auto;
  padding: 48px 20px 64px;
  min-height: calc(100vh - 60px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  color: #252933;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #74777f;
}

/* =========================================================
   MAIN TOP BUTTONS
========================================================= */
.main-button-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.main-btn {
  width: 240px;
  height: 70px;
  border-radius: 40px;
  border: 2px solid #2d3a4e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.main-btn.active {
  background: #2d3a4e;
  color: #ffffff;
  font-size: 18px;
}

.main-btn:not(.active) {
  background: transparent;
  color: #2d3a4e;
}

.cremation-btn .btn-title {
  font-size: 17px;
}

.cremation-btn .btn-sub {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

.main-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   SERVICE SECTION
========================================================= */
.service-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #30343c;
  text-align: center;
}

.service-grid {
  max-width: 720px;          /* 🔥 핵심: 카드 전체 폭 제한 */
  margin: 0 auto;            /* 가운데 고정 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;                 /* 간격 축소 */
}


/* =========================================================
   SERVICE CARD
========================================================= */
.service-card {
  background-color: #FFF4DE;
  border-radius: 20px;
  padding: 22px 14px 20px;
  border: 1px solid #CFC4B4;
  box-shadow: 0 6px 14px rgba(100, 90, 70, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 20px;
}


.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(100, 90, 70, 0.18);
}

.service-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
}


.emoji-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.service-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 12px;
  color: #7a7e86;
}

.board-title{
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 0px;
  line-height: 1.15;
}

.board-desc{
  font-size: 12px;
  color: #7a7e86;
  margin-bottom: 3px;
  line-height: 1.25;
}

.notice-page .card .board-title{
  margin: 0;
  line-height: 1.15;
}


/* =========================================================
   ADMIN
========================================================= */
#logoutBtn {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  background: #b91c1c;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.admin-modal-box {
  background: #f9f2e3;
  padding: 20px 18px;
  border-radius: 18px;
  width: 300px;
}

.admin-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
}

.admin-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.admin-btn-primary {
  background: #2563eb;
  color: #fff;
}

/* =========================================================
   MOBILE (480px 이하)
========================================================= */
@media (max-width: 600px) {
  .app {
    max-width: 480px;
    padding: 24px 14px 40px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    padding: 20px 12px 18px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
  }

  .emoji-icon {
    width: 72px;
    height: 72px;
  }

  .hero-title {
    font-size: 23px;
  }

  .main-button-wrap {
    flex-direction: column;
    gap: 14px;
  }

  .main-btn {
    width: 100%;
    height: 64px;
  }
}
/* =========================
   하단 정보 섹션 (카드형)
========================= */
.footer-section {
  margin-top: 24px;
}

.footer-box {
  background: #fff6e2;
  border-radius: 22px;
  padding: 22px 18px 24px;
  border: 1px solid #d9d1c2;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  max-width: 100%;
}

/* 약관 링크 */
.footer-links {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links a {
  color: #2d3a4e;
  text-decoration: none;
}

.footer-links span {
  margin: 0 6px;
  color: #aaa;
}

/* 사업자 정보 */
.footer-info {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.footer-info p {
  margin: 2px 0;
}

.footer-copy {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.notice-header {
  text-align: center;
  margin: 40px 0 30px;
}

.notice-logo {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.notice-sub {
  font-size: 14px;
  color: #555;
}

.home-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.notice-footnote {
  max-width: 900px;
  margin: 40px auto 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.card-list {
  max-width: 720px;
  margin: 0 auto;       
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}



/* =========================================================
   card
========================================================= */

.card {
  position: relative;
  background-color: #FFF4DE;
  border-radius: 20px;
  padding: 16px 14px 14px;
  border: 1px solid #CFC4B4;
  box-shadow: 0 6px 14px rgba(100, 90, 70, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  justify-content: center;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 2px;
  word-break: keep-all;
  overflow-wrap: anywhere;

  max-width: 68%;     
}

.card-address {
  font-size: 12px;
  color: #555;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}

.card-phone {
  font-size: 12px;
  color: #222;
  margin: 0 0 8px;
}

.card-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.card-pill {
  padding: 4px 10px;
  background: #f8f0de;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  white-space: nowrap;
  color: #444;

  width: fit-content;
  max-width: 100%;
}

.card-meta-row .card-pill:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.card-actions {
  display: flex;
  width: 100%;
  margin-top: auto;
}

.card-btn {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.card-btn.call {
  background: #2563eb;
  color: #fff;
}

.ad-badge{
  position: absolute;
  top: 6px;
  right: 8px;

  padding: 4px 8px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  background: #ffe4e6;
  color: #dc2626;

  line-height: 1;
}

/* ===== notice 페이지 ===== */

.notice-home-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #2F6AE0;
  text-decoration: none;
}
body {
  margin: 0;
  background: #ECE6DB;
}

.notice-page {
  background: #ECE6DB;
  min-height: 100vh;
}

.notice-disclaimer {
  margin-top: 20px;
  padding: 0 6px;
}

.notice-disclaimer p {
  margin: 4px 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}
.notice-disclaimer {
  border-top: 1px solid #ddd4c6;
  padding-top: 12px;
}
.notice-disclaimer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #ddd4c6;

  text-align: center;   /* ✅ 가운데 정렬 핵심 */
}

.notice-disclaimer p {
  margin: 6px 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}

/* 카드 영역 */
.notice-select {
  padding: 20px 16px 10px;
}

.notice-grid {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.notice-card {
  background: #FFF4DE;
  border-radius: 20px;
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.notice-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.notice-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* 하단 안내 */
.notice-info {
  max-width: 420px;
  margin: 14px auto 30px;
  padding: 0 18px;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}
/* ===== 공통 포털 상단 ===== */
.read-top {
  padding: 28px 16px 12px;
  background: #ECE6DB;
}

.read-card {
  max-width: 420px;
  margin: 0 auto;
  background: #FFF4DE;
  border-radius: 24px;
  padding: 26px 20px 28px;
  text-align: center;
}

.portal-logo img {
  width: 48px;
  height: auto;
  margin-bottom: 10px;
}

.portal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}
/* =========================
   NOTICE2 (공지사항) - 카드 규격 완전 통일
========================= */

.notice2-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 타이틀 */
.notice2-section-title {
  margin: 15px 0 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #2d2f33;
}

/* 카드 그리드 */
.notice2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

/* 카드 본체 */
.notice2-card {
  width: 100%;
  max-width: 320px;

  background: #FFF3DC;
  border-radius: 24px;
  padding: 22px 20px;

  border: 1px solid #CFC4B4;
  box-shadow: 0 8px 18px rgba(100, 90, 70, 0.12);

  display: flex;
  flex-direction: column;
  justify-content: center; /* 수직 중앙 */
  align-items: center;

  text-align: center;
  text-decoration: none;
  color: inherit;
}

/* 제목 */
.notice2-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* 설명 */
.notice2-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  max-width: 240px;
}

/* 모바일 */
@media (max-width: 600px) {
  .notice2-grid {
    grid-template-columns: 1fr;
  }

  .notice2-card {
    max-width: 100%;
  }
}


/* 모바일 */
@media (max-width: 600px) {
  .notice2-grid {
    grid-template-columns: 1fr;
  }
}
/* 공지 검색 영역 */
.notice-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  background: #fff4dc;
  border-radius: 14px;
}

/* 검색 입력창 */
.notice-search-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5e5e5;
}

/* 검색 버튼 */
.notice-search-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  background: #f5b300;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.notice-search-btn:hover {
  background: #e3a600;
}
.portal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.portal-card {
  width: 100%;
  max-width: 640px;
  padding: 40px 30px;
  background: #fff3dc;
  border-radius: 24px;
  text-align: center;
}
.notice-search-wrap {
  width: 100%;
  max-width: 640px;
}
.notice-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff3dc;
  border-radius: 18px;
}

.notice-search-input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  outline: none;
}

.notice-search-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  background: #f5b300;
  font-weight: 600;
  cursor: pointer;
}
/* =========================
   필독사항 페이지 전용 기준값
   ========================= */

.notice-page {
  --card-width: 260px;   /* 기존 notice-card 실제 폭 */
  --card-gap: 40px;      /* notice-card 사이 간격 */
}

/* 기존 카드 영역 (건드리지 않되 기준만 통일) */
.notice-page .notice-grid {
  display: flex;
  justify-content: center;
  gap: var(--card-gap);
}

.notice-page .notice-card {
  width: var(--card-width);
}

/* =========================
   필독사항 상단 (완전 분리)
   ========================= */

.read-top {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* 🔥 위 박스 = 아래 카드 2개 합친 가로폭 */
.read-card {
  width: calc(var(--card-width) * 2 + var(--card-gap));
  box-sizing: border-box;

  background: #fff4dc;
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
}

/* 내부 스타일 */
.read-logo img {
  width: 42px;
  margin-bottom: 16px;
}

.read-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.read-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 18px;
}

.read-home-btn {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

/* 모바일 */
@media (max-width: 640px) {
  .read-card {
    width: 100%;
  }

  .notice-page .notice-grid {
    flex-direction: column;
    gap: 20px;
  }

  .notice-page .notice-card {
    width: 100%;
  }
}
/* =========================
   장례식장 리스트 페이지 전용
========================= */

/* 앱 컨테이너 (모바일 기준) */
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
}

/* 상단 뒤로가기 헤더 */
.page-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.back-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
}
.search-box {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.search-box input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
}

.search-box button {
  background: #F4B741;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.region-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  margin-top: 6px;
  font-size: 14px;
  background: #fff;
}
.tier-block {
  margin-bottom: 25px;
}

.tier-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 4px 6px;
  color: #374151;
}

.admin-inline {
  position: absolute;
  top: 6px;
  left: 8px;
  display: none;
  gap: 4px;
  z-index: 5;
}

.admin-inline button {
  border: none;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  background: rgba(17,24,39,0.85);
  color: #fff;
}

.admin-inline-delete {
  background: rgba(220,38,38,0.85);
}
.admin-write-wrap {
  margin-top: 10px;
  display: none;
}

.admin-write-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
/* =========================
   장례식장 리스트 상단 카드
========================= */

/* 브랜드 헤더 */
.portal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.portal-brand-logo {
  width: 28px;   
  height: auto;
}

.portal-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* 페이지 타이틀 */
.portal-page-title {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.portal-page-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #555;
}
/* =========================================================
   FUNERALHALL DETAIL PAGE
========================================================= */

.funeralhall-detail .page-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.funeralhall-detail .back-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.funeralhall-detail .page-title {
  font-size: 18px;
  font-weight: 700;
}
.funeralhall-detail .main-card {
  background: #f9f2e3;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;
  margin-bottom: 14px;
}

.funeralhall-detail .main-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
  border-radius: 18px;
  background: #f4d58a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.funeralhall-detail .main-card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.funeralhall-detail .hall-name {
  font-size: 18px;
  font-weight: 700;
}

.funeralhall-detail .hall-region {
  font-size: 13px;
  color: #4b5563;
}

.funeralhall-detail .hall-address {
  font-size: 12px;
  color: #6b7280;
}
.funeralhall-detail .hall-main-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.funeralhall-detail .btn-main {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
}

.funeralhall-detail .btn-call {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.funeralhall-detail .btn-share {
  background: rgba(0,0,0,0.05);
  color: #111;
}
.funeralhall-detail .info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.funeralhall-detail .info-box {
  flex: 1 1 calc(50% - 4px);
  background: #f6efe1;
  border-radius: 14px;
  padding: 8px 10px;
}

.funeralhall-detail .info-label {
  font-size: 11px;
  color: #6b7280;
}

.funeralhall-detail .info-value {
  font-size: 13px;
  font-weight: 600;
}
.funeralhall-detail .section {
  background: #f9f2e3;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.funeralhall-detail .section-title {
  font-size: 14px;
  font-weight: 700;
}

.funeralhall-detail .section-desc {
  font-size: 12px;
  color: #4b5563;
}
.funeralhall-detail .map-wrapper {
  background: #e3d6c0;
  border-radius: 14px;
  padding: 8px;
}

.funeralhall-detail .map-tab {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.funeralhall-detail .map-tab-btn {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 6px 0;
  font-size: 12px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
}

.funeralhall-detail .map-tab-btn.active {
  background: #4A4A72;
  color: #fff;
  font-weight: 600;
}

.funeralhall-detail .map-box {
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
/* =========================================================
   TRANSPORT (특수여객) 페이지 전용
========================================================= */

/* 상단 필터 카드 보조 텍스트 */
.filter-title {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 3px;
}

.filter-desc {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* 빈 데이터 문구 */
.empty-text {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding-top: 4px;
}

/* transport 전용 페이지네이션 색상 */
.normal-pagination button {
  background: #374151;
  color: #ffffff;
}
.normal-pagination {
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  max-width: 420px;
}

/* transport 카드 간격 보정 */
.hall-card {
  gap: 4px;
}

/* =========================================================
   GOODS (장례용품) 페이지 전용
========================================================= */

/* 장례용품 썸네일 */
.goods-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 8px;
}

/* 장례용품 가격 */
.hall-price {
  font-size: 13px;
  font-weight: 700;
  color: #b15b00;
  margin: 4px 0 0;
}

/* 장례용품 전화번호 */
.goods-phone {
  font-size: 13px;
  margin-top: 4px;
}

/* 장례용품 전화 버튼 */
.goods-call-btn {
  margin-top: 10px;
  padding: 8px 0;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.goods-call-btn:active {
  transform: translateY(1px);
}

.category-filter {
  margin-top: 8px;
  text-align: left;
}

.category-filter-title {
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-chip {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

.category-chip.active {
  background: #2563eb;
  color: #ffffff;
}
.terms-content {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.terms-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
}
/* ===== 이용약관 페이지 ===== */

.terms-card {
  text-align: left;
}

.terms-content {
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
}

.terms-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: #1f2937;
}

.terms-content p {
  margin: 0 0 10px;
}
.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}


.header-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid #2f3e55;

  background: transparent; 
  
  font-size: 11px;
  line-height: 1.2;
}

.header-counter span {
  white-space: nowrap;
  font-weight: 700;
  color: #1f2937;
}

.header-counter strong {
  font-weight: 900;
  color: #111827;
  margin-left: 4px;
}

.header-logo-img {
  height: 42px;    
  width: auto;
  display: block;
}



/* 로고 텍스트 */
.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}
.visit-counter {
  margin-left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #2f3e56;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.goods-cat-card {
  position: relative;
  background: #FFF3DC;
  border-radius: 20px;
  padding: 20px 10px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;

  text-decoration: none;
  color: inherit;
  height: 230px;
  box-sizing: border-box;
}
.goods-cat-card:visited { color: inherit; }
.goods-cat-card:hover { text-decoration: none; }

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px 12px;
  color: #666;
  font-size: 13px;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 14px;
  background: rgba(255, 244, 222, 0.6);
}