/* =========================
   Hotel Info Boxes
========================= */

.conference-hotel-info-boxes {
  max-width: 90%;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 100%;
  margin: 70px auto 80px;
  text-align: center;
}

/* =========================
   Static Columns
========================= */

.static-column {
  position: relative;
  height: 550px;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
  overflow: hidden; /* ✅ helps hover overlay + image clip cleanly */
}

.static-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.static-column h3 {
  position: absolute;
  top: 45%;
  width: 100%;
  z-index: 2;
  color: #fff;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 28px; /* optional but nicer */
  font-weight: 800;
}

/* Each card needs to be a positioning context */
.static-column {
  position: relative;
  overflow: hidden;
  border-radius: 26px; /* match your design */
  height: 520px;       /* pick your card height (or whatever you already had) */
}

/* Force the image to fill the entire card and crop */
.static-column img[class^="hotel-box-image-"] {
  position: absolute;
  inset: 0;            /* top/right/bottom/left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ✅ THIS is the magic */
  object-position: center;
  z-index: 0;
}

/* Purple overlay should sit above the image */
.static-column .box-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* your purple overlay image */
  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;
  opacity: .8;
  /* optional extra tint */
  /* background-color: rgba(91,42,134,.55); */
}

/* Your hover/copy + title must sit above overlay */
/* Keep title absolute; only adjust stacking */
.static-column h3 {
  position: absolute;  /* keep it */
  z-index: 2;
}

.static-column .hover-column {
  z-index: 3;
}



.box-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;

  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

/* =========================
   Hover Overlay
========================= */

.hover-column {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  width: 100%;
  height: 100%;

  opacity: 0;
  transition: opacity 0.3s;
  overflow: auto;

  border-radius: 20px;

  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;

  color: #fff;
  font-weight: 500;
  text-align: left;
}

.static-column:hover > .hover-column {
  opacity: 1;
}

/* ✅ NEW: hover content wrapper from new render.php */
.hover-column .hotel-box-hover-copy {
  margin: auto;
  padding: 40px;
  width: 100%;
}

/* WYSIWYG-safe typography inside hover */
.hover-column .hotel-box-hover-copy > *:first-child {
  margin-top: 0;
}
.hover-column .hotel-box-hover-copy > *:last-child {
  margin-bottom: 0;
}

.hover-column .hotel-box-hover-copy h1,
.hover-column .hotel-box-hover-copy h2,
.hover-column .hotel-box-hover-copy h3,
.hover-column .hotel-box-hover-copy h4,
.hover-column .hotel-box-hover-copy h5 {
  color: #fff;
  margin: 0 0 15px;
}

.hover-column .hotel-box-hover-copy h4 {
  font-size: 30px;
}

.hover-column .hotel-box-hover-copy p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5em;
}

.hover-column .hotel-box-hover-copy ul,
.hover-column .hotel-box-hover-copy ol {
  margin: 0;
  padding-left: 20px;
}

.hover-column .hotel-box-hover-copy li {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.5em;
}

/* Optional: links inside hover */
.hover-column .hotel-box-hover-copy a {
  color: #fff !important;
  text-decoration: underline !important;
  font-weight: 900;
}

.hotel-accordion-copy h1, .hotel-accordion-copy h2, .hotel-accordion-copy h3, .hotel-accordion-copy h4, .hotel-accordion-copy h5, .hotel-accordion-copy h6 {
  color: #fff !important;
}

/* =========================
   Responsive
========================= */

@media (max-width: 2550px) {
  .conference-hotel-info-boxes {
    max-width: 90%;
  }
}

@media (max-width: 1400px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .static-column {
    height: 400px;
  }

  .hover-column .hotel-box-hover-copy {
    padding: 20px;
  }

  .hover-column .hotel-box-hover-copy h4 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .hover-column .hotel-box-hover-copy p,
  .hover-column .hotel-box-hover-copy li {
    font-size: 15px;
  }
}

/* ======================================
   MOBILE ACCORDION (hidden on desktop)
====================================== */

.hotel-accordion {
  display: none; /* shown at <=768 */
  margin: 30px auto 60px;
  max-width: 100%;
}

.hotel-accordion-item {
  margin-bottom: 20px;
}

.hotel-accordion-trigger {
  width: 100%;
  border: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 22px;
  border-radius: 26px;

  color: #fff;
  font-weight: 700;
  font-size: 28px;
  text-align: left;

  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

span.hotel-accordion-title {
  line-height: 1.1;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
  text-transform: none;
  font-weight: 900;
}

/* plus/minus icon */
.hotel-accordion-icon {
  position: relative;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.hotel-accordion-icon::before,
.hotel-accordion-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #fff;
  border-radius: 2px;
}

.hotel-accordion-icon::before {
  width: 20px;
  height: 2px;
}

.hotel-accordion-icon::after {
  width: 2px;
  height: 20px;
}

/* when open -> plus becomes minus */
.hotel-accordion-trigger[aria-expanded="true"] .hotel-accordion-icon::after {
  opacity: 0;
}

/* panel */
.hotel-accordion-panel {
  overflow: hidden;
  border-radius: 26px;
  margin-top: 12px;

  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.hotel-accordion-panel-inner {
  padding: 22px 22px 26px;
}

.hotel-accordion-panel-inner h4 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #fff;
}

/* ✅ NEW: WYSIWYG-safe accordion copy */
.hotel-accordion-copy > *:first-child { margin-top: 0; }
.hotel-accordion-copy > *:last-child { margin-bottom: 0; }

.hotel-accordion-copy p,
.hotel-accordion-panel-inner li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.hotel-accordion-copy ul,
.hotel-accordion-copy ol {
  margin: 0;
  padding-left: 20px;
}

.hotel-accordion-copy a {
  color: #fff !important;
  text-decoration: underline !important;
  font-weight: 900 !important;
}

/* ======================================
   RESPONSIVE SWITCH
====================================== */

@media (max-width: 768px) {
  .static-hotel-boxes {
    display: none;
  }

  .hotel-accordion {
    display: block;
  }

  .hotel-accordion-trigger {
    font-size: 22px;
    padding: 18px 18px;
    border-radius: 22px;
  }

  .hotel-accordion-panel,
  .hotel-accordion-panel-inner {
    border-radius: 22px;
  }
  .hotel-accordion-title {
    font-size: 20px;
  }
}


.hotel-accordion-trigger{
  position: relative;
  z-index: 10;
}

/* When we want NO cropping */
.conference-hero--contain .conference-hero__video-inline{
  background:#000; /* bars */
}