/* 
Theme Name:		RolnikMa
Template:     	listinghive
Author: 		TheRiko
Author URI: 	https://rikosoft.cal.pl/
Theme URI: 		https://hivepress.io/themes/listinghive
Description: 	Zmodyfikowana wersja ListingHive dla RolnikMa. Wymaga motywu ListingHive.
Version:      	1.0
License:      	GNU General Public License v2 or later
License URI:  	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Add your own functions below this line.
----------------------------------------*/

/*
Czcionka:
	Heading Font: Poppins
		Lexend
		Quicksand
	Body Font: Open Sans
		Nunito Sans
		Inter
Kolory:
	Primary Color: #ffc107
	Secondary Color: #00a005
		red: #dd3333
		green: #43824f
		yellow: #ffc107
*/
















/*--------------------------------------------------------------
Menu
--------------------------------------------------------------*/
.header-navbar {
    background-color: rgba(0, 0, 0, 0.02);
    cursor: default;
}
.header-navbar__menu a {
    font-size: 18px;
	position: relative;
	text-decoration: none;
    /* text-transform: uppercase; */
}
.header-navbar__menu a:hover {
}
.header-navbar__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.9s ease;
}
.header-navbar__menu a:hover::after {
	transform: scaleX(1);
}

/* Ukrywa przycisk Dodaj prośbę w menu na końcu */
.hp-menu__item--request-submit {
    display: none !important;
}

/* Zmiana logo na mobile */
/* desktop: nic nie zmieniamy, pokazujemy normalne logo */
.header-logo .custom-logo {
    max-height: 86px; /* wysokość desktop */
    width: auto;
}
/* MOBILE */
@media (max-width: 768px) {
    .header-logo .custom-logo {
        content: url('https://rolnikma.pl/wp-content/uploads/2025/12/rolnikma.pl_logo_mobile.png');
        width: auto;
    }
}

/*--------------------------------------------------------------
Linki
--------------------------------------------------------------*/
.hp-vendor__footer a,
.contact-us-footer a,
.profile-info-text a,
.hp-review__text .more-link,
.hp-vendor__attribute a,
.copyright-footer a {
    position: relative;
    color: #dd3333;
    text-decoration: none;
}
.hp-vendor__footer a::after,
.contact-us-footer a::after,
.profile-info-text a::after,
.hp-review__text .more-link::after,
.hp-vendor__attribute a::after,
.copyright-footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s ease;
}
.hp-vendor__footer a:hover,
.hp-vendor__footer a:focus,
.contact-us-footer a:hover,
.contact-us-footer a:focus,
.profile-info-text a:hover,
.profile-info-text a:focus,
.hp-review__text .more-link:hover,
.hp-review__text .more-link:focus,
.hp-vendor__attribute a:hover,
.hp-vendor__attribute a:focus, 
.copyright-footer a:hover,
.copyright-footer a:focus {
    color: #dd3333;
}
.hp-vendor__footer a:hover::after,
.contact-us-footer a:hover::after,
.contact-us-footer a:focus::after,
.profile-info-text a:hover::after,
.profile-info-text a:focus::after,
.hp-review__text .more-link:hover::after,
.hp-review__text .more-link:focus::after,
.hp-vendor__attribute a:hover::after,
.hp-vendor__attribute a:focus::after,
.copyright-footer a:hover::after,
.copyright-footer a:focus::after {
    transform: scaleX(1);
}

.hp-listing__title a:hover,
.hp-listing__title a:focus,
.hp-listing__location a:hover,
.hp-listing__location a:focus,
.hp-listing__rating.hp-rating a.hp-vendor__name:hover,
.hp-listing__rating.hp-rating a.hp-vendor__name:focus,
.hp-vendor.hp-vendor--view-block .hp-vendor__name a:hover,
.hp-vendor.hp-vendor--view-block .hp-vendor__name a:focus,
.hp-review.hp-review--view-block .hp-review__author a:hover,
.hp-review.hp-review--view-block .hp-review__author a:focus,
.hp-listing__rating a:hover,
.hp-listing__rating a:focus {
    color: #dd3333;
}

.copyright-footer a {
    color: #dd3333;
    font-weight: bold;
}

.copyright-info-footer a {
    color: rgba(15,23,39,.45);
}
.copyright-info-footer a:hover,
.copyright-info-footer a:focus {
    color: #dd3333;
}

