/* WYGENEROWANE ze style.embed.css skryptem — wariant C "Robocza żółć".
   Nie edytuj ręcznie: zmiany rób w style.css -> style.embed.css -> ten plik. */
/* WYGENEROWANE ze style.css — wersja do osadzenia w stronie.
   Nie edytuj ręcznie: zmiany rób w style.css i przepuść przez scope_css.py */

/* =============================================
   Kolorystyka: Dark Graphite + Emerald Accent
   bg-dark: #ffffff  bg-card: #f2f2ef  bg-input: #ffffff
   border: #d6d6cf    accent: #111111   accent-hover: #333333
   text: #111111      text-muted: #5a5a55   text-dim: #8a8a84
   ============================================= */

#kalkulator-app * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#kalkulator-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #111111;
}

#kalkulator-app {
    display: flex;
    height: 100%;
    width: 100%;
}/* --- Panel boczny --- */


#kalkulator-app #sidebar {
    width: 25%;
    min-width: 300px;
    background: #f2f2ef;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid #d6d6cf;
    z-index: 1000;
}

#kalkulator-app #sidebar h1 {
    font-size: 1.3rem;
    color: #111111;
    margin-bottom: 4px;
    font-weight: 700;
}

#kalkulator-app .step {
    background: #ffffff;
    border-radius: 0;
    padding: 16px;
    border: 1px solid #d6d6cf;
}

#kalkulator-app .step h2 {
    font-size: 0.85rem;
    color: #5a5a55;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    font-weight: 600;
}/* --- Wyszukiwarka --- */


#kalkulator-app .search-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

#kalkulator-app .search-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 0.9rem;
}

#kalkulator-app .search-box button {
    flex-shrink: 0;
    white-space: nowrap;
}

#kalkulator-app .search-box input::placeholder {
    color: #8a8a84;
}

#kalkulator-app .search-box input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

#kalkulator-app #search-results {
    margin-top: 8px;
    font-size: 0.85rem;
}

#kalkulator-app #search-results .result-item {
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 0;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

#kalkulator-app #search-results .result-item:hover {
    background: #d6d6cf;
}/* --- Przyciski --- */


#kalkulator-app button {
    padding: 10px 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

#kalkulator-app #search-btn {
    background: #111111;
    color: white;
}

#kalkulator-app #search-btn:hover {
    background: #333333;
}/* --- Przyciski rysowania (sidebar) --- */


#kalkulator-app #draw-btn {
    width: 100%;
    background: #ffffff;
    color: #111111;
    border: 1px solid #111111;
}

#kalkulator-app #draw-btn:hover {
    background: #111111;
    color: white;
}

#kalkulator-app #draw-btn.drawing {
    background: #111111;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#kalkulator-app .btn-secondary {
    width: 100%;
    background: transparent;
    color: #5a5a55;
    border: 1px solid #d6d6cf;
    margin-top: 8px;
}

#kalkulator-app .btn-secondary:hover {
    background: #d6d6cf;
    color: #111111;
}

#kalkulator-app .manual-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#kalkulator-app .manual-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 0.9rem;
}

#kalkulator-app .manual-input-row input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

#kalkulator-app .manual-unit {
    color: #5a5a55;
    font-size: 0.9rem;
    font-weight: 600;
}

#kalkulator-app #manual-apply-btn {
    width: 100%;
    background: #ffffff;
    color: #111111;
    border: 1px solid #111111;
}

#kalkulator-app #manual-apply-btn:hover {
    background: #111111;
    color: white;
}/* --- Hint --- */


#kalkulator-app .hint {
    font-size: 0.8rem;
    color: #8a8a84;
    margin-bottom: 10px;
    line-height: 1.4;
}/* --- Wynik powierzchni --- */


#kalkulator-app .result-box {
    background: #ffffff;
    border-radius: 0;
    padding: 16px;
    text-align: center;
    border: 1px solid #111111;
}

#kalkulator-app .result-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
}

