/* =========================================================
   JANBAHON — Main Website Styles
   Responsive: Mobile / Tablet / Desktop
   ========================================================= */

:root {
  --navy: #082b5c;
  --navy-dark: #061f43;
  --orange: #f47b20;
  --orange-dark: #d96512;
  --cream: #fffaf5;
  --white: #ffffff;
  --text: #172033;
  --muted: #6d7788;
  --border: #e6e9ee;
  --soft: #f6f8fb;
  --success: #16824b;
  --shadow: 0 12px 35px rgba(8, 43, 92, 0.10);

  --container: 1180px;
  --radius: 18px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  width: 100%;
  min-height: 78px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--orange);
  color: white;

  font-size: 20px;
  font-weight: 800;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand strong span {
  color: var(--orange);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-header nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

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

.site-header nav .signup {
  padding: 11px 20px;
  border-radius: 999px;

  background: var(--orange);
  color: white;
}

.site-header nav .signup:hover {
  background: var(--orange-dark);
  color: white;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 80px 20px 70px;
  background:
    radial-gradient(
      circle at top right,
      rgba(244, 123, 32, 0.08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #fffaf5 0%,
      #ffffff 100%
    );
}

.hero-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -2px;
}

.subtitle {
  margin: 20px 0 40px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

/* =========================================================
   SEARCH CARD
   ========================================================= */

.search-card {
  width: 100%;
  padding: 20px;

  display: grid;
  grid-template-columns:
    minmax(180px, 1fr)
    48px
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    180px;

  align-items: end;
  gap: 12px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;

  box-shadow: var(--shadow);
  text-align: left;
}

.search-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-card label span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.search-card select,
.search-card input {
  width: 100%;
  min-height: 52px;

  padding: 0 14px;

  border: 1px solid #dfe3e9;
  border-radius: 12px;

  background: white;
  color: var(--text);

  outline: none;
}

.search-card select:focus,
.search-card input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.12);
}

.swap {
  width: 48px;
  height: 48px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: white;
  color: var(--orange);

  font-size: 22px;
  font-weight: 700;
}

.swap:hover {
  background: var(--orange);
  color: white;
}

.search-btn {
  min-height: 52px;

  border: none;
  border-radius: 12px;

  background: var(--orange);
  color: white;

  font-weight: 800;
  font-size: 15px;
}

.search-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.demo-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.routes,
.bus-results {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
}

/* =========================================================
   POPULAR ROUTES
   ========================================================= */

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-card {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: white;
  color: var(--navy);

  box-shadow: 0 5px 20px rgba(8, 43, 92, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 123, 32, 0.4);
  box-shadow: var(--shadow);
}

.route-card span {
  color: var(--orange);
  font-size: 22px;
}

/* =========================================================
   BUS RESULTS
   ========================================================= */

.bus-results {
  padding-top: 55px;
  padding-bottom: 90px;
}

/*
   IMPORTANT:
   This is the container that prevents the buses
   from sticking to the extreme left.
*/