/*--------------------------------------------------------------
Tooltip
--------------------------------------------------------------*/
.tippy-box {
    background-color: #dd3333 !important; /* Twój czerwony */
    color: #fff !important;
    border-radius: 6px !important;       /* lekko zaokrąglone rogi */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    font-size: 13px !important;
    padding: 5px 10px !important;
}
.tippy-arrow {
    color: #dd3333 !important; /* strzałka pasuje do tła */
}

/*--------------------------------------------------------------
Panel użytkownika
--------------------------------------------------------------*/
/* Informacje w panelu użytkownika */
.profile-info-text {
    margin: 15px 0 30px;
    padding: 12px 16px;
    background: #f6f8fa;
    border-left: 3px solid #2f7cf6;
    border-radius: 0px;
    font-size: 14px;
    color: rgba(15,23,39,.65);
    line-height: 1.5;
    cursor: default;
}

/* Badge o nowych wiadomościach */
.hp-menu__item small {
    background: #dd3333;      /* kolor kółka */
    color: #fff;              /* kolor cyfry */
}

/*--------------------------------------------------------------
Inne
--------------------------------------------------------------*/
/* Sekcja "Jak to działa" na stronie głównej */
/* Ikony feature */
#jak-to-dziala .hp-feature .hp-feature__icon {
    color: #dd3333;
}
/* Włącz licznik dla rodzica */
#jak-to-dziala .wp-block-columns {
    counter-reset: feature; /* reset licznika na start */
}
/* Każdy feature zwiększa licznik */
#jak-to-dziala .hp-feature {
    counter-increment: feature;
    position: relative; /* dla pseudo-elementu */
}
/* Numer przy caption */
#jak-to-dziala .hp-feature .hp-feature__caption::before {
    content: counter(feature, decimal-leading-zero); /* 01, 02, 03 */
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #dd3333;
    margin-bottom: 0.5rem;
    top: -20px; /* dopasuj pozycję */
}
/* Tekst feature - animacja */
#jak-to-dziala .hp-feature .hp-feature__caption {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.0s ease, transform 2.06s cubic-bezier(.22,1,.36,1);
}
/* Opóźnienia animacji dla poszczególnych kolumn */
#jak-to-dziala .wp-block-columns > .wp-block-column:nth-child(1) .hp-feature__caption { transition-delay: 0.1s; }
#jak-to-dziala .wp-block-columns > .wp-block-column:nth-child(2) .hp-feature__caption { transition-delay: 1.0s; }
#jak-to-dziala .wp-block-columns > .wp-block-column:nth-child(3) .hp-feature__caption { transition-delay: 2.0s; }
#jak-to-dziala .wp-block-columns > .wp-block-column:nth-child(4) .hp-feature__caption { transition-delay: 3.0s; }
/* Animacja dopiero gdy feature jest na ekranie */
#jak-to-dziala .hp-feature.is-visible .hp-feature__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Sekcja "Jestem kupujacym/sprzedajacym" na stronie głównej */
/* Ikony feature */
#jestem-kupujacym-sprzedajacym .hp-feature .hp-feature__icon {
    color: #00a005;
}
/* Tekst feature */
#jestem-kupujacym-sprzedajacym .hp-feature .hp-feature__caption {
}
#jestem-kupujacym-sprzedajacym .lh-feature-column {
    display: flex;
    flex-direction: column; /* kolumnowo: ikona → nagłówek → opis → button */
    align-items: center;    /* wyśrodkowanie poziome */
    justify-content: center; /* wyśrodkowanie pionowe */
    text-align: center;      /* dla tekstów wewnątrz */
    cursor: default;
}
/* Animacje */
#jestem-kupujacym-sprzedajacym .hp-feature,
#jestem-kupujacym-sprzedajacym .hp-feature__title,
#jestem-kupujacym-sprzedajacym .hp-feature__desc,
#jestem-kupujacym-sprzedajacym .hp-feature__button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.0s ease, transform 2.0s cubic-bezier(.22,1,.36,1);
}
/* Animacja dopiero gdy feature jest na ekranie */
#jestem-kupujacym-sprzedajacym .hp-feature.is-visible,
#jestem-kupujacym-sprzedajacym .hp-feature__title.is-visible,
#jestem-kupujacym-sprzedajacym .hp-feature__desc.is-visible,
#jestem-kupujacym-sprzedajacym .hp-feature__button.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Opóźnienia animacji dla poszczególnych kolumn */
#jestem-kupujacym-sprzedajacym .hp-feature__title.is-visible { transition-delay: 0.1s; }
#jestem-kupujacym-sprzedajacym .hp-feature__desc.is-visible { transition-delay: 1.0s; }
#jestem-kupujacym-sprzedajacym .hp-feature__button.is-visible { transition-delay: 2.0s; }

