/*
 * Refined presentation for the historic nearby index layout.
 * The selectors are scoped to this page so other templates remain unchanged.
 */
.nearby-index-page {
  background: #f6f7fb;
  color: #303642;
}

.nearby-index-page #header {
  position: relative;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 rgba(24, 27, 38, .08);
}

.nearby-index-page #header .header-row {
  min-height: 72px;
}

.nearby-index-page #header .logo img {
  width: auto;
  max-width: 152px;
  height: auto;
}

.nearby-index-page .primary-menu .navbar-nav > li > a,
.nearby-index-page .login-signup a {
  font-weight: 500;
}

.nearby-index-page .primary-menu .navbar-nav > li.active > a {
  color: #5b46aa;
}

.nearby-index-page .page-header {
  position: relative;
  overflow: hidden;
  padding: 3.15rem 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(129, 104, 223, .34), transparent 28%),
    linear-gradient(125deg, #17014c 0%, #261169 58%, #173e78 100%) !important;
}

.nearby-index-page .page-header::after {
  position: absolute;
  top: -72px;
  right: 7%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, .035),
    0 0 0 68px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.nearby-index-page .page-header .container {
  position: relative;
  z-index: 1;
}

.nearby-index-page .page-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.nearby-index-page .page-header .breadcrumb {
  color: rgba(255, 255, 255, .76);
}

.nearby-index-page .page-header .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.nearby-index-page .page-header .breadcrumb a:hover {
  color: #e5dcff;
}

.nearby-index-page .nearby-index-content {
  padding: 4.25rem 0 4.75rem;
  background:
    linear-gradient(rgba(247, 248, 252, .92), rgba(247, 248, 252, .98)),
    radial-gradient(circle at 8% 10%, rgba(91, 70, 170, .08), transparent 22%);
}

.nearby-index-page .nearby-index-row {
  justify-content: center;
}

.nearby-index-page .nearby-list-panel {
  width: 100%;
  max-width: 1050px;
}

.nearby-index-page .nearby-grid {
  row-gap: 1.15rem !important;
}

.nearby-index-page .nearby-card-col {
  display: flex;
}

.nearby-index-page .nearby-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #e3e5ed !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 22, 48, .055) !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.nearby-index-page .nearby-card-media {
  --visual-start: #604cb0;
  --visual-end: #2d73a5;
  --visual-glow: rgba(226, 218, 255, .34);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.6;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 78% 20%, var(--visual-glow), transparent 24%),
    linear-gradient(135deg, var(--visual-start), var(--visual-end));
}

.nearby-index-page .nearby-card-col:nth-child(5n + 2) .nearby-card-media {
  --visual-start: #b35f78;
  --visual-end: #7354a6;
  --visual-glow: rgba(255, 224, 214, .32);
}

.nearby-index-page .nearby-card-col:nth-child(5n + 3) .nearby-card-media {
  --visual-start: #267d78;
  --visual-end: #3d689b;
  --visual-glow: rgba(194, 255, 228, .28);
}

.nearby-index-page .nearby-card-col:nth-child(5n + 4) .nearby-card-media {
  --visual-start: #b36d39;
  --visual-end: #7d4c85;
  --visual-glow: rgba(255, 235, 190, .3);
}

.nearby-index-page .nearby-card-col:nth-child(5n + 5) .nearby-card-media {
  --visual-start: #465d9e;
  --visual-end: #277d91;
  --visual-glow: rgba(196, 235, 255, .3);
}

.nearby-index-page .nearby-card-media > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.nearby-index-page .nearby-card-media > a::before {
  position: absolute;
  top: -48px;
  right: -32px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  content: "";
  box-shadow:
    -48px 82px 0 -54px rgba(255, 255, 255, .4),
    0 0 0 28px rgba(255, 255, 255, .035),
    0 0 0 58px rgba(255, 255, 255, .025);
  transition: transform .4s ease;
}

