/* Luxiomer location articles */

.lm-location-article {
  max-width: 980px;
  margin: 0 auto;
}

.lm-location-article .lm-article-image {
  margin: 34px 0 30px;
}

.lm-location-article .lm-article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
}

.lm-location-article .lm-article-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.lm-location-article h1 {
  margin-bottom: 18px;
}

.lm-location-article h2 {
  scroll-margin-top: 120px;
}

.lm-location-article h3 {
  scroll-margin-top: 120px;
}

/* Left table of contents for location articles */

.lm-location-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 980px);
  gap: 36px;
  align-items: start;
  max-width: 1260px;
  margin: 0 auto;
}

.lm-location-layout .lm-location-article {
  max-width: 980px;
  margin: 0;
}

.lm-location-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 4px 0;
}

.lm-location-toc__inner {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 16px 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.lm-location-toc__title {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #222;
}

.lm-location-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lm-location-toc__link {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #555;
  text-decoration: none;
}

.lm-location-toc__link:hover,
.lm-location-toc__link.is-active {
  background: rgba(0,0,0,.055);
  color: #111;
}

@media (max-width: 1180px) {
  .lm-location-layout {
    display: block;
    max-width: 980px;
  }

  .lm-location-toc {
    position: relative;
    top: auto;
    max-height: none;
    margin-bottom: 24px;
  }

  .lm-location-toc__inner {
    border-radius: 16px;
  }
}

@media (max-width: 767px) {
  .lm-location-toc {
    display: none;
  }

  .lm-location-article .lm-article-image img {
    border-radius: 16px;
  }
}

/* Mobile fix: prevent sticky Woodmart header from overlapping location article title */
@media (max-width: 767px) {
  body.single-lm_location .main-page-wrapper,
  body.single-lm_location .site-content,
  body.single-lm_location .wd-content-layout,
  body.single-lm_location .container {
    scroll-margin-top: 90px;
  }

  body.single-lm_location .main-page-wrapper {
    padding-top: 78px;
  }

  body.single-lm_location .lm-location-article {
    padding-top: 10px;
  }

  body.single-lm_location .lm-location-article h1 {
    font-size: 36px;
    line-height: 1.12;
  }
}

/* Hide Woodmart post date badge on custom Location articles */
body.single-lm_location .wd-entry-meta,
body.single-lm_location .wd-post-date,
body.single-lm_location .post-date,
body.single-lm_location .entry-date,
body.single-lm_location .article-inner .entry-meta,
body.single-lm_location .meta-post-categories,
body.single-lm_location .wd-post-header .entry-meta {
  display: none !important;
}

/* If theme renders floating calendar date badge */
body.single-lm_location .wd-post-date.wd-style-with-bg,
body.single-lm_location .wd-post-date.wd-style-bordered,
body.single-lm_location .post-date.wd-style-with-bg,
body.single-lm_location .post-date.wd-style-bordered {
  display: none !important;
}

/* Desktop fix: prevent sticky Woodmart header from overlapping Location article content */
@media (min-width: 768px) {
  body.single-lm_location .main-page-wrapper {
    padding-top: 150px;
  }

  body.single-lm_location .lm-location-toc {
    top: 180px;
    max-height: calc(100vh - 210px);
  }

  body.single-lm_location .lm-location-article h2,
  body.single-lm_location .lm-location-article h3 {
    scroll-margin-top: 190px;
  }
}

/* Logged-in desktop has WP admin bar above the site header */
@media (min-width: 783px) {
  body.admin-bar.single-lm_location .main-page-wrapper {
    padding-top: 165px;
  }

  body.admin-bar.single-lm_location .lm-location-toc {
    top: 195px;
    max-height: calc(100vh - 225px);
  }

  body.admin-bar.single-lm_location .lm-location-article h2,
  body.admin-bar.single-lm_location .lm-location-article h3 {
    scroll-margin-top: 210px;
  }
}