/* Animacja do title header cover */
.header-hero--cover h1,
.header-hero--cover p {
    opacity: 0;
    transform: scale(3.00) translateY(0px);
    filter: blur(20px);
    transition: opacity 4.0s ease, transform 4.0s cubic-bezier(.22,1,.36,1), filter 4.0s ease;
    will-change: transform, opacity, filter;
}
/* Gdy title header cover jest widoczny */
.header-hero--cover.is-visible h1,
.header-hero--cover.is-visible p {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Animacja do title */
.content-title {
    opacity: 0;
    transform: scale(0.03) translateY(0px);
    filter: blur(0px);
    transition: opacity 2.0s ease, transform 2.0s cubic-bezier(.22,1,.36,1), filter 2.0s ease;
    will-change: transform, opacity, filter;
}
/* Gdy title jest widoczny */
.content-title.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Brak ocen */
.no-listing-rating {
    text-transform: uppercase;
	letter-spacing: 1px;
    color: rgba(15,23,39,.45);
    font-size: 12px; /* font-size: 11px; font-size: 0.6875rem; */
    margin-top: 11px;
    cursor: default;
}
.no-vendor-rating {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(15,23,39,.45);
    font-size: 12px; /* font-size: 11px; font-size: 0.6875rem; */
    margin-top: 3px;
    cursor: default;
}

/* Ikonka lokalizacji */
.hp-listing__location i.hp-icon {
    color: #dd3333;
}

/* Pasek slidera */
.ui-slider .ui-slider-range {
    background-color: #dd3333; /* zmień na swój kolor */
}

/* Informacja w prośbach, że jest prywatna i do kogo skierowana */
.hp-request-private-box {
    cursor: default;
}

/* Dodanie informacji podczas dodawania ofert i próśb */
.submit-page-info {
    margin: 15px 0 30px;
    padding: 12px 16px;
    background: #f6f8fa;
    border-left: 3px solid #2f7cf6;
    border-radius: 0px;
    font-size: 14px;
    color: rgba(15,23,39,.65);
    line-height: 1.5;
    cursor: default;
}

/* Zmiana układu dla głównego bloku atrybutów (rolnicy) */
/* Pionowy układ dla głównego bloku atrybutów */
.hp-vendor__attributes.hp-vendor__attributes--primary {
    display: flex !important;
    flex-direction: column !important; /* pionowo */
    align-items: flex-start !important; /* wyrównanie do lewej */
    gap: 10px !important; /* odstęp między atrybutami */
}
/* Każdy atrybut na pełną szerokość */
.hp-vendor__attribute {
    width: 100% !important;
}

/* Zmiana układu dla głównego bloku atrybutów (oferty) */
/* Pionowy układ dla głównego bloku atrybutów */
.hp-listing__attributes.hp-listing__attributes--primary {
    display: flex !important;
    flex-direction: column !important; /* pionowo */
    align-items: flex-start !important; /* do lewej */
    gap: 10px !important; /* odstępy między pozycjami */
}
/* Każdy atrybut na pełną szerokość */
.hp-listing__attribute {
    width: 100% !important;
}

/* box rolnika Strona (potrójny) */
.hp-vendor__attributes--ternary {

    cursor: default;
}
/* przycisk "Wyślij prośbę" */
.hp-vendor__action.hp-vendor__action--request.button {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
    border-radius: 30px;
    height: 3.125rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1.125rem;
    box-shadow: rgba(67, 130, 79, 0.3) 0px 0px 30px;
    transition: filter 0.5s ease, box-shadow 0.5s ease;
    background-color: #43824f;
    color: #fff;
}
/* przycisk "Wyślij prośbę" po najechaniu */
.hp-vendor__action.hp-vendor__action--request.button:hover {
    filter: brightness(1.1); /* jaśniejszy */
    box-shadow: rgba(67, 130, 79, 0.5) 0px 0px 30px;
}

/*--------------------------------------------------------------
Widgety
--------------------------------------------------------------*/
/* Strona O nas */
#site-content {
    display: flex;
    gap: 30px; /* odstęp między kolumnami */
}
/* Lewa kolumna – treść */
.about_us_content {
    flex: 2; /* 2/3 szerokości */
}
/* Prawa kolumna – widgety */
.about_us_widgets {
    flex: 1; /* 1/3 szerokości */
    display: flex;
    flex-direction: column; /* ustaw pionowo widgety */
    gap: 20px; /* odstęp między widgetami w pionie */
    cursor: default;
}
@media (max-width: 768px) {
    #site-content {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
/* Kolor tła w footer */
.site-footer {
	background-color: rgba(0, 0, 0, 0.02);
	cursor: default;
    align-items:left;
    text-align: left;
}

.copyright-footer {

}

.copyright-info-footer {
    font-size: 13px;
}

/* Wyrównanie do lewej przy mobile */
@media (max-width: 991px) {
    .footer-navbar {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* Przesunięcie ikonki reCAPTCHA na stronie i nie wyswietlanie jej na mobile */
.grecaptcha-badge {
    transform: scale(0.85) !important;  /* zmniejszenie do 85% oryginału */
    /* transform: scale(0.85) !important;  /* zmniejszenie do 85% oryginału */
    /* transform-origin: right bottom !important;  /* punkt odniesienia przy lewej dolnej krawędzi */
    /* visibility: hidden !important; */    /* wyłącza wyświetlenie ale narusz alicencję Google */
    opacity: 0.7 !important;    /* zmniejszenie widoczności */
    bottom: 80px !important;
    z-index: 9999 !important;  /* upewnia się, że badge jest na wierzchu */
    position: fixed !important; /* upewnienie się, że jest fixed */
}
@media (max-width: 768px) {
    .grecaptcha-badge {
        transform: scale(0.85) !important;
        transform-origin: bottom right !important;
        bottom: -200px !important;
        right: -200px !important; 
        opacity: 0 !important;
    }
}

/* Zmiana szerokości poszczególnych kolumn w footer */
/* Wymuszenie własnych szerokości dla kolumn w stopce */
.footer-widgets .row {
    display: flex; /* upewniamy się, że to flex */
    flex-wrap: wrap; /* żeby kolumny mogły się łamać jeśli trzeba */
}
/* DESKTOP (od 992px w górę) */
@media (min-width: 992px) {
	.footer-widgets .row > .col-sm:nth-child(1) {
	    flex: 0 0 28% !important;
	    max-width: 28% !important;
	}
	.footer-widgets .row > .col-sm:nth-child(2) {
	    flex: 0 0 18% !important;
	    max-width: 18% !important;
	}
	.footer-widgets .row > .col-sm:nth-child(3) {
	    flex: 0 0 18% !important;
	    max-width: 18% !important;
	}
	.footer-widgets .row > .col-sm:nth-child(4) {
	    flex: 0 0 18% !important;
	    max-width: 18% !important;
	}
	.footer-widgets .row > .col-sm:nth-child(5) {
	    flex: 0 0 18% !important;
	    max-width: 18% !important;
	}
/* MOBILE (poniżej 992px – kolumny jedna pod drugą) */
@media (max-width: 991px) {
    .footer-widgets .row > .col-sm {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}



/*---------------------------------------------------------------------------------------------------------------------------------------------------*/



/*--------------------------------------------------------------
Własny CSS do Flexible Cookies - kopia (kod jest we wtyczce)
--------------------------------------------------------------*/
#flexiblecookies_container div#flexiblecookies_cookie_banner{
    bottom:40px;
    flex-wrap: wrap;
    left: 40px;
    right: unset;
    color:#222;
    background:#fff;
    width:400px;
}
.flexible-cookies-reopen-settings, #flexiblecookies_settings_container, #flexiblecookies_container div#flexiblecookies_cookie_banner{
    box-shadow:0 0 50px #00000030;
}
div#flexiblecookies_cookie_banner span.flexiblecookies_cookie_text{
    margin-bottom:15px;
    margin-right:0;
}
div#flexiblecookies_cookie_banner button:hover{
    transform:translatey(-2px);
}

div#flexiblecookies_cookie_banner button, button#flexiblecookies_accept_settings_cookies{
    width:auto;
    padding:5px 10px;
    transition:0.3s;
}

