/* Mapa */
#investors-map {
    height: 500px !important;
    width: 100% !important;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    background-color: #f3f4f6;
    z-index: 1;
    position: relative;
}
.leaflet-container {
    font-family: inherit;
    z-index: 1;
}
#map-fullscreen-btn {
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer;
}

/* Fullscreen styling */
#investors-map-container:fullscreen {
    background: white;
    padding: 0;
}
#investors-map-container:fullscreen #investors-map {
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0;
    margin-bottom: 0;
}
#investors-map-container:-webkit-full-screen {
    background: white;
}
#investors-map-container:-webkit-full-screen #investors-map {
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0;
    margin-bottom: 0;
}
.investor-popup h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #8B1538;
}
.investor-popup p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

/* Sekcja województwa */
.province-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Nagłówek województwa - bordowy pasek */
.province-header {
    background: #8B1538;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabela inwestorów */
.investors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.investors-table thead {
    background: #8B1538;
}
.investors-table th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.investors-table th:last-child {
    border-right: none;
}
.investors-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}
.investors-table tbody tr:last-child td {
    border-bottom: none;
}
.investors-table tbody tr:hover {
    background-color: #fdf8f9;
}

/* Kolumny */
.col-lp {
    width: 50px;
    text-align: center;
    color: #666;
    font-weight: 500;
}
.col-logo {
    width: 80px;
    text-align: center;
}
.col-company {
    width: 28%;
}
.col-address {
    width: 24%;
}
.col-contact {
    width: 23%;
}
.col-branza {
    width: 20%;
}

/* Logo */
.investor-logo {
    max-width: 70px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.investor-logo:hover {
    opacity: 0.8;
}

/* Lightbox */
#logo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#logo-lightbox.active {
    display: flex;
}
#logo-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    background: white;
    padding: 16px;
}
#logo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    opacity: 0.8;
}
#logo-lightbox-close:hover {
    opacity: 1;
}

/* Nazwa firmy */
.company-name {
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-size: 12px;
}
.production-type {
    color: #666;
    font-size: 11px;
    font-style: italic;
    text-transform: uppercase;
}

/* Adres */
.address-main {
    color: #333;
    margin-bottom: 3px;
}
.address-powiat {
    color: #888;
    font-size: 11px;
    font-style: italic;
    text-transform: uppercase;
}

/* Kontakt */
.contact-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #333;
}
.contact-phone .icon {
    color: #8B1538;
    font-size: 12px;
}
.contact-www {
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-www .icon {
    color: #8B1538;
    font-size: 12px;
}
.contact-www a {
    color: #8B1538;
    text-decoration: none;
    font-size: 12px;
}
.contact-www a:hover {
    text-decoration: underline;
}

/* Branża */
.branza-name {
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 4px;
}
.capital-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8B1538;
    font-size: 11px;
    font-weight: 500;
}
.capital-info .icon {
    font-size: 10px;
}

/* Wyszukiwarka */
.search-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.search-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
}
.search-box {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}
.search-box:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

/* Brak wyników */
.no-results {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: none;
}

/* Admin */
.admin-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.admin-btn {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.admin-btn-edit {
    background: #f59e0b;
    color: white;
}
.admin-btn-edit:hover {
    background: #d97706;
}
.admin-btn-delete {
    background: #ef4444;
    color: white;
}
.admin-btn-delete:hover {
    background: #dc2626;
}
