/*
Theme Name: rent
Theme URI: https://justbo.pl/
Description: Child theme of TwentyTwenty for Apartamenty rentals
Author: JustBo!
Author URI: https://justbo.pl/
Template: twentytwenty
Version: 1.0.0
Text Domain: apartamenty
*/

/* Import any additional child-theme styles below this comment. */

body {
    font-family: "Plus Jakarta Sans", 'sans-serif';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0 !important;
}
p {
  line-height: 1.6em;
  margin: 0 0 1em 0;
  font-size: 1.6rem;
  font-weight: normal
}

h1, h2, h3, h4, h5, h6{letter-spacing: 0 !important;margin: 2rem 0;}


h2, .heading-size-2 {
    font-size: 2.3rem;
    font-weight: 900;
  }
h3, .heading-size-3 {
    font-size: 2rem;
    font-weight: 900;
  }
h4, .heading-size-4 {
    font-size: 1.8rem;
    font-weight: 900;
  }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="week"], input[type="number"], input[type="search"], input[type="tel"], input[type="color"], textarea{border-radius: .5rem}
.apt-header-meta{
  margin-top: 15px;
  font-size: 1.4rem;
  color: #444;
  font-weight: 500;
}

.apt-map-embed iframe{max-height: 400px;border-radius: 20px;}
.section-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    width: calc(100% - 4rem);
}

section {
    padding: 0;
}
.modal-menu > li > .ancestor-wrapper > a {
    font-weight: 700;
    letter-spacing: 0;
    color: #000;
    font-size: 1.4rem;
}
/* =========================================
   POPRAWIONE STYLE SLIDERA
   ========================================= */

/* 1. NAPRAWA WYSTAJĄCEGO PRZYCISKU */
.hero-section-wrapper,
.hero-section-wrapper * {
    box-sizing: border-box !important;
}

.hero-section-wrapper {
    width: 1280px;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
}

.heroSwiper {
    width: 100%;
    height: 600px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. NAPRAWA TEKSTU U GÓRY */
.swiper-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    
    display: flex !important;
    align-items: flex-end !important; 
    justify-content: flex-start !important;
    height: 100%;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}


.slide-content-container {
    width: 100%;
    padding: 60px 60px 120px 60px;
    position: relative;
    z-index: 2;
    box-sizing: border-box !important; 
}

.slide-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 900;
    margin: 0;
    max-width: 650px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: 0;
}

.btn-white{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #000000;
  padding: 2rem 3rem;
  border: solid 1px #ddd;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  transition: transform 0.2s ease, background-color 0.2s;
  white-space: nowrap;
}

.btn-white:hover {
    transform: translateY(-2px);
    background-color: #000000;color: #fff;
}

.btn-white svg {
    margin-left: 8px;
    transition: transform 0.2s;
}

.btn-white:hover svg {
    transform: translateX(0px);
}

.primary-menu a{
  display: block;
  line-height: 1.2;
  word-break: normal;
  word-wrap: normal;
  color: #112140 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.site-logo img {
    max-height: 4.24rem !important;
    transition: height 0.15s linear, width 0.15s linear, max-height 0.15s linear;
    height: 4rem !important;
}

@media (max-width: 768px) {
    .heroSwiper {
        height: 500px;
        border-radius: 20px;
    }
    .site-logo img {
        max-height: 2.5rem !important;
        margin: 0 auto;
        width: auto;
    }

    .header-inner {
        max-width: 168rem;
        padding: 2.15rem 0;
        z-index: 100;
    }
    .hero-subtitle {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 10px;
        font-weight: 500;
    }
    .slide-content-container {
        padding: 30px 20px;
    }

    .slide-flex-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .button-content {
        width: 100%;
    }
    
    .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   PŁYWAJĄCE PRZYCISKI SOCIAL (SIDEBAR)
   ========================================= */

.sticky-social-container {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%); /* Centrowanie w pionie */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Odstęp między przyciskami */
    z-index: 9999; /* Zawsze na wierzchu */
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 5px; /* Zaokrąglenie jak na screenie */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-decoration: none !important;
    padding: 1rem;
}