.nearby-index-page .nearby-card-media > a::after {
  position: absolute;
  right: -8%;
  bottom: -52%;
  left: -8%;
  height: 92%;
  border-radius: 50% 54% 0 0;
  background: rgba(17, 16, 48, .2);
  content: "";
  box-shadow:
    155px -28px 0 6px rgba(255, 255, 255, .075),
    -180px 18px 0 15px rgba(18, 14, 48, .09);
  transform: rotate(-3deg);
}

.nearby-index-page .nearby-card-visual-icon {
  position: absolute;
  z-index: 2;
  bottom: 1.35rem;
  left: 1.45rem;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 24px rgba(19, 12, 46, .18);
  font-size: 1.3rem;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: transform .25s ease, background-color .25s ease;
}

.nearby-index-page .nearby-card:hover .nearby-card-media > a::before {
  transform: translate(-6px, 5px) scale(1.04);
}

.nearby-index-page .nearby-card:hover .nearby-card-visual-icon {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .23);
}

.nearby-index-page .nearby-card::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  z-index: 3;
  background: linear-gradient(180deg, #725fc1, #3d78b7);
  content: "";
  transition: top .2s ease, bottom .2s ease;
}

.nearby-index-page .nearby-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: rgba(91, 70, 170, .28) !important;
  box-shadow: 0 14px 30px rgba(26, 22, 48, .11) !important;
}

.nearby-index-page .nearby-card:hover::before {
  top: 0;
  bottom: 0;
}

.nearby-index-page .nearby-card-body {
  display: flex;
  align-items: center;
  padding: 1.45rem 1.5rem 1.45rem 1.65rem !important;
}

.nearby-index-page .nearby-card-title {
  width: 100%;
  margin: 0;
  line-height: 1.4;
}

.nearby-index-page .nearby-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 48px;
  color: #28233b;
  font-weight: 600;
  text-decoration: none;
}

.nearby-index-page .nearby-card-link::after {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e2def1;
  border-radius: 50%;
  color: #604cb0;
  background: #f7f5fc;
  content: "→";
  font-size: 1.05rem;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.nearby-index-page .nearby-card-link:hover {
  color: #5843aa;
}

.nearby-index-page .nearby-card-link:hover::after {
  transform: translateX(2px);
  border-color: #604cb0;
  color: #fff;
  background: #604cb0;
}

.nearby-index-page .nearby-card-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(96, 76, 176, .24);
  outline-offset: 4px;
}

.nearby-index-page #footer {
  border-top: 1px solid #e6e7ec;
  background: #fff;
}

.nearby-index-page #footer > .section {
  border-bottom: 1px solid #ececf1;
  box-shadow: none !important;
}

.nearby-index-page #footer .featured-box-icon {
  color: #604cb0;
}

@media (max-width: 767.98px) {
  .nearby-index-page #header .header-row {
    min-height: 64px;
  }

  .nearby-index-page .page-header {
    padding: 2.25rem 0;
  }

  .nearby-index-page .page-header .breadcrumb {
    margin-top: .75rem;
  }

  .nearby-index-page .nearby-index-content {
    padding: 2.75rem 0 3.25rem;
  }

  .nearby-index-page .nearby-grid {
    row-gap: .9rem !important;
  }

  .nearby-index-page .nearby-card {
    min-height: 98px;
  }

  .nearby-index-page .nearby-card-media {
    aspect-ratio: 16 / 9;
  }

  .nearby-index-page .nearby-card-body {
    padding: 1.2rem 1.15rem 1.2rem 1.35rem !important;
  }

  .nearby-index-page .nearby-card-link::after {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nearby-index-page .nearby-card,
  .nearby-index-page .nearby-card::before,
  .nearby-index-page .nearby-card-media > a::before,
  .nearby-index-page .nearby-card-visual-icon,
  .nearby-index-page .nearby-card-link::after {
    transition: none;
  }
}
