/* --- JORDASZKA REVIEWS - ELEGANT STYLE --- */

/* 1. KONTENER GŁÓWNY */
.adscode-reviews-wrapper {
    max-width: 1240px;
    margin: 80px auto; /* Większy odstęp góra/dół dla oddechu */
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Fallback */
    color: #444;
}

/* Tytuł sekcji (jeśli używany przez wtyczkę) */
.adscode-section-title {
    text-align: center;
    font-size: 36px;
    font-family: 'Playfair Display', serif; /* Font firmowy */
    color: #97a73a; /* Primary Green */
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Opcjonalny dekorator pod tytułem (złota linia) */
.adscode-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #C5A065; /* Accent Gold */
    margin: 15px auto 0;
}

/* 2. BADGE (GÓRNY PANEL) - ZMIANA NA STYL EKO/ELEGANT */
.adscode-google-badge {
    background: #ffffff;
    border: 1px solid #e8e8e8; /* Bardzo delikatna ramka */
    border-top: 4px solid #97a73a; /* Zielony akcent na górze */
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Miękki cień */
    margin-bottom: 60px;
}

.adscode-badge-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Logo Google - lekko zmniejszone dla elegancji */
.adscode-google-logo {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.adscode-rating-info .adscode-score {
    font-family: 'Playfair Display', serif;
    font-size: 32px; /* Większa ocena */
    color: #97a73a; /* Primary Green */
    line-height: 1;
    display: block;
}

.adscode-rating-info .adscode-stars {
    color: #C5A065; /* Accent Gold */
    font-size: 16px;
    margin: 5px 0;
    letter-spacing: 3px; /* Szerzej rozstawione gwiazdki */
}

.adscode-count {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Przycisk "Napisz opinię" - Styl Jordaszki */
.adscode-btn-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #97a73a; /* Zielona ramka */
    border-radius: 50px; /* Zaokrąglony */
    color: #97a73a;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.adscode-btn-review:hover {
    background: #97a73a;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(151, 167, 58, 0.3);
}

.adscode-btn-review svg {
    fill: currentColor; /* Ikona Google przejmuje kolor tekstu */
    width: 16px;
    height: 16px;
}


/* 3. KARTA OPINII - STYL WIZYTÓWKI */
.adscode-review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    text-align: left;
    height: 100%; /* Równe wysokości */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efekt uniesienia po najechaniu */
.adscode-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: #97a73a; /* Zielona ramka po najechaniu */
}

.adscode-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5; /* Linia oddzielająca nagłówek */
    padding-bottom: 15px;
}

.adscode-user-avatar, 
.adscode-user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.adscode-user-avatar-placeholder {
    background: #f0f4e3; /* Bardzo jasna zieleń */
    color: #97a73a; /* Zielona litera */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
}

.adscode-user-info {
    display: flex;
    flex-direction: column;
}

.adscode-user-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.adscode-review-time {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.adscode-card-stars {
    color: #C5A065; /* Accent Gold */
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Tekst Opinii */
.adscode-text-container {
    position: relative;
    margin-top: 15px;
}

.adscode-review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Ile linii ma być widocznych */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Ograniczenie wysokości dla pewności */
    max-height: 95px; /* Ok. 4 linie x 1.6 line-height */
}

.adscode-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
    
    /* Płynne otwieranie */
    display: block;
    max-height: 1000px; /* Wystarczająco dużo, by pokazać całość */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; 
}

/* "Czytaj więcej" */
.adscode-read-more {
    background: none;
    border: none;
    color: #97a73a; /* Twój zielony */
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.adscode-read-more:hover {
    text-decoration: underline;
    color: #788930;
}

/* 4. NAWIGACJA (STRZAŁKI SPLIDE) */
.splide__arrow {
    background: #ffffff;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    background: #97a73a; /* Zielone tło po najechaniu */
    border-color: #97a73a;
}

.splide__arrow:hover svg {
    fill: #ffffff; /* Biała strzałka po najechaniu */
}

.splide__arrow svg {
    fill: #97a73a; /* Zielona strzałka domyślnie */
    width: 14px;
    height: 14px;
}

/* Kropki paginacji (jeśli są) */
.splide__pagination__page.is-active {
    background: #97a73a;
    transform: scale(1.2);
}

/* 5. RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .adscode-google-badge {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 25px;
    }
    
    .adscode-badge-left {
        flex-direction: column;
        gap: 15px;
    }

    .adscode-section-title {
        font-size: 28px;
    }
}

/* --- SEKCJA BOOKING.COM --- */
.booking-banner-section {
    padding: 0px 0px 60px 0px;
    background-color: #f9fbf9; /* Twoje jasne tło */
}

.booking-strip {
    background: #003580; /* Oficjalny Booking Blue - buduje zaufanie */
    border-radius: 8px;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 53, 128, 0.15);
    position: relative;
    overflow: hidden;
}

/* Opcjonalny ozdobnik w tle */
.booking-strip::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.booking-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.booking-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.booking-logo {
    height: 30px;
    width: auto;
    fill: #ffffff;
}

.booking-text {
    font-size: 0.8rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.booking-rating-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-score-circle {
    background: #ffffff;
    color: #003580;
    width: 50px;
    height: 50px;
    border-radius: 12px; /* Kształt badge'a bookingowego */
    border-bottom-right-radius: 0; /* Charakterystyczny "dymek" */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.booking-rating-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.booking-rating-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Przycisk CTA */
.btn-booking {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-booking:hover {
    background: #ffffff;
    color: #003580;
}

/* Responsywność */
@media (max-width: 992px) {
    .booking-strip {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .booking-info {
        flex-direction: column;
        gap: 30px;
    }
    
    .booking-logo-wrapper {
        border-right: none;
        padding-right: 0;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 20px;
        width: 100%;
    }
}

/* --- BOOKING SEARCH BAR --- */
.booking-search-container {
    background-color: var(--primary-color); /* #97a73a */
    padding: 30px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* Jeśli chcesz, by pasek "wchodził" na slider, odkomentuj poniższe: */
    /* margin-top: -60px; */
}

.search-bar-wrapper {
    display: flex;
    align-items: flex-end; /* Wyrównanie do dołu */
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-field {
    flex: 1; /* Pola zajmują równą przestrzeń */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-field label .dashicons {
    color: var(--primary-color);
}

/* Pola tekstowe i selecty */
.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #f9f9f9;
    transition: all 0.3s;
    font-family: inherit;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
}

/* Przycisk */
.search-btn-wrapper {
    flex: 0 0 auto; /* Nie rozciągaj przycisku */
}

.btn-check-availability {
    background-color: var(--accent-color); /* #C59D5F (Złoty) */
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    height: 48px; /* Dopasowanie wysokości do inputów */
}

.btn-check-availability:hover {
    background-color: #b08a4e; /* Ciemniejszy złoty */
    transform: translateY(-2px);
}

/* Styl kalendarza Flatpickr (Dopasowanie) */
.flatpickr-calendar {
    font-family: inherit;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .search-bar-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-btn-wrapper {
        margin-top: 10px;
    }
    
    .btn-check-availability {
        width: 100%;
    }
}