/* Overlay stage */
.b2-amenities-overlay__stage{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
/*   border-radius: 12px; */
  overflow:hidden;
}

/* Animated dot */
.b2-amenities-dot{
  position:absolute;
  transform: translate(-50%, -50%);
  border:0;
  background: #ff0000;
  cursor:pointer;
  padding:0;
  z-index: 3;
}

.b2-amenities-dot__inner{
  display:grid;
  place-items:center;
  width: var(--b2-dot-size, 18px);
  height: var(--b2-dot-size, 18px);
  border-radius: 999px;
  background: var(--b2-dot-color, rgba(255,255,255,0.95));
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  position: relative;
}

.b2-amenities-dot__inner::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border: 2px solid rgba(255,255,255,0.55);
  border: 2px solid color-mix(in srgb, var(--b2-dot-color, #ffffff) 55%, transparent);
  animation: b2Pulse 1.6s ease-out infinite;
}

@keyframes b2Pulse{
  0% { transform: scale(0.65); opacity: 0.9; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* Modal layout */
.b2-amenities-modal{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px){
  .b2-amenities-modal{ grid-template-columns: 1fr; }
}

.b2-amenities-modal__media iframe,
.b2-amenities-modal__media img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 10px;
}

.b2-amenities-modal__cta{
  margin: 16px 0 10px;
}


/* Unavailable dots: still visible + clickable, but visually distinct */
.b2-amenities-dot--unavailable .b2-amenities-dot__inner{
  opacity: 0.55;
  filter: grayscale(30%);
}

.b2-amenities-dot--unavailable .b2-amenities-dot__inner::after{
  animation: none !important;
  opacity: 0.35;
}


.b2-amenities-overlay{
  position: relative;
}

.b2-amenities-legend{
  position: absolute;
}

.b2-amenities-legend__title{
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.b2-amenities-legend__list{
  display: grid;
  gap: 8px;
}

.b2-amenities-legend__row{
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2-amenities-legend__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--b2-dot-color, #ffffff);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  flex: 0 0 auto;
}

.b2-amenities-legend__label{
  font-size: 12px;
  line-height: 1.2;
}

.b2-amenities-legend__divider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 10px 0;
}


/* Legend (scoped + resilient to theme CSS) */
.b2-amenities-overlay{ position: relative; }

.b2-amenities-legend,
.b2-amenities-legend *{
  box-sizing: border-box;
}

.b2-amenities-legend{
  position:absolute;
}

.b2-amenities-legend__list{
  display:flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.b2-amenities-legend__row{
  display:flex;
  align-items:center;
  margin: 0;
  padding: 0;
}

.b2-amenities-legend__dot{
  border-radius: 999px;
  background: var(--b2-dot-color, #ffffff);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  flex: 0 0 auto;
}

.b2-amenities-legend__label{
  line-height: 1.2;
  margin: 0;
}

.b2-amenities-legend__divider{
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 10px 0;
}

.b2-amenities-legend {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 1em;
    background: url(/wp-content/themes/b2-core/assets/img/burlap.png) repeat left top;
}

.b2-amenities-legend__divider {
    background: rgba(0, 0, 0, 0.2);
}

.b2-amenities-legend__list {
    gap: 0.5em;
}

.b2-amenities-legend__title {
    font-size: 1em;
    margin-bottom: 1em;
    font-family: 'Tenor Sans';
    font-weight: 400;
    max-width: 6em;
    color: #61747b;
    line-height: 1.5;
}

.b2-amenities-legend__label {
    font-size: 0.9em;
}

.b2-amenities-legend__dot {
    width: 1em;
    height: 1em;
	    margin-right: 0.5em;
}

@media (max-width: 520px){
  .b2-amenities-legend{ max-width: 240px; }
		.b2-amenities-legend {
    position: relative;
    width: 100%;
    max-width: none;
    text-align: center;
}

.b2-amenities-legend__title {
    width: 100%;
    display: block;
    max-width: none;
}

.b2-amenities-legend__list {
    margin: 0 auto;
    text-align: center;
}

.b2-amenities-legend__row {
    display: flex;
    align-content: center;
    justify-content: center;
}
}

