:root { --green: #0E3B2E; --green2: #1B5E48; --gold: #E3B341; --goldtext: #7A5A12; --ground: #F6F4EE; --ink: #14201B; --muted: #4A5650; --line: #D5D1C3; --card: #FFFFFF; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink); font-family: 'Hind Vadodara', 'Noto Sans Gujarati', -apple-system, system-ui, sans-serif; font-size: 16px; line-height: 1.4; overscroll-behavior: none; }
h1, h2, h3, .title, .hero-t, .num { font-family: 'Anek Gujarati', 'Hind Vadodara', system-ui, sans-serif; margin: 0; }
h1 { font-size: 28px; font-weight: 700; color: var(--green); line-height: 1.15; display: flex; align-items: center; gap: 6px; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; margin-top: 8px; color: var(--green); }
a { color: var(--green); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic, .mark { display: inline-flex; flex-shrink: 0; }
.muted { color: var(--muted); } .small { font-size: 14px; } .xs { font-size: 12px; } .b { font-weight: 600; } .gold { color: var(--gold); } .goldtext { color: var(--goldtext); } .grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .between.top { align-items: flex-start; }

#app { height: 100%; }
.screen { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 96px); display: flex; flex-direction: column; gap: 12px; }
.screen.map { padding: 0; overflow: hidden; position: relative; }
.hdr { display: flex; align-items: center; gap: 12px; }
.logo { width: 46px; height: 46px; border-radius: 13px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.iconbtn { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.rowhd { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid #E4E1D6; padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px); }
.tabbar button { border: 0; background: transparent; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
.tabbar button.on { color: var(--green); font-weight: 600; }

.card { background: var(--card); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border: 0; text-align: left; width: 100%; }
.card.inset { background: var(--ground); border-radius: 14px; }
.card.float { box-shadow: 0 8px 28px rgba(14, 59, 46, .2); }
.tag { font-size: 12px; font-weight: 600; color: var(--goldtext); }
.title { font-size: 17px; font-weight: 600; line-height: 1.3; } .title.big { font-size: 22px; font-weight: 700; color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; background: #fff; border-radius: 20px; }
.hero { background: var(--green); color: #fff; border: 0; border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.hero.col { flex-direction: column; align-items: stretch; gap: 10px; }
.hero-t { font-size: 18px; font-weight: 600; }
.hero .ic { color: var(--gold); }

.grid2, .grid3, .grid4, .grid5 { display: grid; gap: 8px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tile { background: var(--ground); border-radius: 12px; padding: 9px 10px; min-width: 0; } .grid4 .tile { background: #fff; } .tile .b { font-size: 15px; overflow-wrap: anywhere; }
.tile.dark { background: var(--green); color: #fff; }

.chips { display: flex; gap: 6px; } .chips.scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; } .chips.scroll::-webkit-scrollbar { display: none; } .chips.wrap { flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }
.chip.sq { border-radius: 12px; padding: 0 2px; min-height: 44px; font-size: 13px; }
.chips.onmap .chip { border: 0; box-shadow: 0 2px 8px rgba(14, 59, 46, .16); }
.seg { display: grid; gap: 4px; background: #E9E6DB; border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: transparent; min-height: 42px; border-radius: 11px; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; }

.btn { border: 0; background: var(--ground); color: var(--ink); min-height: 46px; padding: 0 14px; border-radius: 13px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; text-align: center; }
.card .btn { background: var(--ground); } .screen > .grid2 > .btn { background: #fff; }
.btn.green, .card .btn.green, .screen > .grid2 > .btn.green { background: var(--green); color: #fff; } .btn.gold, .card .btn.gold, .screen > .grid2 > .btn.gold { background: var(--gold); color: var(--ink); } .btn.mid { background: var(--green2); color: #fff; }
.btn.danger { background: transparent; color: #9B2C1F; } .btn.dashed { background: transparent; border: 1px dashed #8A948E; font-weight: 500; } .btn.tall { min-height: 58px; }
.linkbtn { border: 0; background: transparent; padding: 6px 0; color: var(--green); font-weight: 600; font-size: 14px; text-align: left; min-height: 32px; display: inline-flex; align-items: center; } .linkbtn.goldlink { color: var(--gold); } .linkbtn.xs { font-size: 12px; min-height: 24px; padding: 0 0 0 8px; }
.input { width: 100%; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 12px; min-height: 48px; font-size: 16px; outline: 0; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--green); } .input.area { padding: 10px 12px; min-height: 0; resize: vertical; } .input.sel { width: auto; font-weight: 600; } .input.pick { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .field > span { font-size: 13px; color: var(--muted); }
.join { display: flex; gap: 6px; } .join select { width: auto; flex-shrink: 0; padding: 0 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; } .check input { width: 22px; height: 22px; accent-color: var(--green); }
.pasterow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; } .pasterow .input { border: 0; }

.badge { border: 0; border-radius: 10px; padding: 4px 8px; font-size: 12px; font-weight: 600; min-height: 32px; background: #ECE9DF; color: var(--ink); -webkit-appearance: none; appearance: none; text-align: center; }
.badge.st-new { background: var(--gold); } .badge.st-visit { background: #DCE9E2; color: var(--green); } .badge.st-closed { background: var(--green); color: #fff; }
.rates { padding: 4px 16px; gap: 0; } .rate { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ECE9DF; } .rate:last-child { border: 0; }
.rate .num { font-size: 20px; font-weight: 600; white-space: nowrap; } .rate.strong .num { font-size: 26px; font-weight: 700; color: var(--green); } .rate.strong .b { color: var(--green); }
.areahd { border: 0; background: transparent; text-align: left; padding: 0; }
.list { display: flex; flex-direction: column; } .list.tight { gap: 6px; }
.row { border: 0; border-bottom: 1px solid #ECE9DF; background: transparent; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 0 2px; width: 100%; font-size: 16px; } .row.big { min-height: 56px; font-weight: 600; } .row .muted { font-size: 13px; }
.pt { background: var(--ground); border-radius: 10px; padding: 8px 10px; } .pt.out { opacity: .6; }
.prow { display: flex; gap: 12px; } .thumb { width: 84px; height: 84px; border-radius: 12px; background: #DCE4D8 center/cover; flex-shrink: 0; border: 0; } .thumb.sm { width: 50px; height: 50px; font-size: 11px; color: var(--muted); }
.files { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rowcard { background: var(--ground); gap: 4px; }

#map { position: absolute; inset: 0 0 0 0; z-index: 1; background: #E7ECDF; }
.map-top { position: absolute; z-index: 450; left: 14px; right: 14px; top: calc(env(safe-area-inset-top) + 12px); display: flex; flex-direction: column; gap: 8px; }
.searchbox { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 14px; min-height: 50px; box-shadow: 0 4px 16px rgba(14, 59, 46, .16); color: var(--muted); }
.searchbox input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; background: transparent; color: var(--ink); }
.sug { background: #fff; border-radius: 14px; padding: 0 12px; box-shadow: 0 4px 16px rgba(14, 59, 46, .16); } .sug:empty { display: none; } .sug .row:last-child { border: 0; }
#mapcard { position: absolute; z-index: 450; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 76px); }
.pinwrap { width: auto !important; height: auto !important; }
.pin { transform: translate(-50%, -50%); display: inline-flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 5px 11px; font: 500 12px/1.25 'Hind Vadodara', system-ui, sans-serif; color: var(--ink); box-shadow: 0 3px 10px rgba(14, 59, 46, .22); white-space: nowrap; }
.pin b { font-weight: 600; } .pin.sel { background: var(--green); color: #fff; outline: 2px solid var(--gold); } .pin.sel b { color: var(--gold); }
.leaflet-container { font: inherit; } .leaflet-control-attribution { font-size: 10px; margin-bottom: calc(env(safe-area-inset-bottom) + 64px) !important; }

.sheet-wrap { position: fixed; inset: 0; z-index: 900; background: rgba(20, 32, 27, .45); display: flex; align-items: flex-end; }
.sheet { background: #fff; width: 100%; max-height: 92%; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 4px 18px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 18px calc(env(safe-area-inset-bottom) + 20px); display: flex; flex-direction: column; gap: 10px; }
.sheet-body .card { background: var(--ground); }
.toast { position: fixed; z-index: 1200; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 96px); background: var(--green); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 14px; max-width: 88%; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); } .toast.bad { background: #9B2C1F; }
.lockscreen { position: fixed; inset: 0; z-index: 2000; background: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.lock-name { color: #fff; font: 600 20px 'Anek Gujarati', system-ui, sans-serif; letter-spacing: .3em; margin-bottom: 14px; }
.input.pin { width: 180px; text-align: center; font-size: 28px; letter-spacing: .4em; border: 0; }
@media (min-width: 560px) { #app, .tabbar, .sheet { max-width: 480px; margin: 0 auto; } .sheet-wrap { justify-content: center; } }
