/* home-map.css — full-screen pin picker used by the Home booking card */
html.hmap-open, html.hmap-open body { overflow: hidden; }
.hmap { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 14, 36, .55); display: flex; align-items: stretch; justify-content: center; }
.hmap[hidden] { display: none; }
.hmap__panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 920px; background: var(--surface, #fff); color: var(--text, #14203F); }
@media (min-width: 900px) {
  .hmap { padding: 24px; }
  .hmap__panel { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
}
[data-theme="dark"] .hmap__panel { background: #0F1A3D; color: #E8EEFF; }

.hmap__head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; border-bottom: 1px solid rgba(46, 82, 184, .15); }
.hmap__close, .hmap__search-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(46, 82, 184, .1); color: inherit; cursor: pointer; font-size: 1rem; }
.hmap__tabs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(46, 82, 184, .08); }
.hmap__tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.hmap__tab.is-active { background: #2E52B8; color: #fff; box-shadow: 0 2px 8px rgba(46, 82, 184, .35); }
.hmap__tab-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.hmap__tab-dot--pickup { background: #1FA97A; }
.hmap__tab-dot--drop { background: #E14B4B; }

.hmap__body { position: relative; flex: 1; min-height: 0; isolation: isolate; }
.hmap__canvas { position: absolute; inset: 0; }

/* fixed centre pin: tip sits exactly on the map centre */
.hmap__pin { position: absolute; left: 50%; top: 50%; z-index: 500; pointer-events: none; font-size: 2.4rem; line-height: 1; color: #1FA97A; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); transition: transform .15s ease; }
.hmap.is-dragging .hmap__pin { transform: translate(-50%, calc(-100% - 10px)); }

.hmap__locate { position: absolute; right: 14px; bottom: 14px; z-index: 600; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #2E52B8; font-size: 1.15rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
.hmap__locate.is-busy { opacity: .6; }

.hmap__search { position: absolute; inset: 0; z-index: 700; background: var(--surface, #fff); display: flex; flex-direction: column; }
.hmap__search[hidden] { display: none; }
[data-theme="dark"] .hmap__search { background: #0F1A3D; }
.hmap__search-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(46, 82, 184, .15); }
.hmap__search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 1rem; }
.hmap__search-field button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem; }
.hmap__results { overflow-y: auto; padding: 6px; }
.hmap__result { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.hmap__result:hover { background: rgba(46, 82, 184, .1); }
.hmap__result i { margin-top: 3px; color: #2E52B8; }
.hmap__empty { padding: 18px; text-align: center; opacity: .7; }
.hmap__loading { height: 44px; margin: 8px; border-radius: 10px; }

.hmap__foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(46, 82, 184, .15); display: grid; gap: 12px; }
.hmap__addr { display: flex; gap: 12px; align-items: flex-start; min-height: 58px; }
.hmap__addr-icon { color: #2E52B8; font-size: 1.25rem; margin-top: 2px; }
.hmap__addr-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hmap__area { font-size: 1.02rem; }
.hmap__full { font-size: .85rem; opacity: .75; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hmap__addr.is-loading .hmap__addr-body { position: relative; }
.hmap__addr.is-loading .hmap__addr-body::before { content: ""; display: block; height: 18px; width: 70%; border-radius: 6px; background: linear-gradient(90deg, rgba(46,82,184,.12), rgba(46,82,184,.25), rgba(46,82,184,.12)); background-size: 200% 100%; animation: hmapShimmer 1.1s linear infinite; }
@keyframes hmapShimmer { to { background-position: -200% 0; } }

.hmap__confirm { min-height: 50px; border: 0; border-radius: 12px; background: #2E52B8; color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.hmap__confirm:disabled { opacity: .5; cursor: not-allowed; }

/* readonly route inputs on the home card */
.hm-input__control[readonly] { cursor: pointer; text-overflow: ellipsis; }
.hm-input__meta { display: block; margin-top: 2px; font-size: .72rem; color: #5B6B96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-input__meta:empty { display: none; }
[data-theme="dark"] .hm-input__meta { color: #A9B8DA; }
