/* --- Strona Dodaj Obiekt --- */

.hero-shape svg path {
    fill: #f8fafc;
}

.add-object-benefits {
    background: #f8fafc;
    padding: 60px 0 80px;
}

.sub-title {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #eab308;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-bottom: 3px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #eab308;
}

.benefit-icon {
    font-size: 2.5rem;
    color: #eab308;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.benefit-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.add-object-steps {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-item h4 {
    margin-bottom: 10px;
    color: #0f172a;
}

.step-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    flex: 0 0 50px;
    text-align: center;
}

.add-object-form-section {
    padding: 80px 0;
    background: #fff;
}

.form-container-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.form-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-intro h3 i {
    color: #eab308;
}

.help-box {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

.help-box a {
    color: #eab308;
    font-weight: 600;
    text-decoration: none;
}

.partner-faq {
    background: #f8fafc;
    padding: 60px 0;
}

.faq-grid.compact {
    max-width: 800px;
    margin: 40px auto 0;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-grid.compact .faq-item {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.faq-grid.compact h4 {
    margin: 0 0 5px;
    color: #0f172a;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .form-container-box {
        padding: 20px;
    }
}

/* --- Strona Bramki Logowania --- */

.gate-hero {
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/gate-bg.jpg');
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    color: #fff;
}

.gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.gate-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.gate-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.gate-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gate-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.gate-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Karty */
.gate-card {
    flex: 1;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gate-card.login-card {
    background: #fff;
}

.gate-card.register-card {
    background: #fdfdfd;
}

.gate-icon {
    font-size: 2.5rem;
    color: #eab308;
    margin-bottom: 20px;
    background: #fefce8;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.gate-card p {
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

.gate-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    width: 100%;
}

.gate-benefits li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gate-benefits li i {
    color: #10b981;

}

/* Przyciski */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}


.gate-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.gate-note a {
    color: #64748b;
    text-decoration: underline;
}

.gate-separator {
    width: 1px;
    background: #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-separator span {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    position: absolute;
    white-space: nowrap;
}

/* FAQ na dole */
.gate-faq {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.gate-faq a {
    color: #64748b;
    font-weight: 600;
}

/* Responsywność */
@media (max-width: 768px) {
    .gate-grid {
        flex-direction: column;
        max-width: 400px;
    }

    .gate-separator {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }
}

/* ===== FOOTER - STYLE GŁÓWNE ===== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--agro-green-dark) 0%, #1e3d2a 100%);
    color: var(--agro-cream);
    overflow: hidden;
    max-width: 1440px;
    margin: 0 auto;

}

/* Fala dekoracyjna na górze */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    fill: var(--agro-white);
    /* Kolor poprzedniej sekcji */
}

/* Dekoracje liści */
.footer-decoration {
    position: absolute;
    width: 200px;
    height: 400px;
    color: var(--agro-cream);
    pointer-events: none;
}

.footer-decoration-left {
    left: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
}

.footer-decoration-right {
    right: -50px;
    bottom: 10%;
    transform: rotate(15deg);
}

/* ===== GŁÓWNA CZĘŚĆ FOOTERA ===== */
.footer-main {
    position: relative;
    padding: 100px 0 60px;
    z-index: 1;
}

.footer-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}

/* ===== KOLUMNA BRAND ===== */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--agro-white);
}

.logo-accent {
    color: var(--agro-wheat);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(245, 241, 232, 0.8);
    margin-bottom: 24px;
}

/* Social media */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--agro-cream);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--agro-wheat);
    color: var(--agro-earth);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(232, 213, 163, 0.3);
}

/* ===== KOLUMNY Z LINKAMI ===== */
.footer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--agro-white);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.title-icon {
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(245, 241, 232, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 6px;
    height: 6px;
    background: var(--agro-sage);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--agro-wheat);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

/* ===== KOLUMNA KONTAKT ===== */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(245, 241, 232, 0.75);
}

.contact-list svg {
    flex-shrink: 0;
    color: var(--agro-sage);
}

.contact-list a {
    color: rgba(245, 241, 232, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--agro-wheat);
}