.sticky-btn:hover {
    transform: scale(1.1); /* Lekkie powiększenie po najechaniu */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.sticky-btn svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Kolory Marek */

/* WhatsApp Green */
.btn-whatsapp {
    background-color: #25D366;
}

/* Airbnb Pink */
.btn-airbnb {
    background-color: #FF5A5F;
}

/* Booking Blue */
.btn-booking {
    background-color: #003580;
}

/* Logo Booking "B." */
.booking-logo-text {
    color: #ffffff;
    font-family: serif; /* Szeryfowa czcionka jak w oryginale */
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
}

#site-footer .section-inner {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}

/* Ukrywanie na bardzo małych ekranach (opcjonalnie) */
@media (max-width: 480px) {
    .sticky-social-container {
        right: 10px;
        gap: 10px;
    }
    
    .sticky-btn {
        width: 45px;
        height: 45px;
    }
    
    .sticky-btn svg {
        width: 24px;
        height: 24px;
    }

    .booking-logo-text {
        font-size: 22px;
    }
}


.gap-5{
  grid-gap: 5rem !important;
}
/* margin-top */
.mt-0{margin-top: 0 !important}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }
.mt-6 { margin-top: 6rem; }
.mt-7 { margin-top: 7rem; }
.mt-8 { margin-top: 8rem; }
.mt-9 { margin-top: 9rem; }
.mt-10 { margin-top: 10rem; }

/* margin-bottom */
.mb-0{margin-bottom: 0 !important}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }
.mb-6 { margin-bottom: 6rem; }
.mb-7 { margin-bottom: 7rem; }
.mb-8 { margin-bottom: 8rem; }
.mb-9 { margin-bottom: 9rem; }
.mb-10 { margin-bottom: 10rem; }

/* margin-left */
.ml-1 { margin-left: 1rem; }
.ml-2 { margin-left: 2rem; }
.ml-3 { margin-left: 3rem; }
.ml-4 { margin-left: 4rem; }
.ml-5 { margin-left: 5rem; }
.ml-6 { margin-left: 6rem; }
.ml-7 { margin-left: 7rem; }
.ml-8 { margin-left: 8rem; }
.ml-9 { margin-left: 9rem; }
.ml-10 { margin-left: 10rem; }

/* margin-right */
.mr-1 { margin-right: 1rem; }
.mr-2 { margin-right: 2rem; }
.mr-3 { margin-right: 3rem; }
.mr-4 { margin-right: 4rem; }
.mr-5 { margin-right: 5rem; }
.mr-6 { margin-right: 6rem; }
.mr-7 { margin-right: 7rem; }
.mr-8 { margin-right: 8rem; }
.mr-9 { margin-right: 9rem; }
.mr-10 { margin-right: 10rem; }

/* padding */
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }
.p-5 { padding: 5rem; }
.p-6 { padding: 6rem; }
.p-7 { padding: 7rem; }
.p-8 { padding: 8rem; }
.p-9 { padding: 9rem; }
.p-10 { padding: 10rem; }

/* padding-top */
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }
.pt-5 { padding-top: 5rem; }
.pt-6 { padding-top: 6rem; }
.pt-7 { padding-top: 7rem; }
.pt-8 { padding-top: 8rem; }
.pt-9 { padding-top: 9rem; }
.pt-10 { padding-top: 10rem; }

/* padding-bottom */
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }
.pb-5 { padding-bottom: 5rem; }
.pb-6 { padding-bottom: 6rem; }
.pb-7 { padding-bottom: 7rem; }
.pb-8 { padding-bottom: 8rem; }
.pb-9 { padding-bottom: 9rem; }
.pb-10 { padding-bottom: 10rem; }

