:root {
  --primary: #d84e55;
  --primary-dark: #b83d43;
  --dark: #1e293b;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --white: #fff;
  --loader-glow: rgba(216, 78, 85, 0.6);
}
* {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}
body {
  background-color: var(--light-bg);
  color: var(--dark);
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar {
  background: var(--white);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
}
.logo span span {
  color: var(--dark);
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-item {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-item:hover {
  color: var(--primary);
}
.login-btn {
  background: var(--dark);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}
.login-btn:hover {
  background: #000;
  transform: translateY(-1px);
}
.search-engine {
  background: var(--white);
  padding: 80px 0 100px;
  border-bottom: 1px solid #edf2f7;
}
.search-info {
  text-align: center;
  margin-bottom: 45px;
}
.search-info h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -1.5px;
}
.search-info p {
  font-size: 1.1rem;
  color: var(--gray);
}
.search-info .highlight {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(216, 78, 85, 0.1);
}
.search-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  max-width: 800px;
  margin: 0 auto;
}
.search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.input-box {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-box label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  margin-left: 4px;
}
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  border: 1px solid transparent;
  padding: 14px 16px;
  border-radius: 12px;
  transition: 0.3s;
}
.field:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(216, 78, 85, 0.1);
}
.field i {
  color: var(--primary);
  width: 18px;
}
.field input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
}
.swap-icon {
  margin-bottom: 12px;
  color: var(--gray);
  cursor: pointer;
  transition: 0.3s;
  padding: 8px;
}
.swap-icon:hover {
  color: var(--primary);
  transform: rotate(180deg);
}
.search-trigger {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 35px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.3s;
  height: 52px;
  margin-bottom: 2px;
}
.search-trigger:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 15px -3px rgba(216, 78, 85, 0.3);
}
.coverage-section {
  margin-top: -50px;
  padding-bottom: 60px;
}
.stats-card {
  background: var(--dark);
  color: #fff;
  padding: 35px;
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-item i {
  color: var(--primary);
  width: 35px;
  height: 35px;
}
.stat-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
}
.stat-info p {
  font-size: 0.85rem;
  color: #94a3b8;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}
.operators-box {
  margin-top: 40px;
  text-align: center;
}
.operators-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.op-tag {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}
.drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
}
.drawer.active {
  left: 0;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}
.drawer-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
  backdrop-filter: blur(4px);
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}
.menu-toggle {
  display: none;
  cursor: pointer;
}
@media (max-width: 850px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .search-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .swap-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -5px 0;
    transform: rotate(90deg);
    z-index: 5;
  }
  .search-trigger {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .stats-card {
    flex-direction: column;
    gap: 30px;
  }
  .stat-divider {
    display: none;
  }
  .coverage-section {
    margin-top: 30px;
  }
  .search-info h1 {
    font-size: 2.2rem;
  }
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  border: 1px solid #e2e8f0;
}
.dropdown.active {
  display: block;
}
.drop-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: 0.2s;
}
.drop-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}
.drop-item i {
  width: 16px;
  color: var(--gray);
}

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}
.close-results {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: 0.3s;
}
.close-results:hover {
  background: var(--primary);
  color: #fff;
}
.results-section {
  position: fixed;
  top: 72px; /* Header ki height */
  left: 0;
  width: 100%;
  height: calc(100vh - 72px); /* Baaki bachi screen */
  background: #f8fafc;
  overflow-y: auto; /* Sirf yahan scroll aayega */
  z-index: 900;
  padding: 20px 0 100px; /* Niche thoda extra padding taaki last card pura dikhe */
}

/* --- Modern Bus Card UI --- */
.bus-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
  transition: 0.3s;
}

.bus-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

/* Header: Vendor & Type */
.bus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vendor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bus-icon {
  color: var(--primary);
  width: 20px;
}

.vendor-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
}

