/* ── 카드 호버 ── */
.ani-card {
  transition: transform 0.15s, box-shadow 0.15s;
  border-radius: .75rem;
  overflow: hidden;
}
.ani-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* ── 지도 ── */
.ani-map {
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.ani-mini-map {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

/* ── 동물 썸네일 ── */
.ani-thumb {
  height: 140px;
  object-fit: cover;
  width: 100%;
}
.ani-thumb-placeholder {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(0,0,0,.3);
  background: #f4f4f4;
}

/* ── 동물원 썸네일 (기존 공용) ── */
.ani-zoo-thumb {
  height: 120px;
  object-fit: contain;
  width: 100%;
  padding: 8px;
  background: #fff;
}
.ani-zoo-thumb-placeholder {
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(0,0,0,.3);
  background: #f8f8f8;
}

/* ── 검색결과 가로 레이아웃 ── */
.ani-thumb-square {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
}
.ani-thumb-square-placeholder {
  width: 100%;
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(0,0,0,.3);
  background: #f4f4f4;
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
}

/* ── 서브 내비 ── */
.animaps-subnav {
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 10px;
}
.animaps-subnav-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: #555;
  background: #f4f4f4;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.animaps-subnav-btn:hover {
  background: #e0f2e9;
  color: #2e7d32;
}
.animaps-subnav-btn.active {
  background: #2e7d32;
  color: #fff;
}

/* ── breadcrumb ── */
.ani-breadcrumb {
  font-size: .82rem;
  color: #888;
  margin-bottom: 6px;
}
.ani-breadcrumb a {
  color: #2e7d32;
  text-decoration: none;
}
.ani-breadcrumb a:hover {
  text-decoration: underline;
}
.ani-breadcrumb .sep {
  margin: 0 5px;
  color: #ccc;
}

/* ── 검색폼 버튼 밀림 방지 ── */
.ani-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
}
.ani-search-form input {
  flex: 1 1 0;
  min-width: 0;
}
.ani-search-form button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── 홈 모바일 가로 스크롤 ── */
.ani-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ani-scroll::-webkit-scrollbar {
  height: 6px;
}
.ani-scroll-card {
  flex: 0 0 150px;
  max-width: 150px;
}
@media (min-width: 768px) {
  .ani-scroll {
    display: none;
  }
}

/* ── 통계 카드 ── */
.ani-stat-card {
  border-radius: .75rem;
  border: 1px solid #e8f5e9;
  background: #fff;
  transition: box-shadow .15s;
}
.ani-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── place_animals 가로 레이아웃 ── */
.ani-animal-row {
  display: flex;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  transition: box-shadow .15s;
}
.ani-animal-row:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.ani-animal-row-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex: 0 0 100px;
}
.ani-animal-row-placeholder {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  font-size: 1.8rem;
  color: #aaa;
}

/* ── 내 인증 > 방문 동물원 카드 썸네일 ── */
.ani-place-thumb-wrap {
  width: 100%;
  height: 140px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ani-place-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ani-place-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  font-size: 2.5rem;
}