/**
 * Nieruchomości Element - Modern Styles
 */

/* ==========================================================================
   Base - Box Sizing
   ========================================================================== */

.nieruchomosc-single-main *,
.nieruchomosc-single *,
.nieruchomosci-block *,
.lightbox-overlay * {
    box-sizing: border-box;
}

/* ==========================================================================
   Single Nieruchomość Page - NOWOCZESNY LAYOUT
   ========================================================================== */


body.nieruchomosc-template-default #main>.wf-wrap,
body.tax-typ_nieruchomosci #main>.wf-wrap {
    width: 1245px;
}

.nieruchomosc-single {
    background: transparent;
}

/* Hero section z galerią */
.nieruchomosc-hero {
    background: #fff;
    margin-bottom: 48px;
}

.nieruchomosc-galeria-modern,
.nieruchomosc-featured-modern {
    position: relative;
    width: 100%;
    background: #000;
}

.galeria-main-modern {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.galeria-main-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galeria-zoom-icon {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.galeria-main-modern:hover .galeria-zoom-icon {
    background: rgba(218, 127, 13, 0.9);
    transform: scale(1.1);
}

.badge-wyroznienie-hero {
    position: absolute;
    top: 32px;
    left: 32px;
    background: var(--wyroznienie-color, #FFE1C4);
    color: var(--wyroznienie-text-color, #DA7F0D);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.galeria-count {
    width: fit-content;
    height: fit-content;
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.galeria-thumbnails-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 16px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.galeria-thumb-modern {
    position: relative;
    height: 90px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.galeria-thumb-modern.active,
.galeria-thumb-modern:hover {
    border-color: var(--primary-color, #DA7F0D);
    transform: translateY(-2px);
}

.galeria-thumb-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nieruchomosc-template-default #page {
    overflow: initial;
}

/* Content wrapper - 2 column layout */
.nieruchomosc-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 48px;
    align-items: start;
}

/* Main content */
.nieruchomosc-main-content {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Breadcrumb */
.nieruchomosc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted, #666);
}

.nieruchomosc-breadcrumb a {
    color: var(--text-muted, #666);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nieruchomosc-breadcrumb a:hover {
    color: var(--primary-color, #DA7F0D);
}

.nieruchomosc-breadcrumb .separator {
    opacity: 0.5;
}

.nieruchomosc-breadcrumb .current {
    color: var(--text-color, #333);
    font-weight: 500;
}

/* Header modern */
.entry-header-modern {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.header-top {
    margin-bottom: 16px;
}

.typ-badge-modern {
    display: inline-block;
    background: var(--badge-color, #DA7F0D);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-title-modern {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--heading-color, #333);
    line-height: 1.2;
}

.lokalizacja-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--text-muted, #666);
}

.lokalizacja-modern svg {
    color: var(--primary-color, #DA7F0D);
}

.quick-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-light, #FFF8EB);
    border-radius: 8px;
    border: 1px solid var(--border-color, #FFE1C4);
}

.stat-item svg {
    color: var(--primary-color, #DA7F0D);
}

.stat-item span {
    font-size: 16px;
    color: var(--text-color, #555);
}

/* Content */
.entry-content-modern {
    line-height: 1.8;
}

body.tax-typ_nieruchomosci #page,
body.post-type-archive-nieruchomosc #page {
    overflow: visible;
}

.entry-content-modern h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--heading-color, #333);
}

.entry-content-modern p {
    margin-bottom: 20px;
    color: var(--text-color, #555);
    font-size: 17px;
}

/* Szczegóły modern */
.nieruchomosc-details-modern {
    padding: 24px;
    background: var(--bg-light, #FFF8EB);
    border-radius: 12px;
    margin-bottom: 48px;
}

.nieruchomosc-details-modern h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: var(--heading-color, #333);
}

.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.detail-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #DA7F0D);
    border-radius: 10px;
}

.detail-icon svg {
    color: #fff;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 18px;
    color: var(--heading-color, #333);
    font-weight: 700;
}

/* Sticky Sidebar */
.nieruchomosc-sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cena-box {
    background: linear-gradient(135deg, var(--primary-color, #DA7F0D) 0%, var(--accent-color, #F49519) 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(218, 127, 13, 0.25);
}

.cena-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

.cena-value-modern {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

.cta-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--heading-color, #333);
}

.cta-box p {
    font-size: 15px;
    color: var(--text-muted, #666);
    margin-bottom: 24px;
    line-height: 1.6;
}

body a.btn-primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: var(--primary-color, #DA7F0D);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

body a.btn-primary-cta:hover {
    background: var(--primary-hover, #C17109);
    color: #fff;
}

body a.btn-secondary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: transparent;
    color: var(--primary-color, #DA7F0D);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--primary-color, #DA7F0D);
    transition: all 0.3s ease;
}

body a.btn-secondary-cta:hover {
    background: var(--primary-hover, #C17109);
    border-color: var(--primary-hover, #C17109);
    color: #fff;
}

.share-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.share-box h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--heading-color, #333);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-light, #FFF8EB);
    border-radius: 8px;
    color: var(--primary-color, #DA7F0D);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color, #DA7F0D);
    color: #fff;
    transform: translateY(-2px);
}

/* Navigation modern */
.nieruchomosc-navigation-modern {
    max-width: 1400px;
    margin: 48px auto 0;
    padding: 0 32px 48px;
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nav-label {
    font-size: 13px;
    color: var(--primary-color, #DA7F0D);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 18px;
    color: var(--heading-color, #333);
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* ==========================================================================
   Lista/Grid Nieruchomości + Archiwum
   ========================================================================== */

/* Archiwum wrapper */
.nieruchomosci-archive-wrapper {
    padding: 48px 0;
}

.archive-header {
    background: #fff;
    padding: 48px 0;
    margin-bottom: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.archive-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.archive-title {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--heading-color, #333);
}

.archive-description {
    font-size: 18px;
    color: var(--text-muted, #666);
    margin: 0;
}

/* Layout z sidebar */
.archive-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar z filtrami */
.archive-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-filters-sticky {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filters-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--heading-color, #333);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #555);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
    padding: 12px 16px;
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color, #DA7F0D);
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    flex: 1;
}

.filter-range .range-separator {
    color: var(--text-color, #999);
    font-weight: 500;
}

/* Checkboxy w filtrach */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkboxes .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-color, #333);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.filter-checkboxes .checkbox-label:hover {
    background-color: rgba(218, 127, 13, 0.05);
}

.filter-checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color, #DA7F0D);
}

.range-separator {
    color: var(--text-muted, #666);
    font-weight: 600;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.btn-filter-apply {
    padding: 14px 24px;
    background: var(--primary-color, #DA7F0D);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-apply:hover {
    background: var(--primary-hover, #C17109);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 127, 13, 0.3);
}

.btn-filter-reset {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-color, #555);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-filter-reset:hover {
    border-color: var(--text-color, #555);
}

/* Main content */
.archive-main-content {
    min-height: 400px;
}

/* Paginacja */
.archive-pagination {
    margin-top: 48px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    color: var(--text-color, #555);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    border-color: var(--primary-color, #DA7F0D);
    color: var(--primary-color, #DA7F0D);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 127, 13, 0.2);
}

.page-numbers .current {
    background: var(--primary-color, #DA7F0D);
    color: #fff;
    border-color: var(--primary-color, #DA7F0D);
    box-shadow: 0 4px 12px rgba(218, 127, 13, 0.25);
}

.page-numbers .next,
.page-numbers .prev {
    padding: 0 20px;
    font-weight: 700;
}

.page-numbers .dots {
    border: none;
    background: transparent;
    color: var(--text-muted, #999);
    cursor: default;
}

.page-numbers .dots:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

.nieruchomosci-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color, #ddd);
    background: #fff;
    color: var(--text-color, #333);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.filter-btn:hover {
    border-color: var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
}

.filter-btn.active {
    background: var(--primary-color, #007bff);
    color: #fff;
    border-color: var(--primary-color, #007bff);
}

.nieruchomosci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.nieruchomosc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nieruchomosc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nieruchomosc-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.nieruchomosc-card:hover .nieruchomosc-card-image img {
    transform: scale(1.1);
}

.nieruchomosc-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--badge-color, #DA7F0D);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.nieruchomosc-card-wyroznienie {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--wyroznienie-color, #FFE1C4);
    color: var(--wyroznienie-text-color, #DA7F0D);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.nieruchomosc-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nieruchomosc-card-title {
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--heading-color, #333);
}

.nieruchomosc-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nieruchomosc-card-title a:hover {
    color: var(--primary-color, #007bff);
}

.nieruchomosc-card-lokalizacja {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-muted, #666);
    font-size: 15px;
}

.nieruchomosc-card-excerpt {
    flex-grow: 1;
    margin-bottom: 16px;
    color: var(--text-color, #555);
    line-height: 1.6;
    font-size: 15px;
}

.nieruchomosc-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #eee);
}

.card-detail {
    font-size: 14px;
}

.card-detail-label {
    display: block;
    color: var(--text-muted, #666);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-detail-value {
    display: block;
    color: var(--text-color, #333);
    font-weight: 600;
    margin-top: 4px;
}

.nieruchomosc-card-cena {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--border-color, #eee);
}

.cena-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color, #28a745);
}

.card-link {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-hover, #0056b3);
    text-decoration: underline;
}

/* Komunikat "Brak wyników" */
.no-results {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted, #666);
}

.no-results p {
    font-size: 18px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {

    /* Single page responsive */
    .nieruchomosc-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar-sticky {
        position: static;
    }

    .galeria-main-modern {
        height: 400px;
    }

    .entry-title-modern {
        font-size: 24px;
    }

    .nieruchomosc-main-content {
        padding: 32px;
    }

    /* Archive responsive */
    .archive-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar-filters-sticky {
        position: static;
    }

    .archive-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nieruchomosc-content-wrapper {
        padding: 0 16px;
    }

    .nieruchomosc-main-content {
        padding: 24px;
    }

    .entry-title-modern {
        font-size: 22px;
    }

    .galeria-main-modern {
        height: 300px;
    }

    .quick-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        padding: 12px 16px;
    }

    .details-grid-modern {
        grid-template-columns: 1fr;
    }

    .cena-value-modern {
        font-size: 22px;
    }

    .nieruchomosci-grid {
        grid-template-columns: 1fr;
    }

    .nieruchomosci-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .nav-container {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .galeria-thumbnails-modern {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .galeria-thumb-modern {
        height: 60px;
    }

    /* Archive responsive */
    .archive-header {
        padding: 32px 0;
        margin-bottom: 32px;
    }

    .archive-header-inner,
    .archive-content-wrapper {
        padding: 0 16px;
    }

    .archive-title {
        font-size: 28px;
    }

    .archive-description {
        font-size: 16px;
    }

    .sidebar-filters-sticky {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .nieruchomosc-navigation-modern {
        padding: 0 16px 32px;
    }

    .nieruchomosc-hero {
        margin-bottom: 24px;
    }

    .galeria-main-modern {
        height: 250px;
    }

    .nieruchomosc-main-content,
    .nieruchomosc-details-modern,
    .cta-box,
    .share-box {
        padding: 20px;
    }

    .entry-title-modern {
        font-size: 20px;
    }

    .cena-value-modern {
        font-size: 20px;
    }

    .badge-wyroznienie-hero,
    .galeria-count {
        padding: 8px 16px;
        font-size: 12px;
        top: 16px;
        left: 16px;
    }

    .galeria-count {
        bottom: 16px;
        right: 16px;
    }

    .galeria-zoom-icon {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .galeria-zoom-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Archive responsive mobile */
    .archive-header {
        padding: 24px 0;
    }

    .archive-title {
        font-size: 24px;
    }

    .archive-description {
        font-size: 14px;
    }

    .nieruchomosci-archive-wrapper {
        padding: 32px 0;
    }
}

.nieruchomosci-block.nieruchomosci-elementor-widget {
    width: 1245px;
    max-width: 90%;
    margin: auto;
}

/* Przycisk "Zobacz wszystkie" */
.nieruchomosci-see-all-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color, #DA7F0D);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nieruchomosci-see-all-btn:hover {
    background: var(--primary-hover, #C17109);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 127, 13, 0.3);
    color: #fff;
}