/*
 * Post Location Card Section.
 * The :is() prefix beats the theme's global rule in assets/css/single.css:
 * section.single-post .section-inner .post-content * { ... }
 * The title is a normal post h2, so it keeps the post heading style.
 * Mobile: one card per row, stacked buttons. Desktop (768px+): two cards per row.
 */
:is(section.single-post .section-inner .post-content, body) .post-location-card-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__title {
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__card {
  min-width: 0;
  display: flex;
  flex-flow: column nowrap;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(108, 94, 21, 0.2);
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__map {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 200px;
  margin: 0;
  overflow: hidden;
  background: #eef0f2;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__map iframe,
:is(section.single-post .section-inner .post-content, body) .post-location-card-section__map-link,
:is(section.single-post .section-inner .post-content, body) .post-location-card-section__map-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__map-image {
  object-fit: cover;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__body {
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-flow: column nowrap;
  gap: 24px;
  margin: 0;
  padding: 24px 24px 32px;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__info {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__name {
  margin: 0;
  color: #002345;
  font-family: 'PT Serif', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-transform: capitalize;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__details {
  display: flex;
  flex-flow: column nowrap;
  gap: 12px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: #3a3a3b;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__actions {
  display: flex;
  flex-flow: column nowrap;
  gap: 8px;
  margin: auto 0 0;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button,
:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button:visited {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  padding: 12px 24px;
  border-radius: 200px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  transition: background-color 0.2s ease, color 0.2s ease;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--book,
:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--book:visited {
  background: #002345;
  border: 1.5px solid #002345;
  color: #fff;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--book:hover {
  background: #0e4c84;
  border-color: #0e4c84;
  color: #fff;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--directions,
:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--directions:visited {
  background: #fff;
  border: 1.5px solid #002345;
  color: #002345;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button--directions:hover {
  background: #002345;
  color: #fff;
}

:is(section.single-post .section-inner .post-content, body) .post-location-card-section__button:focus-visible {
  outline: 2px solid #002345;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__map {
    height: 240px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__body {
    padding: 24px 30px 32px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__name {
    font-size: 24px;
    line-height: 32px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__details {
    gap: 16px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__row {
    gap: 16px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__icon {
    width: 26px;
    height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__text {
    font-size: 18px;
    line-height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__actions {
    flex-direction: row;
  }

  :is(section.single-post .section-inner .post-content, body) .post-location-card-section__button {
    flex: 1 1 0;
    min-width: 0;
  }
}
