:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f6fb;
  --text: #111827;
  --muted: #5f6b7a;
  --subtle: #7b8796;
  --line: #dfe6ef;
  --primary: #005ffb;
  --primary-dark: #063e9b;
  --accent: #f26430;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --warning: #b45309;
  --warning-bg: #fff7ed;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 230, 239, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 114px;
  height: auto;
}

.logo-primary {
  fill: var(--primary);
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topbar-actions,
.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.language-control {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.language-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.language-control select {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  padding: 0 34px 0 11px;
  background: var(--surface);
  font-weight: 800;
}

.nav-item,
.service-button,
.segmented button,
.filter-row button,
.ghost-action,
.text-button,
.secondary-button,
.load-more,
.swap-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-item.active {
  border-color: rgba(0, 95, 251, 0.28);
  background: #eaf2ff;
  color: var(--primary-dark);
}

.nav-item.primary-nav {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.install-nav {
  white-space: nowrap;
}

.affiliate-nav {
  border-color: rgba(242, 100, 48, 0.32);
  background: #fff7ed;
  color: var(--warning);
  white-space: nowrap;
}

.search-band {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 64px) 22px;
  background: linear-gradient(90deg, rgba(0, 95, 251, 0.08), rgba(242, 100, 48, 0.08)), var(--surface);
}

.search-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 5vw, 54px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.intro-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.intro-copy p {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 54px;
  padding: 8px 13px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #111827;
  color: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.store-button:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.28);
  outline-offset: 3px;
}

.store-button.app-store {
  background: var(--surface);
  color: var(--text);
}

.store-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.app-store .store-icon {
  background: #eaf2ff;
  color: var(--primary);
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.1;
}

.store-button small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
}

.store-button strong {
  margin-top: 2px;
  font-size: 18px;
}

.live-counts > span,
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.live-counts > span {
  border: 1px solid rgba(0, 95, 251, 0.18);
  background: #eff6ff;
  color: var(--primary-dark);
}

.search-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 10px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 251, 0.14);
}

input:disabled {
  background: #eef2f7;
  color: var(--subtle);
}

.swap-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.check-control span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.check-control input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 clamp(18px, 5vw, 64px);
}

.posts-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(18px, 5vw, 64px) 0;
}

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.posts-header h2 {
  margin: 0;
  font-size: 20px;
}

.compact-text-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 7px 11px;
}

.posts-header .compact-text-button {
  flex: 0 0 auto;
  width: auto;
}

.posts-story-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.post-story-card {
  display: grid;
  flex: 0 0 92px;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.post-story-card:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.28);
  outline-offset: 3px;
}

.post-story-image-frame {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.post-story-image,
.post-story-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.post-story-fallback {
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.post-story-avatar {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #e5eaf2;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.post-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-story-name {
  width: 92px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.service-button.active {
  border-color: rgba(0, 95, 251, 0.3);
  background: #eff6ff;
  color: var(--primary-dark);
}

.how-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px) 70px;
}

.how-header {
  margin-bottom: 16px;
}

.how-header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.how-card span {
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.how-card h3 {
  margin: 0;
  font-size: 20px;
}

.how-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px) 80px;
}

.faq-header {
  margin-bottom: 16px;
}

.faq-header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.faq-groups {
  display: grid;
  gap: 14px;
}

.faq-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.faq-group h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.faq-item summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--text);
  font-weight: 800;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.22);
  outline-offset: 2px;
}

.faq-item p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  width: 100%;
  margin-top: 28px;
  background: #0b4db8;
  color: white;
}

.site-footer a {
  color: inherit;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 64px) 30px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-brand .brand {
  width: fit-content;
  color: white;
  font-size: 28px;
}

.footer-brand p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

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

.footer-store-links a {
  display: inline-flex;
  min-width: 0;
}

