html {
  font-size: 14px;
}

.navbar-brand {
  min-width: 100px;
  min-height: 50px;
  margin: 0 auto 0 auto;
  padding-left:40px;
}

.navbar-brand img{
  max-height:60px;
  left:0px;
  top:0px;
}
.navbar-collapse{
  margin-top:15px;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .navbar-collapse {
    margin-top: 10px;
  }

  .navbar-brand img {
    position:absolute;
    left: 0px;
    top: 0px;
  }

  .navbar-brand {
    margin: 0px;
    padding-left: 40px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 80px; /* Increased for sticky cart footer */
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Lead Cards Styling */
.lead-card {
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  border: 1px solid #dee2e6;
}

.lead-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Selected card state - very subtle green background with strong border */
.lead-card-selected {
  background-color: #f0fdf9;
  border: 2px solid #20c997;
  box-shadow: 0 0.125rem 0.25rem rgba(32, 201, 151, 0.15);
}

/* Make card body clickable with cursor pointer */
.card-body-clickable {
  cursor: pointer;
}

.lead-card .data-indicators {
  font-size: 0.9rem;
  line-height: 1.8;
}

.lead-card .data-item {
  margin-bottom: 0.35rem;
}

.lead-card .data-item span {
  font-size: 1.1rem;
  margin-right: 0.35rem;
}

.lead-card .form-check {
  min-height: 1.5rem;
  margin-bottom: 0.5rem;
}

.lead-card .form-check-input {
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
  margin-top: 0;
  border: 2px solid #0d6efd;
}

.lead-card .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Mobile price display - prominent and eye-catching */
.mobile-price-display {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a3d62;
  text-align: right;
}

/* Contact indicators inline with dots separator */
.contact-indicators-inline {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Subtle badge styling - outline with muted tone */
.badge-outline-subtle {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border: 1px solid #6c757d;
  color: #6c757d;
  background-color: transparent;
  border-radius: 0.25rem;
}

/* Intent details toggle styling */
.intent-details-toggle {
  font-size: 0.875rem;
  color: #20c997;
  white-space: nowrap;
}

.intent-details-toggle:hover {
  color: #1aa179;
}

.intent-details-toggle i {
  transition: transform 0.2s ease-in-out;
  font-size: 0.75rem;
}

/* Intent summary with subtle left accent */
.intent-summary {
  padding: 0.5rem;
  padding-left: 0.75rem;
  background-color: transparent;
  border-left: 3px solid #20c997;
  border-radius: 0;
}

/* Sticky Cart Footer */
.cart-footer {
  position: fixed;
  bottom: 60px!important;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
  padding: 0.75rem 0;
  z-index: 1030;
  box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.cart-footer .btn {
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
  body {
    margin-bottom: 120px; /* More space for sticky footer on mobile with two rows */
  }

  .lead-card {
    font-size: 0.875rem;
  }

  .lead-card .data-indicators {
    font-size: 0.85rem;
  }

  .cart-footer {
    padding: 0.5rem 0;
    bottom: 0px !important;
  }

  .cart-footer .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    width: 48%; /* Two buttons side-by-side with space between */
  }
  footer{
    position: inherit!important;
  }

  #leadsSection .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  #leadsSection h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  #leadsSection .btn {
    margin-top: 0.5rem;
  }
  
  #leadsSection .d-flex.gap-2 {
    width: 100%;
    flex-direction: column !important;
  }
  
  #leadsSection .d-flex.gap-2 .btn {
    width: 100%;
  }
}

/* Tablet Responsive Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .lead-card .data-indicators {
    font-size: 0.875rem;
  }
}

/* Loading Indicator */
#loadingIndicator {
  min-height: 300px;
}

/* Pagination */
.pagination {
  flex-wrap: wrap;
}

.pagination .page-link {
  cursor: pointer;
}

/* Filter Card */
#filterCard .card-header {
  background-color: #f8f9fa;
}

#filterCard .card-header:hover {
  background-color: #e9ecef;
}

/* Ensure proper spacing for container-fluid */
.container-fluid {
  
}

/* Cart Offcanvas Styling */
:root {
  --cart-width: 400px;  /* Cart drawer width - adjust for theming/configuration */
}

#cartOffcanvas {
  width: var(--cart-width);
}

#cartOffcanvas .offcanvas-body {
  padding: 1rem;
}

#cartOffcanvas .cart-item {
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 0;
}

#cartOffcanvas .cart-item:last-child {
  border-bottom: none;
}

#cartOffcanvas .cart-item-details {
  font-size: 0.9rem;
}

#cartOffcanvas .cart-item-location {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#cartOffcanvas .cart-item-meta {
  color: #6c757d;
  font-size: 0.85rem;
}

#cartOffcanvas #cartFooterSection {
  background-color: #f8f9fa;
  padding: 1rem;
  margin: 0 -1rem -1rem;
}

#cartOffcanvas #cartTotalPrice {
  color: #198754;
  font-weight: 700;
}

/* Mobile full-screen cart */
@media (max-width: 576px) {
  #cartOffcanvas {
    width: 100vw;
  }
  
  #cartOffcanvas .offcanvas-body {
    padding: 0.75rem;
  }
  
  #cartOffcanvas .cart-item {
    padding: 0.5rem 0;
  }
}


/* Checkout */
#CartDetails .card-body .list-group{
  max-height:20vh;
}