/* padding-left */
.pl-1 { padding-left: 1rem; }
.pl-2 { padding-left: 2rem; }
.pl-3 { padding-left: 3rem; }
.pl-4 { padding-left: 4rem; }
.pl-5 { padding-left: 5rem; }
.pl-6 { padding-left: 6rem; }
.pl-7 { padding-left: 7rem; }
.pl-8 { padding-left: 8rem; }
.pl-9 { padding-left: 9rem; }
.pl-10 { padding-left: 10rem; }

/* padding-right */
.pr-1 { padding-right: 1rem; }
.pr-2 { padding-right: 2rem; }
.pr-3 { padding-right: 3rem; }
.pr-4 { padding-right: 4rem; }
.pr-5 { padding-right: 5rem; }
.pr-6 { padding-right: 6rem; }
.pr-7 { padding-right: 7rem; }
.pr-8 { padding-right: 8rem; }
.pr-9 { padding-right: 9rem; }
.pr-10 { padding-right: 10rem; }
/* =========================================
   NOWE STYLE: SINGLE PRODUKT + GALERIA
   ========================================= */
.krotki-opis p{
  font-size: 1.2rem;
}

.apt-card-content .krotki-opis {
    display: -webkit-box;        /* Tworzymy kontener elastyczny */
    -webkit-box-orient: vertical;/* Kierunek kolumny */
    -webkit-line-clamp: 3;       /* Maksymalnie 4 linie */
    overflow: hidden;            /* Ukrywa resztę tekstu */
    text-overflow: ellipsis;     /* Dodaje "…" po przycięciu */
    line-height: 1.4em;          /* Ustal wysokość linii (możesz dopasować) */
    max-height: calc(1.4em * 4); /* Opcjonalnie zabezpieczenie wysokości */
}
/* Dostosowanie kontenera section-inner dla single */
.apt-single-main .section-inner {
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0; 
    box-sizing: border-box;
}

/* --- Galeria Grid --- */
.apt-gallery-section {
    margin-bottom: 0;
    margin-top: 0;
}

.apt-gallery-grid {
    display: grid;
    grid-template-columns: 1; /* 2/3 szerokości dla głównego, 1/3 dla miniaturek */
    grid-template-rows: 500px; /* Stała wysokość galerii */
    gap: 5px;
    border-radius: 20px;
    overflow: hidden;
}

/* Główne zdjęcie po lewej */
.apt-main-image {
    height: 100%;
    width: 100%;
}

/* Siatka 4 miniaturek po prawej */
.apt-thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 5px;
    height: 100%;
}

/* Wspólne style dla obrazków */
.apt-main-image img,
.apt-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.apt-lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.apt-lightbox-link:hover img {
    transform: scale(1.05); /* Zoom po najechaniu */
}

/* Overlay "+X zdjęć" */
.apt-thumb-item {
    position: relative;
    overflow: hidden;
}

.has-overlay .apt-more-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    backdrop-filter: blur(2px);
    transition: background-color 0.3s ease;
}

.has-overlay:hover .apt-more-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Layout Treści (Content + Sidebar) --- */

.apt-layout {
    display: flex;
    gap: 60px; /* Duży odstęp między treścią a sidebarem */
    margin-bottom: 80px;
    align-items: flex-start;
}

/* Lewa kolumna (Opis) */
.apt-main-content {
    flex: 2; /* Zajmuje 2/3 szerokości */
}

.apt-single-header {
    margin-bottom: 30px;
}

.apt-location-tag{
  display: inline-block;
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0;
}

.entry-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  color: #111;
  letter-spacing: 0;
}

.entry-content  {
  line-height: 1.6em;
  margin: 0 0 1em 0;
  font-size: 1.6rem;
}
/* Prawa kolumna (Sidebar) */
.apt-sidebar {
    flex: 1; /* Zajmuje 1/3 szerokości */
    min-width: 350px;
}

.apt-info-box {
    background: #ffffff;
    /*padding: 40px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);*/
}