.footer-store-links img {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-socials img {
  max-width: 20px;
  max-height: 20px;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 6px;
  color: white;
  font-size: 16px;
}

.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-contact img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(18px, 5vw, 64px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-link:hover {
  color: white;
}

.policy-page {
  min-height: 100vh;
  padding: 34px clamp(18px, 5vw, 64px);
  background: var(--bg);
}

.policy-content {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  margin: 18px 0 8px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
}

.policy-content h2 {
  margin: 34px 0 12px;
  font-size: 26px;
}

.policy-content h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.policy-content h4 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-content a:not(.secondary-link) {
  color: var(--primary);
  font-weight: 800;
}

.seo-page {
  min-height: 70vh;
  padding: 34px clamp(18px, 5vw, 64px) 56px;
  background: var(--bg);
}

.seo-hero,
.seo-section,
.seo-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.seo-hero {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 95, 251, 0.08), rgba(242, 100, 48, 0.08)), var(--surface);
  padding: clamp(26px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.seo-hero.compact {
  max-width: 780px;
}

.seo-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
}

.seo-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.seo-hero .primary-button,
.seo-hero .secondary-link {
  width: fit-content;
}

.seo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.seo-action-row .primary-button,
.seo-action-row .secondary-action-link {
  width: fit-content;
  margin-top: 0;
}

.seo-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.seo-facts div,
.seo-card,
.seo-trip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.seo-facts div {
  display: grid;
  gap: 5px;
  padding: 15px;
}

.seo-facts span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.seo-facts strong {
  color: var(--text);
  font-size: 18px;
}

.seo-section {
  padding: 42px 0 0;
}

.seo-trip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-faq-list h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.seo-trip-card {
  display: grid;
  align-content: start;
  overflow: hidden;
}

.seo-trip-card-main {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.seo-trip-card h3 {
  margin: 0;
  font-size: 21px;
}

.seo-trip-actions {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.seo-trip-actions .primary-button,
.seo-trip-actions .secondary-action-link {
  width: 100%;
  margin-top: 0;
}

.seo-trip-card-main .secondary-action-link {
  width: fit-content;
  margin-top: auto;
}

.seo-empty {
  grid-column: 1 / -1;
}

.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  padding-top: 28px;
}

.seo-card {
  padding: 24px;
}

.seo-card h2 {
  margin: 0 0 12px;
}

.seo-card p {
  color: var(--muted);
  line-height: 1.65;
}

.seo-cta {
  align-content: start;
  display: grid;
  gap: 12px;
}

.seo-cta .primary-button,
.seo-cta .secondary-action-link {
  width: 100%;
  margin-top: 0;
}

.seo-links {
  display: grid;
  gap: 10px;
}

.seo-links a {
  color: var(--primary);
  font-weight: 800;
}

.popular-routes-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px) 34px;
}

.popular-routes-header {
  margin-bottom: 16px;
}

.popular-routes-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.popular-routes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.popular-routes-grid a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.results-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 64px) 70px;
}

.restact-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 64px) 70px;
}

.truck-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 64px) 70px;
}

.restact-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.truck-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.place-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.place-card:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.28);
  outline-offset: 3px;
}

.place-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e5eaf2;
}

.place-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.place-badge,
.place-discount {
  position: absolute;
  top: 10px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.place-badge {
  right: 10px;
  background: white;
  color: var(--primary-dark);
}

.place-discount {
  left: 10px;
  background: #b91c1c;
  color: white;
}

.place-content {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.place-content h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.truck-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.truck-main-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 170px;
  color: inherit;
}

.truck-main-link:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.28);
  outline-offset: -3px;
}

.truck-image-wrap {
  position: relative;
  min-height: 170px;
  background: #e5eaf2;
}

.truck-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.truck-content h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.truck-content p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.reviews-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px) 34px;
}

.reviews-header {
  margin-bottom: 16px;
}

.reviews-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0;
}

