/* Customer mobile view: deliberately independent from site.css / TV / admin UI. */
*, *:before, *:after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: #ECF5FF; color: #1e3348;
       font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif; }
.mobile-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 27px 18px 36px; }
.mobile-header { margin: 0 0 20px; }
.mobile-eyebrow { color: #4c7da7; font-size: 12px; font-weight: 800; letter-spacing: .17em; margin-bottom: 8px; }
.mobile-header h1 { margin: 0; font-size: 32px; line-height: 1.26; letter-spacing: .02em; font-weight: 800; }
.mobile-header p { margin: 9px 0 0; font-size: 14px; color: #688095; }
.header-separator { padding: 0 5px; }
.mobile-legend { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
                 gap: 8px; margin-bottom: 16px; }
.legend-item { display: inline-block; font-size: 12px; font-weight: 700; color: #486078;
               padding: 8px 11px; background: rgba(255,255,255,.88); border: 1px solid #dce8f4; border-radius: 24px; }
.legend-dot { display: inline-block; height: 8px; width: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.legend-green { background: #18a86b; }
.legend-yellow { background: #e3a719; }
.legend-red { background: #e04d56; }
.mobile-facility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facility-card { position: relative; overflow: hidden; min-width: 0; min-height: 153px; padding: 20px 20px 18px 23px;
                 background: #fff; border: 1px solid #e2eaf2; border-radius: 18px;
                 box-shadow: 0 7px 18px rgba(24, 53, 89, .055); }
.facility-card:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: #18a86b; }
.facility-card.state-yellow:before { background: #e3a719; }
.facility-card.state-red:before { background: #e04d56; }
.facility-top { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
                -webkit-align-items: flex-start; align-items: flex-start; gap: 12px; }
.facility-info { min-width: 0; -webkit-flex: 1 1 auto; flex: 1 1 auto; }
.facility-name { font-size: 23px; font-weight: 800; line-height: 1.32; margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.facility-subtitle { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: #738296; overflow-wrap: anywhere; word-break: break-word; }
.facility-dot { -webkit-flex: 0 0 11px; flex: 0 0 11px; width: 11px; height: 11px; margin-top: 9px;
                border-radius: 50%; background: #18a86b; }
.state-yellow .facility-dot { background: #e3a719; }
.state-red .facility-dot { background: #e04d56; }
.facility-result { margin-top: 18px; }
.facility-minutes { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; gap: 8px; }
.minutes-number { font-size: 52px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.minutes-label { font-size: 16px; font-weight: 700; color: #64748b; white-space: nowrap; }
.minutes-label small { font-size: 13px; font-weight: 500; }
.state-yellow .minutes-number { color: #95650c; }
.state-red .minutes-number { color: #c72c43; }
.facility-closed { color: #c72c43; font-size: 21px; line-height: 1.4; font-weight: 800; overflow-wrap: anywhere; word-break: break-word; }
.empty-state { grid-column: 1 / -1; padding: 45px 15px; border-radius: 16px; background: #fff;
               text-align: center; color: #688095; font-size: 16px; }
.mobile-notice { margin: 22px 0 0; font-size: 12px; text-align: center; color: #6f8294; line-height: 1.7; }
@media (max-width: 600px) {
  .mobile-page { padding: 25px 15px 32px; }
  .mobile-header h1 { font-size: 29px; }
  .mobile-facility-list { grid-template-columns: 1fr; gap: 12px; }
  .facility-card { min-height: 148px; padding: 18px 19px 18px 22px; }
  .facility-name { font-size: 24px; }
  .facility-result { margin-top: 17px; }
  .minutes-number { font-size: 52px; }
  .facility-closed { font-size: 21px; }
}
@media (max-width: 360px) {
  .legend-item { font-size: 11px; padding: 7px 8px; }
  .facility-name { font-size: 22px; }
}

/* Customer-facing clock and weather: responsive, no overlap */
.mobile-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 18px; }
.mobile-status-box { min-width: 0; padding: 13px 7px; background: #fff; border: 1px solid #dce8f4; border-radius: 14px; text-align: center; }
.status-title { font-size: 14px; font-weight: 800; }
.status-subtitle { font-size: 10px; color: #708297; margin-top: 2px; }
.status-value { font-size: 16px; font-weight: 800; margin-top: 8px; white-space: nowrap; }
.status-clock span { display: block; white-space: nowrap; font-size: 13px; line-height: 1.45; }
.status-clock span + span { font-size: 16px; }
@media (max-width: 600px) { .mobile-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; } .mobile-status-box { padding: 12px 6px; } .status-value { font-size: 18px; } .status-clock span { font-size: 15px; } .status-clock span + span { font-size: 19px; } }

/* Photos on the RIGHT of each facility card (mobile and tablet). */
.facility-card { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 14px; }
.facility-content { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; }
.facility-top { gap: 6px; }
.facility-name { overflow-wrap: break-word; }
.facility-photo { -webkit-flex: 0 0 126px; flex: 0 0 126px; width: 126px; height: 100px;
                  border-radius: 13px; overflow: hidden; background: #f0f5fa;
                  border: 1px solid #e1eaf3; display: -webkit-flex; display: flex;
                  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.facility-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.facility-photo-empty { color: #8292a2; font-size: 12px; text-align: center; }
.facility-result { margin-top: 14px; }
.facility-minutes { -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 5px; }
.facility-closed { font-size: 19px; }
@media (max-width: 600px) {
  .facility-card { gap: 12px; }
  .facility-photo { -webkit-flex-basis: 124px; flex-basis: 124px; width: 124px; height: 96px; }
  .facility-name { font-size: 22px; }
  .minutes-number { font-size: 48px; }
  .facility-closed { font-size: 19px; }
}
@media (max-width: 380px) {
  .facility-card { padding: 16px 12px 16px 18px; gap: 9px; }
  .facility-photo { -webkit-flex-basis: 106px; flex-basis: 106px; width: 106px; height: 88px; }
  .facility-name { font-size: 20px; }
  .facility-subtitle { font-size: 12px; }
  .facility-dot { -webkit-flex-basis: 9px; flex-basis: 9px; width: 9px; height: 9px; }
  .minutes-number { font-size: 44px; }
  .minutes-label { font-size: 14px; }
  .minutes-label small { font-size: 11px; }
  .facility-closed { font-size: 17px; }
}