button#flexiblecookies_accept_cookies, button#flexiblecookies_accept_settings_cookies{
    background:rgb(221,51,51);
    border:2px solid rgb(221,51,51);
    color:#fff;
}
button#flexiblecookies_accept_cookies:hover, button#flexiblecookies_accept_settings_cookies:hover{
    background:rgba(221,51,51,0.8);
    border:2px solid rgba(221,51,51,0.8);
}

button#flexiblecookies_deny_cookies{
    background:transparent;
    border:2px solid rgb(221,51,51);
    color:rgb(221,51,51);
}
button#flexiblecookies_deny_cookies:hover{
    border-color:rgba(221,51,51,0.8);
}

button#flexiblecookies_open_settings{
    padding:0;
    padding-bottom:5px;
    background:transparent;
    color:#fff;
    border-bottom:2px solid rgb(221,51,51);
}
button#flexiblecookies_open_settings:hover{
    border-color:rgba(221,51,51,0.8);
}

#flexiblecookies_settings_container, #flexiblecookies_container div#flexiblecookies_cookie_banner{
    flex-wrap: wrap;
    border-radius:10px;
    padding:20px 26px;
}

#flexiblecookies_settings_container{
    color:;
    background:;
}

@media (max-width:768px){
    #flexiblecookies_container div#flexiblecookies_cookie_banner{
        width:auto;
        left:10px;
        right:10px;
        bottom:10px;
    }
    div#flexiblecookies_settings_container{
        width:auto;
        top:10px;
        left:10px;
        right:10px;
        transform:none;
        overflow-y:auto;
        bottom:10px;
    }
    span#flexiblecookies_settings{
        height:auto;
    }
}
/*--------------------------------------------------------------
Dodatkowy CSS do Flexible Cookies
--------------------------------------------------------------*/
/* Ikonka cookies po zaakceptowaniu */
.flexiblecookies_open_settings_button {
    border: 1px solid rgb(221,51,51);
    z-index: 99999 !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}