.review-card time {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.review-card strong {
  color: var(--text);
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.results-toolbar h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 12px;
}

.segmented,
.filter-row {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button,
.filter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 11px;
  border-color: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.selected,
.filter-row button.selected {
  background: var(--primary);
  color: white;
}

.filter-row {
  margin-bottom: 18px;
}

.notice,
.error-note {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.notice {
  border: 1px solid #fed7aa;
  background: var(--warning-bg);
  color: var(--warning);
}

.error-note {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

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

.trip-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.card-topline,
.owner-line,
.card-actions,
.trip-meta {
  display: flex;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.status.today {
  background: var(--success-bg);
  color: var(--success);
}

.status.planned {
  background: var(--warning-bg);
  color: var(--warning);
}

.route-link {
  display: block;
  border-radius: 8px;
}

.route-link:focus-visible {
  outline: 3px solid rgba(0, 95, 251, 0.3);
}

.route-stack {
  display: grid;
  grid-template-columns: 54px 18px 1fr;
  gap: 10px;
  align-items: stretch;
}

.route-times,
.route-cities {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
}

.route-times strong,
.route-cities strong {
  color: var(--text);
}

.route-times span,
.route-cities span {
  color: var(--muted);
  font-weight: 700;
}

.route-cities {
  font-size: 20px;
}

.route-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

.route-marker span {
  width: 10px;
  height: 10px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.route-marker i {
  flex: 1;
  width: 2px;
  min-height: 38px;
  background: var(--line);
}

.trip-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.trip-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-line {
  gap: 10px;
  margin-top: auto;
}

.owner-line img,
.owner-row img,
.empty-state img {
  border-radius: 50%;
  object-fit: cover;
  background: #e5eaf2;
}

.owner-line div {
  min-width: 0;
}

.owner-line strong,
.owner-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-line span {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  gap: 10px;
  margin-top: 2px;
}

.text-button,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 800;
}

.text-button {
  flex: 1;
  border-color: rgba(0, 95, 251, 0.24);
  color: var(--primary);
}

.ghost-action {
  flex: 1;
  color: var(--muted);
}

.ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.loading-state,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state h3 {
  margin: 12px 0 4px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

.secondary-button,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--primary);
  font-weight: 800;
}

.secondary-button {
  margin-top: 18px;
}

.load-more {
  min-width: 180px;
  margin: 22px auto 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  width: min(440px, calc(100vw - 34px));
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #111827;
  color: white;
  text-align: center;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.workspace-section {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 0 clamp(18px, 5vw, 64px);
}

.account-screen .workspace-section {
  padding-top: 30px;
}

.account-screen .workspace-header {
  border-top: 0;
  padding-top: 0;
}

.workspace-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.workspace-header h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.workspace-header .secondary-button {
  width: auto;
  margin-top: 0;
}

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

.workspace-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.workspace-card h3 {
  margin: 0;
  font-size: 22px;
}

.workspace-card .eyebrow {
  margin-bottom: 12px;
}

.full-span {
  grid-column: 1 / -1;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-link,
.inline-profile-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.profile-link {
  width: 100%;
}

.profile-link:hover h3,
.inline-profile-link:hover,
.owner-link:hover h2 {
  color: var(--primary);
}

.profile-link:focus-visible,
.inline-profile-link:focus-visible,
.owner-link:focus-visible {
  outline: 3px solid rgba(29, 111, 255, 0.24);
  outline-offset: 4px;
}

.profile-head img,
.chat-row img,
.offer-row img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #e5eaf2;
}

.initial-avatar,
.mini-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--avatar-size, 44px);
  height: var(--avatar-size, 44px);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
}

.initial-avatar {
  font-size: 20px;
}

.mini-avatar {
  font-size: 11px;
}

.profile-head div,
.chat-row div,
.offer-row div {
  min-width: 0;
}

.profile-head p,
.chat-row span,
.offer-row span {
  display: block;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-form,
.auth-form {
  display: grid;
  gap: 13px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.profile-form .check-control,
.profile-form .primary-button {
  grid-column: 1 / -1;
}

.primary-button.compact {
  width: auto;
  min-width: 132px;
  margin-top: 0;
  padding: 0 18px;
}

.list-row,
.offer-row,
.chat-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.list-row,
.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
}

.list-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.list-row button,
.offer-row button {
  min-height: 38px;
  border: 1px solid rgba(0, 95, 251, 0.24);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

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

.chat-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-row time {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.chat-card {
  display: grid;
  gap: 14px;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.message {
  width: fit-content;
  max-width: min(560px, 82%);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.message.mine {
  justify-self: end;
  background: #eaf2ff;
}

.message p {
  margin: 0;
  line-height: 1.45;
}

.message time {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.post-list-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.post-list-card img {
  width: 96px;
  height: 74px;
  border-radius: 8px;
  background: #e5eaf2;
  object-fit: cover;
}

.post-list-card span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.post-list-card strong,
.post-list-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-list-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-list-owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.post-list-owner span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-detail-card {
  display: grid;
  gap: 16px;
}

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

.post-gallery img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  background: #e5eaf2;
  object-fit: cover;
}

.post-detail-body {
  display: grid;
  gap: 10px;
}

.post-detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.chat-modal-panel {
  width: min(720px, 100%);
  padding: 18px;
}

.chat-modal-body {
  min-height: 260px;
}

.modal-chat-card {
  min-width: 0;
}

.modal-chat-card .profile-head {
  padding-right: 46px;
}

.modal-chat-card .message-list {
  max-height: min(52vh, 520px);
}

.modal-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-form {
  margin-top: 18px;
}

.auth-type {
  width: fit-content;
}

.affiliate-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(0, 95, 251, 0.08), rgba(242, 100, 48, 0.08) 44%, transparent 74%),
    var(--bg);
}

.affiliate-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 230, 239, 0.82);
  backdrop-filter: blur(18px);
}

.affiliate-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.affiliate-hero,
.affiliate-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.affiliate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 8vw, 92px) 0;
}

.affiliate-hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.affiliate-hero h1,
.affiliate-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.affiliate-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
}

.affiliate-hero-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.affiliate-contact p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.affiliate-actions,
.affiliate-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.affiliate-actions .primary-button,
.affiliate-actions .secondary-action-link {
  width: auto;
  margin-top: 0;
}

.affiliate-hero-panel,
.affiliate-calculator,
.affiliate-chart,
.affiliate-step,
.affiliate-form,
.affiliate-faq-item,
.affiliate-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.affiliate-hero-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 34px);
}

