/* EXPERIENTIA j.d.o.o. - Bootstrap & Core Layout Stylesheet */
:root {
  --primary: #c0392b;
  --primary-hover: #e74343;
  --primary-dark: #962d22;
  --secondary: #2c3e50;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --border-color: #e5e5e5;
  --shadow-box: 0 0 16px rgba(0, 0, 0, 0.25);
}

*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Ubuntu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #262c33;
  background-image: radial-gradient(#3a4450 15%, transparent 16%), radial-gradient(#3a4450 15%, transparent 16%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

body.boxed {
  position: relative;
  padding: 15px 0;
}

body.boxed div.body {
  max-width: 1180px;
  width: 95%;
  margin: 15px auto 40px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-box);
  padding: 20px 30px 35px;
  min-height: 750px;
  position: relative;
  z-index: 1;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #222222;
  margin-top: 15px;
  margin-bottom: 12px;
}

h1 {
  font-size: 24px;
  color: var(--primary);
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 8px;
}

h2 {
  font-size: 19px;
  color: #2c3e50;
  margin-top: 25px;
  position: relative;
}

h3 {
  font-size: 16px;
  color: #333333;
}

hr {
  border: 0;
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
}

/* Header */
header {
  width: 100%;
  padding: 10px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  max-width: 100%;
  display: block;
}

.header-contact-quick {
  text-align: right;
  font-size: 13px;
  color: #555;
}

.header-contact-quick a {
  font-weight: 700;
  color: var(--primary);
}

.header-contact-quick .phone-highlight {
  font-size: 16px;
  font-weight: bold;
  color: var(--secondary);
  display: block;
}

/* Navigation Bar */
.navbar {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 3px 2px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  background-color: var(--primary);
  color: #ffffff !important;
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin: 8px;
}

/* Grid System */
.container-fluid {
  width: 100%;
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.col-md-12 { width: 100%; padding: 0 12px; }
.col-md-8 { width: 66.6666%; padding: 0 12px; }
.col-md-4 { width: 33.3333%; padding: 0 12px; }
.col-md-6 { width: 50%; padding: 0 12px; }
.col-md-3 { width: 25%; padding: 0 12px; }

/* Slider Section */
#sliderFrame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  padding: 25px 20px 15px;
}

.slider-caption h4 {
  color: #ffffff;
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
}

.slider-caption p {
  margin: 0;
  font-size: 13px;
  color: #f1f1f1;
}

.slider-btn-prev, .slider-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}

.slider-btn-prev:hover, .slider-btn-next:hover {
  background: var(--primary);
}

.slider-btn-prev { left: 12px; }
.slider-btn-next { right: 12px; }

/* News & Demands ticker box */
.ponudavijesti {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  height: 380px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ponudavijesti h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticker-box {
  overflow: hidden;
  height: 130px;
  position: relative;
}

.ticker-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.ticker-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 12.5px;
  line-height: 1.4;
}

.ticker-list li strong {
  color: #2d3748;
}

.ticker-list li a {
  color: #3182ce;
  font-weight: 600;
}

.ticker-list li a:hover {
  color: var(--primary);
}

/* Property Listings */
.latest {
  margin-top: 30px;
}

.property-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-color: #cbd5e0;
}

.property-thumb {
  width: 32%;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.property-thumb img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.property-item:hover .property-thumb img {
  transform: scale(1.03);
}

.property-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.property-info {
  width: 68%;
  padding-left: 20px;
}

.property-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.property-info h3 a {
  color: #2c3e50;
}

.property-info h3 a:hover {
  color: var(--primary);
}

.cijena {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #718096;
}

.property-specs span {
  background: #edf2f7;
  padding: 3px 8px;
  border-radius: 4px;
}

.property-desc {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-details {
  display: inline-block;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.btn-details:hover {
  background: var(--primary-hover);
}

/* Category Tags */
.tagovi {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 35px 0 20px;
  text-align: center;
}

.tagovi h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #2d3748;
}

.tagovi h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.8;
}

.tagovi a {
  color: #3182ce;
  margin: 0 6px;
  font-weight: 600;
}

.tagovi a:hover {
  color: var(--primary);
}

/* Newsletter bar */
.newsletter-banner {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.newsletter-banner h3 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 18px;
}

.newsletter-banner p {
  margin: 0;
  color: #cbd5e0;
  font-size: 13px;
}

.btn-newsletter {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.btn-newsletter:hover {
  background: var(--primary-hover);
}

/* Footer */
footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  font-size: 15px;
  color: #2c3e50;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 13px;
  margin: 4px 0;
  color: #555;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #555;
  font-size: 13px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  background: #2c3e50;
  color: #fff;
  padding: 14px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.copyright a {
  color: #f6ad55;
}

.footer-legal-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #e2e8f0;
  font-size: 12px;
  text-decoration: underline;
}

/* Social floating buttons */
#menu-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.menu-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.menu-item a {
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 {
  color: #fff;
  margin: 0;
  font-size: 17px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 12px 20px;
  background: #f7fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #edf2f7;
}

/* Form inputs */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
  color: #2d3748;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-default {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-default:hover {
  background: #cbd5e0;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a202c;
  color: #ffffff;
  padding: 16px 24px;
  z-index: 99999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

#cookie-banner p {
  margin: 0;
  font-size: 13px;
  max-width: 800px;
  line-height: 1.5;
}

#cookie-banner a {
  color: #63b3ed;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn-cookie-accept:hover {
  background: var(--primary-hover);
}

.btn-cookie-decline {
  background: #4a5568;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Table styles for Cjenik */
.table-cjenik {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.table-cjenik th {
  background: #2c3e50;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
}

.table-cjenik td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
}

.table-cjenik tr:nth-child(even) {
  background: #f8fafc;
}

/* Responsive queries */
@media (max-width: 991px) {
  .col-md-8, .col-md-4, .col-md-6, .col-md-3 {
    width: 100%;
  }
  .ponudavijesti {
    margin-top: 20px;
    height: auto;
  }
  .ticker-box {
    height: 140px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-contact-quick {
    text-align: center;
  }
  .navbar-toggle {
    display: inline-block;
  }
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .navbar-nav.show {
    display: flex;
  }
  .property-thumb, .property-info {
    width: 100%;
    padding-left: 0;
  }
  .property-info {
    margin-top: 12px;
  }
}
