/* Single Preduzece scoped styles */

.single-preduzece {
  background: #f9fafb;
}

/* ── Hero ── */

.preduzece-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.preduzece-hero img,
.preduzece-hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.preduzece-hero-placeholder {
  background: var(--color-dark-blue);
}

.preduzece-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 33, 67, 0.3) 0%,
    rgba(20, 33, 67, 0.65) 100%
  );
}

/* ── Breadcrumb ── */

.hero-breadcrumb {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}

.hero-breadcrumb-inner {
  max-width: calc(1100px + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.breadcrumb li a:hover {
  color: var(--color-beige);
}

.breadcrumb li.active {
  color: var(--color-beige);
  font-weight: 500;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Info card ── */

.info-card-wrap {
  position: relative;
  z-index: 10;
  margin-top: -56px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px 40px;
  max-width: calc(1100px + 48px);
}

.info-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

/* Card header: logo + title */

.card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid #f3f4f6;
}

.card-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #f3f4f6;
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-dark-blue);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.card-tagline {
  font-size: 17px;
  color: #4b5563;
  font-style: italic;
  margin: 0;
}

.card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red);
  background: rgba(235, 32, 76, 0.08);
  border: 1px solid rgba(235, 32, 76, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Card grid: contact + hours */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.card-col {
  padding: 24px 32px;
}

.card-col + .card-col {
  border-left: 1px solid #f3f4f6;
}

.card-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-col-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Contact rows */

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  align-items: center;
  color: #1f2937;
}

.contact-row:last-of-type {
  margin-bottom: 0;
}

.contact-icon {
  color: var(--color-dark-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-link {
  color: #1f2937;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-red);
}

/* Map toggle button */

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark-blue);
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.map-btn:hover {
  background: var(--color-beige);
}

/* Social icons */

.contact-social {
  display: flex;
  gap: 10px;
  padding-top: 14px;
}

.social-icon-link {
  color: #9ca3af;
  transition: color 0.2s;
}

.social-icon-link:hover {
  color: var(--color-red);
}

/* Hours rows */

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  color: #4b5563;
}

.hours-time {
  font-weight: 500;
  color: #1f2937;
}

.hours-closed {
  color: #9ca3af;
  font-style: italic;
}

/* Services */

.card-services {
  padding: 18px 32px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.services-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-right: 4px;
}

.service-tag {
  font-size: 15px;
  background: linear-gradient(135deg, #fee6cd 0%, var(--color-beige) 100%);
  color: #1a1b2a;
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.service-tag:hover {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1e3a5f 100%);
  color: #fee6cd;
}

/* Map embed (smooth CSS max-height toggle) */

.preduzece-map {
  border-top: 1px solid #f3f4f6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.preduzece-map.open {
  max-height: 400px;
  height: 380px;
}

.preduzece-map.is-inline {
  border-top: none;
  height: 100%;
  isolation: isolate;
  max-height: none;
  min-height: 260px;
  transition: none;
}

.preduzece-map .leaflet-container {
  height: 100%;
  width: 100%;
}

/* ── Main content ── */

.main-content {
  max-width: calc(1100px + 48px);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.content-card-header {
  padding: 28px 40px 0;
}

.content-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-blue);
  letter-spacing: -0.2px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.content-card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* WYSIWYG */

.wysiwyg-body {
  padding: 32px 40px 40px;
}

.prose {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  width: 100%;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: 1.6em 0 0.6em;
  letter-spacing: -0.2px;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 1.4em 0 0.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  font-weight: 600;
  color: #1a1b2a;
}

.prose a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  opacity: 0.8;
}

.prose blockquote {
  border-left: 4px solid var(--color-beige);
  padding: 12px 20px;
  margin: 1.4em 0;
  background: #f9fafb;
  border-radius: 0 10px 10px 0;
  color: #4b5563;
  font-style: italic;
}

.prose img.alignleft {
  float: left;
  margin: 0.4em 1.6em 1em 0;
}

.prose img.alignright {
  float: right;
  margin: 0.4em 0 1em 1.6em;
}

.prose img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.prose figure {
  margin: 1.4em 0;
}

.prose figcaption {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  margin-top: 6px;
}

.prose::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Gallery slider ── */

.gallery-body {
  padding: 0;
}

.gallery-slider {
  display: flex;
  flex-direction: column;
}

/* Stage */

.gallery-stage {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #0d1520;
  cursor: pointer;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.1);
}

.gallery-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* Hover zoom icon hint */

.gallery-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 67, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-stage:hover::after {
  background: rgba(20, 33, 67, 0.18);
}

/* Prev / Next */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.gallery-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.gallery-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* Counter */

.gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 10;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

/* Filmstrip thumbnails */

.gallery-thumbs-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #111827;
  scrollbar-width: none;
}

.gallery-thumbs-strip::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  padding: 0;
  background: none;
  opacity: 0.55;
}

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

.gallery-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.4);
}

.gallery-thumb.is-active {
  border-color: var(--color-red);
  opacity: 1;
}

/* ── Lightbox ── */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 15, 30, 0.93);
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .preduzece-hero {
    height: 240px;
  }

  .info-card-wrap {
    margin-top: -32px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .card-logo {
    width: 110px;
    height: 110px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-col + .card-col {
    border-left: none;
    border-top: 1px solid #f3f4f6;
  }

  .card-col {
    padding: 20px;
  }

  .card-services {
    padding: 16px 20px;
  }

  .content-card-header {
    padding: 24px 24px 0;
  }

  .content-card-title {
    font-size: 17px;
  }

  .wysiwyg-body {
    padding: 24px;
  }

  .prose {
    font-size: 15px;
  }

  .prose img.alignleft,
  .prose img.alignright {
    float: none;
    margin: 1em 0;
    width: 100%;
  }

  .gallery-stage {
    height: 220px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .gallery-thumb {
    width: 58px;
    height: 42px;
  }
}
