/* Accordion with background images. */

.eazo *{ box-sizing: border-box; }

.eazo-acc{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  gap: 0;
}

/* Direction (JS will toggle these based on Elementor breakpoints) */
.eazo-acc.eazo-vertical{ flex-direction: column; }
.eazo-acc.eazo-horizontal{ flex-direction: row; }

/* Panels */
.eazo-panel{
  position: relative;
  flex: 1 1 0;
  min-width: 48px;
  min-height: 48px;

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  transition: flex 500ms ease, filter 500ms ease;
  cursor: pointer;
  outline: none;
}

/* Text overlay */
.eazo-panel__meta{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff;
  background: rgba(0,0,0,0.4);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.eazo-panel__title{
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.eazo-panel__subtitle{
  opacity: .9;
  font-size: .9rem;
  line-height: 1.2;
}

/* Hover/focus accordion expansion (values overridden per-widget by JS-injected CSS) */
.eazo-acc:hover .eazo-panel,
.eazo-acc:focus-within .eazo-panel{
  flex: 0.7 1 0;
  filter: saturate(0.9) brightness(0.95);
}

.eazo-acc:hover .eazo-panel:hover,
.eazo-acc:focus-within .eazo-panel:focus{
  flex: 4 1 0;
  filter: none;
}

.eazo-acc:hover .eazo-panel:hover .eazo-panel__meta,
.eazo-acc:focus-within .eazo-panel:focus .eazo-panel__meta{
  opacity: 1;
  transform: translateY(0);
}

/* Focus ring */
.eazo-panel:focus{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}

/* Touch devices: no hover => show meta always */
@media (hover: none){
  .eazo-panel__meta{
    opacity: 1;
    transform: none;
  }
}

/* Overlay */
.eazo-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: auto;
}

.eazo-expanded{
  position: fixed;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  overflow: hidden;
  pointer-events: auto;
}

.eazo-expanded__hero{
  position: relative;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.eazo-expanded__close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
}

.eazo-expanded__header{
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.eazo-expanded__title{ font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.eazo-expanded__subtitle{ opacity: .7; margin-top: 6px; }

.eazo-expanded__body{
  padding: 16px;
  max-height: 60vh;
  overflow: auto;
}

body.eazo-modal-open{ overflow: hidden; }