/* PitStop Lite Mode - Nokia 110 120x160 safe layout */
* { box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
  background: #020617; color: #f8fafc; font-family: Arial, Helvetica, sans-serif;
}
body { min-width: 0; }
.lite-app {
  width: 100%; height: 100%; overflow: hidden; background: #020617;
  display: flex; flex-direction: column;
}
.lite-header {
  flex: 0 0 auto; height: 18px; padding: 1px 2px 0;
  border-bottom: 1px solid #475569; background: #0f172a; text-align: center; overflow: hidden;
}
.lite-category-title {
  height: 9px; color: #f8fafc; font-size: 9px; font-weight: bold; line-height: 9px;
  white-space: nowrap; overflow: hidden;
}
.lite-page-number {
  height: 7px; margin: 0; color: #cbd5e1; font-size: 6px; line-height: 7px;
  white-space: nowrap; overflow: hidden;
}
.lite-page {
  flex: 1 1 auto; min-height: 0; padding: 2px; overflow: hidden; text-align: center;
}
.lite-place-name {
  max-height: 24px; margin: 0 0 1px; overflow: hidden; color: #fff;
  font-size: 11px; font-weight: bold; line-height: 12px;
}
.lite-place-distance, .lite-place-direction {
  display: inline; min-height: 0; color: #cbd5e1; font-size: 7px; font-weight: bold; line-height: 8px;
}
.lite-place-direction { margin-left: 2px; color: #93c5fd; }
.lite-place-direction:not(:empty):before { content: "· "; color: #64748b; }
.lite-place-details {
  margin-top: 1px; overflow: hidden; color: #e2e8f0; font-size: 7px; line-height: 8px;
}
.lite-detail-row {
  display: flex; justify-content: space-between; gap: 2px; width: 100%; max-width: none;
  height: 13px; margin: 0 0 1px; padding: 1px 2px;
  border: 1px solid #334155; background: #111827; overflow: hidden;
}
.lite-detail-label, .lite-detail-value {
  line-height: 9px; overflow: hidden; white-space: nowrap; text-overflow: clip;
}
.lite-detail-label { color: #cbd5e1; text-align: left; }
.lite-detail-value { color: #fff; font-weight: bold; text-align: right; }
.lite-message { padding-top: 4px; color: #cbd5e1; font-size: 8px; line-height: 10px; }
.lite-town-search {
  display: none; margin-top: 2px; text-align: left; overflow: hidden;
}
.lite-town-search.visible { display: block; }
.lite-town-search-label {
  display: block; height: 8px; color: #cbd5e1; font-size: 7px; line-height: 8px;
}
.lite-town-search-input, .lite-town-search-button {
  width: 100%; height: 18px; min-height: 0; margin: 0; padding: 1px 2px;
  border: 1px solid #475569; border-radius: 0; font-family: Arial, Helvetica, sans-serif;
  font-size: 8px; line-height: 14px;
}
.lite-town-search-input { background: #020617; color: #fff; }
.lite-town-search-button {
  margin-top: 2px; background: #1e293b; color: #fff; font-weight: bold;
}
.lite-town-search-status {
  height: 9px; margin-top: 1px; overflow: hidden; color: #f8fafc;
  font-size: 6px; line-height: 9px; text-align: center; white-space: nowrap;
}
.lite-town-search-source {
  height: 7px; overflow: hidden; color: #94a3b8; font-size: 6px; line-height: 7px;
  text-align: center; white-space: nowrap;
}

.lite-controls {
  flex: 0 0 auto; height: 22px; padding: 1px;
  border-top: 1px solid #475569; background: #0f172a; color: #cbd5e1;
  font-size: 6px; line-height: 9px; text-align: center; overflow: hidden; white-space: nowrap;
}
.lite-controls a {
  color: #cbd5e1; text-decoration: none;
}
.lite-controls a:focus, .lite-controls a:active {
  outline: 1px solid #94a3b8;
}
.lite-controls strong { color: #fff; }

@media (min-width: 180px) and (min-height: 240px) {
  .lite-header { height: 26px; padding: 3px 5px 2px; }
  .lite-category-title { height: auto; font-size: 12px; line-height: 12px; }
  .lite-page-number { height: auto; margin-top: 1px; font-size: 8px; line-height: 9px; }
  .lite-page { padding: 5px; }
  .lite-place-name { max-height: 36px; margin-bottom: 3px; font-size: 15px; line-height: 17px; }
  .lite-place-distance, .lite-place-direction { font-size: 10px; line-height: 12px; }
  .lite-place-details { margin-top: 4px; font-size: 10px; }
  .lite-detail-row { height: 19px; margin-bottom: 2px; padding: 3px 4px; }
  .lite-detail-label, .lite-detail-value { line-height: 11px; }
  .lite-town-search-label { height: 11px; font-size: 9px; line-height: 11px; }
  .lite-town-search-input, .lite-town-search-button { height: 26px; padding: 3px 4px; font-size: 11px; line-height: 18px; }
  .lite-town-search-status { height: 12px; font-size: 8px; line-height: 12px; }
  .lite-town-search-source { height: 10px; font-size: 8px; line-height: 10px; }
  .lite-controls { height: 30px; padding: 2px; font-size: 8px; line-height: 12px; }
}
