/* 숙소 레이어 — parking-layer.css 와 같은 규격.
   축제(주황)·주차장(파랑)과 구분되도록 지도 위에서만 보라 계열을 포인트로 쓴다. */

:root { --color-hotel: #6D4AA6; --color-hotel-strong: #58398A; }

/* 지도 우측 숙소 토글 버튼 (.map-fab 규격을 그대로 따르고 상태 색만 다름) */
.hotel-fab.is-on {
  border-color: var(--color-hotel);
  background: var(--color-hotel);
  color: #fff;
}
.hotel-fab.is-on:hover { color: #fff; }
.hotel-fab.is-loading { opacity: .6; pointer-events: none; }

/* 핀 옆에 붙는 가격 표시 — 클릭은 핀이 받도록 통과시킨다 */
.hotel-price-tag {
  margin: 0 0 42px 0;      /* 핀(38px) 위로 띄운다 */
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: var(--color-hotel);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(52, 42, 32, .35);
  pointer-events: none;
}

/* 숙소 마커 클릭 시 뜨는 정보 카드 */
.hotel-info-card {
  position: relative;
  width: min(300px, calc(100vw - 32px));
  padding: 12px 13px 11px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  font-family: inherit;
  white-space: normal;      /* 지도 오버레이 래퍼의 nowrap 상속을 끊는다 */
}
.hotel-info-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--color-surface);
}

.hotel-info-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.hotel-info-thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-surface-muted);
}
.hotel-info-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-hotel);
  font-weight: 800;
  font-size: 17px;
}
.hotel-info-title { flex: 1; min-width: 0; }
.hotel-info-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* 긴 숙소명은 2줄까지만 보여 주고 뒷부분을 …으로 줄인다 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.35em * 2);
}
.hotel-info-meta { margin-top: 2px; font-size: 12px; color: var(--color-text-muted); font-weight: 600; }
.hotel-info-close {
  flex: none;
  width: 26px;
  height: 26px;
  margin: -4px -4px 0 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.hotel-info-close:hover { color: var(--color-text); }

.hotel-info-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-text);
}
.hotel-info-price strong { font-size: 17px; font-weight: 800; color: var(--color-hotel-strong); }
.hotel-info-unit { color: var(--color-text-muted); font-size: 12px; }
.hotel-info-was { color: var(--color-text-muted); font-size: 12px; text-decoration: line-through; }
.hotel-info-off {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
}
.hotel-info-extra { flex: 1 1 100%; color: var(--color-text-muted); font-size: 12px; font-weight: 500; }

.hotel-info-actions { display: flex; gap: 6px; margin-top: 10px; }
/* 찜(.fav-btn)은 축제 요약카드와 같은 모양을 유지해야 하므로 이 공통 규칙에서 제외한다 */
.hotel-info-actions button:not(.fav-btn),
.hotel-info-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-subtle);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.hotel-info-actions button:not(.fav-btn):hover { border-color: var(--color-hotel); color: var(--color-hotel); }
.hotel-info-actions .hotel-book {
  flex: 1;
  background: var(--color-hotel);
  border-color: var(--color-hotel);
  color: #fff;
}
.hotel-info-actions .hotel-book:hover { background: var(--color-hotel-strong); border-color: var(--color-hotel-strong); color: #fff; }
/* 가격 조회가 실패해 가격 줄과 예약 버튼을 걷어낸 카드 — 길안내가 줄 전체를 쓴다 */
.hotel-info-card.is-price-less .hotel-info-actions { margin-top: 11px; }
.hotel-info-card.is-price-less .hotel-route { flex: 1; }

@media (max-width: 899px) {
  .hotel-info-actions button:not(.fav-btn),
  .hotel-info-actions a { height: 40px; }
}
