/*
 Theme Name:   Kale Child
 Theme URI:    http://bgnovogradnja.rs/kale-child/
 Description:  Kale Child Theme
 Author:       BG Novogradnja
 Author URI:   http://example.com
 Template:     kale
 Version:      1.0.7
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  kale-child
*/


.credit {
  visibility: hidden;
}

/* ============================================================
   KALE CHILD - FULL CSS (NO STICKY, PANELS IMPROVED)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- 1) GLOBAL / SAFE RESETS --- */
.nc-main-info-panel,
#nc-investor-widget,
.nc-tech-details,
.nc-article-text,
.nc-floating-report-btn {
  font-family: 'Manrope', sans-serif;
}

/* --- 2) PAGE WIDTH --- */
@media (min-width: 1200px) {
  .container {
    width: 1300px !important;
    max-width: 95% !important;
  }

  .page-content {
    max-width: 1260px !important;
  }
}

/* ============================================
   GLOBAL TYPOGRAPHY - UNIFIED
   ============================================ */

/* Glavni content kontejneri - sve stranice */
.entry-content,
.single-content,
.page-content,
.post-content,
.nc-article-text,
article .content,
.site-content .content-wrap {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #1a1a1a !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Paragrafi - uniform spacing */
.entry-content p,
.single-content p,
.page-content p,
.nc-article-text p,
article p {
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
    line-height: 1.8 !important;
}

/* Naslovi - uniform styling */
.entry-content h2,
.single-content h2,
.page-content h2,
.nc-article-text h2,
article h2 {
    font-size: 1.75em !important;
    line-height: 1.3 !important;
    margin-top: 2em !important;
    margin-bottom: 1em !important;
    padding-bottom: 0.5em !important;
    border-bottom: 3px solid #3498db !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.entry-content h3,
.single-content h3,
.page-content h3,
.nc-article-text h3,
article h3 {
    font-size: 1.4em !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.8em !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.entry-content h4,
.single-content h4,
.page-content h4,
.nc-article-text h4,
article h4 {
    font-size: 1.2em !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.7em !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Liste - uniform */
.entry-content ul,
.entry-content ol,
.single-content ul,
.single-content ol,
.page-content ul,
.page-content ol,
.nc-article-text ul,
.nc-article-text ol,
article ul,
article ol {
    margin: 1.5em 0 !important;
    padding-left: 2em !important;
}

.entry-content li,
.single-content li,
.page-content li,
.nc-article-text li,
article li {
    margin-bottom: 0.8em !important;
    line-height: 1.8 !important;
}

/* Blog arhiva excerpt */
.archive .entry-summary,
.blog .entry-summary,
.search .entry-summary {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}

/* Tabele - uniform */
.entry-content table,
.single-content table,
.page-content table,
.nc-article-text table,
article table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2em 0 !important;
    font-size: 0.9em !important;
}

.entry-content th,
.entry-content td,
.single-content th,
.single-content td,
.page-content th,
.page-content td,
.nc-article-text th,
.nc-article-text td,
article th,
article td {
    border: 1px solid #ddd !important;
    padding: 12px 15px !important;
    text-align: left !important;
    line-height: 1.6 !important;
}

.entry-content th,
.single-content th,
.page-content th,
.nc-article-text th,
article th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
}


/* === FIX ZA SELECT DROPDOWNS === */
.nc-filter-select {
  min-width: 200px !important;
  max-width: 100% !important;
}

.nc-filter-select option {
  padding: 8px !important;
  font-size: 14px !important;
}

/* Mobile: selekti preko cele širine */
@media (max-width: 768px) {
  .nc-map-filters {
    grid-template-columns: 1fr !important;
  }

  .nc-filter-group {
    width: 100% !important;
  }

  .nc-filter-select {
    width: 100% !important;
    font-size: 16px !important;
    /* Prevents zoom on iOS */
  }
}

.sidebar {
  margin-top: 32px;
}

/* MapPress popup card links: keep same color for visited */
.mapp-layout a,
.mapp-layout a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* --- 3) HIDE META --- */
.single-post .entry-meta,
.single-post .post-meta {
  display: none !important;
}

/* ============================================================
   4) INFO PANEL (WHITE)
   ============================================================ */
.nc-main-info-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 34px;
  margin-top: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Price header row */
.nc-price-row {
  display: block;
}

.nc-price-box .nc-label-small {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nc-price-val {
  font-size: 3.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 6px 0 10px;
  line-height: 1.02;
}

/* small unit */
.nc-price-unit {
  font-size: 1.05rem;
  font-weight: 900;
  color: #334155;
  margin-left: 8px;
  white-space: nowrap;
}

/* "sa PDV-om" */
.nc-price-pdv {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin-left: 8px;
  white-space: nowrap;
}

/* badges row under price (PDV + Finansiranje) */
.nc-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.nc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 900;
  border: 1px solid transparent;
  line-height: 1.1;
}

.nc-badge i {
  font-size: 1.05rem;
}

/* PDV badge variants */
.nc-badge.vat-yes {
  background: #e0f2fe;
  color: #075985;
  border-color: #7dd3fc;
}

.nc-badge.vat-no {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Finance badge variants */
.nc-badge.fin-yes {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}

.nc-badge.fin-no {
  background: #fff7ed;
  color: #7c2d12;
  border-color: #fdba74;
}

/* Specs grid */
.nc-specs-grid-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #edf2f7;
}

.nc-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nc-spec-item i {
  font-size: 1.55rem;
  margin-top: 2px;
  opacity: 1;
  flex: 0 0 auto;
}

.nc-spec-item span {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #334155;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
}

.nc-spec-item strong {
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
  display: inline-block;
}

/* Color icons by meaning */
.nc-spec-item i.fa-vector-square {
  color: #334155;
}

/* Struktura */
.nc-spec-item i.fa-ruler-combined {
  color: #b45309;
}

/* Površina */
.nc-spec-item i.fa-layer-group {
  color: #0f766e;
}

/* Spratnost */
.nc-spec-item i.fa-leaf {
  color: #16a34a;
}

/* Energetski */
.nc-spec-item i.fa-car {
  color: #2563eb;
}

/* Parking */
.nc-spec-item i.fa-calendar-check {
  color: #7c3aed;
}

/* Useljenje */
.nc-spec-item i.fa-fire-burner {
  color: #ea580c;
}

/* Grejanje */
.nc-spec-item i.fa-window-maximize {
  color: #0891b2;
}

/* Stolarija */

/* Highlight eco grade value */
.nc-spec-item i.fa-leaf+div strong {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   6) INVESTOR PANEL (BLACK)
   ============================================================ */
#nc-investor-widget {
  border: none;
  background: #1a202c;
  color: white;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

#nc-investor-widget .nc-inv-label {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#nc-investor-widget .nc-inv-name {
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 18px 0;
  border: none;
  padding: 0;
}

