/*
Theme Name:     idealstay
Theme URI:      n/a
Template:       kadence
Author:         kreotech
Author URI:     n/a
Description:    idealstay property
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

h2 {
    color: #000;
}


.sub-menu{
	border-radius:20px !important;
}

/* .cf7-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
} */

.cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cf7-col {
    flex: 1;
    min-width: 250px;
}

.cf7-col label {
    display: block;
    margin-bottom: 15px;
}

.cf7-grid input,
.cf7-grid textarea {
    width: 100%;
    box-sizing: border-box;
}


/* pils */
/* kontener */
/* === CF7 PILLS FIX === */

/* usuwa problemy z <p> dodawanym przez Contact Form 7 */
.cf7-pills p {
    margin: 0;
}

.cf7-pills{
	display:block !important;
}


/* główny kontener radio */
.cf7-pills .wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* każdy element = 2 kolumny */
.cf7-pills .wpcf7-list-item {
    flex: 0 0 calc(50% - 5px);
    margin: 0 !important;
    display: block;
}

/* label jako pełny przycisk */
.cf7-pills .wpcf7-list-item label {
    display: block;
    width: 100%;
    cursor: pointer;
}

/* ukrycie radio */
.cf7-pills input {
    display: none;
}

/* wygląd pill */
.cf7-pills .wpcf7-list-item-label {
    display: block;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #f5f5f5;
    text-align: center;
    transition: 0.2s;
}

/* hover */
.cf7-pills label:hover .wpcf7-list-item-label {
    border-color: #000;
}

/* aktywny stan */
.cf7-pills input:checked + .wpcf7-list-item-label {
    background: #000;
    color: #fff;
    border-color: #000;
}



