/* ==========================================================================
   Mieszkania / Lokale
   Style dla custom post type "lokale" (single + archiwum)
   ========================================================================== */

/* ==========================================================================
   Fundamenty
   ========================================================================== */

:root {
   --tekst: #363E41;
   --yellow: #F5C46A;
   --50: clamp(30px, calc(30px + 20 * ((100vw - 768px) / 632)), 50px);
}

.page--lokal {
  padding-top: calc(50px + 25px);
}


/* ==========================================================================
   Single lokale - okruszki
   ========================================================================== */

.lokale-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 50px;
  color: var(--tekst);
  font-size: 16px;
  line-height: 1.2;
  
}

.lokale-breadcrumbs a,
.lokale-breadcrumbs span {
  color: #2e3a3e;
  transition: color 0.3s ease;
}

.lokale-breadcrumbs a:hover {
  color: var(--yellow);
  text-decoration: none;
}

/* ==========================================================================
   Single lokale - galeria i mapa
   ========================================================================== */

.lokale-hero {
  display: flex;
  gap: 15px;
  align-items: stretch;
  width: 100%;
}

.lokale-hero__info {
  font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: 1.5;
margin-top: 35px;
}

.lokale-hero__main {
  flex: 0 0 52.53164556962026%;
  height: 490px;
  position: relative;
}
.lokale-hero__main:after, .lokale-hero__main:before {
   display: block;
    position: absolute;
    width: 90%;
    height: 20px;
    background: #363e41;
    content: '';
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.lokale-hero__main:before {
    top: -20px;
}
.lokale-hero__main:after {
    bottom: -20px;
}

.lokale-hero__side {
  display: flex;
  flex:  1;
  min-height: 490px;
  flex-direction: column;
  gap: 15px;
}

.lokale-hero__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  flex: 1;
}

.lokale-hero__thumbs:empty {
  display: none;
}

.lokale-hero__thumbs a,
.lokale-hero__main a,
.lokale-hero__thumbs img,
.lokale-hero__main img,
.lokale-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lokale-hero__thumbs a {
  overflow: hidden;
}

.lokale-hero__thumbs img {
  width: 405px;
  height: 317px;
  transition: transform 0.3s ease;
}

.lokale-hero__thumbs a:hover img {
  transform: scale(1.05);
}



.lokale-hero__map {
  position: relative;
  flex: 1 1 auto;
  min-height: 158px;
  background: #f4f4f4;
  overflow: hidden;
}

.lokale-hero__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.55) saturate(0.55) opacity(0.72);
}

.lokale-hero__map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  background: #dd042b;
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translate(-50%, -88%) rotate(-45deg);
  z-index: 2;
}

.lokale-hero__map-pin:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Single lokale - szczegoly i formularz
   ========================================================================== */

.lokale-details {
  display: grid;
  row-gap: 3rem;
  gap: 30px;
  padding-bottom: 70px;
  color: var(--tekst);
  max-width: 1400px;
  margin: 80px auto 0;
  grid-template-columns: minmax(0, 590px) 100px minmax(0, 1fr);
}

.lokale-details__left {
  min-width: 0;
  grid-column: 1;
}

.lokale-details__right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: 3;
}

.lokale-details__title {
  max-width: 320px;
  margin: 0 auto 42px;
  color: var(--tekst);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.lokale-details__params {
  display: grid;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 48px;
  padding: 0;
}

.lokale-details__params li {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--tekst);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
}

.lokale-details__params strong {
  font-weight: 700;
}

.lokale-details__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  background: var(--tekst);
  border-radius: 0 7px 7px 0;
}

.lokale-details__icon img {
  display: block;
  object-fit: contain;
}

.lokale-details__amenities {
  max-width: 320px;
  margin: 0 auto 30px;
}

