/* CabMe – Pack G: map booking (home map, route card, drag-the-map pin screen) */

/* ---------- Google map inside the same boxes as CabMe's own map ---------- */
.cmg{position:relative;overflow:hidden;background:#E8EEEC}
.cmg-canvas{position:absolute;inset:0}
.cmg .cm-pin{position:absolute;left:0;top:0;width:0;height:0}
.cm-pin.me::before{left:-10px;top:-10px;width:20px;height:20px;background:#2F6BFF;border:4px solid #fff;box-shadow:0 0 0 10px rgba(47,107,255,.18),0 2px 6px rgba(0,0,0,.3)}
.cm-pin.pickup::before{left:-11px;top:-11px;width:22px;height:22px;background:#00707A;border:4px solid #fff}
.cm-pin.dropoff::before{left:-11px;top:-11px;width:22px;height:22px;background:#FFC72C;border:4px solid #0F1B1F;border-radius:6px}
.cm-pin.pickup span,.cm-pin.dropoff span{left:16px;top:-30px}
.cm-pin.rank span{background:#FFC72C;color:#0F1B1F;font-weight:800}

/* ---------- booking box: one card for pickup + drop-off ---------- */
.bk-route{border:1.5px solid #DCE4E5;border-radius:18px;background:#fff;overflow:hidden}
.bk-row{display:grid;grid-template-columns:18px minmax(0,1fr) 48px;align-items:center;gap:10px;padding:10px 8px 10px 14px}
.bk-row+.bk-row{border-top:1px solid #E3EAEB}
.bk-dot{width:12px;height:12px;border-radius:50%;background:#00707A;box-shadow:0 0 0 4px rgba(0,112,122,.15);justify-self:center}
.bk-dot.bk-drop{border-radius:3px;background:#FFC72C;box-shadow:0 0 0 4px rgba(255,199,44,.3)}
.bk-in{display:flex;flex-direction:column;gap:2px;min-width:0}
.bk-in .label{font-size:11px;letter-spacing:.06em}
.bk-route .place input{height:34px;border:0;padding:0;font:inherit;font-size:16px;font-weight:600;color:#0F1B1F;background:transparent;width:100%;outline:none;text-overflow:ellipsis}
.bk-route .place input::placeholder{color:#56696D;font-weight:500}
.bk-route .place input:focus-visible{outline:2px solid #00707A;outline-offset:2px;border-radius:6px}
.bk-route .chip{min-height:34px;border:0;background:transparent;padding:0;gap:6px}
.bk-route .chip-text{font-size:15.5px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.bk-route .chip-x{width:32px;height:32px;background:#EEF3F3;font-size:20px;flex:0 0 32px}
.bk-map{width:44px;height:44px;border-radius:12px;border:0;background:#EAF4F4;color:#00707A;display:grid;place-items:center;cursor:pointer}
.bk-map:hover{background:#D7ECEC}
.bk-map:focus-visible{outline:2px solid #00707A;outline-offset:2px}
.bk-quick{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-top:-6px}
.bk-in .saved-chips{margin:2px 0 4px}
.q-eta{font-size:13px;font-weight:700;color:#00545C}
.q-eta[hidden]{display:none}

/* ---------- home map ---------- */
.hero-map{position:relative;border-radius:24px;overflow:hidden;background:#DDE6E7;box-shadow:0 20px 50px rgba(15,27,31,.25)}
.home-map,.home-map.cm-map,.home-map.cmg{position:absolute;inset:0}
.hm-eta{position:absolute;left:14px;top:14px;z-index:4;background:#0F1B1F;color:#fff;border-radius:12px;padding:8px 12px;font:700 13px Inter,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.hm-eta[hidden]{display:none}
.hm-tools{position:absolute;right:14px;bottom:14px;z-index:4;display:flex;flex-direction:column;gap:8px}
.hm-btn{width:46px;height:46px;border-radius:14px;border:0;background:#fff;color:#0F1B1F;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.hm-pick{position:absolute;left:14px;bottom:14px;z-index:4;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px;border-radius:14px;border:0;background:#fff;color:#0F1B1F;font:700 14px Inter,sans-serif;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.hm-pick svg{color:#00707A}
.hm-btn:focus-visible,.hm-pick:focus-visible{outline:3px solid #FFC72C;outline-offset:2px}
.apphome-more{display:none}

/* computers: copy + booking box on the left, map on the right */
@media (min-width:761px){
  .hero-row{display:grid;grid-template-columns:minmax(360px,460px) minmax(0,1fr);grid-template-areas:"copy map" "book map";column-gap:32px;row-gap:22px;align-items:start;padding-top:40px;padding-bottom:48px}
  .hero-copy{grid-area:copy;gap:12px;padding-top:0}
  .hero-copy h1{font-size:clamp(30px,3.2vw,42px)}
  .hero-copy p{font-size:16px}
  .hero-row>.book-card{grid-area:book;max-width:none;width:100%}
  .hero-map{grid-area:map;position:sticky;top:20px;height:min(720px,calc(100vh - 40px));min-height:520px}
}

/* phones: map on top, white sheet with the booking box */
@media (max-width:760px){
  .hero{background:#F4F7F7;color:#0F1B1F}
  .hero-row{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;padding-top:0;padding-bottom:18px}
  .hero-map{order:0;flex:0 0 auto;margin:0 -20px;height:clamp(240px,38vh,360px);border-radius:0;box-shadow:none}
  .hm-eta{top:12px;left:12px}
  .hm-tools{bottom:36px;right:12px}
  .hm-pick{bottom:36px;left:12px}
  .hero-map .cm-attr{bottom:22px}
  .apphome{order:1;width:auto;position:relative;z-index:2;margin:-22px -20px 0;background:#fff;border-radius:26px 26px 0 0;padding:16px 20px 4px;gap:10px;box-shadow:0 -10px 24px rgba(15,27,31,.10)}
  .apphome::before{content:"";align-self:center;width:42px;height:5px;border-radius:3px;background:#DCE4E5}
  .ah-hello{color:#0F1B1F;font-size:22px}
  .hero-row>.book-card{order:2;flex:0 0 auto;margin:0 -20px;max-width:none;border-radius:0 0 22px 22px;box-shadow:0 14px 24px rgba(15,27,31,.06);padding:8px 20px 20px}
  .hero-row>.book-card h2{display:none}
  .apphome-more{order:3;display:flex;flex-direction:column;gap:12px;padding-top:16px}
  .apphome-more .ah-tile{background:#fff;border:1px solid #E3EAEB;color:#0F1B1F;box-shadow:0 2px 8px rgba(15,27,31,.05)}
  .apphome-more .ah-trust span{background:#E6F4F5;color:#00545C}
}

/* ---------- “Your trip”: map buttons under the boxes ---------- */
.yt-foot{margin-top:0}
.yt-foot-btn.yt-foot-map{background:#00707A;border-color:#00707A;color:#fff}
.yt-foot-btn.yt-foot-map svg{color:#fff}

/* ---------- drag-the-map pin screen ---------- */
.yt-map{background:#E8EEEC}
.yt-map-area{position:absolute;left:0;right:0;top:0;bottom:260px}
.yt-map .yt-map-canvas{position:absolute;inset:0}
.yt-map-top{position:absolute;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));z-index:5;display:flex;gap:10px;align-items:center;max-width:620px;margin:0 auto}
.yt-map-top .yt-round{flex:0 0 46px;width:46px;height:46px;box-shadow:0 4px 14px rgba(15,27,31,.18)}
.yt-map-search{flex:1;min-width:0;height:48px;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(15,27,31,.18);display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--mute)}
.yt-map-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 16px Inter,sans-serif;color:var(--ink)}
.yt-map-search:focus-within{box-shadow:0 0 0 3px var(--teal),0 4px 14px rgba(15,27,31,.18)}
.yt-map-results{position:absolute;left:12px;right:12px;top:calc(68px + env(safe-area-inset-top));z-index:6;max-width:620px;margin:0 auto;background:#fff;border-radius:18px;box-shadow:0 14px 34px rgba(15,27,31,.22);list-style:none;padding:6px 12px;max-height:55vh;overflow:auto}
.yt-map-results[hidden]{display:none}
.yt-map-results li:last-child .yt-item{border-bottom:0}
.yt-map-pin{left:50%;top:50%;transform:translate(-50%,-100%);gap:0}
.yt-map-pin .yt-map-head,.yt-map-pin .yt-map-stem{transition:transform .16s ease}
.yt-map-head{width:44px;height:44px;border-radius:50%;background:var(--teal);border:4px solid #fff;box-shadow:0 6px 14px rgba(0,0,0,.25);display:grid;place-items:center;box-sizing:border-box}
.yt-map-head i{width:12px;height:12px;border-radius:50%;background:var(--y)}
.yt-map.is-drop .yt-map-head{background:var(--ink)}
.yt-map-stem{width:4px;height:16px;background:var(--teal);border-radius:0 0 2px 2px}
.yt-map.is-drop .yt-map-stem{background:var(--ink)}
.yt-map-shadow{position:absolute;left:50%;bottom:-3px;width:16px;height:6px;margin-left:-8px;border-radius:50%;background:rgba(0,0,0,.28);transition:transform .16s ease,opacity .16s}
.yt-map-pin.lift .yt-map-head,.yt-map-pin.lift .yt-map-stem{transform:translateY(-14px)}
.yt-map-pin.lift .yt-map-shadow{transform:scale(.6);opacity:.6}
.yt-map-eta,.yt-map-lift{margin-bottom:8px;border-radius:12px;padding:7px 11px;font:700 13px Inter,sans-serif;white-space:nowrap}
.yt-map-eta{background:var(--ink);color:#fff}
.yt-map-eta::before{content:"Taxi ";color:var(--y)}
.yt-map-lift{display:none;background:#fff;color:var(--mute);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.yt-map-pin.lift .yt-map-lift{display:block}
.yt-map-pin.lift .yt-map-eta{display:none}
.yt-map-me{position:absolute;right:14px;bottom:24px;z-index:4;width:48px;height:48px;border-radius:16px;border:0;background:#fff;color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(15,27,31,.2)}
.yt-map-zoom{position:absolute;right:14px;bottom:84px;z-index:4;display:flex;flex-direction:column;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(15,27,31,.2)}
.yt-map-zoom button{width:48px;height:44px;border:0;background:#fff;color:var(--ink);display:grid;place-items:center;cursor:pointer}
.yt-map-zoom button+button{border-top:1px solid var(--line)}
@media (pointer:coarse){.yt-map-zoom{display:none}}
.yt-map-sheet{background:#fff;color:var(--ink);gap:12px;padding:10px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(15,27,31,.16)}
.yt-map-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.yt-map-row h3{margin:0;font:700 20px Poppins,sans-serif}
.yt-map-tip{font-size:12.5px;color:var(--mute);font-weight:600}
.yt-map-addr{display:flex;align-items:center;gap:12px}
.yt-map-addr-ico{flex:0 0 42px;height:42px;border-radius:12px;background:#E6F4F5;color:var(--teal);display:grid;place-items:center}
.yt-map.is-drop .yt-map-addr-ico{background:#FFF3D1;color:#7A5A00}
.yt-map-addr-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.yt-map-sheet .yt-map-addr strong{font:700 17px Inter,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yt-map-sub{font-size:13px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yt-map-flags:empty{display:none}
.yt-map-flags span{background:#E6F4F5;color:#00545C}
.yt-map-spots{display:flex;flex-direction:column;gap:6px}
.yt-map-spots[hidden]{display:none}
.yt-map-spots .yt-chiprow{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -18px;padding:0 18px 2px}
.yt-map-spots .yt-chiprow button{flex:0 0 auto;white-space:nowrap}
.yt-map-ok{min-height:56px;font-size:17px}
@media (min-width:760px){
  .yt-map-sheet{left:50%;right:auto;width:min(560px,calc(100% - 32px));transform:translateX(-50%);bottom:16px;border-radius:24px;margin:0}
  .yt-map-area{bottom:0!important}
  .yt-map-me{bottom:auto;top:84px}
  .yt-map-zoom{bottom:auto;top:142px}
}

/* ---------- Pack G.1 – search inside the booking box ---------- */
.bk-suggest{--ink:#0F1B1F;--teal:#00707A;--y:#FFC72C;--bg:#F4F7F7;--line:#E3EAEB;--mute:#56696D;margin-top:-6px;background:#fff;border:1.5px solid #DCE4E5;border-radius:18px;padding:4px 12px 6px;box-shadow:0 14px 30px rgba(15,27,31,.10);max-height:min(420px,55vh);overflow:auto;overscroll-behavior:contain}
.bk-suggest[hidden]{display:none}
.bk-suggest .yt-head2{margin:10px 2px 2px}
.bk-suggest .yt-list{margin:0}
.bk-suggest li:last-child .yt-item{border-bottom:0}
.bk-suggest .yt-item>.yt-ico{width:38px;height:38px}
.bk-suggest .bk-maprow>.yt-ico{background:#00707A;color:#fff}
.bk-suggest .bk-maprow strong{color:#00707A}
.bk-route .place input::-webkit-search-cancel-button{display:none}
.bk-route:focus-within{border-color:#00707A;box-shadow:0 0 0 3px rgba(0,112,122,.12)}
.bk-extras{display:flex;gap:8px;flex-wrap:wrap}
.bk-chip{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border-radius:21px;border:1px solid #CBD6D8;background:#fff;font:inherit;font-weight:700;font-size:14px;color:#0F1B1F;cursor:pointer}
.bk-chip svg{color:#00707A}
.bk-chip.on{background:#0F1B1F;border-color:#0F1B1F;color:#fff}
.bk-chip.on svg{color:#FFC72C}
/* map / options opened straight from the booking box: no planner screen behind */
.yt.yt-maponly{background:transparent}
.yt.yt-maponly>.yt-inner{visibility:hidden}
.yt-sheet-wrap.no-when #sheet-when{display:none}
/* airport: choose my own pickup time */
.qa-own{display:flex;flex-direction:column;gap:10px}
.qa-change{align-self:flex-start;background:none;border:0;padding:4px 0;color:#FFC72C;font:inherit;font-weight:700;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:36px}
.qa-own-box{display:flex;flex-direction:column;gap:10px;background:#172A2F;border-radius:12px;padding:12px}
.qa-own-box[hidden]{display:none}
.qa-own-box .label{color:#C8D6D9}
.qa-own-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.qa-own-box .form-error{color:#FFB4A8}
.bk-suggest .yt-list>li{min-width:0}
.bk-suggest,.bk-route{min-width:0;max-width:100%}
.bk-route .place input:focus,.bk-route .place input:focus-visible{outline:none}