.apt-info-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.apt-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.apt-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    color: #555;
}

.apt-details-list li strong {
    color: #111;
    font-weight: 600;
}

.apt-btn-book {
    display: block;
    width: 100%;
    background-color: #6BA71A;
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-radius: 12rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;font-size: 1.3rem;text-transform: none;
}

.apt-btn-book:hover {
    background-color: #91bb1f;
    transform: translateY(-2px);
    color: #fff;
}

.apt-btn-book-white{
  display: table;
  background-color: #fff;
  color: #6BA71A;
  text-align: center;
  padding: 2rem 3rem;
  border-radius: 12rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  font-size: 1.3rem;
  text-transform: none;
}
.apt-btn-book-white:hover {
    background-color: #91bb1f;
    transform: translateY(-2px);
    color: #fff;
}

.apt-btn-book-green {
    display: block;
    width: 100%;
    background-color: green;
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-radius: 12rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;font-size: 1.3rem;text-transform: none;
}

/* Responsywność dla Single Apartament */
@media (max-width: 1024px) {
    .apt-gallery-grid {
        height: 400px;
    }
    .apt-layout {
        gap: 40px;
    }
    .apt-sidebar {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    /* Galeria na mobilu */
    .apt-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px auto; /* Główne zdjęcie + miniaturki pod spodem */
        gap: 5px;
        height: auto;
    }
    
    
    .apt-thumbnails-grid {
        height: auto;
        grid-template-columns: repeat(4, 1fr); /* 4 miniaturki w rzędzie */
        grid-template-rows: 80px;
    }

    /* Układ kolumnowy */
    .apt-layout {
        flex-direction: column;
    }
    
    .apt-sidebar {
        width: 100%;
        min-width: auto;
    }

    .entry-title {
        font-size: 2.2rem;
    }
}

/* --- IKONA CHECK (PTASZEK) W UDOGODNIENIACH --- */

.apt-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0; /* Zapobiega ściskaniu ikony */
    color: #111; /* Kolor ikony (czarny) */
}

/* Dostosowanie SVG */
.apt-check-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* Styl listy w modalu i na stronie */
.apt-amenity-item, 
.apt-amenity-item-modal {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

/* Wyrównanie tekstu */
.apt-amenity-text {
    line-height: 1.4;
}

 /* Sekcja Udogodnień */
    .apt-amenities-section {
        margin-top: 50px;
        padding-top: 0;
        border-top: 1px solid #eee;
    }
    .apt-section-title {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 25px;
        color: #111;letter-spacing: 0
    }
    .apt-amenities-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    .apt-amenity-item, .apt-amenity-item-modal {
        display: flex;
        align-items: center;
        padding: 8px 0;
        font-size: 16px;
        color: #222;
        font-weight: 500;
    }
    .apt-check-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0;
        color: #111;
    }
    .apt-check-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.5;
    }
    .apt-amenity-text {
        line-height: 1.4;
    }

    /* Przycisk */
    .apt-btn-outline {
  background: transparent;
  border: 1px solid #222;
  color: #222;
  padding: 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.24rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;text-transform: none
}

    .apt-btn-outline:hover {
        background: #f7f7f7;
    }

    /* Okno Modalne (Popup) */
    .apt-modal {
        display: none; /* Kluczowe ukrycie */
        position: fixed; 
        z-index: 10000; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgba(0,0,0,0.6); 
        backdrop-filter: blur(5px);
    }
    .apt-modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 40px;
        border-radius: 12px;
        width: 100%;
        max-width: 700px;
        position: relative;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        animation: modalSlideIn 0.3s ease;
    }
    @keyframes modalSlideIn {
        from {transform: translateY(50px); opacity: 0;}
        to {transform: translateY(0); opacity: 1;}
    }
    .apt-modal-close {
        color: #aaa;
        float: left;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        margin-right: 20px;
        line-height: 1;
    }
    .apt-modal-close:hover {
        color: #000;
    }
    .apt-modal-title {
        font-size: 1.5rem;
        margin: 0 0 30px 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    .apt-modal-list {
        max-height: 60vh;
        overflow-y: auto;
        padding-right: 10px;
    }
    .apt-amenity-item-modal {
        border-bottom: 1px solid #f5f5f5;
        padding: 15px 0;
    }
    .apt-amenity-item-modal:last-child {
        border-bottom: none;
    }

    @media (max-width: 768px) {
        .apt-amenities-grid { grid-template-columns: 1fr; }
        .apt-modal-content {
            margin: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            border-radius: 0;
            padding: 20px;
        }
    }
/* =========================================
   STYLE ARCHIWUM (LISTA APARTAMENTÓW)
   ========================================= */

.apt-archive-header {
    margin-top: 40px;
    margin-bottom: 30px;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Grid Layout */
.apt-polecane .apt-grid-layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 3 kolumny */
    gap: 30px; /* Odstęp między kartami */
    margin-bottom: 20px;
}
.apt-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
    gap: 30px; /* Odstęp między kartami */
}