@media (max-width: 768px) {
    .cf7-grid {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .cf7-col {
        display: contents;
    }
	
	 /* zmniejsza odstęp między polami */
    .cf7-grid {
        gap: 2px; /* było 20px */
    }

    /* mniejszy margines pod każdym polem */
    .cf7-grid label {
        margin-bottom: 10px; /* było 15px */
    }

    /* opcjonalnie: ciaśniejsze inputy */
    .cf7-grid input,
    .cf7-grid textarea {
        padding: 10px; /* dopasuj pod design */
    }

    /* pills też trochę ciaśniej */
    .cf7-pills {
        gap: 8px;
        margin-bottom: 25px; /* było 40px */
    }

    .cf7-pills .wpcf7-list-item-label {
        padding: 10px 12px; /* było 14px 18px */
    }
}
/* ================================================================
   IDEALSTAY — CUSTOM STYLES
   Połączenie: custom-tab + custom-gallery + custom-accordion + custom-air
   ================================================================ */

:root {
  /* Tab */
  --custom-tab-offset: 4rem;
  --custom-tab-bg: #ffffff;
  --custom-tab-border: rgba(0, 0, 0, 0.12);

  /* Gallery */
  --gallery-arrow-size: 48px;
  --gallery-radius: 12px;
  --gallery-gap: 16px;

  /* Accordion */
  --accordion-offset: 18px;
  --accordion-base-top: 270px;
  --accordion-bg: #ffffff;
  --accordion-border: rgba(0, 0, 0, 0.15);
  --accordion-gap: 32px;

  /* Air (Airbnb / testimonials) */
  --air-arrow-size: 40px;
  --air-radius: 12px;
  --air-border: rgba(0, 0, 0, 0.15);
}
.cf7-pills{
	margin-bottom:40px;
}

.cf7-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


/* ================================================================
   1. CUSTOM TAB — SCROLL STACK (Webflow home_features-list)
   ================================================================ */

.custom-tab {
  position: sticky;
  top: calc(var(--tab-index, 0) * var(--custom-tab-offset));
  background-color: var(--custom-tab-bg);
  border-top: 1px solid var(--custom-tab-border);
}

body.admin-bar .custom-tab {
  top: calc(var(--tab-index, 0) * var(--custom-tab-offset) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .custom-tab {
    top: calc(var(--tab-index, 0) * var(--custom-tab-offset) + 46px);
  }
}

.custom-tab .wp-block-kadence-spacer {
  display: none;
}

.custom-tab > .kt-row-column-wrap {
  padding-top: 0 !important;
}

.custom-tab .wp-block-kadence-rowlayout > .kt-row-column-wrap.kt-has-3-columns {
  padding-top: 0 !important;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "content image";
  column-gap: 5rem;
  row-gap: 2rem;
  align-items: center;
  width: 100%;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column {
  width: 100% !important;
  max-width: 100% !important;
  flex: initial !important;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) {
  grid-area: header;
  min-height: var(--custom-tab-offset);
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) > .kt-inside-inner-col {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-align: left !important;
  width: 100%;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--custom-tab-offset);
  cursor: pointer;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) a:hover {
  opacity: 0.75;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(2) {
  grid-area: content;
}

.custom-tab .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(3) {
  grid-area: image;
}

.custom-tab .kb-is-ratio-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.custom-tab .kb-is-ratio-image img {
  width: 100%;
  height: 60vh;
  max-height: 640px;
  object-fit: cover;
  object-position: 3% 50%;
  display: block;
}

.custom-tab > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
  padding-top: 0 !important;
  padding-bottom: 4rem;
}

/* Wrapper — dodatkowy padding-bottom daje ~100px scrolla, podczas którego
   wszystkie 3 etykiety są widoczne na sticky zanim sekcja zjedzie z ekranu. */
.custom-tab-wrapper {
  padding-bottom: 100px;
}

@media (max-width: 991px) {
  .custom-tab {
    position: static;
    top: auto;
  }

  .custom-tab .kt-row-column-wrap.kt-has-3-columns {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "content"
      "image";
    column-gap: 0;
    row-gap: 1.5rem;
  }

  .custom-tab .kb-is-ratio-image img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}


/* ================================================================
   2. CUSTOM GALLERY — karuzela zdjęć (Webflow home_gallery_slider)
   ================================================================ */

/* Ograniczamy galerię do szerokości content-grida (1280px = 80rem),
   żeby strzałki i zdjęcia były wyrównane z resztą strony. */
.custom-gallery {
  max-width: var(--global-content-width, 1280px);
  margin-left: auto;
  margin-right: auto;
}

.custom-gallery .kt-blocks-carousel.splide {
  padding-bottom: 64px;
  position: relative;
  overflow: visible !important;
}

/* Splide domyślnie ucina zdjęcia na krawędzi tracka (overflow: hidden).
   W Webflow mask ma overflow: visible, dzięki czemu widać fragmenty
   kolejnych slajdów "wychodzące" poza kontener. */
.custom-gallery .splide__track {
  overflow: visible !important;
}

.custom-gallery .splide__slide {
  margin-right: var(--gallery-gap) !important;
}

.custom-gallery .kb-gal-image-radius {
  border-radius: var(--gallery-radius);
  overflow: hidden;
}

.custom-gallery .kb-gallery-image-contain.kb-gallery-image-ratio-square {
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
}

.custom-gallery .kb-gallery-image-contain img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.custom-gallery .splide__arrows {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  width: auto !important;
  height: auto !important;
}

.custom-gallery .splide__arrows .splide__arrow {
  pointer-events: auto;
}

.custom-gallery .splide__arrow {
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: var(--gallery-arrow-size) !important;
  height: var(--gallery-arrow-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  z-index: 5;
  opacity: 1 !important;
}

.custom-gallery .splide__arrow:hover {
  background-color: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.3);
}

.custom-gallery .splide__arrow:focus-visible {
  outline: 2px solid #4d65ff;
  outline-offset: 2px;
}

.custom-gallery .splide__arrow--prev {
  right: calc(var(--gallery-arrow-size) + 24px) !important;
  left: auto !important;
}

.custom-gallery .splide__arrow--next {
  right: 16px !important;
  left: auto !important;
}

.custom-gallery .splide__arrow svg {
  display: none;
}

.custom-gallery .splide__arrow::before {
  content: "";
  width: 18px;
  height: 14px;
  background-color: #000;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none'><path d='M0 8h22M16 2l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none'><path d='M0 8h22M16 2l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

.custom-gallery .splide__arrow--prev::before {
  transform: rotate(180deg);
}

.custom-gallery .splide__arrow:disabled,
.custom-gallery .splide__arrow.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .custom-gallery {
    --gallery-arrow-size: 40px;
  }

  .custom-gallery .kt-blocks-carousel.splide {
    padding-bottom: 56px;
  }
}


/* ================================================================
   3. CUSTOM ACCORDION — sticky karty (Webflow layout353)
   ================================================================ */

.custom-accordion .kt-row-column-wrap.kt-has-6-columns {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100%;
  gap: 0;
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column {
  width: 100% !important;
  max-width: 100% !important;
  flex: initial !important;
  position: sticky;
  top: calc(var(--accordion-base-top) + var(--accordion-group, var(--accordion-index, 0)) * var(--accordion-offset));
  margin-bottom: var(--accordion-gap);
  background-color: var(--accordion-bg);
  border: 1px solid var(--accordion-border);
  border-radius: 16px;
  padding: 32px;
  box-sizing: border-box;
}

body.admin-bar .custom-accordion .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column {
  top: calc(var(--accordion-base-top) + var(--accordion-group, var(--accordion-index, 0)) * var(--accordion-offset) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .custom-accordion .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column {
    top: calc(var(--accordion-base-top) + var(--accordion-group, var(--accordion-index, 0)) * var(--accordion-offset) + 46px);
  }
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column > .kt-inside-inner-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 12px;
  text-align: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns .wp-block-image {
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns .wp-block-image figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns h3 {
  margin: 0;
  text-align: center;
  font-weight: 500;
}

.custom-accordion .kt-row-column-wrap.kt-has-6-columns p {
  margin: 0;
  text-align: center;
}

.kt-row-column-wrap.kt-has-2-columns:has(.custom-accordion) > .wp-block-kadence-column:first-child {
  position: sticky;
  top: var(--accordion-base-top);
  align-self: start;
}

body.admin-bar .kt-row-column-wrap.kt-has-2-columns:has(.custom-accordion) > .wp-block-kadence-column:first-child {
  top: calc(var(--accordion-base-top) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .kt-row-column-wrap.kt-has-2-columns:has(.custom-accordion) > .wp-block-kadence-column:first-child {
    top: calc(var(--accordion-base-top) + 46px);
  }
}

@media (max-width: 991px) {
  .kt-row-column-wrap.kt-has-2-columns:has(.custom-accordion) > .wp-block-kadence-column:first-child {
    position: static;
    top: auto;
  }
}


/* ================================================================
   4. CUSTOM AIR — Airbnb Superhost / opinie (Webflow section_home_reviews)
   ================================================================ */

.custom-air .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) {
  text-align: center;
}

.custom-air .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) > .kt-inside-inner-col {
  align-items: center !important;
  text-align: center;
}

.custom-air .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) h2,
.custom-air .kt-row-column-wrap.kt-has-3-columns > .wp-block-kadence-column:nth-child(1) p {
  text-align: center !important;
}

.custom-air .kt-testimonial-item-wrap {
  background: #fff;
  border: 1px solid var(--air-border);
  border-radius: var(--air-radius);
  padding: 24px 28px;
  box-sizing: border-box;
}

.custom-air .kt-testimonial-rating-wrap {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.custom-air .kt-svg-testimonial-rating-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: #000 !important;
  stroke: #000 !important;
}

.custom-air .kt-testimonial-content {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 16px 0 !important;
  font-style: normal;
}

.custom-air .kt-testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.custom-air .kt-testimonial-occupation {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
}

.custom-air .splide__arrows {
  position: absolute !important;
  inset: 0 !important;
  right: 35px !important;
  pointer-events: none !important;
  width: auto !important;
  height: auto !important;
}

.custom-air .kt-blocks-carousel-init.splide {
  position: relative !important;
  padding-bottom: 56px;
}

.custom-air .splide__arrow {
  pointer-events: auto;
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: var(--air-arrow-size) !important;
  height: var(--air-arrow-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: #fff !important;
  border: 1px solid var(--air-border) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  z-index: 5;
  opacity: 1 !important;
}

.custom-air .splide__arrow:hover {
  background: #f5f5f5 !important;
  border-color: rgba(0, 0, 0, 0.3) !important;
}

.custom-air .splide__arrow--prev {
  right: calc(var(--air-arrow-size) + 8px) !important;
  left: auto !important;
}

.custom-air .splide__arrow--next {
  right: 0 !important;
  left: auto !important;
}

.custom-air .splide__arrow svg {
  display: none !important;
}

.custom-air .splide__arrow::before {
  content: "";
  width: 18px;
  height: 14px;
  background-color: #000;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none'><path d='M0 8h22M16 2l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none'><path d='M0 8h22M16 2l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

.custom-air .splide__arrow--prev::before {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .custom-air {
    --air-arrow-size: 36px;
  }
  .custom-air .kt-blocks-carousel-init.splide {
    padding-bottom: 48px;
  }
}
