/* Nijansa catalog — premium cards on Homely theme (additive only) */

#buy-now { display: none !important; }

/* Hide leftover demo mega-menu if any */
#mainmenu .mega,
#mainmenu ul.mega {
  display: none !important;
}

/* ========== Brand header (green) ========== */
:root {
  --nk-header-bg: #092519;
  --nk-header-bg-soft: #0d2f20;
  --nk-gold: #c59d5f;
  --nk-btn-bg: #0a2e1f;
  --nk-btn-bg-hover: #134032;
  --nk-btn-text: #ffffff;
}

/* Darker green buttons, white labels */
a.btn-main,
.btn-main,
a.btn-main.fx-slide,
.btn-main.fx-slide,
a.btn-main.text-dark,
.btn-main.text-dark,
a.btn-main.hover-white,
.btn-main.hover-white,
header.header-light .menu_side_area .btn-main {
  background: var(--nk-btn-bg) !important;
  background-color: var(--nk-btn-bg) !important;
  color: var(--nk-btn-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

a.btn-main span,
.btn-main span,
a.btn-main.text-dark span,
.btn-main.text-dark span {
  color: var(--nk-btn-text) !important;
}

a.btn-main:hover,
.btn-main:hover,
a.btn-main.fx-slide:hover,
.btn-main.fx-slide:hover,
a.btn-main.text-dark:hover,
.btn-main.text-dark:hover,
header.header-light .menu_side_area .btn-main:hover {
  background: var(--nk-btn-bg-hover) !important;
  background-color: var(--nk-btn-bg-hover) !important;
  color: var(--nk-btn-text) !important;
}

/* Sticky menu — always visible on desktop + mobile */
header.header-light,
header.header-light.smaller,
header.header-light.header-mobile,
header.header-light.smaller.scroll-light,
header.header-light.scroll-down,
header.header-light.nav-up {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0 !important;
  z-index: 1001;
  background: var(--nk-header-bg) !important;
  border-bottom: 1px solid rgba(197, 157, 95, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* Homely hides header on scroll-down — keep it visible */
header.header-light.scroll-down {
  margin-top: 0 !important;
  transform: none !important;
}

header.header-light #mainmenu > li > a,
header.header-light.smaller #mainmenu > li > a,
header.header-light.smaller.scroll-light #mainmenu > li > a,
header.header-light.header-mobile #mainmenu a.menu-item {
  color: #f5f7f4 !important;
}

header.header-light #mainmenu > li > a:hover,
header.header-light #mainmenu li a.active {
  color: var(--nk-gold) !important;
}

header.header-light #logo img {
  max-height: 58px;
  width: auto;
  height: auto;
}

header.header-light.smaller #logo img {
  max-height: 46px;
}

/* Header CTA — darker green fill but lighter than bar so it reads clearly */
header.header-light .menu_side_area .btn-main,
header.header-light .menu_side_area a.btn-main {
  background: #2f6b4f !important;
  background-color: #2f6b4f !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

header.header-light .menu_side_area .btn-main:hover,
header.header-light .menu_side_area a.btn-main:hover {
  background: #3a805e !important;
  background-color: #3a805e !important;
  border-color: var(--nk-gold) !important;
}

/* Close icon = X when menu open (Homely uses a thin dash) */
header.header-light #menu-btn.menu-open:before {
  content: "\f00d";
  font-size: 18px;
}

header.header-light #menu-btn,
header.header-light.header-mobile #menu-btn,
header.header-light.header-mobile #menu-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
}

header.header-light.header-mobile #mainmenu li,
header.header-light.header-mobile #mainmenu li ul li a.menu-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

header.header-light.header-mobile #mainmenu {
  background: var(--nk-header-bg);
}

/* Footer logo sizing */
footer img.w-150px {
  max-width: 160px;
  height: auto;
}

/* Clickable phone / email inherit surrounding text color */
a[href^="tel:"],
a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: var(--primary-color, #b5c99a);
  text-decoration: underline;
}

/* Call strip + floating Pozovi */
.nk-call-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nk-call-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 52px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--nk-btn-bg, #0a2e1f);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nk-call-float:hover {
  transform: translateY(-3px);
  background: var(--nk-btn-bg-hover, #134032);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* Keep scroll-up clear of floating Pozovi */
#back-to-top {
  right: 24px !important;
  bottom: 90px !important;
  z-index: 997 !important;
}

/* Keep copyright / Audax TIM clear of fixed Pozovi */
footer.section-dark {
  padding-bottom: 1.5rem;
}