.affiliate-hero-panel span,
.affiliate-step span {
  color: var(--accent);
  font-weight: 900;
}

.affiliate-hero-panel strong {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  color: var(--primary);
}

.affiliate-hero-panel p,
.affiliate-step p,
.affiliate-calculator p,
.affiliate-faq-item p,
.affiliate-form .muted-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.affiliate-section {
  padding: 64px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.affiliate-section h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.affiliate-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.affiliate-step {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  box-shadow: none;
}

.affiliate-step h3 {
  margin: 0;
  font-size: 20px;
}

.affiliate-prize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.affiliate-calculator {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 32px);
}

.affiliate-calculator label {
  color: var(--muted);
  font-weight: 800;
}

.affiliate-calculator-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.affiliate-calculator output {
  color: var(--primary-dark);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
}

.affiliate-calculator strong {
  color: var(--accent);
  font-size: clamp(28px, 5vw, 46px);
}

.affiliate-calculator input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.affiliate-chart {
  overflow: hidden;
  box-shadow: none;
}

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

.affiliate-chart caption {
  padding: 20px 24px 14px;
  text-align: left;
  font-weight: 900;
}

.affiliate-chart th,
.affiliate-chart td {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  line-height: 1.45;
}

.affiliate-chart th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.affiliate-rules ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.affiliate-rules li {
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

.affiliate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: none;
}

.affiliate-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.affiliate-form input {
  min-height: 46px;
  padding: 0 14px;
}

.affiliate-form-wide,
.affiliate-form .primary-button,
.affiliate-form .muted-note {
  grid-column: 1 / -1;
}

.affiliate-form .primary-button {
  width: fit-content;
}

.affiliate-faq-list {
  display: grid;
  gap: 14px;
}

.affiliate-faq-item {
  padding: 0 22px;
  box-shadow: none;
}

.affiliate-faq-item summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 4px 0;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.45;
}

.affiliate-faq-item p {
  padding: 0 0 22px;
}

.affiliate-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: none;
}

.detail-page,
.simple-page {
  min-height: 100vh;
  padding: 34px clamp(18px, 5vw, 64px);
}

.detail-shell,
.simple-panel {
  max-width: 1080px;
  margin: 0 auto;
}

.simple-panel {
  display: grid;
  place-items: start;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-header-actions {
  justify-content: flex-end;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--primary);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.detail-main,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.detail-main h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.route-large {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.route-large div:not(.route-line) {
  display: grid;
  gap: 4px;
}

.route-large strong {
  color: var(--primary);
}

.route-large span {
  font-size: 24px;
  font-weight: 900;
}

.route-line {
  width: 2px;
  min-height: 46px;
  margin-left: 10px;
  background: var(--line);
}

.detail-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 8px;
}

.detail-block p,
.muted-note {
  color: var(--muted);
  line-height: 1.6;
}

.owner-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owner-link {
  color: inherit;
  text-decoration: none;
}

.owner-row p {
  margin: 0;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.facts dd {
  margin: 0;
  font-weight: 900;
}

.full-width {
  margin-top: 0;
}

.place-detail-main {
  overflow: hidden;
}

.place-detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
  gap: 10px;
  margin: -4px -4px 22px;
}

.place-detail-gallery.single {
  grid-template-columns: 1fr;
}

.place-detail-gallery > div {
  display: grid;
  gap: 10px;
}

.place-detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  border-radius: 8px;
  background: #e5eaf2;
  object-fit: cover;
}

.place-detail-gallery > img {
  min-height: 340px;
}

.place-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.place-facts-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.place-action-list {
  display: grid;
  gap: 10px;
}

.detail-action-list {
  display: grid;
  gap: 10px;
}

.detail-action-button {
  width: 100%;
  margin-top: 0;
  text-decoration: none;
}

