/* ======================================================
   T&R LOCAL RESOURCES PAGE — CLEAN VERSION
====================================================== */

html {
  scroll-behavior: smooth;
}

.local-resources-page {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 191, 255, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 42%,
      rgba(156, 255, 71, 0.05),
      transparent 30%
    ),
    #07090c;

  color: #fff;
}

#local-vendors,
#local-resources,
#myrtle-beach-unlocked {
  scroll-margin-top: 80px;
}


/* ======================================================
   NAVIGATION
====================================================== */

.lr-header {
  width: 100%;

  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(7, 9, 12, 0.96);

  border-bottom: 2px solid #00bfff;

  box-shadow:
    0 3px 18px rgba(0, 191, 255, 0.13);
}

.lr-nav {
  width: 100%;
  min-height: 58px;

  padding: 0 28px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lr-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.lr-logo img {
  width: 64px;
  height: 40px;

  display: block;

  object-fit: contain;
}

.lr-nav-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 9px;
}

.lr-home-button,
.lr-explore-button {
  min-height: 36px;

  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0, 191, 255, 0.5);
  border-radius: 8px;

  background: rgba(0, 191, 255, 0.03);

  color: #00bfff;

  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.7px;

  text-decoration: none;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow:
    0 0 10px rgba(0, 191, 255, 0.08);
}

.lr-home-button:hover,
.lr-explore-button:hover {
  border-color: #00bfff;

  background: rgba(0, 191, 255, 0.09);

  box-shadow:
    0 0 14px rgba(0, 191, 255, 0.23);
}


/* ======================================================
   EXPLORE MENU
====================================================== */

.lr-explore {
  position: relative;
}

.lr-explore-button {
  gap: 7px;
}

.lr-explore-menu {
  display: none;

  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  width: 220px;

  padding: 8px;

  border: 1px solid #00bfff;
  border-radius: 12px;

  background: rgba(8, 11, 15, 0.98);

  box-shadow:
    0 0 22px rgba(0, 191, 255, 0.2);

  z-index: 2000;
}

.lr-explore-menu.open {
  display: block;
}

.lr-explore-menu a {
  display: block;

  padding: 11px 12px;

  border-radius: 7px;

  color: #fff;

  font-size: 0.82rem;
  font-weight: 700;

  text-decoration: none;
}

.lr-explore-menu a:hover {
  color: #9cff47;

  background:
    rgba(156, 255, 71, 0.06);
}


/* ======================================================
   HERO
====================================================== */

.lr-hero {
  max-width: 900px;

  margin: 0 auto;

  padding:
    88px 22px
    58px;

  text-align: center;
}

.lr-eyebrow,
.lr-small-label {
  display: block;

  color: #9cff47;

  font-size: 0.76rem;
  font-weight: 900;

  letter-spacing: 1.3px;
}

.lr-hero h1 {
  max-width: 650px;

  margin:
    9px auto
    22px;

  color: #fff;

  font-size:
    clamp(2.2rem, 6vw, 4.2rem);

  line-height: 0.95;

  letter-spacing: -1px;
}

.lr-hero h1 em {
  display: block;

  margin-top: 6px;

  color: #00bfff;

  font-style: italic;

  text-shadow:
    0 0 13px rgba(0, 191, 255, 0.4);
}

.lr-hero > p {
  max-width: 610px;

  margin:
    0 auto
    34px;

  color: #e9edf0;

  font-size: 0.97rem;

  line-height: 1.6;
}


/* ======================================================
   HERO ACTION LAYOUT
====================================================== */

.lr-hero-actions {
  max-width: 920px;

  margin: 34px auto 0;

  display: grid;

  grid-template-columns:
    1fr
    0.85fr;

  gap: 16px;

  align-items: stretch;
}

.lr-main-choices {
  display: grid;

  grid-template-columns: 1fr;

  gap: 13px;

  margin: 0;
}

