/* Main container for the dynamic table */
.dynamic-location-table {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* Main heading */
.location-heading {
  text-align: center;
  font-size: 2rem;
  color: #004f85;
  margin-bottom: 30px;
  font-weight: bold;
}
.location-heading .highlight {
  color: #ff6600;
}

/* Desktop Table Styles */
.locations-table-desktop {
  display: block;
  overflow-x: auto;
}
.locations-table-desktop table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid black;
}
.locations-table-desktop th,
.locations-table-desktop td {
  text-align: center;
  border: 1px solid black;
  padding: 15px;
  vertical-align: middle;
}
.locations-table-desktop thead th {
  background-color: #46b8f3;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Shared link styles for car pages */
.popular-car-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.popular-car-links .popular-link {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #004f85;
  width: 100%;
}
.popular-car-links .popular-link:last-child {
  border-bottom: none;
}

/* Location link styling */
.table-location a .location-line-main,
.scroll-location .location-line-main {
  color: #004f85;
  font-size: 1rem;
  font-weight: bold;
}
.table-location a .location-line-sub,
.scroll-location .location-line-sub {
  color: #ff6600;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  display: inline-block;
}

/* --- Mobile Swiper Styles --- */
.locations-table-mobile {
  display: none;
}
.locations-table-mobile .swiper-container {
  padding: 30px 0;
}
.locations-table-mobile .swiper-slide {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 20px;
  text-align: center;
  width: 85%;
  box-sizing: border-box;
}
.locations-table-mobile .swiper-slide .popular-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  color: #004f85;
  text-decoration: none;
}
.locations-table-mobile .swiper-slide .popular-link:last-child {
  border-bottom: none;
}
.locations-table-mobile .scroll-price {
  font-weight: bold;
  color: #ff6600;
  margin-top: 10px;
}

/* --- Responsive Overrides --- */
@media screen and (max-width: 768px) {
  .locations-table-desktop {
    display: none;
  }
  .locations-table-mobile {
    display: block;
  }
  .location-heading {
    font-size: 1.5rem;
    padding: 0 15px;
  }
}