.apt-card-img-wrapper{border-radius: 2rem 2rem 0 0 !important}

/* Karta */
.apt-card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
        margin-bottom: 0;background: #fff;
  border-radius: 2rem;
  padding-bottom: 2rem;box-shadow: 0px 1px 1px rgba(0,0,0,.15);
}

/* Zdjęcie */
.apt-card-img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 4/4; /* Proporcje zdjęcia */
    border-radius: 20px; /* Zaokrąglone rogi jak na screenie */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.apt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apt-card-img-wrapper:hover .apt-card-img {
    transform: scale(1.05); /* Lekki zoom po najechaniu */
}

/* Treść */
.apt-card-content {
    padding:1rem 2rem; /* Minimalny padding boków */
}

.apt-card-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 5px 0;
  line-height: 1.3;
  letter-spacing: 0 !important;
  height: 4.2rem;
  overflow: hidden;
}
.apt-card-title a {
    text-decoration: none;
    color: #111;
}

.apt-card-location {
    font-size: 1.2rem;
    color: #666; /* Szary kolor dla lokalizacji */
    margin-bottom: 12px;
}

/* Dolny rząd (Meta + Ocena) */
.apt-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    color: #222;
}

.apt-card-meta {
    font-weight: 500;
}

.apt-card-meta strong {
    font-weight: 700;
}

.apt-card-meta .sep {
    color: #ddd;
    margin: 0 3px;
}

.apt-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.apt-card-rating svg {
    width: 16px;
    height: 16px;
}
li {
  line-height: 1.5;
  margin: 0.5rem 0 0 2rem;
  font-size: 1.6rem;
}
/* Responsywność */
@media (max-width: 1024px) {
    .apt-grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 600px) {
    .apt-grid-layout {
        grid-template-columns: 1fr; /* 1 kolumna na telefonie */
    }
    
    .archive-title {
        font-size: 2rem;margin-bottom: 1rem;
    }
}


/* OPINIE */

.review-box  {
  display: grid;
  gap: 20px;
  margin-bottom: 0px;
  align-items: flex-start;
  grid-template-columns: 70px auto;
  border: solid 1px #ddd;
  border-radius: 2rem;
  padding: 2rem;
}
.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.review-content h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 700;
}

.review-stars {
    font-size: 18px;
    color: #ffcc00;
    margin-bottom: 15px;
}

.review-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-source {
    color: #888;
    font-size: 14px;
}
.opinie-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    margin-top: 40px;
}


.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.review-content h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 700;
}

.review-stars {
    font-size: 18px;
    color: #ffcc00;
    margin-bottom: 15px;
}