footer .subfooter {
  padding-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .nk-call-float {
    right: 14px;
    bottom: 16px;
    left: 14px;
    width: auto;
    height: 50px;
    border-radius: 12px;
    font-size: 16px;
  }

  #back-to-top {
    right: 18px !important;
    bottom: 78px !important;
  }

  /* Full-width float sits over footer — lift content above it */
  footer.section-dark {
    padding-bottom: 5.5rem !important;
  }

  footer .subfooter {
    padding-bottom: 0.75rem;
    margin-bottom: 0;
  }
}

/* ========== Hero: Tipski card over image on desktop ========== */
.nk-hero {
  position: relative;
}

.nk-hero-lead {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1.55;
  opacity: 1;
  color: #fff !important;
  max-width: 36rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(9, 37, 25, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.nk-hero-media h1 {
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 6px 24px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(0, 0, 0, 0.35);
}

.nk-hero-address h5 {
  color: #fff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 4px 16px rgba(0, 0, 0, 0.55);
}

/* Desktop: tipski lives top-right in hero (replaces Nijansa/phone) */
.nk-hero-tipski-card {
  text-align: left;
  margin-top: 0.5rem;
}

.nk-hero-tipski-card .nk-tipski-desc {
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Mobile-only tipski block under hero media */
.nk-hero-tipski-mobile {
  display: none;
}

.nk-tipski-desc {
  opacity: 0.85;
}

/* ========== Mobile / responsive polish ========== */
@media (max-width: 991px) {
  header.header-light #logo img {
    max-height: 40px;
  }

  header.header-light .menu_side_area .btn-main {
    padding: 8px 14px;
    font-size: 13px;
  }

  .nk-cat-card h3 {
    font-size: 1.15rem;
  }

  .nk-model-card .nk-body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .nk-info-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  header.header-light #logo img,
  header.header-light .logo-mobile {
    max-height: 36px !important;
    width: auto !important;
  }

  header.header-light .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  header.header-light .de-flex {
    align-items: center;
    min-height: 62px;
  }

  /* Homely hides header CTA on phones — keep compact, tappable Pozovi */
  header.header-light .menu_side_area a.btn-main {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    margin-right: 0;
    border-radius: 8px;
    pointer-events: auto !important;
    z-index: 1002;
    position: relative;
  }

  header.header-light .menu_side_area {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto !important;
    margin-left: 8px;
    flex-shrink: 0;
  }

  /* Clip closed menu (Homely pattern); expand when open */
  header.header-mobile {
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
  }

  header.header-mobile.menu-open {
    overflow-y: auto !important;
    background: var(--nk-header-bg) !important;
    max-height: 100vh;
  }

  /* Content clear under fixed mobile header */
  main > section:first-of-type,
  main > .jarallax:first-of-type {
    scroll-margin-top: 70px;
  }

  header.header-mobile #mainmenu {
    background: var(--nk-header-bg) !important;
    z-index: 100;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0.5rem 1rem 1.75rem !important;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(197, 157, 95, 0.2);
  }

  header.header-mobile.menu-open #mainmenu {
    box-shadow: none;
  }

  header.header-mobile #mainmenu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 !important;
  }

  header.header-mobile #mainmenu > li:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  header.header-mobile #mainmenu a.menu-item {
    display: block;
    padding: 1rem 0.5rem !important;
    font-size: 1.12rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f5f7f4 !important;
    border-radius: 8px;
  }

  header.header-mobile #mainmenu a.menu-item:hover,
  header.header-mobile #mainmenu a.menu-item:active,
  header.header-mobile #mainmenu li a.active {
    color: var(--nk-gold) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  /* Keep float call button below open menu */
  header.header-mobile.menu-open ~ * .nk-call-float,
  body:has(header.menu-open) .nk-call-float {
    z-index: 900;
  }

  header.header-light #menu-btn,
  header.header-light.header-mobile #menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0;
    float: none;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 1002;
    position: relative;
  }

  header.header-light #menu-btn:before {
    font-size: 18px;
    line-height: 1;
  }

  /* Hero mobile: image full, Tipski card BELOW (no overlap) */
  .nk-hero.mt-sm-50,
  section.nk-hero {
    margin-top: 59px !important;
  }

  .nk-hero-media.mh-800 {
    min-height: 68vh !important;
    height: 68vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.1rem 0 1.25rem;
  }

  .nk-hero-media > .abs {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    z-index: 3;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    margin-top: 0 !important;
  }

  .nk-hero-media .swiper {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    height: 100% !important;
  }

  .nk-hero-media .wm {
    display: none;
  }

  .nk-hero-lead {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-top: 0.85rem !important;
    max-width: 100%;
    font-weight: 600;
    padding: 0.7rem 0.85rem;
    background: rgba(9, 37, 25, 0.78);
  }

  .fs-72,
  h1.fs-72 {
    font-size: clamp(1.7rem, 8.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    word-break: break-word;
  }

  /* Tipski below hero image on phones only */
  .nk-hero-tipski-mobile {
    display: block;
    position: relative !important;
    bottom: auto !important;
    left: auto;
    right: auto;
    margin-top: 0;
    padding: 1.5rem 0 1rem;
    background: var(--nk-header-bg, #092519);
    pointer-events: auto;
  }

  .nk-hero-tipski-mobile .bg-blur {
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nk-hero-tipski-mobile .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .nk-hero-tipski-mobile .col-6:first-child {
    margin-bottom: 0.65rem;
  }

  .nk-hero-tipski-mobile .col-6:first-child img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
  }

  .nk-hero-tipski-mobile h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .nk-tipski-desc {
    display: block !important;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    line-height: 1.45;
  }

  /* About lead text */
  section.bg-dark-1 h3 {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem) !important;
    line-height: 1.45 !important;
    font-weight: 600;
  }

  /* Catalog / project grids */
  .nk-cat-card .nk-body,
  .nk-model-card .nk-body {
    padding: 1rem;
  }

  .nk-specs {
    gap: 0.4rem;
  }

  .nk-spec {
    padding: 0.5rem 0.25rem;
  }

  .nk-spec .nk-spec-val {
    font-size: 0.85rem;
  }

  .nk-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .nk-detail-gallery img {
    aspect-ratio: 16 / 11;
  }

  /* Subheader / page titles */
  #subheader h1,
  .subheader h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  /* Forms */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px !important; /* avoid iOS zoom */
  }

  footer .w-150px {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  header.header-light .menu_side_area .btn-main span {
    font-size: 11px;
  }

  header.header-light #logo img {
    max-height: 32px;
  }

  .mh-800 {
    min-height: 62vh !important;
  }
}