#kalkulator-app .result-unit {
    font-size: 1rem;
    color: #5a5a55;
    margin-left: 4px;
}

#kalkulator-app .result-hectares {
    text-align: center;
    font-size: 0.85rem;
    color: #8a8a84;
    margin-top: 6px;
}/* --- Warstwy --- */


#kalkulator-app .layer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    cursor: pointer;
}

#kalkulator-app .layer-toggle input[type="checkbox"] {
    accent-color: #111111;
    width: 16px;
    height: 16px;
}/* --- Mapa --- */


#kalkulator-app #map {
    flex: 1;
    height: 100%;
    position: relative;
}/* --- Overlay generowania wyceny --- */


#kalkulator-app #generating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 27, 35, 0.8);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#kalkulator-app .generating-box {
    background: #f2f2ef;
    border: 2px solid #111111;
    border-radius: 0;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#kalkulator-app .generating-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #d6d6cf;
    border-top: 4px solid #111111;
    border-right: 4px solid #111111;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 0.8s linear infinite;
}

#kalkulator-app .generating-text {
    color: #111111;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#kalkulator-app .generating-sub {
    color: #8a8a84;
    font-size: 0.85rem;
}/* --- Loading mapy --- */


#kalkulator-app #map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #5a5a55;
    font-size: 0.95rem;
    background: rgba(34, 36, 46, 0.95);
    padding: 24px 36px;
    border-radius: 0;
    border: 1px solid #d6d6cf;
    pointer-events: none;
    transition: opacity 0.5s;
}

#kalkulator-app #map-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#kalkulator-app .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #d6d6cf;
    border-top: 3px solid #111111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}/* Leaflet draw toolbar */


#kalkulator-app .leaflet-draw-toolbar a {
    font-size: 0;
}

#kalkulator-app .leaflet-editing-icon {
    width: 4px !important;
    height: 4px !important;
    margin-left: -2px !important;
    margin-top: -2px !important;
}/* --- Kalkulator wyceny --- */


#kalkulator-app .estimator-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#kalkulator-app .estimator-label {
    font-size: 0.85rem;
    color: #5a5a55;
    margin-bottom: 4px;
}

#kalkulator-app .photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#kalkulator-app .photo-option {
    background: #ffffff;
    border: 2px solid #d6d6cf;
    border-radius: 0;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

#kalkulator-app .photo-option:hover {
    border-color: #5a5a55;
}

#kalkulator-app .photo-option.selected {
    border-color: #111111;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

#kalkulator-app .photo-option .photo-img-wrap {
    position: relative;
    cursor: zoom-in;
}

#kalkulator-app .photo-option .photo-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin-bottom: 4px;
}

#kalkulator-app .photo-option .photo-img-wrap::after {
    content: '🔍';
    position: absolute;
    bottom: 8px;
    right: 6px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    padding: 2px 5px;
    pointer-events: none;
}

#kalkulator-app .photo-option .photo-label {
    font-size: 0.75rem;
    color: #5a5a55;
    line-height: 1.3;
}

#kalkulator-app .photo-option.selected .photo-label {
    color: #111111;
    font-weight: 600;
}/* --- Powiększenie zdjęcia --- */


#kalkulator-app .photo-zoom-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 27, 35, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(6px);
}

#kalkulator-app .photo-zoom-overlay.visible {
    display: flex;
    flex-direction: row;
}

#kalkulator-app .zoom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
}

#kalkulator-app .photo-zoom-overlay img {
    max-width: 75vw;
    max-height: 60vh;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid #111111;
}

#kalkulator-app .photo-zoom-overlay .zoom-label {
    color: #111111;
    font-size: 1.1rem;
    margin-top: 14px;
    text-align: center;
    max-width: 500px;
}

#kalkulator-app .photo-zoom-inner {
    position: relative;
    display: inline-block;
}

#kalkulator-app .zoom-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.2s;
}

#kalkulator-app .zoom-close:hover {
    background: #dc2626;
}