.lokale-details__amenities h2,
.lokale-details__form h2 {
  margin: 0 0 8px;
  color: var(--tekst);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.lokale-details__amenities div,
.lokale-details__available,
.lokale-details__special div {
  color: var(--tekst);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

.lokale-details__available {
  max-width: 320px;
  margin: 0 auto 40px;
}

.lokale-details__plan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  max-width: 100%;
  min-height: 58px;
  margin: 0 auto;
  border: 1px solid var(--tekst);
  border-radius: 6px;
  color: var(--tekst);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.3s ease, color 0.3s ease;
}

.lokale-details__plan:hover {
  background: var(--tekst);
  color: #ffffff;
  text-decoration: none;
}

.lokale-details__special {
  max-width: 590px;
  margin-top: 80px;
}

.lokale-details__special h2 {
  display: flex;
  position: relative;
  align-items: center;
  width: 590px;
  min-height: 64px;
  background: var(--yellow);
  color: var(--tekst);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4.16px;
  line-height: 1.5;
  text-transform: uppercase;
  border-radius: 0 7px 7px 0;

}

.lokale-details__special h2:after {
  margin-left: 50px;
  color: #ffffff;
  content: '!';
  font-size: 58px;
  line-height: 0.7;
}

.lokale-details__special h2:before {
  width: 590px;
  min-height: 64px;
  background: var(--yellow);
  content:'';
  position: absolute;
  left: -590px;
  top: 0;
}
.lokale-details__special div {
  margin-top: 30px;
}

.lokale-details__price {
  margin-bottom: 72px;
  max-width: 400px;
}

.lokale-details__price-current {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--tekst);
  align-items: center;
}

.lokale-details__price-current span:last-of-type {
  font-size: 41px;
  font-weight: 700;
  line-height: 1;
}

.lokale-details__price-current small {
  color: var(--tekst);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-decoration: underline;
}

.lokale-details__price-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  align-self: center;
}

.lokale-details__price-icon:before {
  position: absolute;
  left: 17px;
  top: 12px;
  width: 16px;
  height: 23px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  border-radius: 0 0 12px 0;
  content: '';
}

.lokale-details__price-icon:after {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  content: '';
  transform: rotate(45deg);
}

.lokale-details__price-old {
  margin-bottom: 32px;
  color: var(--tekst);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.1;
  text-decoration: line-through;
}

.lokale-details__price-lowest {
  color: var(--tekst);
  font-size:18px;
  font-weight: 400;
  line-height: 1.35;
}

.lokale-details__form h2 {
  margin-bottom: 44px;
}

/* ==========================================================================
   Single lokale - udogodnienia
   ========================================================================== */

/* Sekcja udogodnien - kontener */
.lokale-amenities {
  max-width: 1400px;
  display: block;
  margin: 0 auto;
  padding: 80px 0;
  background: #f4f4f4;
  color: var(--tekst);
}

/* Sekcja udogodnien - srodek */
.lokale-amenities__inner {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
}

