/**
 * Type Listing single — Novera / Atamisa layout.
 */

body.single-mbm_type_listing #page .site-content {
  margin-top: 0;
}

body.single-mbm_type_listing {
  --page-breadcrumb-display: none;
  --page-title-display: none;
  overflow-x: clip;
}

/* Atamisa reserves ~410px for sidebar on singles — force full content width */
@media (min-width: 992px) {
  body.single-mbm_type_listing #primary.content-area {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Theme adds large site-content bottom margin — tighten before footer */
body.single-mbm_type_listing #content.site-content,
body.single-mbm_type_listing .site-content {
  margin-bottom: 0 !important;
}

/*
 * Nav band only (listing singles): keep navy behind absolute header,
 * hide Elementor title — page title renders in .novera-listing__title.
 */
.novera-listing-header-wrap .novera-page-header {
  margin-bottom: 0 !important;
}

.novera-listing-header-wrap .novera-page-header__bg,
.novera-listing-header-wrap .novera-page-header__bg--hidden,
.novera-listing-header-wrap .novera-page-header__bg img {
  display: none !important;
}

.novera-listing-header-wrap .novera-page-header__slide,
.novera-listing-header-wrap .novera-page-header__slide > .e-con-inner {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, #161d2b 0%, #242f46 100%) !important;
  min-height: 0 !important;
  height: 100px !important;
  max-height: 100px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  --overlay-opacity: 0 !important;
}

.novera-listing-header-wrap .novera-page-header__slide::before,
.novera-listing-header-wrap .novera-page-header__slide > .e-con-inner::before,
.novera-listing-header-wrap .novera-page-header__slide .elementor-background-overlay {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
}

.novera-listing-header-wrap .novera-page-header__content,
.novera-listing-header-wrap .novera-page-header__title,
.novera-listing-header-wrap .elementor-widget-icon-list,
.novera-listing-header-wrap .novera-page-header__subtitle,
.novera-listing-header-wrap .novera-archive-header__subtitle {
  display: none !important;
}

@media (max-width: 1024px) {
  .novera-listing-header-wrap .novera-page-header__slide,
  .novera-listing-header-wrap .novera-page-header__slide > .e-con-inner {
    height: 90px !important;
    max-height: 90px !important;
  }
}

@media (max-width: 767px) {
  .novera-listing-header-wrap .novera-page-header__slide,
  .novera-listing-header-wrap .novera-page-header__slide > .e-con-inner {
    height: 80px !important;
    max-height: 80px !important;
  }
}

.novera-listing {
  padding: 40px 0 16px;
  color: var(--text, #242f46);
  width: 100%;
  max-width: none;
}

.novera-listing__inner {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.novera-listing__title {
  margin: 0 0 28px;
  padding: 0;
  font-family: "Vend Sans", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text, #242f46);
}

@media (max-width: 1024px) {
  .novera-listing__title {
    font-size: 40px;
  }
}

.novera-listing__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  padding: 28px 36px;
  margin-bottom: 56px;
  border: none;
  border-radius: 24px;
  /* Lighter than Architectural Stone (#DFDFDE) */
  background-color: #f0f0ef;
  background-color: color-mix(
    in srgb,
    var(--e-global-color-architectural_stone, #dfdfde) 42%,
    #ffffff
  );
}

.novera-listing__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
}

.novera-listing__fact {
  min-width: 0;
}

.novera-listing__fact dt {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36, 47, 70, 0.55);
}

.novera-listing__fact dd {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text, #242f46);
}

.novera-listing__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.novera-listing__pdf-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  box-sizing: border-box;
  border: 1.5px solid rgba(36, 47, 70, 0.28);
  border-radius: 30px;
  background: transparent;
  color: var(--text, #242f46);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.novera-listing__pdf-btn:hover,
.novera-listing__pdf-btn:focus-visible {
  border-color: var(--accent, #161d2b);
  color: var(--accent, #161d2b);
  background-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

/*
 * Inquiry CTA — same Atamisa .button-style as "Pročitaj više"
 * (gold at rest → slides to dark on hover).
 */
.novera-listing .mbm-inquiry-trigger.button-style,
.novera-listing__inquiry-btn.mbm-inquiry-trigger.button-style {
  appearance: none;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.43 !important;
  text-transform: none !important;
  border-radius: 30px !important;
  color: var(--accent, #161d2b) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px !important;
  box-sizing: border-box;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    var(--primary, #e9d1a3) 50%,
    var(--accent, #161d2b) 50%
  ) !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
  transition: background-position 0.5s ease, color 0.5s ease !important;
  transform: none !important;
  filter: none;
}

.novera-listing .mbm-inquiry-trigger.button-style:hover,
.novera-listing__inquiry-btn.mbm-inquiry-trigger.button-style:hover {
  background-image: linear-gradient(
    180deg,
    var(--primary, #e9d1a3) 50%,
    var(--accent, #161d2b) 50%
  ) !important;
  background-position: 0 100% !important;
  color: var(--primary, #e9d1a3) !important;
  text-decoration: none !important;
  transform: none !important;
  filter: none;
}

.novera-listing .mbm-inquiry-trigger.button-style .button-text {
  position: relative;
  z-index: 1;
}

.novera-listing .mbm-inquiry-trigger.button-style .button-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 12px;
  height: 12px;
  overflow: hidden;
}

.novera-listing .mbm-inquiry-trigger.button-style .icon-default,
.novera-listing .mbm-inquiry-trigger.button-style .icon-hover {
  display: flex;
  transition: transform 0.35s linear;
  font-size: 10px;
}

.novera-listing .mbm-inquiry-trigger.button-style .icon-default {
  color: var(--accent, #161d2b);
  fill: var(--accent, #161d2b);
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

.novera-listing .mbm-inquiry-trigger.button-style .icon-hover {
  position: absolute;
  color: var(--primary, #e9d1a3);
  fill: var(--primary, #e9d1a3);
  transform: translate3d(-17px, 17px, 0) scale3d(0, 0, 1);
}

.novera-listing .mbm-inquiry-trigger.button-style:hover .icon-default {
  transform: translate3d(17px, -17px, 0) scale3d(0, 0, 1);
}

.novera-listing .mbm-inquiry-trigger.button-style:hover .icon-hover {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

.novera-listing__section {
  margin-bottom: 72px;
}

.novera-listing__section-head {
  margin-bottom: 28px;
}

.novera-listing__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--novera-copper, #82442f);
}

.novera-listing__heading {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text, #242f46);
}

/*
 * Tlocrti — true full-bleed split band (outside content wrapper)
 * Left Architectural Stone · Right white
 * Equal-height images: 2D | 3D (on seam) | technical
 */
.novera-listing__plans {
  margin: 24px 0 28px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: auto;
  margin-left: -50vw;
  margin-right: 0;
  box-sizing: border-box;
}

.novera-listing__plans-band {
  position: relative;
  width: 100%;
  padding: 0;
  background-color: #ffffff;
  overflow: hidden;
}

/* Gray split only around images — more space above than below */
.novera-listing__plans-canvas {
  --novera-plans-pad-y: 80px;
  --novera-plans-pad-bottom: 28px;
  position: relative;
  width: 100%;
  padding: var(--novera-plans-pad-y) 0 var(--novera-plans-pad-bottom);
  box-sizing: border-box;
}

.novera-listing__plans-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  /* Same as summary bar */
  background-color: #f0f0ef;
  background-color: color-mix(
    in srgb,
    var(--e-global-color-architectural_stone, #dfdfde) 42%,
    #ffffff
  );
  pointer-events: none;
  z-index: 0;
}

.novera-listing__plans-stage {
  --novera-plan-h: 520px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  min-height: var(--novera-plan-h);
}

.novera-listing__plans-slot {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  height: var(--novera-plan-h);
}

.novera-listing__plans-slot--2d {
  grid-column: 1;
}

.novera-listing__plans-slot--3d {
  grid-column: 2;
  z-index: 2;
}

.novera-listing__plans-slot--tech {
  grid-column: 3;
}

.novera-listing__plans .novera-listing__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.novera-listing__plans .novera-listing__media-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.novera-listing__plans .novera-listing__figure--bare .novera-listing__media-link:hover {
  border: 0;
  box-shadow: none;
}

.novera-listing__plans .novera-listing__img,
.novera-listing__plans .novera-listing__figure--bare .novera-listing__img,
.novera-listing__plans .novera-listing__figure--2d .novera-listing__img,
.novera-listing__plans .novera-listing__figure--3d .novera-listing__img,
.novera-listing__plans .novera-listing__figure--tech .novera-listing__img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.novera-listing__plans .novera-listing__figure--3d .novera-listing__img {
  filter: drop-shadow(0 12px 28px rgba(22, 29, 43, 0.12));
}

.novera-listing__plans .novera-listing__caption {
  flex: 0 0 auto;
}

.novera-listing__plans .novera-listing__figure--2d .novera-listing__caption {
  text-align: left;
}

.novera-listing__plans .novera-listing__figure--3d .novera-listing__caption {
  text-align: center;
}

.novera-listing__plans .novera-listing__figure--tech .novera-listing__caption {
  text-align: right;
}

.novera-listing__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.novera-listing__figure--bare .novera-listing__media-link {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.novera-listing__figure--bare .novera-listing__media-link:hover {
  border: 0;
  box-shadow: none;
}

.novera-listing__figure--bare .novera-listing__img {
  background: transparent;
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.novera-listing__media-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f3f2;
  border: 1px solid rgba(36, 47, 70, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.novera-listing__media-link:hover {
  border-color: rgba(233, 209, 163, 0.9);
  box-shadow: 0 12px 32px rgba(22, 29, 43, 0.08);
}

.novera-listing__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f3f3f2;
}

.novera-listing__caption {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(36, 47, 70, 0.72);
}

/*
 * Details — full-bleed light band (same width as Tlocrti)
 * Rooms (1/3) | Position (bare image) | Floor inventory
 */
.novera-listing__details {
  margin: 0 0 24px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.novera-listing__details-band {
  width: 100%;
  padding: 40px 0 40px;
  box-sizing: border-box;
  background-color: #ffffff;
}

/* Tlocrti → detalji: bez duplog praznog traka */
.novera-listing__plans + .novera-listing__details .novera-listing__details-band {
  padding-top: 24px;
}

.novera-listing__details-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 5vw, 88px);
  align-items: start;
  width: 100%;
  padding: 0 clamp(32px, 5.5vw, 80px);
  box-sizing: border-box;
}

.novera-listing__details-col {
  min-width: 0;
}

.novera-listing__details-col .novera-listing__section-head {
  margin-bottom: 28px;
}

.novera-listing__details-col .novera-listing__heading {
  font-size: clamp(22px, 2.2vw, 28px);
}

.novera-listing__details .novera-listing__table-wrap {
  padding: 0;
}

.novera-listing__details-col--position .novera-listing__figure {
  width: 100%;
}

.novera-listing__details-col--position .novera-listing__media-link {
  display: block;
  width: 100%;
}

.novera-listing__details-col--position .novera-listing__img {
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

.novera-listing .mbm-listing-floor-inventory-table th,
.novera-listing .mbm-listing-floor-inventory-table td,
.novera-listing .mbm-room-layout table th,
.novera-listing .mbm-room-layout table td {
  font-size: 15px;
}

.novera-listing .mbm-listing-floor-inventory-table thead th,
.novera-listing .mbm-room-layout table th {
  color: var(--text, #242f46);
}

.novera-listing__details .mbm-listing-floor-inventory-table,
.novera-listing__details .mbm-room-layout table {
  width: 100%;
}

.novera-listing__gallery {
  margin: 0 0 8px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  box-sizing: border-box;
}

.novera-listing__gallery-head {
  margin: 0 0 28px;
  padding: 0 clamp(24px, 4vw, 56px);
}

.novera-listing__gallery-carousel {
  width: 100%;
  padding: 0 0 8px;
  /* Match homepage Image Carousel height + radius */
}

.novera-listing__gallery-carousel .image-carousel-item a {
  padding-top: 70%;
  border-radius: 20px;
}

.novera-listing__gallery-carousel .atamisa-swiper {
  padding-left: clamp(24px, 4vw, 56px);
}

.novera-listing__prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(36, 47, 70, 0.82);
}

.novera-listing__prose > *:first-child {
  margin-top: 0;
}

.novera-listing__prose > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .novera-listing__summary {
    grid-template-columns: 1fr;
  }

  .novera-listing__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .novera-listing__plans {
    margin-left: -50vw;
    left: 50%;
  }

  .novera-listing__plans-canvas {
    --novera-plans-pad-y: 64px;
    --novera-plans-pad-bottom: 24px;
  }

  .novera-listing__plans-stage {
    --novera-plan-h: 360px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }

  .novera-listing__plans-slot {
    height: var(--novera-plan-h);
  }

  .novera-listing__plans-slot--2d,
  .novera-listing__plans-slot--3d,
  .novera-listing__plans-slot--tech {
    grid-column: 1;
  }

  .novera-listing__plans .novera-listing__caption {
    text-align: center !important;
  }

  .novera-listing__details {
    margin-left: -50vw;
    left: 50%;
  }

  .novera-listing__details-band {
    padding: 32px 0 32px;
  }

  .novera-listing__plans + .novera-listing__details .novera-listing__details-band {
    padding-top: 20px;
  }

  .novera-listing__details-stage {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 32px;
  }

  .novera-listing__details-col--position .novera-listing__img {
    max-height: 360px;
  }

  .novera-listing__gallery {
    margin-left: -50vw;
    left: 50%;
  }

  .novera-listing__gallery-head {
    padding: 0 24px;
  }

  .novera-listing__gallery-carousel .atamisa-swiper {
    padding-left: 24px;
  }
}

@media (max-width: 767px) {
  .novera-listing {
    padding-top: 28px;
    padding-bottom: 12px;
  }

  .novera-listing__title {
    margin-bottom: 20px;
    font-size: 32px;
  }

  .novera-listing__inner {
    padding: 0;
  }

  .novera-listing__summary {
    padding: 22px 18px;
    margin-bottom: 40px;
  }

  .novera-listing__facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .novera-listing__fact dd {
    font-size: 18px;
  }

  .novera-listing__cta {
    width: 100%;
    justify-content: stretch;
  }

  .novera-listing__pdf-btn,
  .novera-listing .mbm-inquiry,
  .novera-listing .mbm-inquiry-trigger {
    width: 100%;
  }

  .novera-listing__section {
    margin-bottom: 52px;
  }

  .novera-listing__plans {
    margin-bottom: 16px;
  }

  .novera-listing__plans-canvas {
    --novera-plans-pad-y: 40px;
    --novera-plans-pad-bottom: 16px;
  }

  .novera-listing__plans-canvas::before {
    width: 100%;
    opacity: 0.4;
  }

  .novera-listing__plans-stage {
    --novera-plan-h: 280px;
  }

  .novera-listing__details {
    margin-bottom: 20px;
  }

  .novera-listing__details-band {
    padding: 20px 0 28px;
  }

  .novera-listing__plans + .novera-listing__details .novera-listing__details-band {
    padding-top: 12px;
  }

  .novera-listing__details-stage {
    padding: 0 24px;
    gap: 48px;
  }

  .novera-listing__gallery {
    margin-bottom: 8px;
  }

  .novera-listing__gallery-head {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .novera-listing__gallery-carousel .atamisa-swiper {
    padding-left: 20px;
  }

  .novera-listing__gallery-carousel .image-carousel-item a {
    border-radius: 14px;
  }
}

/* -------------------------------------------------------------------------
   MBM inquiry modal — reset inherited line-height from listing CTA wrapper
   ------------------------------------------------------------------------- */
.mbm-inquiry-modal {
  line-height: 1.5;
}
