body.post-type-archive-ctc_member .wp-site-blocks {
  overflow-x: clip;
}

.ctc-member-map-shell,
.ctc-members-archive__map-shell {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ctc-member-map-shell__after {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.ctc-member-map-frame,
.ctc-members-archive__map-frame {
  position: relative;
  overflow: hidden;
  background: #e9ddd1;
}

.ctc-member-map-frame > p,
.ctc-members-archive__map-frame > p {
  display: none;
}

.ctc-member-map,
.ctc-members-archive__map {
  min-height: 400px;
}

.ctc-member-map-message,
.ctc-members-archive__map-message {
  display: grid;
  place-items: center;
  min-height: 400px;
  padding: 1.5rem;
  color: #5f6670;
  font-size: 1rem;
  text-align: center;
}

/* Consent placeholder — shown instead of map until third-party cookies accepted */
.ctc-member-map-consent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* must match .ctc-member-map min-height */
  padding: 2rem;
  overflow: hidden;
  background-color: #ede5db;
  background-image: url('../images/map-placeholder.svg');
  background-size: cover;
  background-position: center;
}

.ctc-member-map-consent__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.75rem 2.25rem;
  background: rgba(255, 252, 250, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 12px 40px rgba(0,0,0,0.11);
}

.ctc-member-map-consent__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f3d9e5;
  color: #b01362;
  flex-shrink: 0;
}

.ctc-member-map-consent__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f1a17;
  line-height: 1.3;
}

.ctc-member-map-consent__text {
  margin: 0;
  color: #5f6670;
  font-size: 0.8125rem;
  max-width: 30ch;
  line-height: 1.55;
}

.ctc-member-map-consent__policy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ctc-member-map-consent__policy-link:hover {
  color: var(--wp--preset--color--primary, #b01362);
}

.ctc-member-map-consent__btn {
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  background-color: #b01362;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ctc-member-map-consent__btn:hover,
.ctc-member-map-consent__btn:focus-visible {
  background-color: #7f1147;
  box-shadow: 0 4px 16px rgba(176, 19, 98, 0.3);
  outline: 2px solid #7f1147;
  outline-offset: 2px;
}

.ctc-member-map .gm-style .gm-style-iw-c,
.ctc-members-archive__map .gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
}
.gm-style-iw-ch {
  padding-top: 0;
}
.ctc-member-map-frame
  .ctc-member-map
  .gm-style
  .gm-style-iw-chr
  .gm-ui-hover-effect {
  position: absolute !important;
  background: none !important;
}

.ctc-member-map .gm-style .gm-style-iw-d,
.ctc-members-archive__map .gm-style .gm-style-iw-d {
  padding: 0 !important;
  overflow: hidden !important;
  max-height: none !important;
}

.ctc-member-map .gm-style .gm-style-iw-tc,
.ctc-members-archive__map .gm-style .gm-style-iw-tc {
  top: 100% !important;
}

.ctc-member-map .gm-style .gm-ui-hover-effect,
.ctc-members-archive__map .gm-style .gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  opacity: 1 !important;
  z-index: 3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92) !important;
}

.ctc-member-map .gm-style .gm-ui-hover-effect span,
.ctc-members-archive__map .gm-style .gm-ui-hover-effect span {
  margin: 4px !important;
}

.ctc-member-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  width: min(100%, 390px);
  background: #fff;
}

.ctc-member-map-card--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.ctc-member-map-card__content {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
}

.ctc-member-map-card__title {
  margin: 0;
  color: #b01362;
  font-size: 1.45rem;
  line-height: 1.08;
  max-width: 11ch;
}

.ctc-member-map-card__restaurant {
  margin: 0;
  color: #4f4a45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.ctc-member-map-card__address {
  margin: 0;
  color: #5f6670;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ctc-member-map-card__link {
  display: inline-flex;
  width: fit-content;
  padding: 0.72rem 0.95rem;
  background: #b01362;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.ctc-member-map-card__link:hover,
.ctc-member-map-card__link:focus-visible {
  background: #8f184f;
}

.ctc-member-map-card__media {
  min-height: 100%;
  background: #f3eee8;
}

.ctc-member-map-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .ctc-member-map,
  .ctc-members-archive__map,
  .ctc-member-map-message,
  .ctc-members-archive__map-message,
  .ctc-member-map-consent {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .ctc-member-map,
  .ctc-members-archive__map,
  .ctc-member-map-message,
  .ctc-members-archive__map-message,
  .ctc-member-map-consent {
    min-height: 280px;
  }

  .ctc-member-map-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctc-member-map-card__media {
    min-height: 180px;
    order: -1;
  }
}