.nc-inv-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nc-btn-inv {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  line-height: 1;
}

.nc-btn-inv.call {
  background: #2563eb;
  color: white;
}

.nc-btn-inv.call:hover {
  background: #1d4ed8;
  color: white;
}

.nc-btn-inv.email {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nc-btn-inv.email:hover {
  background: rgba(255, 255, 255, 0.20);
  color: white;
}

.nc-btn-inv.web {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e2e8f0;
}

.nc-btn-inv.web:hover {
  border-color: rgba(226, 232, 240, 0.85);
  color: #ffffff;
}

/* Investor widget logo */
.nc-inv-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.nc-inv-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}



/* ============================================================
   7) TECH DETAILS (ACCORDION) + ICONS
   ============================================================ */
details.nc-tech-details {
  margin-top: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

summary.nc-tech-summary {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary.nc-tech-summary span {
  font-weight: 800;
  color: #334155;
}

summary.nc-tech-summary:hover {
  filter: brightness(0.985);
}

details[open] summary.nc-tech-summary i {
  transform: rotate(180deg);
}

.nc-tech-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.nc-tech-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.nc-tech-ico {
  font-size: 1.45rem;
  margin-top: 2px;
  flex: 0 0 auto;
}

.nc-tech-ico.doors {
  color: #0f172a;
}

.nc-tech-ico.lift {
  color: #2563eb;
}

.nc-tech-ico.internet {
  color: #0891b2;
}

.nc-tech-ico.ceiling {
  color: #7c3aed;
}

.nc-tech-ico.interfon {
  color: #ea580c;
}

.nc-tech-ico.floor {
  color: #b45309;
}

.nc-tech-item span {
  font-size: 0.85rem;
  color: #334155;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

.nc-tech-item strong {
  color: #0f172a;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.35;
  display: block;
}

/* ===================================
   RASPRODATO BADGE + GRAYSCALE
   =================================== */

/* Badge */
body.nc-property-inactive .entry-thumb::after {
    content: "RASPRODATO";
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    padding: 12px 24px;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    z-index: 999;
    transform: rotate(-3deg);
    pointer-events: none;
}

/* Grayscale na sliku */
body.nc-property-inactive .entry-thumb img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Semi-transparent overlay */
body.nc-property-inactive .entry-thumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Position relative za parent */
body.nc-property-inactive .entry-thumb {
    position: relative !important;
}

@media (max-width: 768px) {
    body.nc-property-inactive .entry-thumb::after {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ===================================
   INVESTOR WIDGET - INACTIVE NOTICE
   =================================== */

.nc-inv-inactive-notice {
    text-align: center;
    padding: 20px;
}

.nc-inv-inactive-notice strong {
    color: #e2e8f0;
    font-size: 16px;
}

.nc-btn-inv.view-other {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nc-btn-inv.view-other:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.nc-btn-inv.view-other i {
    margin-right: 8px;
}



/* ============================================================
   8) RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .nc-main-info-panel {
    padding: 26px;
  }

  .nc-price-val {
    font-size: 2.6rem;
  }

  .nc-specs-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nc-spec-item strong {
    font-size: 1.15rem;
  }

  .nc-tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nc-specs-grid-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MOBILE FIX PATCH (panels)
   ============================================================ */

/* 1) Spreči prelivanje teksta u flex/grid children */
.nc-spec-item div,
.nc-tech-item>div,
.nc-price-box {
  min-width: 0;
  /* critical with flex/grid */
}

.nc-spec-item strong,
.nc-tech-item strong,
.nc-price-val {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 2) Price header: na mobilnom u kolonu, manji unit/sufiks */
@media (max-width: 640px) {
  .nc-main-info-panel {
    padding: 20px;
  }

  .nc-price-val {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .nc-price-unit,
  .nc-price-pdv {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #334155;
  }

  .nc-price-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nc-badge {
    width: 100%;
    justify-content: flex-start;
  }

  /* Specs: uvek 1 kolona na malom mobilnom */
  .nc-specs-grid-main {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .nc-spec-item i {
    font-size: 1.4rem;
  }

  .nc-spec-item span {
    font-size: 0.82rem;
  }

  .nc-spec-item strong {
    font-size: 1.12rem;
  }

  /* Investor panel spacing */
  #nc-investor-widget {
    padding: 18px;
  }

  #nc-investor-widget .nc-inv-name {
    font-size: 1.35rem;
  }

  .nc-btn-inv {
    padding: 14px;
    font-size: 1rem;
  }
}

/* 3) Tablet: 2 kolone za specs, ali stabilno */
@media (max-width: 991px) {
  .nc-specs-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nc-tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FORCE KALE TWO-COLUMN LAYOUT ON DESKTOP
   ============================================================ */

@media (min-width: 992px) {

  /* 1) Force the row to be flex (prevents sidebar dropping below) */
  .single-post .row.two-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  /* 2) Content column (left) */
  .single-post .row.two-columns>.col-md-8,
  .single-post .row.two-columns>.main-column {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  /* 3) Sidebar column (right) */
  .single-post .row.two-columns>.col-md-4.sidebar,
  .single-post .row.two-columns>.sidebar {
    flex: 0 0 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    min-width: 320px !important;
    margin-left: 30px !important;
  }

  /* 4) Neutralize floats/clears that can break columns */
  .single-post .sidebar {
    float: none !important;
    clear: none !important;
  }
}

/* Safety: allow widgets like maps/galleries to render without clipping */
.sidebar {
  overflow: visible !important;
}

.sidebar * {
  box-sizing: border-box;
}

/* ============================================================
   STICKY INVESTOR WIDGET
   ============================================================ */
@media (min-width: 992px) {
  aside.sidebar .default-widget:has(#nc-investor-widget) {
    height: auto !important;
    min-height: 150vh !important;
  }

  #nc-investor-widget {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 100;
  }
}

/* ===== NEARBY POI STYLES ===== */

.nc-nearby-pois {
  margin: 30px 0;
  padding: 0;
}

.nc-nearby-pois .nc-sidebar-title {
  margin-bottom: 20px;
}

.nc-poi-category {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}

.nc-poi-category:last-child {
  margin-bottom: 0;
}

.nc-poi-cat-title {
  font-size: 16px;
  color: #2c3e50;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
}

.nc-poi-cat-title i {
  margin-right: 6px;
  color: #3498db;
}

.nc-poi-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nc-poi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8eaed;
}

.nc-poi-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nc-poi-name {
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

.nc-poi-distance {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  background: white;
  padding: 3px 8px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .nc-poi-category {
    padding: 15px;
  }

  .nc-poi-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nc-poi-distance {
    align-self: flex-end;
  }
}

/* ===== LEAFLET MAP STYLES ===== */

.nc-map-wrapper {
  margin: 30px 0;
}

.nc-leaflet-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nc-map-marker-single,
.nc-map-marker {
  background: transparent;
  border: none;
}

.nc-marker-pin {
  width: 40px;
  height: 40px;
  background: #3498db;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.nc-marker-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 18px;
}

.nc-popup {
  font-family: inherit;
  min-width: 200px;
}

.nc-popup h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #2c3e50;
}

.nc-popup p {
  margin: 5px 0;
  font-size: 14px;
  color: #64748b;
}

.nc-popup-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #3498db;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s;
}

.nc-popup-link:hover {
  background: #2980b9;
}

/* ===== MAP FILTERS - FIXED ===== */

.nc-map-filter-container {
  margin: 40px 0;
}

.nc-map-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr)) auto;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: end;
}

.nc-filter-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nc-filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  white-space: nowrap;
}

.nc-filter-group label i {
  margin-right: 6px;
  color: #3498db;
}

/* === FIX ZA SELECT DROPDOWNS - CHROME COMPATIBLE === */
.nc-filter-select {
  width: 100% !important;
  min-width: 250px !important;
  max-width: 100% !important;
  padding: 10px 40px 10px 12px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background: white !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  white-space: normal !important;
}

.nc-filter-select:focus {
  outline: none !important;
  border-color: #3498db !important;
}

.nc-filter-select option {
  padding: 8px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

@media (max-width: 768px) {
  .nc-filter-select {
    min-width: 100% !important;
    font-size: 16px !important;
  }
}

.nc-btn-reset {
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  height: 42px;
}

.nc-btn-reset:hover {
  background: #c0392b;
}

.nc-map-stats {
  margin-top: 15px;
  padding: 12px 20px;
  background: #ecf0f1;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  color: #2c3e50;
}

.nc-map-stats #nc-visible-count,
.nc-map-stats span[id^="nc-visible-count"] {
  font-weight: 700;
  color: #3498db;
  font-size: 18px;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(52, 152, 219, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(52, 152, 219, 0.8);
  color: white;
  font-weight: 700;
}

/* Custom popup styling - remove default Leaflet padding */
.nc-custom-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nc-custom-popup .leaflet-popup-content {
  margin: 0;
  width: 320px !important;
}

.nc-custom-popup .leaflet-popup-tip {
  background: #fff;
}

.nc-custom-popup a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nc-custom-popup a.leaflet-popup-close-button:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .nc-map-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nc-btn-reset {
    width: 100%;
    height: auto;
    padding: 12px 20px;
  }

  .nc-leaflet-map {
    height: 350px;
  }
}

/* === CUSTOM SELECT DROPDOWN === */
.nc-map-filter-container .nc-custom-select {
  position: relative !important;
  width: 100% !important;
}

.nc-map-filter-container .nc-custom-select-trigger {
  padding: 10px 40px 10px 12px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  background: white !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 42px !important;
  transition: border-color 0.2s !important;
}

.nc-map-filter-container .nc-custom-select-trigger:hover {
  border-color: #3498db !important;
}

.nc-map-filter-container .nc-custom-select-trigger i {
  transition: transform 0.2s !important;
  color: #334155 !important;
}

.nc-map-filter-container .nc-custom-select.active .nc-custom-select-trigger i {
  transform: rotate(180deg) !important;
}

.nc-map-filter-container .nc-custom-options {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 2px solid #3498db !important;
  border-radius: 6px !important;
  margin-top: 4px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  z-index: 1000 !important;
  display: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.nc-map-filter-container .nc-custom-select.active .nc-custom-options {
  display: block !important;
}

.nc-map-filter-container .nc-custom-option {
  padding: 10px 12px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
}

.nc-map-filter-container .nc-custom-option:hover {
  background: #f1f5f9 !important;
}

.nc-map-filter-container .nc-custom-option.selected {
  background: #e0f2fe !important;
  font-weight: 600 !important;
}

.nc-map-filter-container .nc-custom-option[style*="display: none"] {
  display: none !important;
}

@media (max-width: 768px) {
  .nc-map-filter-container .nc-custom-select-trigger {
    font-size: 16px !important;
  }
}

/* === FORCE MOBILE DROPDOWN === */
.nc-map-filter-container .nc-custom-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #3498db;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nc-map-filter-container .nc-custom-select.active .nc-custom-options {
  display: block;
}

/* ============================================
   FLUENT FORMS - FOOTER WIDGET MOBILE FIX
   ============================================ */

/* Footer widget area container */
.footer-widget-area,
.footer-widgets {
    max-width: 100%;
    overflow-x: hidden;
}

/* Newsletter widget specifično */
.widget_text .fluentform,
.widget_fluentform {
    max-width: 100%;
    overflow-x: hidden;
}

/* Naslov u footer widgetu */
.footer-widget-area .widget-title,
.footer-widgets .widget-title,
.widget_text h2,
.widget_text h3 {
    font-size: 18px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fluent Forms u footer-u */
.footer-widget-area .ff-el-group,
.footer-widgets .ff-el-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
}

.footer-widget-area .ff-el-form-control,
.footer-widgets .ff-el-form-control {
    width: 100% !important;
    max-width: 100% !important;
}

.footer-widget-area input[type="email"],
.footer-widget-area input[type="text"],
.footer-widgets input[type="email"],
.footer-widgets input[type="text"] {
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px !important;
}

.footer-widget-area .ff_submit_btn_wrapper,
.footer-widgets .ff_submit_btn_wrapper {
    width: 100% !important;
}

.footer-widget-area button[type="submit"],
.footer-widgets button[type="submit"] {
    width: 100% !important;
    font-size: 14px !important;
    padding: 12px !important;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .footer-widget-area .widget-title,
    .footer-widgets .widget-title,
    .widget_text h2,
    .widget_text h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    /* Force stack na mobilnom */
    .footer-widget-area .ff-t-container,
    .footer-widgets .ff-t-container {
        display: block !important;
    }
    
    .footer-widget-area .ff-t-cell,
    .footer-widgets .ff-t-cell {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Input padding adjustment */
    .footer-widget-area input,
    .footer-widget-area textarea,
    .footer-widgets input,
    .footer-widgets textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* ============================================
   NEWSLETTER WIDGET #BLOCK-16 - RESPONSIVE TEXT
   ============================================ */

/* Desktop - pun naslov */
#block-16 h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 15px !important;
}

/* Mobile - skraćen naslov */
@media (max-width: 768px) {
    #block-16 h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 480px) {
    #block-16 h3 {
        font-size: 14px !important;
        -webkit-line-clamp: 1 !important;
    }
}

/* Fluent Form width fix */
#block-16 .fluentform,
#block-16 .ff-el-group,
#block-16 input,
#block-16 button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #block-16 {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    #block-16 input {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

/* ============================================
   FLOATING REPORT BUTTON
   ============================================ */

.nc-floating-report-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #e74c3c !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
    cursor: pointer !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nc-floating-report-btn:hover,
.nc-floating-report-btn:active {
    background: #c0392b !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
    transform: translateY(-2px) !important;
}

.nc-report-icon {
    font-size: 20px !important;
    line-height: 1 !important;
}

.nc-report-text {
    white-space: nowrap !important;
}

.nc-report-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    justify-content: center !important;
    align-items: center !important;
}

.nc-report-modal.active {
    display: flex !important;
}

.nc-report-modal-content {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.nc-report-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    color: #999 !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
}

.nc-report-close:hover,
.nc-report-close:active {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.nc-report-modal h3 {
    margin: 0 0 20px 0 !important;
    font-size: 24px !important;
    color: #333 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nc-floating-report-btn {
        bottom: 15px !important;
        right: 15px !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    .nc-report-text {
        display: none !important;

    }
    
    .nc-report-modal-content {
        padding: 20px !important;
        width: 95% !important;
        max-height: 95vh !important;
        border-radius: 8px !important;
    }
    
    .nc-report-modal h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        padding-right: 30px !important;
    }
    
    /* Fluent Forms responsive override */
    .nc-report-modal .ff-el-group,
    .nc-report-modal .ff-el-form-control {
        width: 100% !important;
    }
}

/* END OF KALE CHILD THEME CSS */
