/* Lokale Manager - Style CSS */

/* === LISTA LOKALI === */
.lokale-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === NAWIGACJA BUDYNKU === */
.building-navigation {
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(189, 154, 104, 0.15);
    border: 1px solid rgba(189, 154, 104, 0.2);
}

.building-navigation h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.unified-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.9) 100%) !important;
    border: 1px solid rgba(189, 154, 104, 0.25) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(189, 154, 104, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    flex-shrink: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #5a4a35 !important;
    backdrop-filter: blur(12px);
    letter-spacing: 0.3px;
}

/* Usunięto efekt ::before dla bardziej eleganckiego wyglądu */

.nav-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(189, 154, 104, 0.15), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.08) 0%, rgba(248, 246, 240, 0.95) 100%) !important;
    border-color: rgba(189, 154, 104, 0.4) !important;
    color: #4a3d2a !important;
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.18) 0%, rgba(189, 154, 104, 0.25) 100%) !important;
    color: #3d3220 !important;
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(189, 154, 104, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(189, 154, 104, 0.6) !important;
    font-weight: 700 !important;
}

.nav-btn.building-btn {
    background: linear-gradient(135deg, #bd9a68 0%, #a68b5b 100%) !important;
    color: white !important;
    font-weight: 700 !important;
}

.nav-btn.building-btn:hover {
    background: linear-gradient(135deg, #a68b5b 0%, #8b7355 100%) !important;
    color: white !important;
}

.nav-btn.building-btn.active {
    background: linear-gradient(135deg, #8b7355 0%, #6d5a3f 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.nav-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(189, 154, 104, 0.2), 0 2px 8px rgba(189, 154, 104, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.nav-btn:active {
    transform: translateY(0px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}




/* === OBRAZ BUDYNKU === */
.building-image-section {
    background: #f8f6f0;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(189, 154, 104, 0.1);
    border: 1px solid rgba(189, 154, 104, 0.2);
}

/* Style dla obszarów klatek */
.klatka-area {
    transition: all 0.3s ease;
}

.klatka-area:hover {
    background: rgba(0, 124, 186, 0.2) !important;
}

.klatka-area.active {
    background: rgba(0, 124, 186, 0.3) !important;
    border-color: #007cba !important;
}

.building-image-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.building-image-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.building-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
}

.building-overlay .floor-plan-container,
.building-image-section .floor-plan-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.building-overlay .floor-plan-container img,
.building-image-section .floor-plan-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.building-area {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.building-area:hover {
    transform: scale(1.02);
}

.area-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.building-area:hover .area-label {
    opacity: 1;
}

.building-area.active .area-label {
    opacity: 1;
}

/* === TABELA LOKALI === */
.lokale-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.lokale-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lokale-table thead {
    background: linear-gradient(135deg, #bd9a68 0%, #a68b5b 100%);
    color: white;
}

.lokale-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    vertical-align: middle;
}

.lokale-table th:nth-child(6),
.lokale-table th:nth-child(7) {
    text-align: center;
}

.lokale-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.lokale-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lokale-table tbody tr:last-child {
    border-bottom: none;
}

.lokale-table td {
    padding: 15px 12px;
    vertical-align: middle;
    border: none;
}

/* Kolumny tabeli */
.lokal-name {
    min-width: 200px;
}

.lokal-location-short {
    color: #333;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}


.lokal-config {
    font-size: 12px;
    font-weight: 200;
    color: #7f8c8d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.lokal-description-short {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}


.lokal-area,
.lokal-rooms {
    text-align: center;
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.lokal-price {
    text-align: left;
    font-weight: 500;
    color: #bd9a68;
    min-width: 120px;
}

.lokal-price-per-m2 {
    text-align: left;
    min-width: 100px;
}

.price-per-m2 {
    font-size: 12px;
    color: #8b7355;
    font-weight: 600;
}

.lokal-status {
    text-align: center;
    min-width: 100px;
}

.lokal-actions {
    text-align: center;
    min-width: 150px;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lokale-table td:nth-child(6),
.lokale-table td:nth-child(7) {
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    background: transparent;
}

.action-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-details {
    color: #bd9a68;
}

.btn-details:hover {
    transform: scale(1.1);
}

.btn-details:hover .action-icon {
    opacity: 1;
    color: #a68b5b;
}

.btn-price-history {
    color: #8b7355;
}

.btn-price-history:hover {
    transform: scale(1.1);
}

.btn-price-history:hover .action-icon {
    opacity: 1;
    color: #7a6549;
}

.btn-contact {
    color: #28a745;
}

.btn-contact:hover {
    transform: scale(1.1);
}

.btn-contact:hover .action-icon {
    opacity: 1;
    color: #218838;
}

.btn-download-card {
    color: #bd9a68;
}

.btn-download-card:hover {
    transform: scale(1.1);
}

.btn-download-card:hover .action-icon {
    opacity: 1;
    color: #a68b5b;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 70px;
}

.btn-primary {
    background: #bd9a68;
    color: white;
    border: 1px solid #bd9a68;
}

.btn-primary:hover {
    background: #a68b5b;
    color: white;
    transform: translateY(-1px);
    border-color: #a68b5b;
}

.btn-success {
    background: #8b7355;
    color: white;
    border: 1px solid #8b7355;
}

.btn-success:hover {
    background: #7a6549;
    color: white;
    transform: translateY(-1px);
    border-color: #7a6549;
}

/* Status badges w tabeli */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dostepne {
    background: #d4edda;
    color: #155724;
}

.status-zarezerwowane {
    background: #fff3cd;
    color: #856404;
}

.status-sprzedane {
    background: #f8d7da;
    color: #721c24;
}

.status-niedostepne {
    background: #e2e3e5;
    color: #383d41;
}

/* === SIEĆ LOKALI (stare style - do usunięcia) === */
.lokale-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Układ siatki */
.lokale-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.lokale-layout-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.lokale-layout-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.lokale-layout-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.lokale-layout-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Układ lista */
.lokale-layout-list {
    grid-template-columns: 1fr;
}

.lokale-layout-list .lokal-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.lokale-layout-list .lokal-header {
    flex: 0 0 200px;
    border-right: 1px solid #e9ecef;
    border-bottom: none;
}

.lokale-layout-list .lokal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lokale-layout-list .lokal-specs {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 10px;
}

.lokale-layout-list .lokal-actions {
    margin-top: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    gap: 10px;
}

/* Układ kompaktowy */
.lokale-layout-compact {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.lokale-layout-compact .lokal-card {
    padding: 0;
}

.lokale-layout-compact .lokal-header {
    padding: 10px 15px;
}

.lokale-layout-compact .lokal-details {
    padding: 15px;
}

.lokale-layout-compact .lokal-specs {
    grid-template-columns: 1fr;
    gap: 5px;
}

.lokale-layout-compact .lokal-actions {
    padding: 10px 15px;
    flex-direction: column;
}

.lokal-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lokal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.lokal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lokal-title {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.lokal-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-dostepne {
    background: #d4edda;
    color: #155724;
}

.status-zarezerwowane {
    background: #fff3cd;
    color: #856404;
}

.status-sprzedane {
    background: #f8d7da;
    color: #721c24;
}

.status-niedostepne {
    background: #e2e3e5;
    color: #383d41;
}

.lokal-details {
    padding: 20px;
}

.lokal-location {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.location-item {
    font-size: 14px;
    color: #666;
}

.location-item strong {
    color: #333;
}

.lokal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item.spec-price {
    grid-column: 1 / -1;
    font-weight: bold;
    color: #007cba;
    border-bottom: 2px solid #007cba;
}

.spec-item.spec-price-per-m2 {
    grid-column: 1 / -1;
    font-weight: 600;
    color: #28a745;
    border-bottom: 1px solid #28a745;
    font-size: 0.9em;
}

.spec-label {
    font-size: 14px;
    color: #666;
}

.spec-value {
    font-weight: 600;
    color: #333;
}

.lokal-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.lokal-description p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.lokal-actions {
    padding: 15px 20px;
    /* background: #f8f9fa; */
    display: flex;
    gap: 10px;
}

.lokal-details-btn,
.lokal-contact-btn {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lokal-details-btn {
    background: #007cba;
    color: white;
}

.lokal-details-btn:hover {
    background: #005a87;
    color: white;
}

.lokal-contact-btn {
    background: #28a745;
    color: white;
}

.lokal-contact-btn:hover {
    background: #1e7e34;
    color: white;
}



/* === INTERAKTYWNY SELEKTOR === */
.interactive-selector-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.selector-header {
    text-align: center;
    margin-bottom: 30px;
}

.selector-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.selector-header p {
    color: #666;
    font-size: 1.1em;
}

.selector-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.selector-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-width: 200px;
    background: white;
}

.selector-select:focus {
    border-color: #007cba;
    outline: none;
}

.selector-select:disabled {
    background: #f5f5f5;
    color: #999;
}

/* === PLAN BUDYNKU === */

.building-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.building-plan-header h3 {
    margin: 0;
    color: #333;
}

.plan-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.apartment {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.apartment:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.apartment.selected {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.apartment-number {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    z-index: 2;
}

.apartment-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    opacity: 0.3;
    z-index: 1;
}

.apartment.status-dostepne .apartment-status {
    background: #d4edda;
}

.apartment.status-zarezerwowane .apartment-status {
    background: #fff3cd;
}

.apartment.status-sprzedane .apartment-status {
    background: #f8d7da;
}

.apartment.status-niedostepne .apartment-status {
    background: #e2e3e5;
}

/* === INFORMACJE O WYBRANYM LOKALU === */
.selected-lokal-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
}

.selected-lokal-info h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.details-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item .label {
    font-weight: 600;
    color: #666;
}

.detail-item .value {
    color: #333;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.lokal-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.lokal-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.lokal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-secondary:hover {
    background: #1e7e34;
    color: white;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    .lokale-list-container,
    .interactive-selector-container {
        padding: 15px;
    }
    
    .lokale-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row {
        min-width: auto;
    }
    
    .lokale-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsywność dla układów */
    .lokale-layout-grid[data-columns="4"],
    .lokale-layout-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lokale-layout-grid[data-columns="2"] {
        grid-template-columns: 1fr;
    }
    
    .lokale-layout-list .lokal-card {
        flex-direction: column;
    }
    
    .lokale-layout-list .lokal-header {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .lokale-layout-list .lokal-specs {
        grid-template-columns: 1fr;
    }
    
    .lokale-layout-list .lokal-actions {
        flex-direction: column;
    }
    
    .selector-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .selector-select {
        min-width: auto;
        width: 100%;
    }
    
    .building-plan-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .plan-legend {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .apartments-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .lokal-actions {
        flex-direction: column;
    }
    
    .lokal-specs {
        grid-template-columns: 1fr;
    }
    
    /* Responsywność tabeli */
    .lokale-table-container {
        overflow-x: auto;
    }
    
    .lokale-table {
        min-width: 800px;
    }
    
    /* Responsywność obrazu budynku */
    .building-image-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .building-image-section h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .building-image-wrapper {
        max-width: 100%;
    }
    
    .area-label {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .lokale-table th,
    .lokale-table td {
        padding: 10px 8px;
        font-size: 13px;
        vertical-align: middle;
    }
    
    .lokal-name {
        min-width: 150px;
    }
    
    .lokal-location-short {
        font-size: 11px;
    }
    
    
    .action-buttons {
        flex-direction: row; /* Keep in row on mobile for icons */
        gap: 4px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .action-icon {
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 60px;
    }
    
    /* Nowy interfejs - responsywność */
    .main-navigation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .building-area .area-label {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Responsywność przycisków nawigacji */
    .unified-nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 13px;
    }
    
}

@media (max-width: 480px) {
    .apartments-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .apartment-number {
        font-size: 12px;
    }
    
    .lokale-actions {
        flex-direction: column;
    }
    
    .lokal-details-btn,
    .lokal-contact-btn {
        margin-bottom: 5px;
    }
}

/* === INTERAKTYWNE OBSZARY KONDYGNACJI === */
.floor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: auto;
}

.floor-area {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.floor-area:hover {
    background: rgba(0, 124, 186, 0.2) !important;
    border-color: #007cba !important;
}

.floor-area.selected {
    background: rgba(0, 124, 186, 0.3) !important;
    border-color: #007cba !important;
}

.floor-label {
    background: rgba(0, 124, 186, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floor-area:hover .floor-label,
.floor-area.selected .floor-label {
    opacity: 1;
}

.building-instructions {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    color: #666;
    font-size: 14px;
}

/* Style dla tytułu inwestycji */
.investment-title {
    color: #0073aa;
    font-size: 1.2em;
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.investment-address {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 20px 0;
    font-style: italic;
}

/* === NOWY INTERFEJS Z PRZYCISKAMI === */
.main-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Duplikat stylów .nav-btn usunięty - używane są style z góry pliku */

/* Duplikaty stylów usunięte - używane są style z góry pliku */

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: auto;
}

.building-area {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.building-area:hover {
    transform: scale(1.02);
}

.building-area.selected {
    box-shadow: 0 0 0 3px rgba(0,124,186,0.3);
}

.building-area.active {
    box-shadow: 0 0 0 3px rgba(40,167,69,0.3);
}

.area-label {
    background: rgba(0, 124, 186, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

.building-area:hover .area-label,
.building-area.selected .area-label,
.building-area.active .area-label {
    opacity: 1;
}

/* Kolory dla różnych typów obszarów */
.klatka-area {
    background: rgba(0, 124, 186, 0.1);
    border: 2px solid transparent;
}

.klatka-area:hover {
    background: rgba(0, 124, 186, 0.2);
    border-color: #007cba;
}

.klatka-area.selected {
    background: rgba(0, 124, 186, 0.3);
    border-color: #007cba;
}

.floor-area {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid transparent;
}

.floor-area:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.floor-area.selected {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
}

.floor-area .area-label {
    background: rgba(40, 167, 69, 0.8);
}

/* === WYNIKI LOKALI === */
.lokale-results-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.results-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
}

.results-count {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.lokale-results {
    padding: 30px;
}

.loading, .error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error {
    color: #dc3545;
}


/* === MODAL SZCZEGÓŁÓW LOKALU === */
.lokal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1001;
}

.modal-close:hover {
    color: #bd9a68;
}

#modal-body {
    padding: 30px;
}

/* === STYLE DLA PRZYCISKU POBIERANIA KARTY === */
.lokal-card-action {
    text-align: center;
}

.btn-download-simple {
    background: linear-gradient(135deg, #bd9a68 0%, #a68b5b 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(189, 154, 104, 0.3);
}

.btn-download-simple:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(189, 154, 104, 0.4);
}

/* === STYLE DLA KOLUMN Z IKONAMI === */
.lokal-price-changes,
.lokal-contact {
    text-align: center;
}

.btn-price-changes,
.btn-contact {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-price-changes .action-icon,
.btn-contact .action-icon {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-price-changes:hover {
    transform: scale(1.1);
    background: rgba(189, 154, 104, 0.1);
}

.btn-price-changes:hover .action-icon {
    opacity: 1;
}

.btn-contact:hover {
    transform: scale(1.1);
    background: rgba(189, 154, 104, 0.1);
}

.btn-contact:hover .action-icon {
    opacity: 1;
}

/* === STYLE DLA MODALA ZMIAN CEN === */
.price-changes-modal {
    max-width: 500px;
    margin: 0 auto;
}

.modal-header-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(189, 154, 104, 0.2);
}

.modal-header-info h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.modal-header-info p {
    color: #6d5a42;
    margin: 0;
    font-size: 14px;
}

.current-price {
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.1) 0%, rgba(248, 246, 240, 0.8) 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(189, 154, 104, 0.2);
}

.current-price-label {
    color: #6d5a42;
    font-size: 14px;
    margin-bottom: 5px;
}

.current-price-value {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 700;
}

.price-history h4 {
    color: #2c3e50;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.price-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.price-history-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-increase {
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.2);
}

.price-decrease {
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

.price-stable {
    background: rgba(108, 117, 125, 0.05);
    border-color: rgba(108, 117, 125, 0.2);
}

.price-date {
    color: #6d5a42;
    font-size: 13px;
    font-weight: 500;
}

.price-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-icon {
    font-size: 14px;
}

.change-text {
    font-size: 12px;
    font-weight: 600;
}

.price-increase .change-text {
    color: #28a745;
}

.price-decrease .change-text {
    color: #dc3545;
}

.price-stable .change-text {
    color: #6c757d;
}

.price-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(189, 154, 104, 0.2);
    text-align: center;
}

.price-info p {
    color: #6d5a42;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}


/* === MODAL HISTORII ZMIAN CEN === */
.price-history-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.price-history-modal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-history-modal .modal-header {
    background: linear-gradient(135deg, #bd9a68 0%, #a67c52 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-history-modal .modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.price-history-modal .close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.price-history-modal .close-modal:hover {
    color: #f0f0f0;
}

.price-history-modal .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.price-history-modal .lokal-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #bd9a68;
}

.price-history-modal .lokal-info p {
    margin: 5px 0;
    color: #333;
}

.price-history-modal .price-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.price-history-modal .price-history-table th,
.price-history-modal .price-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-history-modal .price-history-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-history-modal .price-history-table tr:hover {
    background-color: #f5f5f5;
}

.price-history-modal .price-increase {
    color: #28a745;
    font-weight: 600;
}

.price-history-modal .price-decrease {
    color: #dc3545;
    font-weight: 600;
}

.price-history-modal .text-center {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* === MODAL SZCZEGÓŁÓW LOKALU === */
.lokal-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.lokal-modal .modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.lokal-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.3s ease;
}

.lokal-modal .modal-close:hover {
    color: #333;
}

.lokal-modal-content {
    padding: 30px;
}

.lokal-modal-content h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.6em;
    font-weight: 600;
    border-bottom: 2px solid #bd9a68;
    padding-bottom: 10px;
}

.lokal-details-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row .label {
    font-weight: 600;
    color: #555;
    flex: 0 0 120px;
}

.detail-row .value {
    color: #333;
    text-align: right;
    font-weight: 500;
}

.lokal-description {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #bd9a68;
}

.lokal-description h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.lokal-description p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.lokal-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.lokal-actions .btn-price-changes {
    background: linear-gradient(135deg, #bd9a68 0%, #a67c52 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lokal-actions .btn-price-changes:hover {
    background: linear-gradient(135deg, #a67c52 0%, #8d6a44 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lokal-actions .action-icon {
    font-size: 14px;
    margin-right: 8px;
}

/* === ROZDZIELENIA KONDYGNACJI === */
.floor-separator {
    height: 12px;
    background: transparent;
}

.floor-separator td {
    border: none;
    padding: 0;
    background: linear-gradient(to right, transparent, #e8e8e8, transparent);
    height: 1px;
    opacity: 0.6;
}

.floor-header {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
    border-top: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    position: relative;
}

.floor-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #bd9a68, #a67c52);
}

.floor-title {
    padding: 14px 24px !important;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    text-align: left;
    border: none !important;
    letter-spacing: 0.3px;
}

.floor-icon {
    margin-right: 10px;
    font-size: 14px;
    color: #bd9a68;
    font-weight: bold;
}

.floor-count {
    color: #868e96;
    font-weight: 400;
    font-size: 12px;
    margin-left: 12px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

/* === PODŚWIETLENIA INTERAKTYWNOŚCI === */
.lokal-row.highlighted {
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.2) 0%, rgba(189, 154, 104, 0.1) 100%) !important;
    border-left: 5px solid #bd9a68 !important;
    transform: translateX(3px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(189, 154, 104, 0.3) !important;
}

/* === KONTENER SVG OVERLAY === */
#floor-plan-container {
    position: relative;
}

#apartment-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Dla apartment-overlays w building-image-section */
.building-image-section #apartment-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

#apartment-overlays svg,
.building-image-section #apartment-overlays svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    background: transparent;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#apartment-overlays .apartment-overlay,
.building-image-section #apartment-overlays .apartment-overlay {
    pointer-events: auto;
    cursor: pointer;
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
    transform: none !important;
    position: static !important;
}

/* Dla elementów SVG z Adobe Illustrator - wszystkie w tym samym kolorze co 1A */
#apartment-overlays .cls-1 {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
    transform: none !important;
}

#apartment-overlays .cls-2 {
    opacity: 0.2 !important;
    transition: all 0.3s ease;
    transform: none !important;
}

/* Wszystkie mieszkania w tym samym kolorze co 1A */
#apartment-overlays .apartment-overlay polygon,
#apartment-overlays .apartment-overlay rect,
#apartment-overlays .apartment-overlay path {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
    transform: none !important;
}

/* Wszystkie elementy SVG w tym samym miejscu */
#apartment-overlays g,
#apartment-overlays polygon,
#apartment-overlays rect,
#apartment-overlays path {
    transform: none !important;
    position: static !important;
}

/* Wszystkie mieszkania w tym samym kolorze co 1A - ciemniejszy */
#apartment-overlays .apartment-overlay {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
}

/* Dla elementów bezpośrednio w apartment-overlay */
#apartment-overlays .apartment-overlay > * {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
}

/* Wymuś jednolity kolor dla WSZYSTKICH elementów SVG */
#apartment-overlays *,
.building-image-section #apartment-overlays * {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
}

/* Nadpisz wszystkie klasy z Adobe Illustrator */
#apartment-overlays .cls-1,
#apartment-overlays .cls-2,
#apartment-overlays .cls-3,
#apartment-overlays .cls-4,
#apartment-overlays .cls-5,
.building-image-section #apartment-overlays .cls-1,
.building-image-section #apartment-overlays .cls-2,
.building-image-section #apartment-overlays .cls-3,
.building-image-section #apartment-overlays .cls-4,
.building-image-section #apartment-overlays .cls-5 {
    fill: rgba(189, 154, 104, 0.15) !important;
    stroke: #bd9a68 !important;
    stroke-width: 1px !important;
    opacity: 1 !important;
}

.apartment-overlay.highlighted {
    fill: rgba(189, 154, 104, 0.9) !important;
    stroke: #bd9a68 !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 15px rgba(189, 154, 104, 0.8)) !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.apartment-overlay.highlighted polygon,
.apartment-overlay.highlighted rect,
.apartment-overlay.highlighted path,
.apartment-overlay.highlighted g {
    fill: rgba(189, 154, 104, 0.9) !important;
    stroke: #bd9a68 !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
}

/* Dla SVG z CSS classes z Adobe Illustrator - grupa */
.apartment-overlay.highlighted .cls-1 {
    fill: rgba(189, 154, 104, 0.9) !important;
    stroke: #bd9a68 !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
}

/* Dla SVG z CSS classes z Adobe Illustrator - grupa z opacity */
.apartment-overlay.highlighted .cls-2 {
    opacity: 1 !important;
    fill: rgba(189, 154, 104, 0.9) !important;
    stroke: #bd9a68 !important;
    stroke-width: 4px !important;
}

/* Dodatkowe style dla wszystkich elementów SVG w highlighted overlay */
.apartment-overlay.highlighted * {
    fill: rgba(189, 154, 104, 0.9) !important;
    stroke: #bd9a68 !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
}

.apartment-overlay:hover {
    fill: rgba(189, 154, 104, 0.3) !important;
    stroke: #bd9a68 !important;
    stroke-width: 3px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 4px rgba(189, 154, 104, 0.3));
}

.apartment-overlay:hover polygon,
.apartment-overlay:hover rect,
.apartment-overlay:hover path,
.apartment-overlay:hover g {
    fill: rgba(189, 154, 104, 0.3) !important;
    stroke: #bd9a68 !important;
    stroke-width: 3px !important;
}

/* Dla SVG z CSS classes z Adobe Illustrator - grupa */
.apartment-overlay:hover .cls-1 {
    fill: rgba(189, 154, 104, 0.3) !important;
    stroke: #bd9a68 !important;
    stroke-width: 3px !important;
}

/* Dla SVG z CSS classes z Adobe Illustrator - grupa z opacity */
.apartment-overlay:hover .cls-2 {
    opacity: 0.5 !important;
}

/* === PRZYCISKI PIWNICY === */
.basement-navigation {
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 100%);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(189, 154, 104, 0.15);
    border: 1px solid rgba(189, 154, 104, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.basement-label {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}


.basement-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.9) 100%) !important;
    border: 1px solid rgba(189, 154, 104, 0.25) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(189, 154, 104, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    flex-shrink: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #5a4a35 !important;
    backdrop-filter: blur(12px);
    letter-spacing: 0.3px;
}

.basement-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(189, 154, 104, 0.15), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.08) 0%, rgba(248, 246, 240, 0.95) 100%) !important;
    border-color: rgba(189, 154, 104, 0.4) !important;
    color: #4a3d2a !important;
}

.basement-btn.active {
    background: linear-gradient(135deg, rgba(189, 154, 104, 0.18) 0%, rgba(189, 154, 104, 0.25) 100%) !important;
    color: #3d3220 !important;
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(189, 154, 104, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(189, 154, 104, 0.6) !important;
    font-weight: 700 !important;
}

.basement-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(189, 154, 104, 0.2), 0 2px 8px rgba(189, 154, 104, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.basement-btn:active {
    transform: translateY(0px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Style dla kart garaży i komórek */
.garage-card {
    border-left: 4px solid #ffc107 !important;
}

/* === RZUTY KONDYGNACJI === */
.floor-plan-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apartment-overlays {
    position: relative;
    display: inline-block;
}

.apartment-overlay {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apartment-overlay:hover {
    transform: scale(1.05);
    z-index: 10;
}

.apartment-svg {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.apartment-overlay:hover .apartment-svg {
    opacity: 1;
}

.apartment-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

/* === HOVER TOOLTIP DLA MIESZKAŃ === */
.apartment-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apartment-tooltip.show {
    opacity: 1;
    transform: translateY(-5px);
}

.apartment-tooltip .download-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
}

.apartment-tooltip .apartment-info {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

/* === IKONY MIESZKAŃ NA PLANIE === */
.apartment-icon {
    cursor: pointer;
    transition: all 0.2s ease;
}

.apartment-icon:hover {
    transform: scale(1.2);
}

.apartment-icon circle {
    transition: all 0.2s ease;
}

.apartment-icon:hover circle {
    fill: #a67c52;
    stroke-width: 3px;
}


/* === PRZYCISK POWIĘKSZENIA RZUTU === */
.zoom-floor-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #bd9a68, #a67c52);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(189, 154, 104, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-floor-btn:hover {
    background: linear-gradient(135deg, #a67c52, #8b6f47);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(189, 154, 104, 0.4);
}

.zoom-floor-btn .zoom-icon {
    font-size: 20px;
    line-height: 1;
}

/* === MODAL POWIĘKSZENIA RZUTU === */
.floor-zoom-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.floor-zoom-header {
    background: linear-gradient(135deg, #bd9a68, #a67c52);
    color: white;
    padding: 20px;
    text-align: center;
}

.floor-zoom-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.floor-zoom-image-container {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.floor-zoom-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Kolory statusów dla overlay */
.apartment-overlay[data-status="dostepne"] .apartment-svg {
    filter: hue-rotate(120deg) saturate(1.2);
}

.apartment-overlay[data-status="zarezerwowane"] .apartment-svg {
    filter: hue-rotate(45deg) saturate(1.2);
}

.apartment-overlay[data-status="sprzedane"] .apartment-svg {
    filter: hue-rotate(0deg) saturate(0.3);
}

.apartment-overlay[data-status="niedostepne"] .apartment-svg {
    filter: hue-rotate(0deg) saturate(0.1);
}

.komorka-card {
    border-left: 4px solid #dc3545 !important;
}

.garage-card .lokal-header {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.komorka-card .lokal-header {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

/* Obszary garaży i komórek na obrazie */
.garage-area {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 2px solid #ffc107 !important;
}

.garage-area:hover {
    background: rgba(255, 193, 7, 0.2) !important;
}

.komorki-area {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid #dc3545 !important;
}

.komorki-area:hover {
    background: rgba(220, 53, 69, 0.2) !important;
}

/* === RESPONSYWNOŚĆ DLA PIWNICY === */
@media (max-width: 768px) {
    .basement-navigation {
        padding: 15px;
    }
    
    .basement-buttons {
        gap: 8px;
    }
    
    .basement-btn {
        padding: 10px 16px !important;
        font-size: 0.9em !important;
        min-width: 120px;
    }
}
