/* phone.css: the phone mock-ups (decorative pictures of the app) and the screens inside them.
   Markup is rendered by js/phones.js. All inner sizes are px on purpose: a phone is a picture of
   a 360-pt screen at 0.83, it does not reflow. Colours are the app's dark tokens.
   Filters and buttons inside the screens are static (shape only) except pins and the popup close. */

.phone {
  position: relative; z-index: 1; flex: none; width: 300px; height: 624px; padding: 9px;
  border-radius: 46px; background: #0f100f;
  box-shadow: 0 0 0 1.5px #3c3e3c, 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px;
  background: var(--app-bg); color: var(--ink); font-size: 12px; line-height: 1.35;
}
.status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: 34px; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700;
}
.status .dots { display: flex; gap: 4px; align-items: center; }
.status .dots span { width: 14px; height: 9px; border-radius: 2px; border: 1.5px solid var(--ink); opacity: 0.9; }
.status .dots span:first-child { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); border: 0; }
.notch { position: absolute; top: 9px; left: 50%; z-index: 7; width: 82px; height: 22px; margin-left: -41px; border-radius: 20px; background: #000; }
.scr-body { position: absolute; inset: 0; padding: 40px 14px 90px; overflow: hidden; }
/* Phones shrink on small screens so the side phones of the deck stay visible. One variable sizes every
   phone (the deck and Pronađi match) and the deck's height (components.css). `zoom` also scales the
   phones' offsets and transforms, so the fan keeps its proportions. */
:root { --phone-zoom: 1; }
@media (max-width: 499px) { :root { --phone-zoom: 0.8; } }
@media (max-width: 379px) { :root { --phone-zoom: 0.74; } }
@media (max-width: 340px) { :root { --phone-zoom: 0.7; } }
@media (max-width: 300px) { :root { --phone-zoom: 0.62; } } /* folded foldables (~280px) */
.phone { zoom: var(--phone-zoom); }

/* app nav bar: the phone's own item is green with a filled icon, no capsule behind it */
.appnav {
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 5; height: 56px; padding: 4px;
  display: flex; border-radius: 30px; background: var(--floating);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.appnav button {
  flex: 1; display: grid; justify-items: center; align-content: center; gap: 1px;
  border: 0; border-radius: 24px; background: none; padding: 0; cursor: pointer;
  color: #8f949a; font-size: 9.5px; font-weight: 600; transition: color 0.2s;
}
.appnav button .ms { font-size: 21px; }
.appnav button.on { color: var(--green-hi); font-weight: 700; }
.appnav button.on .ms { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.appnav button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 0; }

/* list header (Događaji / Poslovi) */
.lh-city { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; color: var(--ink2); font-weight: 600; font-size: 12px; }
.lh-city .ms { font-size: 15px; }
.lh-title { margin: 0 0 10px; font-size: 27px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 5px 0 13px; border-radius: 22px; background: var(--surface); color: var(--ink2); font-size: 12px; }
.search .ms { font-size: 19px; }
.fbtn { position: relative; margin-left: auto; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.fbtn .ms { font-size: 18px; }
.fbtn i {
  position: absolute; right: -3px; top: -4px; min-width: 15px; height: 15px; border-radius: 8px;
  background: var(--ink); color: #1e1e1e; font: 800 9px/15px var(--font); font-style: normal; text-align: center;
}
.qf { display: flex; gap: 6px; margin: 10px 0 8px; align-items: center; }
.qf .sort { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #4d4d4d; }
.qf .sort .ms { font-size: 18px; }
.qf .fp {
  display: inline-flex; align-items: center; height: 32px; padding: 0 6px 0 12px; border-radius: 16px;
  border: 1px solid #4d4d4d; background: var(--surface); font-weight: 600; font-size: 11.5px; white-space: nowrap;
}
.qf .fp .ms { font-size: 16px; }
.qf .fp.on { background: var(--green-deep); border-color: transparent; color: #fff; }
.qf .fp.city { padding-left: 9px; gap: 3px; }
.count { margin-bottom: 9px; color: var(--ink2); font-size: 11px; }

/* Lazy photos fill their parent and sit UNDER its overlays (gradient, badges): the parent
   isolates its stacking context and the image goes to z-index -1. The parent's own
   background is the fallback while the photo loads. */
.fill-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }

/* event card */
.card { background: var(--surface); border-radius: 20px; }
.bcard { padding: 7px; margin-bottom: 10px; }
.cover { position: relative; isolation: isolate; height: 118px; border-radius: 15px; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.18), transparent 35%, rgba(0, 0, 0, 0.4)); }
.datebadge { position: absolute; left: 7px; top: 7px; width: 38px; padding: 4px 0 5px; display: grid; justify-items: center; line-height: 1.05; border-radius: 11px; background: var(--floating); }
.datebadge small { font-size: 8px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.04em; }
.datebadge b { font-size: 16px; font-weight: 800; }
.tag { position: absolute; left: 7px; bottom: 7px; display: flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 9px; background: rgba(41, 45, 50, 0.92); font-size: 9.5px; font-weight: 700; }
.tag .ms { font-size: 12px; color: var(--green-hi); }
.bm { position: absolute; right: 7px; top: 7px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--floating); }
.bm .ms { font-size: 16px; }
.bm.saved .ms { color: var(--green-hi); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.bcard .ttl { margin: 8px 5px 3px; font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.meta { display: flex; align-items: center; gap: 4px; margin: 0 5px 2px; color: var(--ink2); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .ms { font-size: 13px; }

/* job card */
.rcard { position: relative; display: flex; gap: 10px; padding: 8px; margin-bottom: 9px; }
.logo { position: relative; isolation: isolate; flex: none; width: 50px; height: 50px; overflow: hidden; border-radius: 14px; background: var(--fill); }
.rbody { flex: 1; min-width: 0; display: grid; align-content: start; gap: 2px; padding-top: 2px; }
.rbody .ttl { margin: 0; padding-right: 26px; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbody .meta { margin: 0; }
.rcard .bm { top: 8px; right: 8px; width: 26px; height: 26px; background: var(--fill); }
.chips { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--fill); font-size: 10px; font-weight: 700; white-space: nowrap; }
.chip .ms { font-size: 12px; }
.chip.soon { background: #4a3a22; color: var(--warn); }
.chip.money { background: var(--green-soft); color: var(--green-hi); }

/* maps (Pronađi and Smještaj) */
.map { position: absolute; inset: 0; background: var(--map); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab { position: absolute; right: 12px; bottom: 82px; z-index: 4; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--green); color: #fff; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.6); }

.pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; transition: transform 0.2s; }
.pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.pin:focus-visible { outline-offset: 6px; }
.pin .face {
  width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 2.5px #e9e9e9, 0 6px 14px rgba(0, 0, 0, 0.5);
}
.pin .mood { position: absolute; right: -6px; bottom: -5px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--floating); color: var(--ink); box-shadow: 0 0 0 1.5px #e9e9e9; }
.pin .mood .ms { font-size: 13px; }
.pin.sel .face { box-shadow: 0 0 0 3px var(--green-hi), 0 6px 14px rgba(0, 0, 0, 0.5); }
.pin.evt .face { border-radius: 14px; background: var(--green); }
.pin.evt.sel .face { background: var(--green-deep); }
.pin.evt .face .ms { font-size: 20px; }
.pin.evt .cnt {
  position: absolute; right: -9px; top: -8px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #1e1e1e; font-size: 10px; font-weight: 800;
}
.pin .face svg, .popup .tile svg, .popup .host i svg { display: block; width: 100%; height: 100%; }

/* Pronađi popup. The grid column needs minmax(0, 1fr) or the description and the arrow overflow the card. */
@keyframes up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup {
  position: absolute; left: 10px; right: 10px; bottom: 80px; z-index: 4;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 11px;
  border-radius: 26px; background: var(--floating);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: up 0.3s ease;
}
.popup .head { position: relative; display: flex; gap: 10px; align-items: flex-start; min-height: 50px; padding-right: 28px; }
.popup .tile { flex: none; width: 50px; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; color: #fff; font-weight: 800; font-size: 20px; }
.popup .tile.soft { background: var(--green-soft); color: var(--green-hi); }
.popup .tile .ms { font-size: 26px; }
.popup .txt { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.popup .txt.stack { align-self: flex-start; justify-content: flex-start; gap: 0; }
.popup .ttl { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup .ttl.small { font-size: 13px; }
.popup .ln { display: flex; gap: 4px; align-items: center; color: var(--ink2); font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup .ln .ms { font-size: 14px; }
.popup .x { position: absolute; right: -5px; top: -5px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; background: var(--fill); color: var(--ink); cursor: pointer; }
.popup .x .ms { font-size: 16px; }
.popup .moodp { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--green-deep); }
.popup .moodp small { display: block; color: var(--green-hi); font-weight: 800; font-size: 11px; }
.popup .moodp p { font-size: 11.5px; line-height: 1.3; }
.popup .go { flex: none; margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.popup .go .ms { font-size: 18px; }
.popup .desc { padding: 9px 11px; border-radius: 14px; background: var(--surface); font-size: 11px; line-height: 1.35; }
.popup .foot { display: flex; align-items: center; gap: 10px; }
.popup .foot .go { margin-left: 0; }
.popup .cnt { display: flex; gap: 5px; align-items: center; margin-left: auto; color: var(--green-hi); font-weight: 800; font-size: 13px; white-space: nowrap; }
.popup .cnt .ms { font-size: 18px; }
.popup .host { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; font-weight: 700; }
.popup .host i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.popup .host small { display: block; font-size: 8.5px; line-height: 1; font-weight: 600; color: var(--ink2); }

/* Smještaj map */
.mtop { position: absolute; left: 12px; right: 12px; top: 40px; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mtop .qf { gap: 5px; margin: 0; }
.mtop .qf .fp { height: 30px; padding: 0 3px 0 10px; font-size: 11px; }
.mtop .qf .fp.city { padding-left: 7px; gap: 2px; }
.mtop .qf .fp .ms { font-size: 15px; }
.mtop .search { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7); }
.me { position: absolute; z-index: 1; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: #2f7de1; box-shadow: 0 0 0 3px #e9e9e9, 0 0 0 20px rgba(47, 125, 225, 0.16); }
.hpin {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); cursor: pointer;
  border: 0; padding: 6px 11px; border-radius: 18px; background: var(--floating); color: var(--ink);
  font: 800 12px/1 var(--font); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, background 0.2s;
}
.hpin:hover { transform: translate(-50%, -50%) scale(1.06); }
.hpin.sel { z-index: 3; background: var(--green); color: #fff; }
.hpin:focus-visible { outline-offset: 3px; }
.hpop {
  position: absolute; left: 10px; right: 10px; bottom: 80px; z-index: 4; overflow: hidden;
  border-radius: 24px; background: var(--floating);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: up 0.3s ease;
}
.hpop .ph { position: relative; isolation: isolate; height: 92px; }
.hpop .ph::after { content: ""; position: absolute; inset: auto 0 0; height: 38px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.hpop .circ { position: absolute; z-index: 1; top: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--floating); }
.hpop .circ .ms { font-size: 16px; }
.hpop .circ.l { left: 8px; }
.hpop .circ.x { right: 8px; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
.hpop .dots { position: absolute; z-index: 1; bottom: 7px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; }
.hpop .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.hpop .dots i:first-child { background: #fff; }
.hpop .info { padding: 10px 14px 13px; }
.hpop .ttl { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.hpop .addr { color: var(--ink2); font-size: 11px; }
.hpop .bot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.hpop .rooms { color: var(--ink2); font-size: 11.5px; }
.hpop .pr { font-size: 15px; font-weight: 800; color: var(--green-hi); }
.locate { position: absolute; right: 12px; bottom: 80px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--floating); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.locate.up { bottom: 262px; }
.listpill { position: absolute; left: 50%; bottom: 80px; z-index: 4; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; padding: 11px 18px; border-radius: 24px; background: var(--floating); font-weight: 800; font-size: 13px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12); }
