/**
 * JawnoĹ›Ä‡ Cen MieszkaĹ„ - Design System CSS
 * Modern, clean, minimal design with graphite primary color
 * Version: 1.0
 */

/* ============================================================================
   CSS VARIABLES - Design System Foundation
   ============================================================================ */

:root {
  /* ========================================
     THEME INTEGRATION - łączy z card-styles.css theme system
     Zmiana koloru w card-styles.css automatycznie aktualizuje cały motyw
     ======================================== */
  --theme-primary: var(--jcm-theme-primary, #667eea);
  --theme-primary-light: var(--jcm-theme-primary-light, #8da3f0);
  --theme-primary-dark: var(--jcm-theme-primary-dark, #4c5aa8);
  --theme-hover: var(--jcm-theme-hover, #8da3f0);
  --theme-active: var(--jcm-theme-active, #4c5aa8);
  
  /* Colors - Palette (używa theme colors) */
  --color-primary: var(--theme-primary);
  --color-primary-light: var(--theme-primary-light);
  --color-primary-dark: var(--theme-primary-dark);
  
  --color-success: #10b981;
  --color-warning: #f59e0b; /* Orange for reserved status */
  --color-danger: #ef4444; /* Red for sold status */
  
  --color-text-dark: #000000;
  --color-text-base: #000000;
  --color-text-light: #000000;
  --color-text-muted: #000000;
  
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-lighter: #f1f5f9;
  
  --color-border: #000000;
  --color-border-light: #f1f5f9;
  
  /* Spacing - 8px base unit (increased for better visual comfort) */
  --space-xs: 12px;
  --space-sm: 18px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Typography - Ocean WP Integration via CSS Variables */
  --font-family-base: var(--jcm-ocean-body-font-family, inherit);
  --font-family-headings: var(--jcm-ocean-headings-font-family, inherit);
  --font-weight-base: var(--jcm-ocean-body-font-weight, 400);
  --font-weight-headings: var(--jcm-ocean-headings-font-weight, 600);
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: var(--jcm-ocean-body-font-size, 16px);
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  
  --font-weight-normal: var(--font-weight-base);
  --font-weight-medium: var(--font-weight-base);
  --font-weight-semibold: var(--font-weight-headings);
  --font-weight-bold: var(--font-weight-headings);
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Border Radius */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Breakpoints */
  --bp-mobile: 320px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1440px;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

/* Universal reset - scoped to plugin containers only to avoid theme conflicts */
.jcm-archive-lokal-container *,
.jcm-archive-inwestycja-container *,
.jcm-single-lokal *,
.jcm-single-inwestycja-container *,
.jcm-lokale-archive-by-inwestycja *,
.lokal-card *,
.inwestycja-card *,
.jcm-shortcode-grid *,
.jcm-modal-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CRITICAL: DO NOT TOUCH ELEMENTOR CONTENT - Let Elementor inline styles control everything */
/* Removed margin/padding revert - Elementor handles all styling via inline styles */

/* CRITICAL: Exclude Image Map Pro from reset */
.lokal-single__content-section [id*="image-map-pro"],
.lokal-single__content-section [id*="image-map-pro"] *,
.inwestycja-single__content-section [id*="image-map-pro"],
.inwestycja-single__content-section [id*="image-map-pro"] * {
  margin: initial !important;
  padding: initial !important;
  box-sizing: initial !important;
}

/* Exempt headings from the reset within plugin containers as they have their own rules */
.jcm-archive-lokal-container h1, .jcm-archive-lokal-container h2, .jcm-archive-lokal-container h3, .jcm-archive-lokal-container h4, .jcm-archive-lokal-container h5, .jcm-archive-lokal-container h6,
.jcm-archive-inwestycja-container h1, .jcm-archive-inwestycja-container h2, .jcm-archive-inwestycja-container h3, .jcm-archive-inwestycja-container h4, .jcm-archive-inwestycja-container h5, .jcm-archive-inwestycja-container h6,
.jcm-single-lokal h1, .jcm-single-lokal h2, .jcm-single-lokal h3, .jcm-single-lokal h4, .jcm-single-lokal h5, .jcm-single-lokal h6,
.jcm-single-inwestycja-container h1, .jcm-single-inwestycja-container h2, .jcm-single-inwestycja-container h3, .jcm-single-inwestycja-container h4, .jcm-single-inwestycja-container h5, .jcm-single-inwestycja-container h6 {
  margin: revert;
  padding: revert;
}

/* Box-sizing for headings only */
h1, h2, h3, h4, h5, h6 {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



/* Main containers */
.jcm-archive-lokal-container,
.jcm-archive-inwestycja-container,
.jcm-single-lokal,
.jcm-single-inwestycja-container {
  box-sizing: border-box;
}

/* EXCEPTION: Interactive plugins (ImageMapPro) need overflow visible for tooltips */
.jcm-single-lokal:has([data-has-interactive="true"]),
.jcm-single-inwestycja-container:has([data-has-interactive="true"]) {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* ImageMapPro wrapper - stacking context */
.jcm-shortcode-fullwidth[data-has-interactive="true"] {
  overflow: visible !important;
  position: relative !important;
  z-index: 5 !important;
}

/* ImageMapPro container - based on technical documentation */
.imp-wrap {
  position: relative !important;
  z-index: 5 !important;
}

/* ImageMapPro interactive layer - high z-index for interactivity */
.imp-shape-container {
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* ImageMapPro tooltips - must be above all page elements */
.imp-tooltip,
.imp-popup,
.imp-ui-element {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--jcm-ocean-body-line-height, var(--jcm-line-height-normal));
  color: var(--color-text-base);
  background-color: var(--color-bg-white);
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-headings) !important;
  line-height: var(--jcm-ocean-body-line-height, var(--jcm-line-height-tight));
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  /* Global consistent spacing for all headings - use !important to override specificity issues */
  margin-top: var(--space-xl) !important;
  margin-bottom: var(--space-lg) !important;
}

/* Content area headings - higher specificity for lokal/inwestycja content */
.lokal-main h1,
.lokal-main h2, 
.lokal-main h3,
.lokal-main h4,
.lokal-main h5,
.lokal-main h6,
.jcm-single-inwestycja-container h1,
.jcm-single-inwestycja-container h2,
.jcm-single-inwestycja-container h3,
.jcm-single-inwestycja-container h4,
.jcm-single-inwestycja-container h5,
.jcm-single-inwestycja-container h6,
.lokal-card h2,
.lokal-card h3,
.lokal-card h4 {
  margin-top: var(--space-xl) !important;
  margin-bottom: var(--space-lg) !important;
}

/* Shortcode titles should always have consistent spacing regardless of position */
.jcm-shortcode-title {
  margin-top: var(--space-xl) !important;
  margin-bottom: var(--space-lg) !important;
}

/* First heading has no top margin - increased specificity (but NOT shortcode titles) */
.lokal-main h1:first-child:not(.jcm-shortcode-title),
.lokal-main h2:first-child:not(.jcm-shortcode-title),
.lokal-main h3:first-child:not(.jcm-shortcode-title),
.lokal-main h4:first-child:not(.jcm-shortcode-title),
.lokal-main h5:first-child:not(.jcm-shortcode-title),
.lokal-main h6:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h1:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h2:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h3:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h4:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h5:first-child:not(.jcm-shortcode-title),
.jcm-single-inwestycja-container h6:first-child:not(.jcm-shortcode-title),
.lokal-card h1:first-child:not(.jcm-shortcode-title),
.lokal-card h2:first-child:not(.jcm-shortcode-title),
.lokal-card h3:first-child:not(.jcm-shortcode-title),
.lokal-card h4:first-child:not(.jcm-shortcode-title),
h1:first-child:not(.jcm-shortcode-title),
h2:first-child:not(.jcm-shortcode-title),
h3:first-child:not(.jcm-shortcode-title),
h4:first-child:not(.jcm-shortcode-title),
h5:first-child:not(.jcm-shortcode-title),
h6:first-child:not(.jcm-shortcode-title) {
  margin-top: 0 !important;
}

/* ============================================================================
   UNIFIED PAGE TITLE SYSTEM - Consistent styling across all page types
   ============================================================================ */

/* Hero sections have their own spacing rules */
.hero-section h1,
.hero-section h2 {
  margin: 0 !important; /* Heroes control their own spacing */
}

/* Plugin breadcrumbs removed - theme handles navigation */

h1 {
  font-size: var(--font-size-4xl);
  /* margin-bottom inherited from global rule above */
}

h2 {
  font-size: var(--font-size-3xl);
  /* margin inherited from global rule */
}

h3 {
  font-size: var(--font-size-2xl);
  /* margin inherited from global rule */
}

h4 {
  font-size: var(--font-size-xl);
  /* margin inherited from global rule */
}

h5 {
  font-size: var(--font-size-lg);
  /* margin inherited from global rule */
}

h6 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ============================================================================
   FORMS & INPUTS
   ============================================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #000000;
  border-radius: 0;
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

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

/* ============================================================================
   BUTTONS
   ============================================================================ */

button,
.button {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}

button:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button variants */

.button--primary,
button[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.button--primary:hover:not(:disabled),
button[type="submit"]:hover:not(:disabled) {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.button--secondary {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  border-color: var(--color-border);
}

.button--secondary:hover:not(:disabled) {
  background-color: var(--color-bg-lighter);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.button--outline:hover:not(:disabled) {
  background-color: rgba(55, 65, 81, 0.05);
  border-color: var(--color-primary-light);
}

.button--small {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
}

.button--large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-lg);
}

.button--block {
  display: block;
  width: 100%;
}

/* ============================================================================
   CARDS & CONTAINERS
   ============================================================================ */

.card {
  background-color: var(--color-bg-white);
  border: 1px solid #000000;
  border-radius: 0;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card--flat {
  border: none;
  box-shadow: none;
  background-color: var(--color-bg-light);
}

.container {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--sm {
  max-width: 800px;
}

.container--md {
  max-width: 1100px;
}

.container--lg {
  max-width: 1750px;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge--primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.badge--success {
  background-color: var(--color-success);
  color: var(--color-bg-white);
}

.badge--warning {
  background-color: var(--color-warning);
  color: var(--color-text-dark);
}

.badge--danger {
  background-color: var(--color-danger);
  color: var(--color-bg-white);
}

.badge--light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  border: 1px solid #000000;
}

/* ============================================================================
   GRID & LAYOUT
   ============================================================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  flex-direction: column;
}

.flex--gap-sm {
  gap: var(--space-sm);
}

.flex--gap-md {
  gap: var(--space-md);
}

.flex--gap-lg {
  gap: var(--space-lg);
}

/* ============================================================================
   SPACING UTILITIES
   ============================================================================ */

.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* ============================================================================
   TEXT UTILITIES
   ============================================================================ */

.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--color-text-light); }
.text-dark { color: var(--color-text-dark); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.text-bold { font-weight: var(--font-weight-bold); }
.text-semibold { font-weight: var(--font-weight-semibold); }
.text-medium { font-weight: var(--font-weight-medium); }
.text-normal { font-weight: var(--font-weight-normal); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================================
   DISPLAY & VISIBILITY
   ============================================================================ */

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.show-mobile { display: none; }
.hide-mobile { display: block; }

/* ============================================================================
   RESPONSIVE - Mobile First Approach
   ============================================================================ */

/* Tablet (768px) */
@media (min-width: 768px) {
  .hide-tablet { display: none; }
  .show-tablet { display: block; }
  
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .show-mobile { display: none; }
  .hide-mobile { display: block; }
  
  .show-desktop { display: block; }
  .hide-desktop { display: none; }
  
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================================
   UTILITIES - Misc
   ============================================================================ */

.rounded {
  border-radius: 0;
}

.rounded-sm {
  border-radius: 0;
}

.rounded-lg {
  border-radius: 0;
}

.shadow {
  box-shadow: var(--shadow-sm);
}

.shadow--hover:hover {
  box-shadow: var(--shadow-md);
}

.border {
  border: 1px solid #000000;
}

.border-top {
  border-top: 1px solid #000000;
}

.border-bottom {
  border-bottom: 1px solid #000000;
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-base);
}

.animate-slideInUp {
  animation: slideInUp var(--transition-base);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ============================================================================ */

/* Fluid Typography - scales with viewport */
@media (max-width: 768px) {
  :root {
    --font-size-xs: clamp(11px, 2vw, 12px);
    --font-size-sm: clamp(13px, 2.2vw, 14px);
    --font-size-base: clamp(14px, 2.5vw, 16px);
    --font-size-lg: clamp(16px, 3vw, 18px);
    --font-size-xl: clamp(18px, 3.5vw, 20px);
    --font-size-2xl: clamp(20px, 4vw, 24px);
    --font-size-3xl: clamp(24px, 5vw, 30px);
    --font-size-4xl: clamp(28px, 6vw, 36px);
  }
}

/* Touch-Friendly Targets (iOS/Android) */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  button,
  a,
  input[type="submit"],
  input[type="button"],
  .btn,
  .clickable {
    min-height: 48px;
    min-width: 48px;
    padding: var(--space-md);
  }
  
  /* Increase spacing for easier tapping */
  .lokal-card,
  .inwestycja-card {
    margin-bottom: var(--space-lg);
  }
}

/* Prevent text zoom on orientation change (iOS) */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Scrollbar improvements for mobile */
@media (max-width: 768px) {
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================================
   ARCHIVE & SINGLE PAGE TITLES - Override theme fonts (e.g., Lato from Elementor/OceanWP)
   Force system fonts for all key headings to ensure consistent look regardless of theme
   ============================================================================ */

/* Ocean WP Integration - Typography from Customizer */
html body .jcm-plugin-wrapper h1,
html body .archive-title {
  font-family: var(--jcm-ocean-h1-font-family, inherit);
  font-size: var(--jcm-ocean-h1-font-size, inherit);
  font-weight: var(--jcm-ocean-h1-font-weight, inherit);
  line-height: var(--jcm-ocean-h1-line-height, inherit);
}

html body .jcm-plugin-wrapper h2,
html body .inwestycja-metadata__title,
html body .lokale-section__title,
html body .lokal-card__title,
html body .inwestycja-card__title {
  font-family: var(--jcm-ocean-h2-font-family, inherit);
  font-size: var(--jcm-ocean-h2-font-size, inherit);
  font-weight: var(--jcm-ocean-h2-font-weight, inherit);
  line-height: var(--jcm-ocean-h2-line-height, inherit);
}

html body .jcm-plugin-wrapper h3 {
  font-family: var(--jcm-ocean-h3-font-family, inherit);
  font-size: var(--jcm-ocean-h3-font-size, inherit);
  font-weight: var(--jcm-ocean-h3-font-weight, inherit);
  line-height: var(--jcm-ocean-h3-line-height, inherit);
}

html body .jcm-plugin-wrapper h4 {
  font-family: var(--jcm-ocean-h4-font-family, inherit);
  font-size: var(--jcm-ocean-h4-font-size, inherit);
  font-weight: var(--jcm-ocean-h4-font-weight, inherit);
  line-height: var(--jcm-ocean-h4-line-height, inherit);
}

html body .jcm-plugin-wrapper h5 {
  font-family: var(--jcm-ocean-h5-font-family, inherit);
  font-size: var(--jcm-ocean-h5-font-size, inherit);
  font-weight: var(--jcm-ocean-h5-font-weight, inherit);
  line-height: var(--jcm-ocean-h5-line-height, inherit);
}

/* ============================================================================
   ARCHIVE CUSTOM CONTENT (Elementor Integration)
   Treść dodana przez użytkownika w "Treści archiwów"
   ============================================================================ */
.jcm-archive-custom-content {
  /* Only reset wrapper positioning/layout - DO NOT reset Elementor children styles */
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  /* Allow Elementor content inside to have its own background/styling */
}

/* Content displayed OUTSIDE theme wrapper (after header) */
.jcm-archive-custom-content--outside-content {
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
}

/* REMOVED: Aggressive resets that were killing Elementor styles
   Let Elementor handle its own spacing and styling */


