/*
Theme Name: Hello Elementor Child
Theme URI: https://grafinarnia.pl
Description: Child theme dla Hello Elementor
Author: Grafinarnia
Author URI: https://grafinarnia.pl
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ===== FONTY LOKALNE ===== */

@font-face {
  font-family: "Cormorant";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Cormorant.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Cormorant-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Cormorant-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Cormorant-Bold-Italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Lora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/lora-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Lora-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Lora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/lora-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Jost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Jost-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/07/Jost-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}



/* ===== section-lines===== */


.section-lines{
    position: relative;
}

.section-lines::before,
.section-lines::after{
    content:"";
    position:absolute;
    left:0;
    width:100%;
    height:1px;
    background:#D9C6B8;
    pointer-events:none;
        z-index: 1;
}

.section-lines::before{
    top:5px;
}

.section-lines::after{
    bottom:5px;
}

/* ===== SYSTEM TYPOGRAFII / KOLORY ===== */

:root {
  --font-heading: "Cormorant", "Lora", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-accent: "Jost", Arial, sans-serif;

  --color-brown: #A57557;
  --color-brown-dark: #4d3427;
  --color-dark: #2c2621;
  --color-text: #2c2520;
  --color-cream: #F5F0E9;
  --color-cream-light: #f8f3ef;
  --color-gold: #c9a96e;
  --color-light: #f0e9e0;

  --text-xs: clamp(12px, 0.75vw, 13px);
  --text-meta: 13px;
  --text-sm: clamp(13px, 0.85vw, 15px);
  --text-base: clamp(15px, 1vw, 17px);
  --text-lead: clamp(17px, 1.25vw, 21px);

  --h1: clamp(46px, 5vw, 86px);
  --h2: clamp(36px, 3.8vw, 62px);
  --h3: clamp(28px, 2.5vw, 42px);
  --h4: clamp(22px, 1.8vw, 30px);

  --transition-main: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
}

p {
  margin-bottom: 0 !important;
}

.page-header {
  display: none;
}

a,
p.elementor-icon-box-title a {
  color: var(--color-brown);
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title,
.heading-xl,
.heading-lg,
.heading-md,
.heading-sm {
  font-family: var(--font-heading);
  color: inherit;
}

body,
p,
a,
span,
li,
button,
input,
select,
textarea,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-heading-title,
.elementor-button,
.elementor-button-text,
.elementor-nav-menu a,
#estate-filter,
#estate-filter * {
  font-style: normal;
}

h1,
.heading-xl {
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
font-style: normal;
}

h2,
.heading-lg {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
font-style: normal;
}

h3,
.heading-md {
  font-size: var(--h3);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
font-style: normal;
}

h4,
.heading-sm {
  font-size: var(--h4);
  font-weight: 500;
  line-height: 1.15;
font-style: normal;
}

.text-lead {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  line-height: 1.7;
font-style: normal;
}

.text-small {
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.55;
font-style: normal;
}

button,
input,
select,
textarea,
.elementor-button,
.elementor-button-text,
.elementor-nav-menu a {
  font-family: var(--font-accent);
font-style: normal;
 font-weight: 400;
}

/* ===== PASEK ===== */

.marquee-strip {
  background: var(--color-dark);
  padding: 1.2rem 0;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100vw;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-light);
  padding: 0 2.5rem;
  flex-shrink: 0;
}