.secondary-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(0, 95, 251, 0.24);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.place-review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.place-review {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.place-review div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.place-review span {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
}

.place-review p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .affiliate-hero,
  .affiliate-prize-grid {
    grid-template-columns: 1fr;
  }

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

  .affiliate-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(560px, 70vw);
  }

  .auth-nav {
    flex-wrap: wrap;
  }

  .search-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-toolbar,
  .toolbar-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .truck-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .truck-grid {
    grid-template-columns: 1fr;
  }

  .place-detail-gallery {
    grid-template-columns: 1fr;
  }

  .place-detail-gallery > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-trip-list,
  .seo-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-grid,
  .seo-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .affiliate-topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 62px;
    padding: 12px 16px;
  }

  .affiliate-topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .affiliate-topbar-actions .language-control {
    grid-column: 1 / -1;
  }

  .affiliate-topbar-actions .nav-item {
    justify-content: center;
  }

  .affiliate-hero,
  .affiliate-section {
    width: calc(100% - 32px);
  }

  .affiliate-hero {
    padding: 34px 0 28px;
  }

  .affiliate-hero h1 {
    font-size: 42px;
  }

  .affiliate-hero-copy > p:not(.eyebrow),
  .section-heading > p:not(.eyebrow),
  .affiliate-contact p {
    font-size: 16px;
  }

  .affiliate-section {
    padding: 36px 0;
  }

  .affiliate-hero-panel,
  .affiliate-step,
  .affiliate-calculator,
  .affiliate-form,
  .affiliate-contact {
    padding: 22px;
  }

  .affiliate-chart caption,
  .affiliate-chart th,
  .affiliate-chart td {
    padding-right: 18px;
    padding-left: 18px;
  }

  .affiliate-faq-item {
    padding: 0 18px;
  }

  .affiliate-steps,
  .affiliate-form {
    grid-template-columns: 1fr;
  }

  .affiliate-calculator-value {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .affiliate-form .primary-button,
  .affiliate-contact-actions,
  .affiliate-contact-actions a {
    width: 100%;
  }

  .affiliate-chart {
    overflow-x: auto;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 62px;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 98px;
  }

  .topbar-actions {
    gap: 8px;
    max-width: none;
    justify-content: stretch;
  }

  .auth-nav {
    width: 100%;
  }

  .auth-nav .nav-item {
    flex: 1 1 auto;
    justify-content: center;
  }

  .search-band,
  .results-section,
  .restact-section,
  .truck-section,
  .posts-section,
  .popular-routes-section,
  .reviews-section,
  .how-section,
  .faq-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .language-control select {
    width: 100%;
    min-width: 116px;
  }

  .language-control {
    flex: 1 1 100%;
  }

  .intro-copy h1 {
    font-size: 34px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .store-actions,
  .live-counts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
    min-width: 0;
  }

  .field-grid,
  .option-row,
  .restact-filters,
  .truck-filters {
    grid-template-columns: 1fr;
  }

  .swap-button {
    width: 100%;
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .popular-routes-grid,
  .seo-trip-list,
  .seo-faq-list {
    grid-template-columns: 1fr;
  }

  .place-grid {
    grid-template-columns: 1fr;
  }

  .truck-grid {
    grid-template-columns: 1fr;
  }

  .truck-main-link {
    grid-template-columns: 1fr;
  }

  .truck-image-wrap {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .place-detail-gallery {
    margin-right: 0;
    margin-left: 0;
  }

  .place-detail-gallery > img {
    min-height: 230px;
  }

  .place-detail-gallery > div {
    grid-template-columns: 1fr;
  }

  .place-detail-gallery img {
    min-height: 150px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .segmented,
  .filter-row {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button,
  .filter-row button {
    flex: 1 0 auto;
  }

  .route-cities {
    font-size: 17px;
  }

  .card-actions {
    flex-direction: column;
  }

  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-header .secondary-button {
    width: 100%;
  }

  .profile-form,
  .chat-form,
  .list-row,
  .post-list-grid,
  .post-list-card,
  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-row img {
    justify-self: start;
  }

  .chat-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .chat-row time {
    grid-column: 2;
  }

  .modal-panel {
    padding: 22px 18px;
  }

  .chat-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .modal-chat-card .message-list {
    max-height: 50vh;
  }

  .detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-header-actions {
    justify-content: space-between;
  }

  .text-button,
  .ghost-action {
    width: 100%;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-store-links img {
    width: 124px;
  }

  .footer-socials {
    gap: 8px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-page {
    padding: 20px 16px 38px;
  }

  .seo-trip-list,
  .seo-faq-list,
  .seo-grid,
  .seo-facts {
    grid-template-columns: 1fr;
  }

  .seo-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .seo-action-row,
  .seo-action-row .primary-button,
  .seo-action-row .secondary-action-link {
    width: 100%;
  }
}
