/* =========================================================
   Plant Hospital — Hospital List Page (FULL CSS, 4-모서리 라운딩 적용)
   - 통일 폭 / 반응형 / CTA 축소 / 이미지 4모서리 라운딩
   - 2025-10-23
   ========================================================= */

/* 0) 기본 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }

/* 공통 토큰 */
:root{
  --container-w: 960px;   /* 🔧 페이지 전역 폭 (히어로/필터/목록 동일) */
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 3px 6px rgba(0,0,0,.05);
}

/* 1) 컨테이너 (이 페이지만 폭 통일) */
.page-container.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px 16px;
}

/* 2) 히어로 */
.hero-section.hero--hospital{
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 32px) clamp(12px, 4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.hero-section.hero--hospital h2{
  margin: clamp(6px, 1.2vw, 14px) 0 0;
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(1.25rem, 3.2vw, 2.2rem); /* 20~35px */
  color:#333;
  word-break: keep-all;
}
.hero-section.hero--hospital .sub{
  margin-top: clamp(6px, 1vw, 10px);
  line-height: 1.5;
  color:#666;
  font-size: clamp(.9rem, 1.6vw, 1.05rem); /* 14.4~16.8px */
  word-break: keep-all;
}

/* CTA 버튼 (반응형 확실히 축소) */
.hero-section.hero--hospital .cta-inline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(10px, 2vw, 18px);
  padding: clamp(10px, 2vw, 15px) clamp(18px, 4vw, 30px);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 800;
  border-radius: 999px;
  background:#000066;  /* 니가 지정한 진청 */
  color:#fff;
  box-shadow: 0 3px 6px rgba(255,184,77,.35);
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.hero-section.hero--hospital .cta-inline:hover{
  background:#ff6633;  /* 호버 컬러 */
  transform: translateY(-1px);
}

/* 모바일에서 버튼 강제 축소 */
@media (max-width: 480px){
  .hero-section.hero--hospital{ padding: 14px 12px; }
  .hero-section.hero--hospital h2{ line-height: 1.2; }
  .hero-section.hero--hospital .cta-inline{
    width: 100%;
    max-width: 100%;
    padding: 12px 0 !important;
    font-size: 0.95rem !important;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(255,184,77,.25);
  }
}
@media (max-width: 360px){
  .hero-section.hero--hospital .cta-inline{
    font-size: 0.9rem !important;
    padding: 10px 0 !important;
  }
}

/* 3) 필터 */
.filters{
  background:#fff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.filters input[type="text"], .filters select{
  flex:1 1 200px;
  padding:10px 12px;
  border:1px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-size:.95rem;
  outline:none;
  background:#fff;
}
.filters button{
  padding:10px 16px;
  border:none;
  border-radius: var(--radius-sm);
  background:#4CAF50;
  color:#fff;
  cursor:pointer;
  font-weight: 700;
}
.filters button:hover{ background:#45a049; }

/* 4) 리스트 */
.hospital-list{
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

/* 카드: 4모서리 라운딩 이미지를 위해 카드에 안쪽 여백 부여 */
.hospital-card{
  background:#fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display:grid;
  grid-template-columns: clamp(106px, 28vw, 190px) 1fr; /* 살짝 여유 */
  gap: 14px;                /* 이미지와 본문 사이 공간 */
  width: 100%;
  padding: 12px;            /* 🔑 내부 패딩을 줘서 이미지 4모서리 라운딩이 카드와 겹치지 않게 */
}

/* ✅ 썸네일: “4모서리 라운딩” 확정 */
.hospital-card .thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);     /* 4모서리 모두 둥글게 */
  overflow: hidden;                    /* 내용 잘림 보장 */
  background:#f0f0f0;
  background-image: url("/images/no-image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 만약 <img>를 썸네일 안에 쓸 때도 라운딩 유지 */
.hospital-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* 카드 내용 */
.hospital-info{ padding: 8px 4px; }
.hospital-info h3{
  font-size:1.1rem;
  margin-bottom:6px;
  color:#111;
  font-weight:800;
}
.hospital-info .addr{ color:#666; font-size:.95rem; }
.hospital-info .tags{ color:#2E7D32; font-size:.9rem; margin-top:4px; }
.hospital-info .tel{ margin-top:8px; font-weight:700; color:#333; }

/* 액션 버튼 */
.hospital-actions{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:9px 12px;
  border-radius: var(--radius-sm);
  font-weight:600;
  font-size:.92rem;
  border:1px solid #e8e8e8;
  background:#fff; color:#333;
  transition: background-color .15s ease;
}
.btn:hover{ background:#F1F8E9; }
.btn.primary{ background:#4CAF50; color:#fff; border-color:#4CAF50; }
.btn.primary:hover{ background:#45a049; }

/* 5) 상태/빈 화면 */
.badge-upcoming{
  display:inline-block;
  padding:.2rem .5rem;
  border-radius: .5rem;
  font-size:.75rem;
  background:#FEF3C7;
  color:#92400E;
  border:1px solid #F59E0B;
  margin-left:.5rem;
  vertical-align:middle;
}
.empty{
  text-align:center;
  color:#777;
  padding:40px 10px;
  background:#fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 6px rgba(0,0,0,.04);
  margin-top:16px;
}

/* 6) 반응형 브레이크포인트 */
@media (max-width: 480px){
  /* 카드 스택 */
  .hospital-card{
    grid-template-columns: 1fr;
    padding: 12px;         /* 모바일에서도 이미지 라운딩 유지 */
    gap: 12px;
  }
  /* 썸네일 라운딩 유지(모바일에서도 4모서리) */
  .hospital-card .thumb{
    border-radius: var(--radius-xl);
  }
}
@media (min-width: 640px){
  .hospital-card{
    grid-template-columns: clamp(130px, 24vw, 210px) 1fr;
  }
}
@media (min-width: 1024px){
  .page-container.container{ padding: 32px 0; }
}

/* 7) 모바일 고정 통화 버튼(선택) */
.call-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background:#FFB84D;
  color:#111;
  border-radius:999px;
  padding:12px 16px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  font-weight:800;
}
@media (min-width: 768px){ .call-fab{ display:none; } }

/* 8) 모션 감소 환경 */
@media (prefers-reduced-motion: reduce){
  .hero-section.hero--hospital .cta-inline,
  .btn{ transition: none; }
}