.lr-choice {
  min-height: 76px;

  padding: 12px 20px;

  display: flex;
  align-items: center;

  gap: 16px;

  border-radius: 15px;

  text-align: left;

  text-decoration: none;

  background:
    rgba(10, 13, 17, 0.84);

  transition: 0.2s ease;
}

.lr-choice-green {
  border: 2px solid #9cff47;

  box-shadow:
    0 0 14px rgba(156, 255, 71, 0.12);
}

.lr-choice-blue {
  border: 2px solid #00bfff;

  box-shadow:
    0 0 14px rgba(0, 191, 255, 0.12);
}

.lr-choice:hover {
  transform: translateY(-2px);
}

.lr-choice-green:hover {
  box-shadow:
    0 0 20px rgba(156, 255, 71, 0.24);
}

.lr-choice-blue:hover {
  box-shadow:
    0 0 20px rgba(0, 191, 255, 0.24);
}

.lr-choice-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  font-size: 1.5rem;
}

.lr-choice strong {
  display: block;

  font-size: 1rem;
}

.lr-choice-green strong {
  color: #9cff47;
}

.lr-choice-blue strong {
  color: #00bfff;
}

.lr-choice small {
  display: block;

  margin-top: 3px;

  color: #fff;

  font-size: 0.75rem;
}


/* ======================================================
   MYRTLE BEACH UNLOCKED
====================================================== */

.lr-unlocked-section {
  max-width: 1050px;

  margin: 0 auto;

  padding:
    8px 22px
    66px;
}

.lr-unlocked-card {
  padding: 20px 24px;

  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 20px;

  border: 1px solid rgba(0, 191, 255, 0.75);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(0, 191, 255, 0.06),
      rgba(156, 255, 71, 0.03)
    );

  box-shadow:
    0 0 20px rgba(0, 191, 255, 0.1);
}

.lr-unlocked-hero {
  height: 100%;
  min-height: 175px;

  display: flex;
  flex-direction: column;

  align-items: flex-start;
  justify-content: center;

  text-align: left;
}

.lr-unlocked-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #9cff47;
  border-radius: 13px;

  font-size: 1.7rem;

  box-shadow:
    0 0 12px rgba(156, 255, 71, 0.15);
}

.lr-unlocked-hero .lr-unlocked-icon {
  margin-bottom: 12px;
}

.lr-unlocked-copy h2 {
  margin: 3px 0 6px;

  color: #00bfff;

  font-size: 1.45rem;
}

.lr-unlocked-copy p {
  max-width: 570px;

  margin: 0;

  color: #e7ebee;

  font-size: 0.85rem;

  line-height: 1.5;
}

.lr-unlocked-button {
  min-height: 42px;

  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #9cff47;
  border-radius: 8px;

  color: #9cff47;

  font-size: 0.78rem;
  font-weight: 900;

  text-decoration: none;

  white-space: nowrap;

  background:
    rgba(156, 255, 71, 0.04);
}

.lr-unlocked-button:hover {
  box-shadow:
    0 0 14px rgba(156, 255, 71, 0.2);

  background:
    rgba(156, 255, 71, 0.1);
}

.lr-unlocked-hero .lr-unlocked-button {
  margin-top: 16px;
}


/* ======================================================
   SECTION HEADINGS
====================================================== */

.lr-section {
  max-width: 1180px;

  margin: 0 auto;

  padding:
    68px 22px
    74px;
}

.lr-section-heading {
  max-width: 700px;

  margin:
    0 auto
    28px;

  text-align: center;
}

.lr-section-heading h2 {
  margin: 6px 0 8px;

  color: #fff;

  font-size:
    clamp(2rem, 4vw, 3.2rem);

  line-height: 1;
}

.lr-section-heading h2.blue-heading {
  color: #00bfff;

  text-shadow:
    0 0 13px rgba(0, 191, 255, 0.3);
}

.lr-section-heading p {
  max-width: 620px;

  margin: auto;

  color: #e7eaec;

  font-size: 0.9rem;

  line-height: 1.5;
}