.nk-cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1f1a;
  text-decoration: none !important;
  color: #fff !important;
  height: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.nk-cat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.nk-cat-card .nk-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.nk-cat-card .nk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.nk-cat-card:hover .nk-media img {
  transform: scale(1.08);
}

.nk-cat-card .nk-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 20, 16, 0.92) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.nk-cat-card .nk-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.4rem 1.5rem 1.6rem;
}

.nk-cat-card .nk-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.nk-cat-card h3 {
  color: #fff;
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.nk-cat-card .nk-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nk-cat-card:hover .nk-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Model listing cards */
.nk-model-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 31, 26, 0.08);
  box-shadow: 0 14px 40px rgba(15, 31, 26, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.bg-dark-1 .nk-model-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.nk-model-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 26px 55px rgba(15, 31, 26, 0.16);
}

.nk-model-card .nk-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #e8eee9;
}

.nk-model-card .nk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.nk-model-card:hover .nk-media img {
  transform: scale(1.07);
}

.nk-model-card .nk-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(15, 31, 26, 0.82);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.nk-model-card .nk-body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nk-model-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.bg-dark-1 .nk-model-card h3 {
  color: #fff;
}

.nk-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: auto;
}

.nk-spec {
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: 10px;
  background: rgba(15, 31, 26, 0.04);
}

.bg-dark-1 .nk-spec {
  background: rgba(255, 255, 255, 0.06);
}

.nk-spec .nk-spec-val {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.nk-spec .nk-spec-label {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.nk-model-card .nk-more {
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.3s ease, letter-spacing 0.35s ease;
}

.nk-model-card:hover .nk-more {
  opacity: 1;
  letter-spacing: 0.09em;
}

/* Detail page */
.nk-detail-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.nk-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.nk-detail-gallery a:hover img {
  transform: scale(1.04);
}

.nk-info-panel {
  border-radius: 14px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.nk-info-panel.light {
  background: #fff;
  border: 1px solid rgba(15, 31, 26, 0.08);
  box-shadow: 0 14px 40px rgba(15, 31, 26, 0.06);
}

.nk-info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nk-info-panel.light .nk-info-row {
  border-bottom-color: rgba(15, 31, 26, 0.08);
}

.nk-info-row:last-child {
  border-bottom: 0;
}

.nk-info-row span:first-child {
  opacity: 0.7;
}

.nk-info-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.nk-room-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nk-info-panel.light .nk-room-row {
  border-bottom-color: rgba(15, 31, 26, 0.07);
}

.nk-room-row:last-child {
  border-bottom: 0;
}

.nk-room-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-color, #a8c4a2);
  color: #0f1f1a;
  flex-shrink: 0;
}

.nk-room-name {
  flex: 1;
}

.nk-room-size {
  font-weight: 700;
}

.nk-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .nk-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .nk-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nk-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nk-stat img {
  width: 40px;
  margin-bottom: 0.75rem;
}

.nk-stat .val {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.nk-stat .lbl {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 0.25rem;
}