.bus-type-tag {
  font-size: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

/* Body: Timings */
.timing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.time-node {
  display: flex;
  flex-direction: column;
}

.time-node .time {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.time-node .city {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Trip Path (Timeline) */
.trip-path {
  flex: 1;
  padding: 0 20px;
  text-align: center;
}

.duration {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.path-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.line {
  height: 2px;
  background: #e2e8f0;
  flex: 1;
  border-radius: 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
}

.dot.fill {
  background: var(--primary);
  border-color: var(--primary);
}

/* Footer: Route & Button */
.bus-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.route-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 60%;
}

.route-box i {
  width: 14px;
}

.details-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.details-btn:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 480px) {
  .time-node .time {
    font-size: 1.1rem;
  }
  .vendor-info h4 {
    font-size: 1rem;
  }
  .route-box {
    font-size: 0.7rem;
  }
}

/* --- FULL PAGE DETAILS SECTION --- */
.full-page-section {
  position: fixed;
  top: 72px; /* Navbar ke niche se shuru */
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: #f8fafc;
  z-index: 999;
  overflow-y: auto;
  display: none; /* JS se toggle hoga */
}

/* Sub-Nav Styles */
.details-sub-nav {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  border: none;
  background: #f1f5f9;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

/* --- Share Button Style (Right Side Alignment) --- */
.share-nav-btn {
  margin-left: auto; /* Ye magic hai, isse button right end mein chala jayega */
  border: none;
  background: transparent; /* Top nav mein transparent zyada clean lagta hai */
  color: #64748b;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.share-nav-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.nav-bus-info strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  text-transform: uppercase;
}

.nav-bus-info small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Icon size control karne ke liye (Optionally) */
.share-nav-btn svg, .back-btn svg {
  width: 20px;
  height: 20px;
}

/* Detail Container */
.detail-container {
  padding: 20px 15px 100px;
  max-width: 800px;
  margin: 0 auto;
}

/* Journey Main Card */
.journey-main-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  margin-bottom: 25px;
}

.j-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.vendor-label {
  font-weight: 800;
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Timeline Layout */
.j-timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.j-node {
  text-align: left;
}
.j-node h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}
.j-node p {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}

.j-duration-block {
  flex: 1;
  text-align: center;
  padding: 0 15px;
}

.j-duration-block span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 20px;
}

.j-path-visual {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.j-path-visual .line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}
.j-path-visual .dot {
  width: 10px;
  height: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}
.j-path-visual .dot.fill {
  background: var(--primary);
  border-color: var(--primary);
}

/* Info Pills */
.j-footer-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.info-pill {
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f1f5f9;
}

/* Table Section */
.schedule-section {
  margin-top: 30px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-wrapper {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table thead {
  background: #f8fafc;
}
.schedule-table th {
  padding: 15px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}
.schedule-table td strong {
  color: #0f172a;
}

/* Proceed Button Footer */
.details-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 15px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  z-index: 100;
}

.proceed-btn {
  width: 100%;
  max-width: 500px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.proceed-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .j-node h2 {
    font-size: 1.4rem;
  }
  .j-node p {
    font-size: 0.8rem;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
  .detail-container {
    padding-bottom: 120px;
  }
}

/* Table Section Wrapper */
.schedule-section {
  margin-top: 30px;
}

.table-wrapper {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);

  /* Horizontal Scroll Logic */
  width: 100%;
  overflow-x: auto; /* X-axis scroll enable */
  overflow-y: hidden; /* Y-axis scroll disable */
  -webkit-overflow-scrolling: touch; /* Smooth scroll for mobile */
}

.schedule-table {
  width: 100%;
  min-width: 500px; /* Force minimum width taaki scroll trigger ho */
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  padding: 10px 15px; /* Pehle 15px tha, ab height kam kar di */
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem; /* Header thoda chota */
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-table td {
  padding: 8px 15px; /* Padding kafi kam kar di (8px top-bottom) */
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-size: 0.95rem; /* Font bada hi hai par space kam lega */
  font-weight: 500;
  white-space: nowrap;
}

.schedule-table tbody tr:hover {
  background-color: #fbfcfd;
}
.schedule-table td.active strong {
  color: var(--primary); /* City name ko primary color de diya */
  font-weight: 700;
}
/* Scrollbar ko thoda sundar banate hain */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Highlighted Row Style */
.highlight-row {
  background-color: rgba(
    216,
    78,
    85,
    0.08
  ) !important; /* Halka primary color ka shade */
  border-left: 4px solid var(--primary); /* Side mein ek moti line */
}

.highlight-row td {
  color: var(--primary) !important;
  font-weight: 600;
}

.highlight-row td strong {
  color: var(--primary) !important;
}

/* Pin icon inside table */
.table-pin {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  color: var(--primary);
}

/* Timeline Column Width */
.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 40px;
  padding: 0;
  text-align: center;
}

.timeline-cell {
  position: relative;
  vertical-align: middle;
}

.timeline-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px; /* Row ki height ke hisab se adjust karein */
}

/* The Vertical Line */
.timeline-wrapper::before {
  content: "";
  position: absolute;
  width: 2px;
  background: #e2e8f0; /* Halka grey line */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Adjustments for Start and End */
.line-start::before {
  top: 50%;
} /* Line dot se shuru hogi */
.line-end::before {
  bottom: 50%;
} /* Line dot pe khatam hogi */

/* The Dot */
.timeline-dot {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 2px solid white;
}

/* Highlighted Dot */
.active-dot {
  background: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(216, 78, 85, 0.2); /* Glow effect */
  transform: scale(1.2);
}

.highlight-row .timeline-wrapper::before {
  background: var(--primary); /* Line bhi thodi red ho jayegi */
  opacity: 0.3;
}

/* Full Screen Overlay */
.final-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px); /* Premium Blur */
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  transition: opacity 0.3s ease-in-out;
}

/* Glass Card Container */
.loader-glass-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 200px;
}

/* 1. Main Circular Spinner */
.main-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #f1f5f9;
  border-top: 4px solid var(--primary); /* Tera Red/Blue color */
  border-radius: 50%;
  animation: spinFinal 0.8s linear infinite;
}

/* 2. 3 Bouncing Dots */
.bounce-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.bounce-dots .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: bounceFinal 1.4s infinite ease-in-out both;
}

/* Animation Delays for Dots */
.bounce-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.bounce-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

/* Keyframes */
@keyframes spinFinal {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounceFinal {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Label Styling */
.loader-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 25px 20px;
    box-sizing: border-box;
    margin-top: auto; /* Agar flex container hai toh bottom pe push karega */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* Mobile First: Center and Stacked */
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.footer-tagline {
    color: #64748b;
    font-size: 0.9rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* --- Desktop Look (Tablet & Laptop) --- */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row; /* Side by side */
        justify-content: space-between; /* Ek left, ek right */
        text-align: left;
    }
}


.mini-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.mini-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db; /* BusDekho ka jo bhi primary color ho yahan dal do */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}