/* Premium single-property experience. Uses existing WordPress/NIKO media and CRM data. */
.niko-property-single {
  padding-bottom: 1rem;
}

.niko-property-single__topbar {
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: .4rem;
}

.niko-property-single__back,
.niko-property-single .niko-management-action {
  color: #66706b;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.niko-property-single .niko-management-action {
  color: #94743d;
}

.niko-property-single__header {
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .45fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(2.2rem, 5vw, 4.2rem) clamp(1.6rem, 3vw, 2.6rem);
}

.niko-property-single__heading {
  min-width: 0;
}

.niko-property-single__badges {
  margin-bottom: 1rem;
}

.niko-property-single__eyebrow {
  margin-bottom: .65rem;
  color: #9a7a43;
}

.niko-property-single__header h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.niko-property-single__subline {
  margin-top: 1rem;
  color: #707974;
  font-size: .9rem;
}

.niko-property-single__subline span + span::before {
  content: '·';
  margin-right: 1rem;
  color: #c3b28d;
}

.niko-property-single__commercial {
  display: grid;
  justify-items: end;
  gap: .45rem;
  padding-bottom: .2rem;
  text-align: right;
}

.niko-property-single__commercial > span {
  color: #87908b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.niko-property-single__price {
  margin: 0;
  color: #0b1110;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.niko-property-single__quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  margin-top: .85rem;
}

.niko-property-single__quick-action {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #0b1110;
  border-radius: 9px;
  background: #0b1110;
  color: #fff;
  padding-inline: 1rem;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.niko-property-single__quick-action[type='button'] {
  cursor: pointer;
  font: inherit;
}

.niko-property-single__quick-action[type='button']:disabled {
  cursor: wait;
  opacity: .7;
}

.niko-property-single__quick-action--secondary {
  border-color: #d7dad6;
  background: transparent;
  color: #0b1110;
}

/* Gallery */
.niko-property-gallery {
  display: grid;
  height: clamp(30rem, 48vw, 40rem);
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  overflow: hidden;
  border-radius: 18px;
}

.niko-property-gallery--count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.niko-property-gallery--count-2 {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr;
}

.niko-property-gallery--count-3 {
  grid-template-columns: 1.65fr 1fr;
}

.niko-property-gallery--count-4,
.niko-property-gallery--count-5 {
  grid-template-columns: 2fr 1fr 1fr;
}

.niko-property-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #e8ebe6;
  cursor: zoom-in;
}

.niko-property-gallery__item.is-primary {
  grid-row: 1 / -1;
}

.niko-property-gallery--count-1 .niko-property-gallery__item.is-primary,
.niko-property-gallery--count-2 .niko-property-gallery__item.is-primary {
  grid-row: auto;
}

.niko-property-gallery--count-3 .niko-property-gallery__item:nth-child(2),
.niko-property-gallery--count-3 .niko-property-gallery__item:nth-child(3) {
  grid-column: 2;
}

.niko-property-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.niko-property-gallery__item:hover img {
  transform: scale(1.018);
}

.niko-property-gallery__more {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  background: rgba(8,13,12,.82);
  color: #fff;
  padding-inline: .85rem;
  font-size: .73rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.niko-property-gallery--empty {
  height: clamp(24rem, 42vw, 34rem);
  display: block;
  border: 1px solid #dde1dc;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.7), transparent 18%),
    linear-gradient(135deg, #dce1da, #f0f2ed 54%, #d7ddd6);
}

.niko-property-gallery__placeholder {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.8rem, 5vw, 4rem);
}

.niko-property-gallery__placeholder::before {
  content: '';
  position: absolute;
  inset: -30% -8% -35% 54%;
  border: 1px solid rgba(11,17,16,.09);
  border-radius: 50%;
}

.niko-property-gallery__placeholder > * {
  position: relative;
  z-index: 1;
}

.niko-property-gallery__placeholder span {
  margin-bottom: auto;
  color: rgba(11,17,16,.3);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.niko-property-gallery__placeholder strong {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.045em;
}

.niko-property-gallery__placeholder small {
  margin-top: .45rem;
  color: #69736d;
}

/* Lightbox */
.niko-property-lightbox {
  width: min(96vw, 92rem);
  max-width: none;
  height: min(92vh, 58rem);
  max-height: none;
  border: 0;
  border-radius: 16px;
  background: #070b0a;
  padding: 0;
  color: #fff;
}

.niko-property-lightbox::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}

.niko-property-lightbox__shell {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  position: relative;
}

.niko-property-lightbox__stage,
.niko-property-lightbox__slide {
  min-height: 0;
  height: 100%;
  margin: 0;
}

.niko-property-lightbox__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.niko-property-lightbox__close {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(7,11,10,.76);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

.niko-property-lightbox__controls {
  min-height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .6rem 1rem;
}

.niko-property-lightbox__controls button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: .5rem;
  cursor: pointer;
}

.niko-property-lightbox__controls button:last-child {
  justify-self: end;
}

.niko-property-lightbox__controls span {
  color: rgba(255,255,255,.58);
  font-size: .78rem;
}

/* Summary strip */
.niko-property-summary {
  margin-top: 1.2rem;
}

.niko-property-summary .niko-property-fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin: 0;
  border-radius: 13px;
  box-shadow: 0 14px 38px rgba(12,22,17,.045);
}