/* ===== DOLNY PASEK ===== */
.footer-bottom {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    z-index: 1;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(245, 241, 232, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: rgba(245, 241, 232, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--agro-wheat);
}

.footer-legal .separator {
    color: rgba(245, 241, 232, 0.3);
}

/* ===== PRZYCISK POWROTU NA GÓRĘ ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--agro-green) 0%, var(--agro-green-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--agro-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 90, 61, 0.4);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 80px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-title {
        justify-content: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        transform: none;
    }

    .contact-list {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
         .contact-card {
             width: 100%;
             flex-direction: column;
            
         }

.contact-main .container {
    padding: 0 0;
}
.contact-main {
    padding: 80px 0;}
}


.footer-newsletter p{
    color: #e8d5a3
}


/* ===== NEWSLETTER ===== */
.wpforms-newsletter-wrapper .wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
}

.wpforms-newsletter-wrapper .wpforms-form {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.wpforms-newsletter-wrapper .wpforms-field-label {
    display: none !important;
}

.wpforms-newsletter-wrapper .wpforms-field-container {
    flex-grow: 1;
    margin-bottom: 0 !important;
}

.wpforms-newsletter-wrapper .wpforms-field {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.wpforms-newsletter-wrapper input[type="email"] {
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0 50px 0 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.wpforms-newsletter-wrapper input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.wpforms-newsletter-wrapper input[type="email"]:focus {
    border-color: #eab308;
    background: rgba(255, 255, 255, 0.15);
}

.wpforms-newsletter-wrapper .wpforms-submit-container {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
}

.wpforms-newsletter-wrapper button[type="submit"] {
    font-size: 0 !important;
    color: transparent !important;
    width: 35px;
    height: 35px;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}

.wpforms-container .wpforms-submit:hover {
    box-shadow:
        0 8px 25px rgba(201, 162, 39, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f0e2b3 0%, #d4af37 100%);
}

.wpforms-newsletter-wrapper label.wpforms-error {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 11px;
    color: #ff6b6b;
}

.wpforms-newsletter-wrapper .wpforms-confirmation-container-full,
.wpforms-newsletter-wrapper div[id^="wpforms-confirmation-"] {
    background: transparent !important;
    border: none !important;
    color: #4ade80 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    margin: 0;
    text-align: left;
}

.wpforms-newsletter-wrapper .wpforms-confirmation-container-full p {
    color: #4ade80 !important;
    margin: 0;
}

.wpforms-newsletter-wrapper button[type="submit"]:active,
.wpforms-newsletter-wrapper button[type="submit"]:focus {
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") !important;
    outline: none;
    box-shadow: none;
}

.wpforms-newsletter-wrapper button[type="submit"]:hover {
    transform: scale(1.1);
}  

footer .wpforms-container .wpforms-submit:hover {
    transform: scale(1.1);
    background: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: center;
}

footer .wpforms-container .wpforms-submit {
    margin-top: -17px;
 
}

.wpforms-newsletter-wrapper form:has(.wpforms-has-error) button[type="submit"] {
      margin-top: -43px;
}

/* Single post */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.header-text-col {
    padding-right: 20px;
}

.modern-title {
    font-size: 2.8rem;
    line-height: 1.1;
    color: #2c3e50;
    margin: 15px 0 20px 0;
    font-weight: 800;
}

.header-meta {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-meta span {
    margin-right: 15px;
}

.header-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    border-left: 4px solid #f1c40f;
    padding-left: 15px;
}

.header-image-col {
    position: relative;
}

.rounded-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(52, 152, 219, 0.1);
}

.modern-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 25px;
}

/* --- SIDEBAR (Autor) --- */
.sidebar-column {
    position: relative;
}

.sticky-widget-area {
    position: sticky;
    top: 40px;
}

.sidebar-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.author-avatar img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-bio {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
}

.objects-section-wrapper {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.related-card.horizontal-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 100px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-card.horizontal-card .card-image-wrapper {
    width: 100px;
    height: 100%;
    flex-shrink: 0;
}

.related-card.horizontal-card .related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card.horizontal-card .card-content {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card.horizontal-card .card-title {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.related-card.horizontal-card .city-badge {
    font-size: 0.8rem;
    color: #7f8c8d;
}

@media (max-width: 900px) {

    .modern-header-split,
    .modern-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-header-split .header-image-col {
        order: -1;
    }

    .rounded-hero-img {
        height: 250px;
/
    }

    .modern-title {
        font-size: 2rem;
    }

    .sticky-widget-area {
        position: static;
    }
}
/* --- WIDGET BOCZNY: OSTATNIE WPISY --- */

.sidebar-box.recent-posts-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.widget-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 10px;
    display: inline-block;
    text-align: left;
    width: 100%;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-item {
    display: flex;
    text-decoration: none;
    align-items: flex-start;
    group: hover;
    transition: transform 0.2s;
}

.recent-item:hover {
    transform: translateX(5px);
}

/* Obrazek (lewa strona) */
.recent-img-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

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

.recent-item:hover .recent-img {
    transform: scale(1.1);
}

.recent-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
}

.recent-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.recent-title {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #2c3e50;
    font-weight: 700;
}

.recent-item:hover .recent-title {
    color: #3498db;
}

.recent-excerpt {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-date {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: auto;
    font-weight: 500;
}

.recent-date i {
    margin-right: 4px;
}

/* Kontener Galerii */
.post-gallery-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* BAZOWY GRID (Siatka) */

.post-gallery-section {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.bento-gallery {
    display: grid;
    gap: 15px;
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (min-width: 768px) {
    .bento-gallery {
        grid-auto-rows: 200px;
    }
    .bento-gallery.count-3 {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 200px 200px;
        
    }

    .bento-gallery.count-3 .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .bento-gallery.count-3 .item-2 {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .bento-gallery.count-3 .item-3 {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }

    .bento-gallery.count-4 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 200px 200px;
    }

    .bento-gallery.count-4 .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .bento-gallery.count-4 .item-2 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .bento-gallery.count-4 .item-3 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .bento-gallery.count-4 .item-4 {
        grid-column: 1 / 4;
        grid-row: 3 / 4;
    }

    .bento-gallery.count-5 {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 200px 200px;
    }

    .bento-gallery.count-5 .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .bento-gallery.count-5 .item-2 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .bento-gallery.count-5 .item-3 {
        grid-column: 4 / 5;
        grid-row: 1 / 2;
    }

    .bento-gallery.count-5 .item-4 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .bento-gallery.count-5 .item-5 {
        grid-column: 4 / 5;
        grid-row: 2 / 3;
    }

    .bento-gallery.count-6 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 200px 200px 200px;
      
    }

    .bento-gallery.count-6 .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }


    .bento-gallery.count-6 .item-2 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .bento-gallery.count-6 .item-3 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }


    .bento-gallery.count-6 .item-4 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .bento-gallery.count-6 .item-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .bento-gallery.count-6 .item-6 {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
}
/* Stylizacja lokalizacji w widgecie bocznym */
.object-location-badge {
    font-size: 0.75rem;
    color: #fff;
    background-color: #3498db; 
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto; 
    align-self: flex-start; 
    font-weight: 600;
}

.object-location-badge i {
    font-size: 0.7rem;
    margin-right: 3px;
}

/* Link CTA (jeśli brak miasta) */
.object-cta {
    font-size: 0.8rem;
    color: #3498db;
    font-weight: 600;
    margin-top: auto;
}

.recent-placeholder i.fa-map-location-dot {
    color: #bdc3c7;
    font-size: 1.8rem;
}

.object-location-badge {
    font-size: 0.75rem;
    color: #fff;
    background-color: #3498db;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
}

.object-location-badge i {
    font-size: 0.7rem;
    margin-right: 3px;
}

/* Link CTA (jeśli brak miasta) */
.object-cta {
    font-size: 0.8rem;
    color: #3498db;
    font-weight: 600;
    margin-top: auto;
}

.recent-placeholder i.fa-map-location-dot {
    color: #bdc3c7;
    font-size: 1.8rem;
}

.recent-excerpt-small {
    font-size: 0.8rem;
    color: #777;
    margin: 4px 0 8px 0;
    line-height: 1.3;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-content {
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 100%;
    text-align: left;
}


/* --- SEKCJA BLOGA NA GŁÓWNEJ --- */

.home-blog-section {
    padding: 40px 0;
    background-color: #fcfcfc;
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-header-wrapper .section-heading {
    margin-bottom: 0;
    border-bottom: none;
}

.view-all-link {
    font-size: 0.9rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: #2c3e50;
}

/* Siatka 2-kolumnowa */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* KARTA BLOGA (Styl Poziomy) */
.home-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
    align-items: stretch;
}

/* Zdjęcie (Lewa część - 40%) */
.blog-card-image {
    width: 40%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-blog-card:hover .blog-img {
    transform: scale(1.05);
}

/* Data na zdjęciu */
.blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* Placeholder */
.blog-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    min-height: 200px;
}

/* Treść (Prawa część - reszta) */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 60%;
}

.blog-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    transition: color 0.2s;
}

.home-blog-card:hover .blog-title {
    color: #3498db;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn i {
    margin-left: 5px;
    transition: margin-left 0.2s;
}

.home-blog-card:hover .read-more-btn i {
    margin-left: 10px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {

    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-link {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        height: 200px;
    }

    .blog-card-content {
        width: 100%;
        padding: 20px;
    }
}

.home-blog-section {
    padding: 60px 0;
    background-color: #0160A0;
    color: #fff;
}

.home-blog-section .section-heading,
.home-blog-section .view-all-link {
    color: #fff !important;
}

.home-blog-section .section-header-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.home-blog-section .view-all-link:hover {
    color: #3498db !important;

}

.home-blog-card {
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-title {
    color: #2c3e50;
}

.home-blog-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.25);
}

.home-blog-section .section-heading {
    color: #2c3e50;
}


.view-all-link {
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    color: #2c3e50;
}

.view-all-link:hover {
    background: #fff;
    color: #3498db;
}

/* --- WIDGET UDOSTĘPNIANIA --- */

.share-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

/* Kolory przycisków */
.btn-fb {
    background-color: #1877f2;

}

.btn-x {
    background-color: #000;
    /* Twitter/X Black */
}

.btn-copy {
    background-color: #f1f2f6;
    color: #2c3e50;
    /* Ciemny tekst na jasnym tle */
}

.btn-copy:hover {
    background-color: #dfe4ea;
    color: #2c3e50;
}

/* --- UKŁAD 3-KOLUMNOWY MAPY --- */

.map-app-layout {
    display: flex;
    height: calc(100vh - 80px);
    min-height: 600px;
    background: #fff;
    overflow: hidden; 
}

/* SIDEBARY (Lewy i Prawy) */
.map-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.map-sidebar.right {
    border-left: 1px solid #eee;
    border-right: none;
}

.sidebar-header {
    padding: 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}
.sidebar-header h2 { margin: 0; font-size: 1.2rem; color: #2c3e50; }
.sidebar-header p { margin: 5px 0 0; color: #999; font-size: 0.85rem; }

/* Lista filtrów (Scrollowana) */
.filters-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Checkbox */
.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.filter-row input { display: none; }

.checkmark {
    width: 18px; height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

/* Szlaki mają okrągłe checkboxy dla odróżnienia */
.checkmark.box-rounded { border-radius: 50%; }

.filter-row input:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.filter-row input:checked + .checkmark::after {
    content: "✓";
    position: absolute; color: #fff; font-size: 12px;
    left: 3px; top: -1px;
}

.label-text { font-size: 0.9rem; color: #555; }
.filter-row:hover .label-text { color: #3498db; }


/* ŚRODEK (MAPA) */
.map-center {
    flex-grow: 1; 
    position: relative;
    display: flex;
    flex-direction: column;
}

.map-toolbar {
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.btn-tool {
    background: #eef5f9; border: none; padding: 8px 15px;
    border-radius: 20px; color: #3498db; font-weight: 600; cursor: pointer;
}
.btn-tool:hover { background: #e1ecf4; }

/* KONTENER MAPY */
#full-map {
    flex-grow: 1;
    width: 100%;
    height: 100%; 
    background: #e0e0e0;
}

@media (max-width: 1100px) {
    .map-app-layout {
        flex-direction: column;
        height: auto;
    }
    
    .map-sidebar { width: 100%; height: auto; max-height: 300px; }
    .map-center { height: 500px; } 
    .map-center { order: 1; }
    .map-sidebar.left { order: 2; }
    .map-sidebar.right { order: 3; }
}