/* ==========================================================================
   Trail & Road Status Page — /trail-status
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.ts-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 40%;
  background-color: #1a3a2a;
}
.ts-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.ts-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.ts-hero h1 i { margin-right: 8px; }
.ts-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .ts-hero { min-height: 340px; }
  .ts-hero h1 { font-size: 42px; }
  .ts-hero p { font-size: 21px; }
}

/* --- Last Updated --- */
.ts-updated {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 16px 0 4px;
  min-height: 20px;
}

/* --- Quick Summary Cards --- */
.ts-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0 28px;
}
@media (min-width: 560px) {
  .ts-summary { grid-template-columns: repeat(4, 1fr); }
}
.ts-sum-card {
  border-radius: 16px;
  padding: 20px 16px 16px;
  text-align: center;
  border: 1px solid #e4e4e4;
  background: #fff;
}
.ts-sum-open { border-left: 4px solid #16a34a; }
.ts-sum-caution { border-left: 4px solid #f59e0b; }
.ts-sum-closed { border-left: 4px solid #dc2626; }
.ts-sum-total { border-left: 4px solid #6b7280; }
.ts-sum-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ts-sum-open .ts-sum-num { color: #16a34a; }
.ts-sum-caution .ts-sum-num { color: #d97706; }
.ts-sum-closed .ts-sum-num { color: #dc2626; }
.ts-sum-total .ts-sum-num { color: #374151; }
.ts-sum-label {
  font-size: 14px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

/* --- Island Tabs --- */
.ts-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 28px;
  padding: 0 12px;
  max-width: 780px;
}
.ts-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.ts-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.ts-tab.is-active {
  background: #1a6b4a;
  border-color: #1a6b4a;
  color: #fff;
}
.ts-tab .ts-tab-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Section blocks --- */
.ts-section {
  margin: 36px 0;
}
.ts-section h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.3;
}
.ts-section h2 i {
  margin-right: 8px;
  color: #1a6b4a;
}

/* --- Status Card Grid --- */
.ts-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .ts-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Individual Status Card --- */
.ts-status-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .2s ease;
}
.ts-status-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

/* Status indicator dot */
.ts-indicator {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 5px;
}
.ts-indicator-open { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.ts-indicator-caution { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.ts-indicator-closed { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }

/* Card content */
.ts-card-body { flex: 1; min-width: 0; }
.ts-card-name {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
  line-height: 1.3;
}
.ts-card-island {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 6px;
}
.ts-card-island-oahu { color: #F27A24; }
.ts-card-island-maui { color: #1866B4; }
.ts-card-island-big-island { color: #c3232f; }
.ts-card-island-kauai { color: #1D9771; }

.ts-card-status-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.ts-label-open { background: #dcfce7; color: #166534; }
.ts-label-caution { background: #fef3c7; color: #92400e; }
.ts-label-closed { background: #fee2e2; color: #991b1b; }

.ts-card-detail {
  font-size: 16px;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.55;
}
.ts-card-source {
  font-size: 13px;
  color: #999;
}
.ts-card-source a {
  color: #1a6b4a;
  text-decoration: underline;
}

/* --- Legend --- */
.ts-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 32px 0 8px;
  padding: 18px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}
.ts-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.ts-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ts-dot-open { background: #16a34a; }
.ts-dot-caution { background: #f59e0b; }
.ts-dot-closed { background: #dc2626; }

/* --- Sources Grid --- */
.ts-sources-intro {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 18px;
}
.ts-sources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .ts-sources-grid { grid-template-columns: repeat(2, 1fr); }
}
.ts-source-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
}
.ts-source-card h3 {
  font-size: 18px;
  color: #1a6b4a;
  margin: 0 0 8px;
  font-weight: 700;
}
.ts-source-card p {
  font-size: 16px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.55;
}
.ts-source-card a {
  display: inline-block;
  font-size: 15px;
  color: #1a6b4a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1a6b4a;
  transition: color .2s ease;
}
.ts-source-card a:hover { color: #145238; }
.ts-source-card a i { margin-left: 4px; font-size: 12px; }

/* --- Safety Tips Grid --- */
.ts-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ts-tips-grid { grid-template-columns: repeat(2, 1fr); }
}
.ts-tip-card {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 22px 24px;
}
.ts-tip-card h3 {
  font-size: 19px;
  color: #92400e;
  margin: 0 0 8px;
  font-weight: 700;
}
.ts-tip-card p {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom CTA --- */
.ts-bottom-cta {
  text-align: center;
  margin: 44px 0 30px;
  padding: 40px 28px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 20px;
}
.ts-bottom-cta h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.ts-bottom-cta p {
  font-size: 19px;
  color: #444;
  margin: 0 0 22px;
  line-height: 1.55;
}
.ts-bottom-cta .ts-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #1a6b4a;
  color: #fff;
  border-radius: 40px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.ts-bottom-cta .ts-cta-btn:hover {
  background: #145238;
}

/* --- Empty state --- */
.ts-empty {
  text-align: center;
  padding: 32px 20px;
  font-size: 16px;
  color: #888;
}

/* --- Print --- */
@media print {
  .ts-tabs, .ts-bottom-cta, .ts-legend { display: none; }
  .ts-hero { min-height: 80px; border-radius: 0; }
}
