:root {
  --brand: #b31c1c;
  --brand-dark: #8f1515;
  --text: #1f1f1f;
  --muted: #666;
  --bg: #f8f8f8;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  background: var(--brand);
  color: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

.hero {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 48px 0;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 5px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--brand-dark);
}

main {
  padding: 28px 0 50px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  border: 1px solid #e1e1e1;
  padding: 10px;
  text-align: left;
}

th {
  background: #f1f1f1;
}

.muted {
  color: var(--muted);
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.filters .filter-field {
  flex: 1 1 180px;
  min-width: 0;
}

.filters label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--muted);
}

.filters select,
.filters input,
.filters textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font: inherit;
}

.swap-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 50%;
  cursor: pointer;
  color: var(--brand);
  font-size: 1.15rem;
  transition: background 0.18s, color 0.18s, transform 0.3s;
  margin-bottom: 1px;
  flex-shrink: 0;
}

.swap-btn:hover {
  background: var(--brand);
  color: #fff;
}

.swap-btn.spinning {
  transform: rotate(180deg);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .swap-btn {
    width: 100%;
    border-radius: 6px;
    height: 38px;
  }
}

.result-empty {
  margin-top: 12px;
  color: var(--muted);
}

.app-feature-list {
  margin: 12px 0 16px;
  padding-left: 20px;
}

.app-store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  height: 52px;
  width: auto;
  display: block;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.app-gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  background: #fff;
}

.gallery-thumb:hover img {
  transform: scale(1.02);
}

.gallery-thumb img {
  transition: transform 0.2s ease;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 8px;
  border: 2px solid #fff;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 24px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  width: 52px;
  height: 52px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.home-gallery-action {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.92rem;
}

.btn-gallery-home {
  background: #1e63d6;
  border-radius: 10px;
  padding: 10px 30px;
  margin: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.btn-gallery-home:hover {
  background: #184ead;
}

footer {
  background: #111;
  color: #ddd;
  padding: 22px 0;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
}

@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    margin: 0;
    padding: 8px 0;
  }
}


.wa-center {
  text-align: center;
}

.wa-img {
  width: 250px;
  height: auto;

}

.fb-btn {
  background-color: #1877F2;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
}

.fb-btn:hover {
  background-color: #145dbf;
}

.table-container {
  width: 100%;
  overflow-x: auto; /* scroll on mobile */
}

.bus-table {
  width: 100%;
  border-collapse: collapse;
}

.bus-table th,
.bus-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.bus-table th {
  background-color: #f4f4f4;
}

td:first-child {
  font-weight: 700;
}