.flexiblecookies_open_settings_button:hover {
    transform: scale(1.1);
}
.flexiblecookies_open_settings_button svg path {
    fill: rgb(221,51,51) !important;
    opacity: 0.8;
}
/* Tooltip */
.flexiblecookies_open_settings_button::after {
    content: "Ustawienia cookies";
    position: absolute;
    /* wyświetlanie nad przyciskiem */
    /* 
    bottom: 100%; 
    left: 50%;
    transform: translateX(-30%);
    margin-bottom: 6px;
    */
    /* wyświetlanie z prawej strony */
    left: 100%; 
    top: 50%; 
    transform: translateY(-50%);
    margin-left: 8px;
    background: rgb(221,51,51);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.flexiblecookies_open_settings_button:hover::after {
    opacity: 1;
}
/* Ukryj ikonkę cookies przy małych ekranach */
@media (max-width:768px){
    .flexiblecookies_open_settings_button {
        /* display: none !important; */
    }
}
/* Zamień tekst "Niezbędne" na "Zawsze aktywne" w Ustawieniach */
#flexiblecookies_settings_container .flexiblecookies-required-label {
    font-size: 0; /* ukrywa oryginalny tekst */
}
#flexiblecookies_settings_container .flexiblecookies-required-label::after {
    content: "Zawsze aktywne";
    font-size: 14px;
    font-weight: 600;
    color: #008000;
    line-height: 24px;
}

#flexiblecookies_container div#flexiblecookies_cookie_banner{
    bottom:20px;
    left: 20px;
}
#flexiblecookies_settings_container, #flexiblecookies_container div#flexiblecookies_cookie_banner {
    cursor:default;
}
button#flexiblecookies_open_settings{
    border:2px solid rgb(221,51,51);
    color: rgb(221,51,51);
}




/*--------------------------------------------------------------
Własny CSS do WPFront Scroll Top - kopia (kod jest we wtyczce)
--------------------------------------------------------------*/
/* Przycisk Go to Top */
#wpfront-scroll-top-container {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgb(221,51,51);
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    z-index: 99999 !important;
    transition: 0.3s;
    position: fixed;
}
/* Hover – delikatne powiększenie */
#wpfront-scroll-top-container:hover {
    transform: scale(1.1);
}
/* Usunięcie domyślnej ikonki/obrazka */
#wpfront-scroll-top-container img,
#wpfront-scroll-top-container span {
    display: none !important;
}
/* Strzałka w górę  */
#wpfront-scroll-top-container::before {
    content: "";
    width: 14px;
    height: 14px;
    border-left: 5px solid rgb(221,51,51);
    border-top: 5px solid rgb(221,51,51);
    transform: rotate(45deg);
    display: block;
    margin-top: 4px;
}
/* Tooltip z lewej strony */
#wpfront-scroll-top-container::after {
    content: "Do góry";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    background: rgb(221,51,51);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#wpfront-scroll-top-container:hover::after {
    opacity: 1;
}