#bus-results-list,
.bus-results-list {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================================================
   BUS CARD
   ========================================================= */

.bus-card {
  width: 100%;
  min-height: 190px;

  padding: 24px;

  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;

  background: white;

  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow: 0 8px 28px rgba(8, 43, 92, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.bus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 123, 32, 0.35);
  box-shadow: 0 14px 35px rgba(8, 43, 92, 0.12);
}

/* Operator */

.bus-operator {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bus-operator small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bus-operator h3 {
  margin: 0;

  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

/* Bus type */

.bus-type {
  color: var(--muted);
  font-size: 14px;
}

.bus-price {
  margin-top: 8px;

  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

/* Journey */

.bus-journey {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bus-time {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

.bus-place {
  color: var(--text);
  font-size: 14px;
}

.bus-duration {
  color: var(--muted);
  font-size: 13px;
}

/* Seats */

.bus-seats {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

/* Button */

.book-seat {
  min-width: 120px;
  min-height: 44px;

  padding: 0 18px;

  border: none;
  border-radius: 10px;

  background: var(--orange);
  color: white;

  font-weight: 800;
  font-size: 14px;
}

.book-seat:hover {
  background: var(--orange-dark);
}

/* =========================================================
   EMPTY RESULTS
   ========================================================= */

.empty-results {
  width: 100%;
  padding: 55px 25px;

  text-align: center;

  background: var(--soft);
  border: 1px dashed #d8dde5;
  border-radius: 18px;
}

.empty-results h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.empty-results p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 45px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  background: var(--navy);
  color: white;

  text-align: center;
}

footer strong {
  font-size: 20px;
  letter-spacing: 1px;
}

footer span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* =========================================================
   TABLET — iPad
   ========================================================= */

@media (max-width: 1024px) {

  .site-header {
    padding: 14px 4%;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 13px;
  }

  .search-card {
    grid-template-columns: 1fr 48px 1fr;
  }

  .search-card label:nth-of-type(3) {
    grid-column: 1 / 2;
  }

  .search-btn {
    grid-column: 2 / 4;
  }

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

  .bus-card {
    grid-template-columns: 1fr 1fr;
  }

  .bus-action {
    display: flex;
    justify-content: flex-end;
  }
}

/* =========================================================
   MOBILE — Phones
   ========================================================= */

@media (max-width: 700px) {

  .site-header {
    min-height: auto;
    padding: 13px 18px;

    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    position: relative;
  }

  .brand {
    justify-content: center;
  }

  .site-header nav {
    width: 100%;

    display: flex;
    justify-content: flex-start;

    overflow-x: auto;
    padding-bottom: 3px;

    gap: 18px;

    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    font-size: 13px;
  }

  .site-header nav .signup {
    padding: 9px 16px;
  }

  /* HERO */

  .hero {
    padding: 55px 16px 45px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
    letter-spacing: -1.5px;
  }

  .subtitle {
    margin-bottom: 28px;
    font-size: 18px;
  }

  /* SEARCH */

  .search-card {
    padding: 16px;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    gap: 12px;

    border-radius: 18px;
  }

  .swap {
    align-self: center;
    transform: rotate(90deg);
  }

  .search-btn {
    width: 100%;
  }

  /* SECTIONS */

  .routes,
  .bus-results {
    width: min(100% - 28px, var(--container));
    padding: 55px 0;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p:last-child {
    font-size: 14px;
  }

  /* ROUTES */

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

  .route-card {
    min-height: 70px;
  }

  /* BUS RESULTS */

  #bus-results-list,
  .bus-results-list {
    width: 100%;
    margin: 0 auto;
    gap: 14px;
  }

  .bus-card {
    width: 100%;

    padding: 20px;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    gap: 17px;

    border-radius: 17px;
  }

  .bus-operator h3 {
    font-size: 19px;
  }

  .bus-price {
    margin-top: 5px;
  }

  .bus-journey {
    padding: 14px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .bus-action {
    width: 100%;
  }

  .book-seat {
    width: 100%;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

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

  .brand strong {
    font-size: 18px;
  }

  .routes,
  .bus-results {
    width: calc(100% - 22px);
  }

  .bus-card {
    padding: 17px;
  }

  .section-heading h2 {
    font-size: 33px;
  }
}
/* =========================================================
   JANBAHON — SEAT SELECTION
   ========================================================= */

.seat-selection {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 80px 0 100px;

  display: none;
}

.seat-selection.active {
  display: block;
}


/* Main layout */

.seat-layout-container {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(280px, 360px);

  justify-content: center;

  gap: 40px;
  align-items: start;
}


/* =========================================================
   BUS SEAT AREA
   ========================================================= */

.seat-layout {
  width: 100%;

  padding: 28px;

  background: #f7f8fa;

  border: 1px solid #e2e6eb;
  border-radius: 28px;

  box-shadow: 0 12px 35px rgba(8, 43, 92, 0.08);
}


/* Driver */

.driver-area {
  width: 100%;
  max-width: 180px;

  margin: 0 auto 30px;

  padding: 13px;

  text-align: center;

  border: 1px solid #d7dce3;
  border-radius: 12px;

  background: white;

  color: #6d7788;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}


/* Seat grid */

.seat-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(45px, 1fr))
    40px
    repeat(2, minmax(45px, 1fr));

  gap: 12px;

  max-width: 390px;

  margin: 0 auto;
}


/* Seat */

.seat {
  min-width: 0;
  aspect-ratio: 1 / 1;

  border: 1px solid #d7dde5;
  border-radius: 10px;

  background: white;

  color: #193454;

  font-size: 13px;
  font-weight: 800;

  transition: 0.15s ease;
}


/* Aisle */

.seat.aisle {
  visibility: hidden;
  pointer-events: none;
}


/* Available */

.seat.available:hover {
  border-color: var(--orange);
  background: #fff4eb;

  transform: translateY(-2px);
}


/* Selected */

.seat.selected {
  background: var(--orange);
  border-color: var(--orange);

  color: white;

  box-shadow: 0 5px 15px rgba(244, 123, 32, 0.25);
}


/* Occupied */

.seat.occupied {
  background: #dfe3e8;
  border-color: #dfe3e8;

  color: #8a929e;

  cursor: not-allowed;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.seat-summary {
  padding: 26px;

  background: white;

  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow: 0 8px 28px rgba(8, 43, 92, 0.07);
}

.seat-summary h3 {
  margin: 0 0 10px;

  color: var(--navy);

  font-size: 20px;
}

#seat-route {
  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}

.summary-divider {
  height: 1px;

  margin: 22px 0;

  background: var(--border);
}


/* Legend */

.seat-legend {
  display: flex;
  flex-direction: column;

  gap: 12px;

  color: #586579;

  font-size: 13px;
}

.seat-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-seat {
  width: 18px;
  height: 18px;

  display: inline-block;

  border-radius: 5px;

  border: 1px solid #d7dde5;

  background: white;
}

.legend-seat.selected {
  background: var(--orange);
  border-color: var(--orange);
}

.legend-seat.occupied {
  background: #dfe3e8;
  border-color: #dfe3e8;
}


/* Selected seat */

.selected-seat-box {
  margin-top: 25px;
  padding: 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--soft);

  border-radius: 12px;
}

.selected-seat-box span {
  color: var(--muted);
  font-size: 13px;
}

.selected-seat-box strong {
  color: var(--navy);
}


/* Fare */

.seat-fare {
  margin-top: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seat-fare span {
  color: var(--muted);
}

.seat-fare strong {
  color: var(--navy);
  font-size: 23px;
}


/* Continue */

.continue-seat {
  width: 100%;

  min-height: 50px;

  margin-top: 24px;

  border: none;
  border-radius: 12px;

  background: var(--orange);
  color: white;

  font-size: 15px;
  font-weight: 800;
}

.continue-seat:hover:not(:disabled) {
  background: var(--orange-dark);
}

.continue-seat:disabled {
  background: #d9dde3;
  color: #89919c;

  cursor: not-allowed;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .seat-layout-container {
    grid-template-columns: 1fr;

    max-width: 620px;

    margin: 0 auto;
  }

  .seat-summary {
    width: 100%;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .seat-selection {
    width: calc(100% - 28px);

    padding: 55px 0 70px;
  }

  .seat-layout {
    padding: 20px 12px;

    border-radius: 20px;
  }

  .seat-grid {
    grid-template-columns:
      repeat(2, minmax(36px, 1fr))
      25px
      repeat(2, minmax(36px, 1fr));

    gap: 8px;

    max-width: 330px;
  }

  .seat {
    font-size: 11px;

    border-radius: 8px;
  }

  .seat-summary {
    padding: 20px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .seat-grid {
    grid-template-columns:
      repeat(2, minmax(31px, 1fr))
      20px
      repeat(2, minmax(31px, 1fr));

    gap: 6px;
  }

  .seat {
    font-size: 10px;
  }
}