/* ======================================================
   FILTER BUTTONS
====================================================== */

.lr-filter-bar {
  max-width: 900px;

  margin:
    0 auto
    30px;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 9px;
}

.lr-filter {
  min-height: 45px;

  padding: 7px 10px;

  border:
    1px solid rgba(255,255,255,0.17);

  border-radius: 8px;

  background:
    rgba(255,255,255,0.025);

  color: #fff;

  font-family: inherit;

  font-size: 0.78rem;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.vendor-filter.active {
  color: #9cff47;

  border-color: #9cff47;

  background:
    rgba(156, 255, 71, 0.05);

  box-shadow:
    0 0 14px rgba(156, 255, 71, 0.18);
}

.resource-filter.active {
  color: #00bfff;

  border-color: #00bfff;

  background:
    rgba(0, 191, 255, 0.05);

  box-shadow:
    0 0 14px rgba(0, 191, 255, 0.18);
}

.lr-filter:hover {
  transform: translateY(-1px);
}


/* ======================================================
   HIDDEN FILTERED CARDS
====================================================== */

.vendor-card[hidden],
.resource-card[hidden] {
  display: none !important;
}


/* ======================================================
   VENDOR + RESOURCE GRIDS
====================================================== */

.vendor-grid,
.resource-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(220px, 260px));

  gap: 18px;

  justify-content: center;

  align-items: stretch;
}

.vendor-card,
.resource-card {
  width: 100%;

  min-width: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border-radius: 15px;

  background:
    rgba(10, 13, 17, 0.88);

  transition: 0.2s ease;
}

.vendor-card {
  border:
    1px solid rgba(156, 255, 71, 0.72);

  box-shadow:
    0 0 10px rgba(156, 255, 71, 0.08);
}

.resource-card {
  border:
    1px solid rgba(0, 191, 255, 0.68);

  box-shadow:
    0 0 10px rgba(0, 191, 255, 0.08);
}

.vendor-card:hover,
.resource-card:hover {
  transform: translateY(-2px);
}


/* ======================================================
   ALL CARD IMAGES
====================================================== */

.vendor-image,
.resource-image,
.vendor-image-placeholder,
.resource-image-placeholder {
  width: 100%;
  height: 165px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border-bottom:
    1px solid rgba(255,255,255,0.06);

  background:
    linear-gradient(
      135deg,
      rgba(0, 191, 255, 0.08),
      rgba(156, 255, 71, 0.04)
    );
}

.vendor-image img,
.resource-image img,
.vendor-image-placeholder img,
.resource-image-placeholder img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;
}


/* ======================================================
   RAPID TRANSIT + 888 TOWS
   MATCH THEIR IMAGE HEIGHTS
====================================================== */

.vendor-card[data-vendor-category="towing"] .vendor-image {
  height: 170px;

  background: #fff;
}

/* Rapid Transit fills the frame */
.vendor-card[data-vendor-category="towing"]:not(.vendor-888)
.vendor-image img {
  object-fit: cover;
  object-position: center;
}

/* 888 logo stays fully visible */
.vendor-card.vendor-888 .vendor-image img {
  object-fit: contain;
  object-position: center;

  background: #fff;

  padding: 12px;

  box-sizing: border-box;
}


/* ======================================================
   COLLISION CARD / MPT
====================================================== */

.vendor-card[data-vendor-category="collision"]
.vendor-image {
  height: 170px;

  background: #fff;
}

.vendor-card[data-vendor-category="collision"]
.vendor-image img {
  object-fit: contain;

  object-position: center;

  padding: 10px;

  box-sizing: border-box;
}


/* ======================================================
   AD / PLACEHOLDER RESOURCE CARDS
====================================================== */

.resource-card.resource-ad {
  max-width: 260px;
}

.resource-card.resource-ad .resource-image {
  height: 165px;

  background: #071017;
}

