/* =========================
   Restore Default Table Design
   ========================= */
.location-near-windshield-replacement-container .table-content {
  margin: 0;
}

.location-near-windshield-replacement-table-wrapper {
  background: var(--nv-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 1000px;
  margin: auto;
}

.location-near-windshield-replacement-heading {
  text-align: center;
  color: var(--nv-blue);
}

.see-more-btn {
  padding: var(--space-md);
  background-color: var(--nv-orange);
  color: var(--nv-white);
  width: 100%;
  border: 0px;
  cursor: pointer;
}

.table-content {
  margin: var(--space-md) 0px;
  display: grid;
  place-items: center;
}

.location-near-windshield-replacement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.location-near-windshield-replacement-table-head th {
  background-color: var(--nv-blue);
  color: var(--text-color-light);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 14px;
  border: 1px solid var(--font-color);
  text-align: center;
}

.location-near-windshield-replacement-table-body td {
  background-color: var(--nv-white);
  color: var(--text-color);
  padding: 12px;
  border: 1px solid var(--font-color);
  vertical-align: top;
  line-height: 1.5;
}

.location-near-windshield-replacement-link {
  color: var(--nv-blue);
  font-weight: 700;
  text-decoration: none;
}

.location-near-windshield-replacement-link:hover {
  text-decoration: underline;
}

.location-near-windshield-replacement-popular-car-pages a {
  color: var(--nv-blue);
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
}

.location-near-windshield-replacement-popular-car-pages a:hover {
  text-decoration: underline;
  color: var(--nv-orange);
}

.location-near-windshield-replacement-estimate-quote {
  text-align: center;
  font-weight: 700;
  color: var(--nv-green);
}

/* Only show first 4 rows by default */
.hidden-row {
  display: none !important;
}

/* =========================
   Enhanced Modal Card Style
   ========================= */
.see-more-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  /* darker backdrop */
  z-index: 9999;
  padding: 100px 20px;
  overflow-y: auto;
}

/* Modal content as clean card */
.see-more-modal-content {
  background: var(--nv-white);
  border-radius: 12px;
  max-width: 1000px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Scrollable inner area */
.see-more-modal-scroll {
  max-height: 70vh;
  /* control scroll height */
  overflow-y: auto;
  padding: 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Optional: make scrollbar subtle */
.see-more-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.see-more-modal-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.see-more-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Close button inside card */
.see-more-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2.5rem;
  color: var(--nv-blue);
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.see-more-close:hover {
  color: var(--nv-orange);
}

/* Header area in modal */
.see-more-modal-header {
  background: var(--nv-blue);
  color: var(--nv-white);
  text-align: center;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Table inside modal scroll */
.see-more-modal-scroll table {
  width: 100%;
  border-collapse: collapse;
}

.see-more-modal-scroll th,
.see-more-modal-scroll td {
  border: 1px solid var(--font-color);
  padding: 10px;
  vertical-align: top;
  font-size: 1.6rem;
}

.see-more-modal-scroll th {
  background-color: var(--nv-blue);
  color: var(--text-color-light);
  text-align: center;
}


/* =========================
   ✅ RESPONSIVE ADJUSTMENTS
   ========================= */
@media (max-width: 991px) {
  .location-near-windshield-replacement-table-wrapper {
    max-width: 95%;
  }

  .location-near-windshield-replacement-table-head th {
    font-size: 1.6rem;
    padding: 10px;
  }

  .location-near-windshield-replacement-table-body td {
    font-size: 1.4rem;
    padding: 10px;
  }

  .see-more-modal-content {
    max-width: 90%;
  }
}

/* =========================
   ✅ MOBILE VIEW FIX
   ========================= */
@media (max-width: 768px) {
  .location-near-windshield-replacement-heading {
    text-align: left;
  }

  /* Make wrapper responsive */
  .location-near-windshield-replacement-table-wrapper {
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
    max-width: 100%;
  }

  /* Make the table look like cards per row on small screens */
  .location-near-windshield-replacement-table,
  .see-more-modal-scroll table {
    border: 0;
    width: 100%;
  }

  .location-near-windshield-replacement-table thead {
    display: none;
    /* Hide headers */
  }

  .location-near-windshield-replacement-table tr,
  .see-more-modal-scroll tr {
    display: block;
    background: var(--nv-white);
    margin-bottom: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .location-near-windshield-replacement-table td,
  .see-more-modal-scroll td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
  }

  .location-near-windshield-replacement-table td:last-child,
  .see-more-modal-scroll td:last-child {
    border-bottom-color: var(--font-color) !important;
  }

  /* Add labels to each cell for clarity */
  .location-near-windshield-replacement-table td::before,
  .see-more-modal-scroll td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--nv-blue);
    flex: 1 0 auto;
    text-align: left;
    padding-right: 10px;
  }

  /* Specific spacing fixes */
  .see-more-btn {
    font-size: 1.4rem;
    padding: 12px;
    border-radius: 8px;
  }

  .see-more-modal-scroll {
    padding: 20px;
  }

  .see-more-modal-header {
    font-size: 1.6rem;
  }

  .see-more-close {
    font-size: 2rem;
  }

  .location-near-windshield-replacement-table td:first-child {
    border-radius: 8px 8px 0 0;
  }

  .location-near-windshield-replacement-table td:last-child {
    border-radius: 0 0 8px 8px;
  }

}

@media (max-width: 480px) {

  .location-near-windshield-replacement-table td * {
    flex: 1;
  }

  .location-near-windshield-replacement-table td::before, .see-more-modal-scroll td::before {
    max-width: 30%;
  }
}