:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #5c6570;
  --line: #d8dde3;
  --panel: #ffffff;
  --wash: #f4f7f9;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warm: #f97316;
  --dark: #263238;
  --shadow: 0 18px 50px rgba(20, 25, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 221, 227, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav nav a {
  text-decoration: none;
}

.site-nav nav a:hover {
  color: var(--ink);
}

.profile-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 42px) 48px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: min(540px, calc(100vh - 92px));
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  padding: clamp(28px, 6vw, 82px);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(21, 23, 26, 0.88), rgba(21, 23, 26, 0.56) 48%, rgba(21, 23, 26, 0.18)),
    url("./assets/bay-bites-demo-events.jpg") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-hero .eyebrow {
  color: #99f6e4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.55;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.search-panel label,
.filter-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-row,
.filter-row {
  display: grid;
  gap: 10px;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.filter-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

input,
select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: #111827;
}

#clearFiltersButton,
#useLocationButton {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.status-text {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.directory-list-panel,
.truck-profile {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 25, 32, 0.07);
}

.directory-list-panel {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.truck-cards {
  display: grid;
  gap: 12px;
}

.truck-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.truck-card:hover,
.truck-card.active {
  border-color: rgba(15, 118, 110, 0.48);
  background: #f0fdfa;
}

.truck-card img {
  width: 92px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
}

.truck-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.2;
}

.truck-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: #364152;
  font-size: 12px;
  font-weight: 800;
}

.pill.live {
  background: #dcfce7;
  color: #166534;
}

.pill.offline {
  background: #fee2e2;
  color: #991b1b;
}

.truck-profile {
  min-height: 620px;
}

.profile-media {
  min-height: 330px;
  padding: 28px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(0deg, rgba(21, 23, 26, 0.86), rgba(21, 23, 26, 0.08)),
    var(--profile-image, url("./assets/bay-bites-demo-menu.jpg")) center / cover;
  color: #fff;
}

.profile-media h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.profile-media p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.45;
}

.profile-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.profile-actions a.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.detail-panel h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.menu-list,
.schedule-list,
.contact-list {
  display: grid;
  gap: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.menu-item img {
  width: 70px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.menu-item strong,
.schedule-row strong,
.contact-list strong {
  display: block;
  font-size: 14px;
}

.menu-item span,
.schedule-row span,
.contact-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.price {
  color: var(--accent-strong);
  font-weight: 900;
}

.schedule-row,
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 9px;
}

.schedule-row:last-child,
.contact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .profile-hero,
  .directory-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: auto;
  }

  .directory-list-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .profile-shell {
    padding-inline: 12px;
  }

  .profile-hero {
    padding: 24px;
  }

  h1 {
    font-size: 42px;
  }

  .search-row,
  .filter-row,
  .truck-card,
  .menu-item {
    grid-template-columns: 1fr;
  }

  .truck-card img,
  .menu-item img {
    width: 100%;
    height: 160px;
  }

  .schedule-row,
  .contact-row {
    flex-direction: column;
  }
}
