/* Hostel location card (Google Map). Works on light and dark pages. */
.hmap__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.hmap__tag {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; color: var(--brand-text, #007a4d); background: rgba(0, 208, 132, .12); border: 1px solid rgba(0, 208, 132, .28);
}
.hmap__tag--approx { color: #b45309; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }

.hmap__frame {
  position: relative; aspect-ratio: 16 / 9; min-height: 240px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 208, 132, .08), rgba(66, 133, 244, .08)); border: 1px solid rgba(0, 208, 132, .22);
  box-shadow: 0 10px 30px -14px rgba(13, 27, 42, .35);
}
.hmap__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s ease; }
.hmap__frame.is-ready .hmap__iframe { opacity: 1; }
:root[data-theme="dark"] .hmap__iframe { filter: invert(.92) hue-rotate(180deg) saturate(.8) brightness(.95); }   /* dark-friendly map tiles */

.hmap__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem; color: var(--text-tertiary, #64748b); font-size: .8rem; }
.hmap__loading i { font-size: 1.6rem; color: var(--accent, #00d084); animation: hmapBob 1.2s ease-in-out infinite; }
.hmap__frame.is-ready .hmap__loading { display: none; }
@keyframes hmapBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hmap__chip {
  position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); display: flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #fff; pointer-events: none;
  background: rgba(13, 27, 42, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
}
.hmap__chip i { color: var(--brand-400, #00d084); flex: none; }
.hmap__chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hmap__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hmap__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex: 1 1 180px; padding: .65rem 1rem; border-radius: 12px;
  font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--brand-text, #007a4d); background: transparent; border: 1.5px solid rgba(0, 208, 132, .4);
  transition: transform .2s ease, background-color .2s, box-shadow .2s;
}
.hmap__btn:hover { transform: translateY(-2px); background: rgba(0, 208, 132, .1); }
.hmap__btn--primary { color: #0d1b2a; background: var(--brand-400, #00d084); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 208, 132, .7); }
.hmap__btn--primary:hover { background: #00e39a; color: #0d1b2a; box-shadow: 0 12px 24px -8px rgba(0, 208, 132, .8); }
:root[data-theme="dark"] .hmap__btn:not(.hmap__btn--primary) { color: var(--brand-400, #00d084); }

.hmap__note { margin: .85rem 0 0; font-size: .76rem; line-height: 1.5; color: var(--text-tertiary, #64748b); }
.hmap__note i { color: #f59e0b; margin-right: .25rem; }
.hmap__note--coords { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

@media (max-width: 575.98px) { .hmap__frame { aspect-ratio: 4 / 3; } .hmap__btn { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .hmap__loading i { animation: none; } .hmap__iframe { transition: none; } .hmap__btn { transition: none; } }