/* Sekcja udogodnien - naglowek */
.lokale-amenities__title {
  margin: 0 0 44px;
  color: var(--tekst);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.lokale-amenities__title span {
  display: inline-block;
  padding: 4px 10px;
  background: var(--tekst);
  color: #ffffff;
}

/* Sekcja udogodnien - tresc */
.lokale-amenities__text {
  max-width: 900px;
  margin: 0 auto 46px;
  color: var(--tekst);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

/* Sekcja udogodnien - lista ikon */
.lokale-amenities__list {
  justify-content: center;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 34px 0;
  border-top: 1px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
}

.lokale-amenities__list li {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.lokale-amenities__list li span {
  max-width: 100px;
}

.lokale-amenities__list img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ==========================================================================
   Single lokale - tresc
   ========================================================================== */

.page--lokal .lokal__content {
  margin-top: 30px !important;
}

/* ==========================================================================
   Single lokale - podobne lokale
   ========================================================================== */

/* Podobne lokale - kontener */
.lokale-related {
  padding: 70px 0 55px;
  color: var(--tekst);
  max-width: 1400px;
  display: block;
  margin: 0 auto;
}

/* Podobne lokale - naglowek */
.lokale-related__title {
  margin: 0 0 90px;
  color: var(--tekst);
  font-size: 41px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

/* Podobne lokale - lista */
.lokale-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}

/* Podobne lokale - karta */
.lokale-related__item {
  color: var(--tekst);
}

.lokale-related__image {
  position: relative;
  display: block;
  width: 420px;
  max-width: 100%;
  height: 420px;
  margin-bottom: 34px;
}

.lokale-related__image:before {
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 94%;
  height: 94%;
  background: var(--tekst);
  content: '';
  z-index: 0;
}

.lokale-related__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}

.lokale-related__image:hover .lokale-related__thumb {
  transform: scale(1.02);
}

.lokale-related__item h3 {
  margin: 0 0 22px;
  color: var(--tekst);
  font-size:30px;
  font-weight: 700;
  line-height: 1.5;
}

.lokale-related__item h3 a {
  color: var(--tekst);
}

.lokale-related__item h3 a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.lokale-related__item p {
  margin: 0 0 6px;
  color: var(--tekst);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.lokale-related__item strong {
  font-weight: 700;
}

/* ==========================================================================
   Single lokale - powrot
   ========================================================================== */

.lokale-back {
  display: flex;
  justify-content: center;
  padding: 20px 0 30px;
}

.lokale-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 280px;
  min-height: 44px;
  background: var(--tekst);
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  transition: background 0.3s ease, color 0.3s ease;
}

.lokale-back a:hover {
  background: #242b2d;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   Single lokale - SEO
   ========================================================================== */

/* SEO - kontener */
.lokale-seo {
  padding: 70px 0 70px;
  color: var(--tekst);
  background: #f4f4f4;
  margin: var(--50) 0 0 0;
  display: block;
  width: 100%;
}

.lokale-seo__inner {
  max-width: 1400px;
  display: block;
  margin: 0 auto;
}

/* SEO - zajawka */
.lokale-seo__intro {
  color: var(--tekst);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;

  max-width: 1100px;
  display: block;
  margin: 0 auto;
}

.lokale-seo__intro p {
  margin: 0 0 18px;
}

/* SEO - rozwiniecie */
.lokale-seo__more {
  margin-top: 34px;
  max-width: 1100px;
  display: block;
  margin:  34px auto 0;
}


.lokale-seo__more summary {
  display: block;
  width: max-content;
  margin: 0 auto;
  color: var(--tekst);
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  list-style: none;
  text-decoration: underline;
}

.lokale-seo__more summary::-webkit-details-marker {
  display: none;
}

.lokale-seo__more[open] summary {
  display: none;
}

/* SEO - tresc z edytora */
.lokale-seo__content {
  margin-top: 34px;
  color: var(--tekst);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.lokale-seo__content h1,
.lokale-seo__content h2,
.lokale-seo__content h3,
.lokale-seo__content h4,
.lokale-seo__content h5,
.lokale-seo__content h6 {
  margin: 34px 0 16px;
  color: var(--tekst);
  font-weight: 700;
  line-height: 1.2;
}

.lokale-seo__content h1 {
  font-size: 38px;
}

.lokale-seo__content h2 {
  font-size: 32px;
}

.lokale-seo__content h3 {
  font-size: 26px;
}

.lokale-seo__content h4 {
  font-size: 22px;
}

.lokale-seo__content h5,
.lokale-seo__content h6 {
  font-size: 18px;
}

.lokale-seo__content p {
  margin: 0 0 18px;
}

.lokale-seo__content a {
  color: var(--tekst);
  text-decoration: underline;
}

.lokale-seo__content a:hover {
  color: var(--yellow);
}

.lokale-seo__content ul,
.lokale-seo__content ol {
  margin: 0 0 22px 24px;
  padding: 0;
}

.lokale-seo__content ul li,
.lokale-seo__content ol li {
  margin-bottom: 8px;
  list-style-position: outside;
}

.lokale-seo__content ul li {
  list-style-type: disc;
}

.lokale-seo__content ol li {
  list-style-type: decimal;
}

.lokale-seo__content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--yellow);
  background: #f4f4f4;
}

.lokale-seo__content img {
  max-width: 100%;
  height: auto;
}

.lokale-seo__content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.lokale-seo__content th,
.lokale-seo__content td {
  padding: 12px;
  border: 1px solid #d8d8d8;
  text-align: left;
}

/* ==========================================================================
   Single lokale - responsywnosc
   ========================================================================== */

@media only screen and (max-width: 1790px) {
  .lokale-single-container {
    max-width: 1580px !important;
  }

  .lokale-hero {
    gap: 20px;
  }

  .lokale-hero__main {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }

  .lokale-hero__side {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }

  .lokale-hero__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .lokale-hero__thumbs img {
    width: 100%;
  }
}

@media only screen and (max-width: 991px) {
  .lokale-hero {
    flex-direction: column;
  }

  .lokale-hero__info {
    margin-top: 15px;
    font-size: 14px;
  }
  

  .lokale-hero__main,
  .lokale-hero__side {
    flex-basis: auto;
    width: 100%;
  }

  .lokale-hero__main {
    height: auto;
    aspect-ratio: 840 / 490;
  }

  .lokale-hero__side {
    min-height: 0;
  }

  .lokale-hero__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 25px;
  }

  .lokale-hero__thumbs img {
    height: auto;
    aspect-ratio: 405 / 317;
  }

  .lokale-hero__map {
    flex: 0 0 auto;
    height: 220px;
    min-height: 220px;
  }

  .lokale-details {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 60px;
  }

  .lokale-details__left,
  .lokale-details__right {
    grid-column: 1;
    width: 100%;
  }

  .lokale-details__right {
    max-width: 520px;
    margin: 0 auto;
  }

  .lokale-details__title {
    font-size: 34px;
  }

  .lokale-details__special {
    width: 100%;
    max-width: none;
    margin-top: 48px;
  }

  .lokale-details__special h2 {
    width: 100%;
    margin-left: 0;
    padding: 0 24px;
    justify-content: center;
    text-align: center;
    border-radius: 7px;
  }

  .lokale-details__special h2:before {
    display: none;
  }

  .lokale-amenities {
    padding: 55px 0;
  }

  .lokale-amenities__title {
    font-size: 26px;
  }

  .lokale-related__title {
    margin-bottom: 58px;
    font-size: 34px;
  }

  .lokale-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .lokale-related__image {
    height: 320px;
  }

  .lokale-seo__inner {
    max-width: calc(100% - 40px);
  }
}

@media only screen and (max-width: 767px) {
  .page--lokal {
    padding-top: 30px;
  }

  .lokale-breadcrumbs {
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .lokale-hero {
    gap: 12px;
  }

  .lokale-hero__side {
    gap: 12px;
  }

  .lokale-hero__thumbs {
    gap: 12px;
  }

  .lokale-details {
    margin-top: 42px;
    padding-bottom: 40px;
    gap: 38px;
  }

  .lokale-details__title {
    margin-bottom: 28px;
    font-size: 30px;
  }

  .lokale-details__params {
    gap: 12px;
    max-width: 100%;
    margin-bottom: 36px;
  }

  .lokale-details__params li {
    gap: 18px;
    font-size: 18px;
  }

  .lokale-details__icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .lokale-details__available {
    margin-bottom: 34px;
  }

  .lokale-details__plan {
    width: 100%;
  }

  .lokale-details__special h2 {
    width: 100%;
    min-height: 56px;
    margin-bottom: 32px;
    padding: 0 18px;
    font-size: 23px;
    letter-spacing: 4px;
    line-height: 1.25;
  }

  .lokale-details__special h2:after {
    margin-left: 16px;
    font-size: 44px;
  }

  .lokale-details__price {
    margin-bottom: 46px;
    max-width: 100%;
  }

  .lokale-details__price-current {
    flex-wrap: wrap;
    gap: 10px;
  }

  .lokale-details__price-current span:last-of-type {
    font-size: 32px;
  }

  .lokale-details__price-current small,
  .lokale-details__price-lowest {
    font-size: 17px;
  }

  .lokale-details__price-old {
    font-size: 26px;
  }

  .lokale-details__form-placeholder {
    min-height: 120px;
  }

  .lokale-amenities {
    padding: 42px 0;
  }

  .lokale-amenities__title {
    margin-bottom: 28px;
    font-size: 22px;
  }

  .lokale-amenities__text {
    margin-bottom: 32px;
    font-size: 13px;
  }

  .lokale-amenities__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .lokale-related {
    padding-top: 48px;
  }

  .lokale-related__title {
    margin-bottom: 38px;
    font-size: 28px;
    letter-spacing: 1px;
  }

  .lokale-related__list {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .lokale-related__image {
    height: auto;
    aspect-ratio: 405 / 317;
    margin-bottom: 28px;
  }

  .lokale-related__item h3 {
    font-size: 26px;
  }

  .lokale-related__item p {
    font-size: 18px;
  }

  .lokale-back a {
    width: 100%;
    max-width: 280px;
  }

  .lokale-seo {
    padding: 44px 0 34px;
  }

  .lokale-seo__intro,
  .lokale-seo__content,
  .lokale-seo__more summary {
    font-size: 15px;
  }

  .lokale-seo__content h1 {
    font-size: 30px;
  }

  .lokale-seo__content h2 {
    font-size: 26px;
  }

  .lokale-seo__content h3 {
    font-size: 22px;
  }

  .lokale-seo__content h4 {
    font-size: 19px;
  }
}