.marquee-sep {
  color: var(--color-gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== OKRUSZKI ===== */

/* ===== OKRUSZKI / FLEXY BREADCRUMB ===== */

.fbc-page,
.fbc-page .fbc-wrap {
  width: 100% !important;
}

.fbc-page .fbc-wrap {
  display: flex !important;
}

.fbc-page .fbc-wrap .fbc-items {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  float: none !important;
  background: transparent !important;
  font-family: "Lora", serif !important;
}

.fbc-page .fbc-wrap .fbc-items li {
  font-family: "Lora", serif !important;
  padding: 6px 2px !important;
  line-height: 1.3 !important;
}

.fbc-page .fbc-wrap .fbc-items li:first-child {
  padding-left: 0 !important;
}

.fbc-page .fbc-wrap .fbc-items li:last-child {
  padding-right: 0 !important;
}

.fbc-page .fbc-wrap .fbc-items li a {
  color: #A57557 !important;
}

/* DO 1023PX: ŚRODEK */
@media (max-width: 1024px) {
  .elementor-shortcode:has(.fbc-page),
  .fbc-page,
  .fbc-page .fbc-wrap {
    justify-content: center !important;
    text-align: center !important;
  }

  .fbc-page .fbc-wrap .fbc-items {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* OD 1024PX: LEWA */
@media (min-width: 1025px) {
  .elementor-shortcode:has(.fbc-page),
  .fbc-page,
  .fbc-page .fbc-wrap {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .fbc-page .fbc-wrap .fbc-items {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}



/* ===== OFERTY / ELEMENTY NIERUCHOMOSCI ===== */

.property-title,
.property-card-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.property-price {
  font-family: var(--font-body);
  color: var(--color-brown);
  line-height: 1.25;
}

.property-price-current,
.property-price-new {
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 600;
}

.property-price-old {
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.65;
  margin-right: 8px;
}

.property-area,
.property-meta,
.property-badges {
  font-family: var(--font-accent);
}

.property-area {
  font-size: var(--text-small);
  line-height: 1.5;
}

.property-badge {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



/* ===== O FORMULARZA ===== */


.kocunik-math-question {
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #E2D1C8;
}



/* ===== ELEMENTY AKCENTOWE / KONTAKT ===== */

.phone-link,
.contact-link,
.contact-phone,
.contact-email,
.elementor-icon-list-text,
.elementor-icon-list-text a {
  font-family: var(--font-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.elementor-button,
.elementor-button-text,
#estate-filter .search-filter-label,
#estate-filter .search-filter-input-button,
.property-meta,
.property-badge {
  font-family: var(--font-accent);
}

/* ===== MAPA NIERUCHOMOSCI ===== */

.kocunik-map-frame-wrap {
  width: 100%;
  height: 600px;
  min-height: 600px;
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}

.kocunik-map-frame-wrap iframe {
  width: 100%;
  height: 600px;
  min-height: 600px;
  border: 0;
  display: block;
}

/* ===== MOBILE DO 767PX ===== */

@media (max-width: 767px) {
  :root {
    --h1: clamp(38px, 12vw, 58px);
    --h2: clamp(30px, 9vw, 44px);
    --h3: clamp(24px, 7vw, 34px);
  }

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .kocunik-map-frame-wrap,
  .kocunik-map-frame-wrap iframe {
    height: 400px;
    min-height: 400px;
  }
}

/* ===== ANTY-OVERFLOW MOBILE ===== */

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .elementor-background-slideshow,
  .elementor-background-slideshow .swiper-wrapper,
  .elementor-background-slideshow__slide,
  .marquee-strip {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}

/* ===== SZCZEGOLY NIERUCHOMOSCI - SHORTCODE ===== */

.property-details-list {
  display: grid;
  gap: 10px;
  font-family: "Jost", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

.property-details-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.property-details-label {
  color: #A57557;
  font-family: "Jost", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}

.property-details-value {
  color: #000;
  font-family: "Jost", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}


/* ===== FILTRY ===== */

.search-filter-component-combobox-base__listbox-option--selected {
    background: #F5F0E9 !important;
    color: #000 !important;
}

#estate-filter .e-con-inner {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 14px;
  align-items: end;
}

/* lewa kolumna: typy nieruchomości */
#estate-filter .elementor-widget-search-filter-field:has(.filter-type) {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
}

/* prawa kolumna: miejscowość */
#estate-filter .elementor-widget-search-filter-field:has(.filter-location) {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

/* prawa kolumna: rodzaj oferty */
#estate-filter .elementor-widget-search-filter-field:has(.filter-offer) {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
}

/* label */
#estate-filter .search-filter-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2c2520;
}

/* buttony typów */
#estate-filter .search-filter-input-button-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#estate-filter .search-filter-input-button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #A57557;
  border-radius: 0;
  background: #fff;
  color: #2c2520;
  font-size: 13px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  white-space: nowrap;
  line-height: 1;
  box-shadow: none;
}

#estate-filter .search-filter-input-button:hover {
  background: #f8f3ef;
}

#estate-filter .search-filter-input-button--is-selected {
  background: #A57557;
  color: #fff;
}

/* ikony */
#estate-filter .search-filter-input-button::before {
  display: inline-block;
  width: 17px;
  height: 17px;
  line-height: 0;
  flex-shrink: 0;
}

#estate-filter .search-filter-input-button[data-option-value="dom"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-home.svg");
}

#estate-filter .search-filter-input-button[data-option-value="mieszkania"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-flat.svg");
}

#estate-filter .search-filter-input-button[data-option-value="dzialki"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-field.svg");
}

#estate-filter .search-filter-input-button[data-option-value="premium"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-premium.svg");
}

/* NOWE: inwestycje */
#estate-filter .search-filter-input-button[data-option-value="inwestycje"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-tree.svg");
}

/* NOWE: lokale komercyjne */
#estate-filter .search-filter-input-button[data-option-value="lokale"]::before {
  content: url("https://www.kocuniknieruchomosci.pl/wp-content/uploads/2026/06/ico-sign.svg");
}

/* usuwa stary napis nad premium */
#estate-filter .search-filter-input-button[data-option-value="premium"]::after {
  content: none !important;
  display: none !important;
}

/* selecty */
#estate-filter .search-filter-component-combobox {
  border: 1px solid #A57557 !important;
  border-radius: 0 !important;
  background: #fff !important;
  min-height: 34px;
  box-shadow: none !important;
}

#estate-filter .search-filter-component-combobox__header {
  height: 34px;
  min-height: 34px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 12px;
  display: flex;
  align-items: center;
}

#estate-filter .search-filter-component-combobox__selection,
#estate-filter .search-filter-component-combobox__actions-input {
  font-size: 13px;
  color: #2c2520;
}

#estate-filter .search-filter-component-combobox__actions-input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* ===== TABLET ===== */

@media (min-width: 768px) and (max-width: 1024px) {
  #estate-filter .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #estate-filter .elementor-widget-search-filter-field:has(.filter-type),
  #estate-filter .elementor-widget-search-filter-field:has(.filter-location),
  #estate-filter .elementor-widget-search-filter-field:has(.filter-offer) {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  #estate-filter .search-filter-label {
    text-align: center !important;
    display: block;
    width: 100%;
  }

  #estate-filter .search-filter-input-button-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #estate-filter .search-filter-input-button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }
}


/* ===== MOBILE ===== */

@media (max-width: 767px) {
  #estate-filter .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  #estate-filter .elementor-widget-search-filter-field {
    flex: none !important;
    width: 100% !important;
  }

  #estate-filter .search-filter-label {
    text-align: center !important;
    display: block;
    width: 100%;
  }

  #estate-filter .search-filter-input-button-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
  }

  #estate-filter .search-filter-input-button {
    width: 100% !important;
    justify-content: center;
  }
}


/* ===== ANTY-OVERFLOW MOBILE ===== */

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .elementor-background-slideshow,
  .elementor-background-slideshow .swiper-wrapper,
  .elementor-background-slideshow__slide,
  .marquee-strip {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}
