/* ============================================================
   디지481펜션 커스텀 CSS
   (style.css 뒤에 로드됨)
   ============================================================ */

/* ── 히어로 3분할 ── */
.hc-wrap {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1;
}

/* 상단: 정각산 */
.hc-top {
  position: relative;
  height: 440px;
  overflow: hidden;
  flex-shrink: 0;
}
.hc-top-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transition: transform .6s ease;
}
.hc-top:hover .hc-top-bg { transform: scale(1.03); }
.hc-top-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,46,36,.78) 0%, rgba(28,46,36,.25) 60%, transparent 100%);
}

/* 텍스트: 좌상단 */
.hc-text {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 36px 44px;
  max-width: 620px;
}
.hc-text h1 {
  font-size: clamp(22px, 3.4vw, 42px);
  font-family: var(--serif, 'Gowun Batang', serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hc-text p {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  margin: 0 0 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 뱃지: 우상단 */
.hc-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 4;
}
.hc-badge img {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* 하단: 두 펜션 */
.hc-bottom {
  display: flex;
  height: 300px;
  flex-shrink: 0;
}
.hc-villa {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  /* 은은한 테두리 */
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hc-villa:first-child {
  border-right-width: 1.5px;
}
.hc-villa:last-child {
  border-left-width: 1.5px;
}
.hc-villa-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.hc-villa:hover .hc-villa-bg { transform: scale(1.05); }
.hc-villa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,36,28,.72) 0%, rgba(20,36,28,.1) 60%, transparent 100%);
}
.hc-villa-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 18px 22px;
  font-family: var(--serif, 'Gowun Batang', serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ── 별점 크게 ── */
.rating-lg {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--forest, #2C5F2D) !important;
  letter-spacing: .02em;
}

/* ── 자세히 보기 버튼 ── */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--forest, #2C5F2D);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.more-btn:hover {
  background: #1e4420;
  transform: translateY(-1px);
}

/* ── 주소 카드 ── */
.address-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid rgba(44,95,45,.18);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.address-icon { font-size: 28px; flex-shrink: 0; }
.address-body { flex: 1; min-width: 200px; }
.address-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft, #666);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.address-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}
.address-map-btn { flex-shrink: 0; white-space: nowrap; }

/* ── 갤러리 관리 ── */
.gallery-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.gallery-admin-panel {
  display: none;
  background: #f8f8f6;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.gallery-admin-panel.visible { display: block; }

/* 갤러리 그리드: 삭제 버튼 */
.gallery-grid { position: relative; }
.gallery-grid a { position: relative; display: block; }
.g-del-btn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  background: rgba(180,30,30,.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  font-style: normal;
}
.gallery-grid.admin-mode a { cursor: default; }
.gallery-grid.admin-mode .g-del-btn { display: block; }
.gallery-grid a.g-hidden { display: none !important; }

/* ── 푸터 여백 (상하 5mm ≈ 19px 추가) ── */
.site-footer .footer-inner {
  padding-top: calc(var(--footer-pt, 40px) + 19px);
  padding-bottom: calc(var(--footer-pb, 20px) + 19px);
}

/* ── feature-photo-card (업체 최신 CSS 지원) ── */
.feature-photo-card {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--cream-2, #F5F0E8);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 40px;
  padding: 0;
}
.feature-photo-card img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
.feature-photo-card > div {
  padding: 24px 28px 24px 0;
  flex: 1;
}
.feature-photo-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--forest, #2C5F2D);
}
.feature-photo-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft, #555);
  margin: 0;
}
@media (max-width: 600px) {
  .feature-photo-card { flex-direction: column; }
  .feature-photo-card img { width: 100%; height: 200px; }
  .feature-photo-card > div { padding: 20px; }
  .hc-top { height: 320px; }
  .hc-text { padding: 20px; }
  .hc-badge img { height: 70px; }
  .hc-bottom { height: 220px; }
  .hc-villa-label { font-size: 16px; }
}

/* ── 로고 마크 배경 투명 + 크기 업 ── */
.brand .mark {
  background: transparent !important;
  box-shadow: none !important;
  width: 52px !important;
  height: 52px !important;
}
.brand .mark img {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ── 상위1% 배지 크게 ── */
.hc-badge img {
  height: 150px !important;
}
@media (max-width: 600px) {
  .hc-badge img { height: 90px !important; }
}
