* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #eef2ff; }
body { min-height: 100vh; position: relative; }
#app { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.landing-screen { width: 100%; height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, rgba(98, 100, 105, 0.65), rgba(178, 193, 216, 0.65)), url('/static/img/owl.png') center/cover no-repeat; color: #c1baba; padding: 20px; }
.landing-card { width: 100%; max-width: 430px; background: rgba(255, 255, 255, 0.92); color: #111827; border-radius: 18px; padding: 22px; box-shadow: 0 10px 24px rgba(0,0,0,0.16); text-align: center; }
.app-label { margin: 0 0 6px; font-size: 0.82rem; letter-spacing: 1px; font-weight: 700; color: #2563eb; text-transform: uppercase; }
.hero-title { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.2; font-weight: 800; color: #111827; }
.hero-subtitle { margin: 0 0 20px; color: #4b5563; font-size: 0.95rem; line-height: 1.4; }
.advance-btn { width: 100%; border: none; border-radius: 12px; background: #1d4ed8; color: #fff; font-size: 0.95rem; font-weight: 700; padding: 12px 14px; cursor: pointer; box-shadow: 0 5px 15px rgba(30,64,175,0.3); }.landing-image-wrap { margin: 10px auto 12px; display: flex; justify-content: center; }
.landing-image { width: 120px; height: auto; border-radius: 12px; border: 2px solid #1d4ed8; }
#main-screen { width: 100%; height: 100vh; min-height: 100vh; position: relative; background: #f8fbff; padding: 8px 0 10px; display:flex; flex-direction:column; align-items:center; overflow:auto; }
#main-screen .content-wrap { width: min(100%, 420px); margin: 0 auto; padding: 8px; display:flex; flex-direction:column; align-items:center; }
.top-nav { width: min(100%, 420px); margin: 10px auto 6px; display:flex; justify-content: space-between; align-items:center; gap: 8px; }
#map { width: 100%; max-width: 420px; height: 490px; background: #fff; overflow:hidden; border-radius: 16px; border: 1px solid #dbeafe; margin: 8px 0; }
@media (max-width: 460px) {
  #map { height: 55vh; }
}
.lot-summary { width: 100%; max-width: 420px; min-height: 150px; margin: 0 auto 12px; background: #fffbe6; border: 1px solid #ffe066; border-radius: 16px; padding: 14px; box-shadow: 0 5px 14px rgba(0,0,0,0.08); font-size: 1rem; line-height: 1.5; }
.legend-card { position: absolute; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 20; background: #fffbe6; border: 1px solid #ffe066; backdrop-filter: blur(4px); border-radius: 12px; padding: 8px 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 12px; display:flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(94%, 380px); }
.legend-item { display:flex; align-items:center; gap: 4px; white-space: nowrap; }
.search-box { flex:1; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 12px 14px; font-size: 0.95rem; color:#475569; box-shadow: 0 3px 8px rgba(0,0,0,0.06); }
.menu-btn { width: 44px; height: 44px; border:none; border-radius: 14px; background:#fff; box-shadow: 0 3px 8px rgba(0,0,0,0.1); font-size: 1.1rem; }
.leaflet-container { border-radius: 16px; }
.summary-row { margin-bottom: 4px; }


.osm-link { position: absolute; bottom: 6px; left: 8px; z-index: 5; background: rgba(255,255,255,0.9); border-radius: 999px; padding: 3px 8px; font-size: 0.72rem; border: 1px solid #dbeafe; }
.map-grid { position:absolute; inset:0; background-image: linear-gradient(rgba(100,116,139,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(100,116,139,.07) 1px, transparent 1px); background-size: 30px 30px; }
.map-placeholder { position: absolute; inset: 0; display:flex; flex-direction:column; justify-content:center; align-items:center; color:#334155; font-weight:600; text-align:center; }
.map-placeholder-title { margin:0; font-size:1.15rem; letter-spacing:0.2px; }
.lot-pin { outline:none; }
  .pin-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25); display:block; margin: 0 auto; }
  .dot-available { width: 10px; height: 10px; border-radius: 50%; background: #10b981; display: inline-block; margin-right: 5px; }
  .dot-limited { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; display: inline-block; margin-right: 5px; }
  .dot-full { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; display: inline-block; margin-right: 5px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 100; opacity: 0; pointer-events:none; transition: opacity 0.2s ease; }
.modal-backdrop.show { opacity: 1; pointer-events:auto; }
.modal-card { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 430px; margin: 0 auto; z-index: 110; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px 20px; box-shadow: 0 -8px 24px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.3s ease; }
.modal-card.show { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lot-name { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing:0.1px; }
.lot-address { margin: 2px 0 0; color: #6b7280; font-size: 0.9rem; }
.close-btn { border: none; background: #e5e7eb; color: #111827; border-radius: 8px; width: 32px; height: 32px; font-size: 1rem; font-weight: 700; display:flex; align-items:center; justify-content:center; }
.status-row { margin-bottom: 10px; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; color: #fff; font-size: 0.8rem; letter-spacing: 0.15px; }
.status-available { background: #22c55e; }
.status-limited { background: #f59e0b; }
.status-full { background: #ef4444; }
.details-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.detail-block { background: #f9fafb; border-radius: 10px; padding: 10px; text-align: center; border: 1px solid #eef2ff; }
.detail-label { display: block; margin-bottom: 4px; font-size: 0.75rem; color:#6b7280; }
.detail-block strong { display:block; font-size:1rem; }
.directions-btn { width: 100%; border: none; border-radius: 12px; background: #111827; color: #fff; font-weight: 700; font-size: 0.95rem; padding: 12px; cursor: pointer; }
.hidden { display: none; }
@media (max-width: 430px) {
  .modal-card { max-width: 100%; border-radius: 16px 16px 0 0; }
}