#kalkulator-app .zoom-nav {
    background: rgba(42, 45, 56, 0.9);
    border: 1px solid #111111;
    color: #111111;
    font-size: 3rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 16px;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

#kalkulator-app .zoom-nav:hover {
    background: #111111;
    color: white;
}

#kalkulator-app .zoom-select-btn {
    margin-top: 16px;
    padding: 12px 48px;
    background: #111111;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#kalkulator-app .zoom-select-btn:hover {
    background: #333333;
}/* --- Podsumowanie wyceny --- */


#kalkulator-app .estimate-summary {
    background: #ffffff;
    border-radius: 0;
    padding: 14px;
    border: 1px solid #d6d6cf;
}

#kalkulator-app .estimate-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #5a5a55;
}

#kalkulator-app .estimate-row.total {
    border-top: 1px solid #111111;
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
}

#kalkulator-app .estimate-disclaimer {
    font-size: 0.7rem;
    color: #8a8a84;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}/* --- Formularz kontaktowy --- */


#kalkulator-app .form-group {
    margin-bottom: 10px;
}

#kalkulator-app .form-group label {
    display: block;
    font-size: 0.8rem;
    color: #5a5a55;
    margin-bottom: 4px;
}

#kalkulator-app .form-group input, #kalkulator-app .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

#kalkulator-app .form-group input:focus, #kalkulator-app .form-group textarea:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

#kalkulator-app .date-range-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#kalkulator-app .date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#kalkulator-app .date-label {
    font-size: 0.75rem;
    color: #8a8a84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#kalkulator-app .date-field input[type="date"] {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 0.9rem;
    font-family: inherit;
}

#kalkulator-app .date-field input[type="date"]:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

#kalkulator-app .date-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

#kalkulator-app .rodo-group {
    margin-top: 12px;
}

#kalkulator-app .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: #8a8a84;
    cursor: pointer;
    line-height: 1.4;
}

#kalkulator-app .checkbox-label input[type="checkbox"] {
    accent-color: #111111;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

#kalkulator-app .checkbox-label a {
    color: #111111;
}

#kalkulator-app .btn-send {
    width: 100%;
    padding: 12px;
    background: #111111;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

#kalkulator-app .btn-send:hover:not(:disabled) {
    background: #333333;
}

#kalkulator-app .btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#kalkulator-app #send-status {
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: center;
}

#kalkulator-app #send-status.success {
    color: #111111;
}

#kalkulator-app #send-status.error {
    color: #ef4444;
}/* Przycisk usuń */


#kalkulator-app .btn-danger {
    width: 100%;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    margin-top: 8px;
}

#kalkulator-app .btn-danger:hover {
    background: #ef4444;
    color: white;
}/* --- Overlay startowy --- */


#kalkulator-app #start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 27, 35, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

#kalkulator-app #start-overlay.hidden {
    display: none;
}

#kalkulator-app #start-box {
    background: #f2f2ef;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    padding: 32px 36px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#kalkulator-app #start-box h2 {
    color: #111111;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

#kalkulator-app #start-box p {
    color: #5a5a55;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

#kalkulator-app #start-box .search-box {
    display: flex;
    gap: 8px;
}

#kalkulator-app #start-box .search-box input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d6d6cf;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 1rem;
}

#kalkulator-app #start-box .search-box input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

#kalkulator-app #start-box .search-box button {
    background: #111111;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
}

#kalkulator-app #start-box .search-box button:hover {
    background: #333333;
}

#kalkulator-app #start-search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

#kalkulator-app #start-search-results .result-item {
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 0;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #111111;
    transition: background 0.2s;
}

#kalkulator-app #start-search-results .result-item:hover {
    background: #d6d6cf;
}/* Sidebar ukryty na start */


#kalkulator-app #sidebar.hidden {
    display: none;
}/* --- Responsywność --- */


@media (max-width: 768px) {
    #kalkulator-app {
        flex-direction: column;
    }

    #kalkulator-app #sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid #d6d6cf;
    }

    #kalkulator-app #map {
        height: 55vh;
    }
}