.niko-property-summary .niko-property-fact-grid > div {
  min-height: 5.4rem;
  display: grid;
  align-content: center;
  padding: 1rem 1.15rem;
}

.niko-property-summary .niko-property-fact-grid dd {
  font-size: 1.08rem;
}

/* Content + inquiry */
.niko-property-single__layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .62fr);
  gap: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3.5rem, 6vw, 5.8rem);
}

.niko-property-single__content {
  min-width: 0;
}

.niko-property-section {
  padding-block: 2.4rem;
}

.niko-property-section--intro {
  border-top: 0;
  padding-top: 0;
}

.niko-property-section h2 {
  margin: .35rem 0 1.25rem;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.niko-rich-text,
.niko-property-section > p:not(.niko-eyebrow) {
  max-width: 48rem;
  color: #4f5954;
  font-size: 1rem;
  line-height: 1.75;
}

.niko-property-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.niko-property-feature-list li {
  min-height: 3rem;
  display: flex;
  align-items: center;
  border: 1px solid #e2e5e1;
  border-radius: 10px;
  background: #fff;
  padding: .7rem .85rem;
  font-size: .86rem;
}

.niko-property-feature-list li::before {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-right: .6rem;
  border: 1px solid #d1ae6d;
  border-radius: 50%;
  color: #8e713f;
  font-size: .67rem;
}

.niko-property-links a,
.niko-property-document-list a {
  color: #725a31;
  font-weight: 700;
}

.niko-property-contact-card {
  top: calc(var(--niko-header-height) + 1.2rem);
  border: 1px solid #dedfd9;
  border-radius: 16px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 22px 58px rgba(12,22,17,.1);
}

.niko-property-contact-card > .niko-eyebrow {
  margin-bottom: 1rem;
  color: #9a7a43;
}

.niko-property-contact-card__identity {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.niko-property-contact-card__identity img,
.niko-property-contact-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.niko-property-contact-card__identity img {
  object-fit: cover;
}

.niko-property-contact-card__avatar {
  display: grid;
  place-items: center;
  background: #0b1110;
  color: #efd49e;
  font-weight: 850;
}

.niko-property-contact-card__agent {
  margin: 0;
  font-size: 1.08rem;
}

.niko-property-contact-card__identity small {
  display: block;
  margin-top: .2rem;
  color: #748079;
  font-size: .75rem;
  line-height: 1.4;
}

.niko-property-contact-card__methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}

.niko-property-contact-card__methods a {
  min-width: 0;
  display: grid;
  gap: .2rem;
  border: 1px solid #e2e5e1;
  border-radius: 9px;
  color: #6b746f;
  padding: .65rem .7rem;
  font-size: .68rem;
  text-decoration: none;
}

.niko-property-contact-card__methods a strong {
  overflow-wrap: anywhere;
  color: #111815;
  font-size: .76rem;
}

.niko-property-contact-card__form-intro {
  margin-top: 1rem;
  border-top: 1px solid #e6e7e3;
  padding-top: 1rem;
}

.niko-property-contact-card__form-intro strong {
  font-size: .92rem;
}

.niko-property-contact-card__form-intro p {
  margin: .35rem 0 0;
  color: #77817b;
  font-size: .74rem;
  line-height: 1.5;
}

.niko-property-contact-card__lead { margin: 1rem 0; color: #68716c; font-size: .9rem; line-height: 1.5; }
.niko-property-contact-tabs__list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; border-bottom: 1px solid #d7dad6; padding-bottom: .7rem; }
.niko-property-contact-tabs__list button { border: 1px solid #d7dad6; border-radius: 7px; background: #fff; color: #1b2420; cursor: pointer; padding: .65rem; font: inherit; font-size: .8rem; font-weight: 750; }
.niko-property-contact-tabs__list button[aria-selected="true"] { border-color: #0b1110; background: #0b1110; color: #fff; }
.niko-property-contact-tabs [role="tabpanel"] { padding-top: .9rem; }

.niko-property-contact-card .niko-inquiry-form {
  gap: .75rem;
}

.niko-property-contact-card .niko-inquiry-form-wrap {
  margin-top: .9rem;
}

.niko-property-contact-card .niko-inquiry-form input,
.niko-property-contact-card .niko-inquiry-form textarea {
  min-height: 2.65rem;
  font-size: .8rem;
}

.niko-property-contact-card .niko-inquiry-form textarea {
  min-height: 6rem;
}

.niko-property-contact-card__cta {
  min-height: 2.9rem;
  margin-top: .4rem;
  border-radius: 9px;
}

/* Related */
.niko-property-related {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: 1rem;
}

.niko-property-related__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.niko-property-related__header h2 {
  margin: .2rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -.04em;
}

.niko-property-related__header > a {
  color: #6f5a37;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.niko-property-related__grid {
  gap: 1.25rem;
}

.niko-property-related__grid .niko-property-card__title {
  font-size: 1.05rem;
}

.niko-property-related__grid .niko-property-card__price {
  font-size: 1rem;
}

@media (max-width: 64rem) {
  .niko-property-single__header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }

  .niko-property-gallery {
    height: clamp(27rem, 54vw, 34rem);
  }

  .niko-property-single__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .75fr);
    gap: 2.5rem;
  }
}

@media (max-width: 52rem) {
  .niko-property-single__header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .niko-property-single__commercial {
    justify-items: start;
    text-align: left;
  }

  .niko-property-single__quick-actions {
    justify-content: flex-start;
  }

  .niko-property-gallery,
  .niko-property-gallery--count-2,
  .niko-property-gallery--count-3,
  .niko-property-gallery--count-4,
  .niko-property-gallery--count-5 {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    border-radius: 14px;
  }

  .niko-property-gallery__item,
  .niko-property-gallery__item.is-primary,
  .niko-property-gallery--count-3 .niko-property-gallery__item:nth-child(2),
  .niko-property-gallery--count-3 .niko-property-gallery__item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .niko-property-gallery__item.is-primary {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .niko-property-gallery--count-1 .niko-property-gallery__item.is-primary {
    grid-column: 1 / -1;
  }

  .niko-property-gallery--empty {
    height: 25rem;
  }

  .niko-property-single__layout {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .niko-property-contact-card {
    position: static;
    margin-bottom: 1rem;
  }

  .niko-property-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .niko-property-single__topbar {
    padding-top: 1rem;
  }

  .niko-property-single__header {
    padding-top: 1.8rem;
  }

  .niko-property-single__header h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .niko-property-single__quick-actions {
    display: none;
  }

  .niko-property-gallery,
  .niko-property-gallery--count-2,
  .niko-property-gallery--count-3,
  .niko-property-gallery--count-4,
  .niko-property-gallery--count-5 {
    grid-template-columns: 1fr;
  }

  .niko-property-gallery__item:not(.is-primary) {
    display: none;
  }

  .niko-property-gallery__item.is-primary {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }

  .niko-property-gallery--empty {
    height: 19rem;
  }

  .niko-property-summary .niko-property-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .niko-property-feature-list,
  .niko-property-contact-card__methods,
  .niko-property-related__grid {
    grid-template-columns: 1fr;
  }

  .niko-property-related__header {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }

  .niko-property-lightbox {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .niko-property-gallery__item img {
    transition: none;
  }
}