.review-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-source {
    color: #888;
    font-size: 14px;
}
.booking-link {
  display: block;
  width: 100%;
  background-color: #00378a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  margin-bottom: 1rem;font-size: 1.3rem;
}
.airbnb-link:hover {
    background-color: #ee494e;
    transform: translateY(-2px);
    color: #fff;
}
.airbnb-link {
  display: block;
  width: 100%;
  background-color: #ff5a5f;
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  margin-bottom: 1rem;font-size: 1.3rem;
}

.booking-link:hover {
    background-color: #062f6c;
    transform: translateY(-2px);
    color: #fff;
}

.apt-info-box .btn-whatsapp{display: none}

.image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.image-text-block.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.image-text-block.reverse .itb-content {
    direction: ltr;
}

.itb-image img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
}

.itb-content h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.itb-content p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.itb-link {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
/* Wyśrodkowanie całego stopki (logo, tagline, copyright, przycisk "Na górę") */
#site-footer .section-inner {
  /* zachowujemy display:flex, tylko nadpisujemy kierunek i wyrównanie */
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 12px; /* odstęp między elementami, dopasuj jeśli trzeba */
}

/* Dodatkowo upewniamy się, że logo jest wyśrodkowane */
#site-footer .custom-logo-link,
#site-footer img.custom-logo {
  margin: 0 auto !important;
  display: block !important;
}

/* Wyśrodkowanie elementów w .site-info (np. copyright) */
#site-footer .site-info {
  display: block;
  width: 100%;
  text-align: center !important;
}

/* Jeśli stopka ma kilka kolumn (np. widgety), utrzymujemy ich układ, ale centrujemy zawartość */
#site-footer .footer-widgets {
  width: 100%;
}
#site-footer .footer-widgets .widget {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsywność: na bardzo szerokich ekranach możesz chcieć lekko rozszerzyć spacing */
@media (min-width: 1200px) {
  #site-footer .section-inner {
    gap: 20px;
  }
}

.custom-logo{height: 3.5rem;margin-bottom: 3rem}
  .footer-copyright {
    font-weight: 700;
    font-size: 1rem;color: #fff;
  }
  
    #site-footer {
  padding: 10rem 0;
  background: #0F2855;
  border-radius: 2rem;
}.archive-description{font-size: 1.2rem;}
.archive-description p{font-size: 1.4rem;}
.date-selection #check_price_btn{margin: 1rem 0}
#price_result {
  border-top: 1px solid rgb(238, 238, 238);
  padding: 2rem 0;
  border-bottom: 1px solid rgb(238, 238, 238);
  margin-bottom: 1rem;
}
#price_result p{font-size: 1.3rem;}
.booking-widget label {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 1rem 0;
}
.booking-input{
  border-radius: 10rem !important;
}
.mt-3{margin-top: 3rem}
#final_booking_form .booking-input{margin-bottom: 1rem;font-size: 1.3rem;border-radius: 1rem !important}
#final_booking_form{margin-bottom: 1rem;}
.grid-2{display: grid;grid-template-columns: 1fr 1fr;grid-gap: 2rem;}
.grid-32{display: grid;grid-template-columns: 3fr 2fr;grid-gap: 1rem;}
.grid-42{display: grid;grid-template-columns: 4fr 2fr;grid-gap: 2rem;}
.grid-21{display: grid;grid-template-columns: 2fr 1fr;grid-gap: 2rem;}
.product-card{
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
}
.cennnik{
  display: flex;
  gap: 2rem;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
  margin: 2rem 0;
  padding: 2rem 0;
  justify-content: space-around;
  flex-wrap: wrap; /* pozwala zawijać elementy */
}
.cennik-item p{
  line-height: 1.6em;
  margin: 0;
  font-size: 1.2rem;
}

