/* ==========================================================================
   Shalimar Invest — site-specific additions on top of the Crafix base theme
   ========================================================================== */

/* Fix: the template ships background-color rules for [data-overlay-dark]:before
   but never defines content/position for the pseudo-element itself. Without
   this, the dark overlay never actually renders over hero/section images. */
[data-overlay-dark] {
  position: relative;
}
[data-overlay-dark]:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}
[data-overlay-dark] > .container,
[data-overlay-dark] > .container-fluid {
  position: relative;
  z-index: 2;
}


/* Defensive fix for the header dropdown submenus (Текущи/Завършени проекти):
   ensure the submenu <ul> always positions relative to its own <li>, not
   some other ancestor, and always sits above page content. */
.navbar-nav > li {
  position: relative;
}
.navbar-nav li > ul {
  z-index: 999;
}
/* Multi-word nav labels (ТЕКУЩИ ПРОЕКТИ, ЗАВЪРШЕНИ ПРОЕКТИ, etc.) were
   wrapping onto a second line, which could get visually cut off depending
   on the row's height. Keep every top-level label on one line. */
.navbar-nav > li > a {
  white-space: nowrap;
}
header,
.navbar-default,
.menu_area,
.main-wrapper {
  overflow: visible;
}

/* On scroll, the template only made the nav row sticky, leaving the topbar
   behind it. Make the whole header (topbar + nav) stick together instead. */
@media (min-width: 992px) {
  header.scrollHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
  }
  /* Neutralize the template's own fixed-positioning on the nav row now that
     its parent <header> is the one that's fixed — it just flows normally
     underneath the topbar inside that fixed header. */
  header.scrollHeader .navbar-default {
    position: static !important;
    top: auto !important;
    animation: none !important;
  }
}
/* Nav link color: brand gold instead of the template's default white */
.menu_area-light .navbar-nav > li > a {
  color: var(--primary-color);
}
.menu_area-light .navbar-nav > li.has-sub > a:hover {
  color: var(--primary-color);
}

/* White background for the nav row (topbar above stays dark green) */
.header-style1 .navbar-default {
  background: #fff;
}

.shalimar-topbar {
  background: var(--secondary-color);
  font-size: 13px;
  padding: 7px 0;
}
.shalimar-topbar a {
  color: rgba(255, 255, 255, 0.85);
}
.shalimar-topbar a:hover {
  color: var(--primary-color);
}
.shalimar-topbar i {
  color: var(--primary-color);
  margin-right: 6px;
}
.shalimar-topbar .topbar-sep {
  opacity: 0.25;
  margin: 0 14px;
}
.shalimar-topbar .topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 6px;
}
.shalimar-topbar .topbar-social a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Unit / property status badges */
.unit-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 30px;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}
.unit-badge.status-available {
  background: #2f7a4d;
  color: #fff;
}
.unit-badge.status-reserved {
  background: #c9962f;
  color: #fff;
}
.unit-badge.status-sold {
  background: #6b6b6b;
  color: #fff;
}

/* Unit card (used in the featured-units carousel) */
.unit-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.unit-card .unit-card-img {
  height: 100%;
  min-height: 320px;
}
.unit-card .unit-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.unit-card .unit-card-meta img {
  width: 20px;
  height: 20px;
}

/* Materials & innovation image cards */
.info-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  min-height: 280px;
}
.info-card .info-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 36, 28, 0) 35%, rgba(22, 36, 28, 0.92) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.info-card .info-card-overlay h3,
.info-card .info-card-overlay p {
  color: #fff;
}
.info-card .info-card-overlay p {
  opacity: 0.85;
  font-size: 14px;
  margin-bottom: 0;
}

/* Completed-project badge ribbon */
.project-sold-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
  z-index: 5;
}

/* Partner logo box */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.25s ease;
}
.partner-logo:hover {
  filter: none;
  opacity: 1;
}

/* News card */
.news-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 36, 28, 0.08);
}
.news-card .news-card-img {
  height: 220px;
}
.news-card .news-card-body {
  padding: 24px;
}
.news-card .news-date {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card h3 {
  color: var(--secondary-color);
}
.news-card:hover h3 {
  color: var(--primary-color);
}

/* Stat block fallback (in case odometer JS doesn't run) */
.counter-block .counter-no {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Subtle bottom gradient over the hero video, for text legibility without
   darkening the whole video like the old full-overlay did. */
.hero-bottom-gradient:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(22, 36, 28, 0) 0%, rgba(22, 36, 28, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Dark background panel behind the hero text, now that it sits at the
   bottom of the slider instead of being centered over the video. */
.hero-content-box {
  background: rgba(22, 36, 28, 0.72);
  border-radius: 12px;
  padding: 32px 36px;
  position: relative;
  z-index: 2;
}
@media (max-width: 575px) {
  .hero-content-box {
    padding: 22px 20px;
  }
}

/* Hero background video */
.hero-video-section {
  overflow: hidden;
}
.hero-full {
  width: 100%;
  height: 650px;
  min-height: 650px;
  position: relative;
  overflow: visible;
}
.hero-full h1 {
  font-size: 2.6rem;
}
@media (min-width: 992px) {
  .hero-full h1 {
    font-size: 3.2rem;
  }
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}
/* Stacking order inside the hero: video (z-index:0) → dark overlay
   pseudo-element (z-index:1, defined earlier) → text container (z-index:2) */
.hero-video-section .container {
  position: relative;
  z-index: 2;
}
/* If the browser can't play the video (data-saver mode, very old browser),
   the section's own background image — set via bg_attr() — shows through. */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Missing utility used on the intro image block in index.php */
.min-height-450 {
  min-height: 450px;
}

/* FIX: plugins/default.css sets .cover-background { position: relative !important; }
   which overrides the inline position:absolute on the homepage image layers
   (info cards, materials, completed projects), collapsing them to 0 height.
   Restore absolute positioning for any cover-background that declares it inline. */
.info-card .cover-background,
.cover-background[style*="position:absolute"] {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Third-level nav flyout (Разпределения under every project):
   position each submenu item relatively so its own child <ul> flies out
   right next to it, without the hover gap the template's fixed 260px
   offset would create. */
@media (min-width: 992px) {
  .navbar-nav ul > li { position: relative; }
  .navbar li > ul ul { margin: 0; top: -15px; min-width: 225px; }
  .navbar-nav ul > li:hover > ul { left: calc(100% - 5px); }
}

/* Remove the template's tiny dropdown-arrow indicators next to menu items
   with submenus (Текущи/Завършени проекти) — on the white nav bar they
   render as stray dark dots. */
.navbar > ul > li.has-sub > a:after,
.navbar > ul > li.has-sub > a:before {
    display: none !important;
}

/* Rich-text content must never spill out of its column
   (long words, links, or pasted content without spaces). */
.rich-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}
.rich-text img {
    max-width: 100%;
    height: auto;
}