.resource-card.resource-ad .resource-image img {
  object-fit: cover;

  object-position: center;

  padding: 0;
}


/* ======================================================
   CARD BODY
====================================================== */

.vendor-card-body,
.resource-card-body {
  flex: 1;

  padding: 15px;

  display: flex;
  flex-direction: column;
}

.vendor-icon,
.resource-icon {
  display: block;

  margin-bottom: 7px;

  font-size: 1.12rem;
}

.vendor-card h3 {
  margin: 0 0 8px;

  color: #9cff47;

  font-size: 1rem;
}

.resource-card h3 {
  margin: 0 0 8px;

  color: #00bfff;

  font-size: 1rem;
}

.vendor-card p,
.resource-card p {
  margin: 0 0 14px;

  color: #eceff1;

  font-size: 0.78rem;

  line-height: 1.5;
}

.vendor-location,
.resource-location {
  margin-top: auto;

  margin-bottom: 12px;

  color: #fff;

  font-size: 0.72rem;
  font-weight: 700;
}


/* ======================================================
   CARD BUTTONS
====================================================== */

.vendor-actions {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 7px;

  margin-top: auto;
}

.vendor-button,
.resource-button {
  min-height: 34px;

  padding: 6px 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #9cff47;
  border-radius: 6px;

  color: #fff;

  font-size: 0.7rem;
  font-weight: 800;

  text-align: center;

  text-decoration: none;
}

.vendor-button:hover {
  color: #9cff47;

  background:
    rgba(156, 255, 71, 0.06);
}

.vendor-button-blue,
.resource-button {
  border-color: #00bfff;
}

.vendor-button-blue:hover,
.resource-button:hover {
  color: #00bfff;

  background:
    rgba(0, 191, 255, 0.06);
}


/* ======================================================
   CALL T&R BOX
====================================================== */

.lr-help {
  max-width: 1060px;

  margin:
    10px auto
    70px;

  padding: 17px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border: 2px solid #9cff47;
  border-radius: 13px;

  background:
    rgba(10, 13, 17, 0.9);

  box-shadow:
    0 0 14px rgba(156, 255, 71, 0.11);
}

.lr-help > div {
  display: flex;
  align-items: center;

  gap: 15px;
}

.lr-help-icon {
  font-size: 1.55rem;
}

.lr-help strong {
  display: block;

  font-size: 0.9rem;
}

.lr-help small {
  display: block;

  margin-top: 3px;

  color: #dce2e7;

  font-size: 0.72rem;
}

.lr-call-button {
  min-width: 175px;

  padding: 9px 16px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  border: 1px solid #9cff47;
  border-radius: 7px;

  color: #9cff47;

  font-size: 0.78rem;
  font-weight: 900;

  text-decoration: none;
}