.cennik-item h6{margin: 0;font-size: 1rem}
.booking-widget{
  background: #EBF0E4;
  padding: 30px;
  border-radius: 2rem;
}
.apt-polecane{
  background: #E4E8F0;
  padding: 30px;
  border-radius: 2rem;margin-bottom: 2rem
}
.cat-box-event{
  background: url(./img/event-bg.jpg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  border-radius: 2rem;
  padding: 0;display: flex;
}

.cat-box-travel{
  background: url(./img/travel-bg.jpg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  border-radius: 2rem;
  padding: 0;display: flex;
}
.cat-box-desc{
  align-self: end;
  padding: 5rem;
  background: #6ba71a;
  border-radius: 0 0 2rem 2rem;
  color: #fff;
  clip-path: polygon(100% 14%, 100% 100%, 0% 100%, 0 50%, 0 0);
  width: 100%
}

.cat-box-event .cat-box-desc{background:#0f2855;}
.cat-box-event .cat-box-desc a{color: #0f2855 !important}
.apt-show-more-wrapper{display: none;}

.category-box img{border-radius: 2rem;height: 55vh;width: 100%;object-fit:cover}
.cat-desc{padding: 4rem;border-radius: 2rem;}
.cat-desc h1{
    font-size: 3.4rem;
  }
.cat-desc .apt-btn-book {
  display: table !important;
  width: auto;
  padding: 2rem 3rem;
}
.apt-filter-btn.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.apt-filter-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 1.35rem;
  transition: all 0.2s ease;
  background-color: #fff;
}
.apt-filters-container{margin-bottom: 2rem !important}
.toggle-text{
  font-size: 1.4rem !important;
}
.apt-pagination .current {
  border: solid 2px #0f2855;
  padding: 1rem;
  border-radius: 2rem;
  font-weight: 900;
}
.apt-pagination .page-numbers{color: #0f2855;padding: 1rem;}
.footer-link{
  display: flex;
  gap: 1rem;
}

.footer-link a{color: #fff;}

@media screen and (max-width: 992px) {
.apt-filters-container {
  margin-bottom: 2rem !important;
  gap: 1rem;
  display: flex;
  flex-direction: column;text-align: center;
}.booking-widget {
  background: transparent;
  padding: 0;
  border-radius: 2rem;
}
.cennnik .dopstepne{display: none}
.cat-box-travel, .cat-box-event{min-height: 60vh;}
.cat-box-desc {
  align-self: end;
  padding: 5rem 3rem 3rem;}
.apt-show-more-wrapper{display: block;}
.cat-box-desc h2{font-size: 2.2rem !important}
.cennnik{display: grid;grid-template-columns: 1fr 1fr}
.product-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
}
.grid-21{display: grid;grid-template-columns: 1fr;grid-gap: 2rem;}
.grid-42{display: grid;grid-template-columns: 1fr;grid-gap: 2rem;}

.grid-2{display: grid;grid-template-columns: 1fr;grid-gap: 1rem;}
.image-text-block {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}
#site-footer .custom-logo{height: 3rem;margin-bottom: 3rem}
.itb-content h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 20px;
    margin-top: 0;
}
.itb-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.image-text-block.reverse {
    grid-template-columns: 1fr;
    direction: rtl;
}
.apt-info-box .btn-whatsapp{display: block}
.links-box.links-box {
        display: grid;
        position: fixed;
        bottom: 0;
        max-width: 100%;
        left: 1rem;
        right: 1rem;
        background: #fff;
        padding: 1rem;
        gap: 5px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0px -18px 24px rgba(0, 0, 0, .08);
        grid-template-columns: 45px auto auto;
    }
.airbnb-link, .booking-link{margin-bottom: 0;padding: 1.5rem;font-size: 1rem;border-radius: 5px;align-self: center;height: 45px;}
.apartamenty-template .sticky-social-container{display: none}

.opinie-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 40px;
    margin-top: 40px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
.review-box {
    display: grid;
    gap: 20px;
    margin-bottom: 10px;
    align-items: flex-start;
    grid-template-columns: 40px auto;
}
.review-content h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 700;
}

.review-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

}

/* Zapobieganie przybliżaniu formularzy na iPhone */
@media screen and (max-width: 768px) {
    .booking-input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }
}