.lr-call-button small {
  margin-top: 1px;

  color: #fff;
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 960px) {

  .vendor-grid,
  .resource-grid {
    grid-template-columns:
      repeat(2, minmax(220px, 1fr));
  }

  .lr-filter-bar {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .lr-unlocked-card {
    grid-template-columns:
      auto
      1fr;
  }

  .lr-unlocked-button {
    grid-column:
      1 / -1;

    width: 100%;
  }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

  /* NAV — push logo + buttons closer to corners */

  .lr-nav {
    width: 100%;

    min-height: 54px;

    padding:
      0 10px;

    box-sizing: border-box;
  }

  .lr-logo {
    margin-right: auto;
  }

  .lr-logo img {
    width: 48px;
    height: 32px;
  }

  .lr-nav-actions {
    margin-left: auto;

    gap: 6px;
  }

  .lr-home-button,
  .lr-explore-button {
    min-height: 33px;

    padding:
      0 10px;

    font-size: 0.66rem;
  }

  .lr-explore-menu {
    width: 205px;

    right: 0;
  }


  /* HERO */

  .lr-hero {
    padding:
      70px 18px
      42px;
  }

  .lr-hero h1 {
    font-size: 2.25rem;
  }

  .lr-hero > p {
    font-size: 0.84rem;
  }

  .lr-hero-actions {
    display: flex;

    flex-direction: column;
  }

  .lr-main-choices {
    order: 1;

    gap: 11px;
  }

  .lr-choice {
    min-height: 68px;

    padding:
      10px 14px;
  }

  .lr-choice-icon {
    width: 43px;
    height: 43px;

    font-size: 1.3rem;
  }

  .lr-choice strong {
    font-size: 0.85rem;
  }

  .lr-choice small {
    font-size: 0.68rem;
  }


  /* UNLOCKED
     Remove outer box on mobile */

  .lr-unlocked-section {
    padding:
      0 14px
      48px;
  }

  .lr-unlocked-card,
  .lr-unlocked-hero {
    order: 2;

    min-height: auto;

    padding: 10px 0;

    grid-template-columns: 1fr;

    text-align: center;

    align-items: center;

    border: none;

    background: transparent;

    box-shadow: none;
  }

  .lr-unlocked-icon {
    margin: auto;
  }

  .lr-unlocked-copy p {
    font-size: 0.78rem;
  }


  /* SECTIONS */

  .lr-section {
    padding:
      52px 14px
      56px;
  }

  .lr-section-heading h2 {
    font-size: 2rem;
  }

  .lr-section-heading p {
    font-size: 0.8rem;
  }


  /* FILTERS */

  .lr-filter-bar {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 7px;
  }

  .lr-filter {
    min-height: 40px;

    padding: 5px;

    font-size: 0.67rem;
  }


  /* CARDS */

  .vendor-grid,
  .resource-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .vendor-card,
  .resource-card,
  .resource-card.resource-ad {
    width: 100%;

    max-width: 100%;
  }


  /* MOBILE IMAGE SIZES */

  .vendor-image,
  .resource-image,
  .vendor-image-placeholder,
  .resource-image-placeholder {
    height: 180px;
  }

  .vendor-card[data-vendor-category="towing"]
  .vendor-image {
    height: 180px;
  }

  .vendor-card.vendor-888
  .vendor-image {
    height: 190px;
  }

  .vendor-card.vendor-888
  .vendor-image img {
    object-fit: contain;

    padding: 14px;

    background: #fff;
  }

  .vendor-card[data-vendor-category="collision"]
  .vendor-image {
    height: 190px;
  }

  .resource-card.resource-ad
  .resource-image {
    height: 180px;
  }


  /* HELP */

  .lr-help {
    margin:
      5px 14px
      40px;

    padding: 15px;

    flex-direction: column;

    align-items: stretch;
  }

  .lr-call-button {
    width: 100%;
  }

}


/* ======================================================
   VERY SMALL PHONES
====================================================== */

@media (max-width: 390px) {

  .lr-filter-bar {
    grid-template-columns: 1fr;
  }

}    
/* =========================================================
   SHARED MOBILE NAV — SERVICE PAGES
   ========================================================= */

@media (max-width: 768px) {

  /* Service page header */
  .auto-page .nav-container,
  .diesel-page .nav-container,
  .fleet-page .nav-container {
    display: block !important;
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  /* Hide logo on service pages on mobile */
  .auto-page .nav-container > a:has(.logo),
  .diesel-page .nav-container > a:has(.logo),
  .fleet-page .nav-container > a:has(.logo) {
    display: none !important;
  }

  /* 2 × 2 navigation */
  .service-page-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  /* Individual buttons */
  .service-page-nav > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;

    border: 2px solid #00d9ff !important;
    border-radius: 10px !important;

    background: rgba(8, 15, 25, 0.8) !important;
    color: #00d9ff !important;

    text-align: center !important;
    text-decoration: none !important;
    font-weight: 700 !important;

    box-shadow:
      0 0 8px rgba(0, 217, 255, 0.65),
      inset 0 0 6px rgba(0, 217, 255, 0.08) !important;
  }
}