/* Importowanie czcionki Lato – jedna wspólna deklaracja */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Definicje zmiennych kolorów */
:root {
    --primary-color: #e01e48;
    --slider-bg: #ccc;
    --slider-active-bg: var(--primary-color);
    --app-content-gap: 20px;
    --app-content-pad-x: 2rem;

    --caption-bg: rgba(0, 0, 0, 0.5);
    --indicator-active: #e01e48;
    --indicator-inactive: #ccc;

    /* mobile navbar/footer heights (używane niżej) */
    --navbar-h: 64px;
    --footerbar-h: 96px;
    --footer-h: 0px;
}

/* Resetowanie stylów */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Globalne style – spójne z frontendem */
html,
body {
    --building-color: #023047;
    --building-stroke: #023047;
    --building-stroke-weight: 1;
    --parking-color: #fb8500;
    --parking-stroke: #fb8500;
    --parking-stroke-weight: 1;
    --dock-color: #ffb703;
    --dock-stroke: #ffb703;
    --dock-stroke-weight: 1;
    --label-color: #ffffff;
    --parcel-stroke: #007bff;
    --parcel-fill: #DBDBDB;
    --parcel-opacity: 0.9;
    --parcel-fill-opacity: 0.8;
    --parcel-weight: 4;
    --parcel-dash: 2 2;
    height: 100%;
}

body {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 1.15rem; /* podstawowy desktop 1366–2560px */
    color: #333;
    background: #ffffff;
}

.leaflet-pane.hamburgCadastrePane img,
.leaflet-pane.hamburgCadastrePane canvas {
    filter: sepia(1) saturate(10) hue-rotate(168deg) brightness(1.28) contrast(1.18);
}

/* Typografia bazowa – płynne nagłówki */
h1 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.4;
}

h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(0.8rem, 2.4vw, 1rem);
    line-height: 1.3;
}

/* =========================================
   NAVBAR – zbliżony do frontendu
========================================= */

.header,
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    position: fixed; /* przyklejony do góry */
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.0);
    color: #000;
    z-index: 1000;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.header .logo,
.navbar .logo {
    font-size: 2rem;
    font-weight: bold;
}

.header .logo sup,
.navbar .logo sup {
    font-size: 1rem;
    vertical-align: super;
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    transition: color 0.5s ease;
}

.navbar.scrolled .logo a {
    color: inherit;
}

/* Menu */
.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    font-size: clamp(1rem, 2.4vw, 1.2rem);

}

.menu a {
    color: inherit;
    text-decoration: none;
    transition: color 0.5s ease;
}

.menu a:hover {
    color: #414141;
}

.menu a[data-lang-active="true"] {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.navbar.scrolled .menu a {
    color: inherit;
}

/* Hamburger */
.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    left: -9999px;
}

.hamburger {
    display: none; /* pokazywany na mobile w media query */
    cursor: pointer;
    padding: 1rem;
    position: relative;
    width: 30px;
    height: 25px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    background-color: currentColor;
    height: 3px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger span::before {
    top: -8px;
}

.hamburger span::after {
    top: 8px;
}

.nav-toggle:checked + .hamburger span {
    background-color: transparent;
}

.nav-toggle:checked + .hamburger span::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle:checked + .hamburger span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Overlay dla menu / modala */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   KONFIGURATOR – layout jak był
   + lokalna skala fontów
========================================= */

/* Główna siatka konfiguratora */
.container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Mapa 2/3, Sidebar 1/3 */
    width: 100%;
    max-width: none;
    margin: 0;
    height: calc(100dvh - var(--navbar-h) - var(--footer-h) - 2em);
    transition: grid-template-columns 0.5s ease;
    padding: 4rem var(--app-content-pad-x) 6em var(--app-content-pad-x); /* Dostosuj padding do wysokości navbaru i paska dolnego */
    gap: var(--app-content-gap); /* Odstęp między kolumnami */
    font-size: 1rem; /* lokalnie mniejsza typografia */
}

.container.show-preview {
    grid-template-columns: 1fr 1fr 1fr; /* Mapa 1/3, Sidebar 1/3, Preview 1/3 */
}

/* Mapa – bez paddingu, żeby nie „wystawała” */
.map {
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.parcel-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(176, 0, 32, 0.92);
    color: #fff;
    font-size: 0.95rem;
    display: none;
    z-index: 900;
}

.parcel-status.is-visible {
    display: block;
}

.leaflet-draw-guide-dash {
    border-top: 4px dashed #007bff !important;
}

/* Panel boczny */
.sidebar {
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
}

.sidebar h2,
.preview h3 {
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Sekcja podglądu */
.preview {
    display: none;
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 1rem;
}

.container.show-preview .preview {
    display: flex;
}

/* Elementy wewnątrz podglądu */
#preview3DSection {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#map3D {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Style formularza */
.form-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-inline button,
.form-inline input[type='button'] {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
}

/* Style inputów */
.form-inline input[type='text'],
.form-inline input[type='number'] {
    padding: 8px;
    font-size: 1rem;
    width: 100%;
}

/* Sekcja danych */
.data-section {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.data-section h2 {
    margin-bottom: 10px;
}

.data-section p {
    margin-bottom: 5px;
}

/* Stylizacja dla selecta */
#object_type {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: normal;
    float: right;
    flex: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

#object_type:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

#object_type option {
    color: #333;
    background-color: #fff;
}

/* Custom Select */
.custom-select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
}

/* Przełącznik */
.switch-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 20px;
    cursor: pointer;
    margin-bottom: 40px;
    position: relative;
}

.switch {
    width: 100%;
    height: 100%;
    background-color: var(--toggle-bg);
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.switch.active {
    background-color: var(--toggle-active-bg);
}

.switch-toggle {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.switch.active .switch-toggle {
    transform: translateX(20px);
    background-color: var(--toggle-active-bg);
}

/* Suwak */
.slider-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
    font-size: 1rem;
    position: relative;
    width: 100%;
    flex-wrap: wrap;
}

.slider-container input[type='range'] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--slider-bg);
    border-radius: 5px;
    outline: none;
    margin: 0;
}

/* Pasek suwaka */
.slider-container input[type='range']::-webkit-slider-runnable-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

.slider-container input[type='range']::-moz-range-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

/* Uchwyt suwaka */
.slider-container input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: -5px;
}

.slider-container input[type='range']::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider-container input[type='range'].slider-locked {
    cursor: not-allowed;
    opacity: 0.7;
    background: linear-gradient(90deg, #f0f0f0 0%, #f0f0f0 100%);
    border: 1px solid #222;
}
.slider-container input[type='range'].slider-locked::-webkit-slider-thumb {
    background: #222;
}
.slider-container input[type='range'].slider-locked::-moz-range-thumb {
    background: #222;
}

body {
    --footer-col-1: 1fr;
    --footer-col-2: 1fr;
    --footer-col-3: 0.5fr;
    --footer-col-4: 0.5fr;
    --footer-col-5: 0.5fr;
    --footer-col-6: minmax(320px, min(25%, 380px));
}

body:has(.container.show-preview) {
    --footer-col-1: 0.5fr;
    --footer-col-2: 0.5fr;
    --footer-col-3: 0.5fr;
    --footer-col-4: 0.5fr;
    --footer-col-5: 0.5fr;
    --footer-col-6: minmax(320px, min(25%, 380px));
}

.slider-container.is-disabled {
    opacity: 0.5;
}

.slider-container input[type='range']:disabled {
    cursor: not-allowed;
}

.slider-container label {
    display: flex;
    align-items: center;
    min-width: 200px;
    font-weight: normal;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
    text-align: left;
}

.slider-container span {
    margin-left: 5px;
    font-weight: normal;
}

.slider-note {
    display: none;
    font-size: 0.9rem;
    color: #b00020;
    font-weight: 600;
    margin: 4px 0 0 0;
    flex-basis: 100%;
}

.slider-note.is-visible {
    display: block;
}

/* Kontener wejściowy */
.input-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 5px 0;
    font-size: 1rem;
}

.input-container label {
    min-width: 200px;
    font-weight: normal;
}

.input-container input[type='number'] {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#utilities,
#office_social_area {
    padding: 12px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: normal;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    margin-left: auto;
    flex: 0 1 280px;
}

#utilities:focus,
#office_social_area:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Grupa wejściowa */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.input-group input[type='text'] {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    font-size: 16px;
}

.input-group button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
}

.address-search-hint {
    margin: -2px 0 0;
    font-size: 0.9rem;
    color: #5b6472;
}

.address-suggestions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.address-suggestions.hidden {
    display: none;
}

.address-suggestion {
    width: 100%;
    border: 0;
    background: transparent;
    color: #18212f;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.address-suggestion + .address-suggestion {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.address-suggestion:hover,
.address-suggestion.is-active {
    background: rgba(0, 123, 255, 0.08);
    color: #0f4fa8;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.onboarding-overlay.hidden {
    display: none;
}

.onboarding-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.onboarding-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.onboarding-orb {
    position: relative;
    width: min(480px, calc(100vw - 48px));
    height: min(480px, calc(100vw - 48px));
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-orb__inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(120, 180, 255, 0.6) 10%,
      rgba(80, 200, 200, 0.6) 30%,
      rgba(100, 220, 150, 0.5) 50%,
      rgba(160, 255, 120, 0.4) 65%,
      rgba(255, 255, 150, 0.3) 75%,
      rgba(255, 120, 255, 0.35) 85%,
      rgba(0, 0, 0, 0) 100%
    );
    filter: blur(30px);
    z-index: 1;
}

.onboarding-orb__ring {
    position: absolute;
    width: 115%;
    height: 115%;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(0, 0, 0, 0) 55%,
      rgba(120, 180, 255, 0.7) 60%,
      rgba(80, 200, 200, 0.8) 65%,
      rgba(100, 220, 150, 0.9) 70%,
      rgba(200, 255, 120, 1) 75%,
      rgba(255, 120, 255, 1) 80%,
      rgba(0, 0, 0, 0) 90%
    );
    filter: blur(16px);
    z-index: 2;
}

.onboarding-orb__text {
    position: relative;
    z-index: 3;
    text-align: center;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.onboarding-card {
    margin-top: 32px;
    width: min(360px, calc(100vw - 48px));
    text-align: center;
    color: #ffffff;
    opacity: 0;
    animation: onboardingCardIn 200ms ease-out forwards;
}

.onboarding-card__title {
    margin: 0 0 8px;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.onboarding-card__body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.onboarding-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.onboarding-card__primary {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.onboarding-card__primary:hover {
    background: #f0f0f0;
}

.onboarding-card__signature {
    margin-top: 16px;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.map-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 410;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.88);
    color: #ffffff;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease-out;
}

.map-hint.is-visible {
    opacity: 1;
}

.map-hint.hidden {
    display: none;
}

@keyframes onboardingCardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-guidance-banner {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 420;
    max-width: min(560px, calc(100% - 32px));
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #18212f;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    backdrop-filter: blur(10px);
}

.search-guidance-banner.hidden {
    display: none;
}

.search-guidance-banner--suggested {
    border-color: rgba(0, 102, 255, 0.22);
    color: #111111;
}

.search-guidance-banner--area {
    border-color: rgba(234, 88, 12, 0.18);
    color: #111111;
}

@media (max-width: 1024px) {
    .onboarding-orb {
        width: min(420px, calc(100vw - 48px));
        height: min(420px, calc(100vw - 48px));
    }
}

@media (max-width: 640px) {
    .onboarding-dialog {
        padding: 20px 12px;
    }

    .onboarding-orb {
        width: min(320px, calc(100vw - 40px));
        height: min(320px, calc(100vw - 40px));
    }

    .onboarding-orb__text {
        font-size: 1.45rem;
    }

    .onboarding-card {
        width: min(320px, calc(100vw - 40px));
    }
}

/* Style przycisków */

/* Typografia przycisków – wspólna reguła */
button,
input[type="button"],
input[type="submit"],
.input-group button,
.footer-col button,
.master-btn,
.master-newsletter-form .submit,
.modal__submit {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.2;
}


#drawPlotBtn,
#send {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 16px;
    transition: box-shadow 0.3s ease-in-out, transform 0.15s ease;
    box-shadow:
        -7px -7px 20px 0px #1988ff,
        -4px -4px 5px 0px #b2d7ff,
        7px 7px 20px 0px #0002,
        4px 4px 5px 0px #0001,
        inset 0px 0px 0px 0px #C6D6C3,
        inset 0px 0px 0px 0px #0001,
        inset 0px 0px 0px 0px #99caff,
        inset 0px 0px 0px 0px #0001;
}


#drawPlotBtn:hover,
#send:hover {
    transform: translateY(-1px);
}

#drawPlotBtn:active,
#send:active {
    transform: translateY(1px);
    box-shadow:
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #0001,
        0px 0px 0px 0px #0001,
        inset -7px -7px 20px 0px #1988ff,
        inset -4px -4px 5px 0px #99caff,
        inset 7px 7px 20px 0px #0003,
        inset 4px 4px 5px 0px #0001;
}

.resetLayoutBtn {
    display: none !important;
    width: 100%;
    padding: 0.75em 1.1em !important;

    /* „szklany / neumorficzny” look */
    background: #525557 !important;
    color: #9aa0a3;
    border: none;
    border-radius: 999px;

    box-shadow:
        5px 5px 10px #47494b,
        -5px -5px 10px #9aa0a3;

    font-size: clamp(0.8rem, 3vw, 1rem) !important;

    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.resetLayoutBtn:hover {
    background: #9aa0a3;
    transform: translateY(-1px);
    box-shadow:
        7px 7px 14px #47494b,
        -7px -7px 14px #9aa0a3;
}

.resetLayoutBtn:active {
    transform: translateY(1px);
    box-shadow:
        3px 3px 6px #47494b,
        -3px -3px 6px #9aa0a3;
}

.share-config-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.share-config-btn:hover {
    background-color: #0056b3;
}




/* Pasek dolny */
/* Send report button (neumorphic) */
.footer-col-6 .send-report-cell {
    width: 100%;
    min-height: 64px;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 16px;
    margin-left: auto;
    padding: 18px;
}

.footer-col-6 #sendEmailButton.neumorphic-button {
    width: 100%;
    min-height: 78px;
    padding: 14px 24px;
    font-size: clamp(1rem, 1.05vw, 1.5rem);
    font-weight: 700;
    background-color: #007bff;
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    outline: none;
    text-align: center;
    line-height: 1.1;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow:
        -7px -7px 20px 0px #1988ff,
        -4px -4px 5px 0px #b2d7ff,
        7px 7px 20px 0px #0002,
        4px 4px 5px 0px #0001,
        inset 0px 0px 0px 0px #C6D6C3,
        inset 0px 0px 0px 0px #0001,
        inset 0px 0px 0px 0px #99caff,
        inset 0px 0px 0px 0px #0001;
    transition: box-shadow 0.3s ease-in-out, opacity 0.2s ease, transform 0.2s ease;
}

.footer-col-6 #sendEmailButton.neumorphic-button[disabled] {
    cursor: default;
    opacity: 0.88;
}

.footer-col-6 #sendEmailButton.neumorphic-button.is-loading {
    transform: translateY(0);
}

.footer-cta__text,
.footer-cta__spinner {
    transition: opacity 0.2s ease;
}

.footer-cta__spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    animation: footer-cta-spin 0.8s linear infinite;
}

.footer-cta__spinner.hidden {
    display: none;
}

@keyframes footer-cta-spin {
    to {
        transform: rotate(360deg);
    }
}

.draw-plot-cell {
    background: #007bff;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-plot-cell #drawPlotBtn {
    width: 100%;
    height: 100%;
}

.footer-col-6 #sendEmailButton.neumorphic-button:active {
    box-shadow:
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #0001,
        0px 0px 0px 0px #0001,
        inset -7px -7px 20px 0px #1988ff,
        inset -4px -4px 5px 0px #99caff,
        inset 7px 7px 20px 0px #0003,
        inset 4px 4px 5px 0px #0001;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(1, 2, 5, 0.67);
    border-radius: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    mix-blend-mode: normal;
    --tw-backdrop-blur: blur(20px);
    backdrop-filter: var(--tw-backdrop-blur);
    font-size: 1rem;
}

.appFooter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

/* Desktop look: inset and rounded footer bar */
.footer-bar.appFooter {
    bottom: 1em;
    left: 1em;
    right: 1em;
    border-radius: 8px;
}

.appViewport {
    min-height: 100dvh;
    padding-bottom: calc(var(--footer-h) + 2.5em);
    box-sizing: border-box;
}

/* Zawartość paska */
.footer-content {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--app-content-gap);
    width: calc(100% - 2rem);
    margin: 0 auto;
    align-items: center;
    padding: 1em;
}

.footer-section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
}

.footer-section--left {
    display: contents;
}

.footer-section--middle {
    grid-column: 5 / span 4;
    align-items: flex-start;
}

.footer-section--cta {
    grid-column: 9 / 13;
    width: 100%;
    align-items: center;
}

.footer-col {
    color: white;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4,
.footer-col-5,
.footer-col-6 {
    width: 100%;
}

.footer-col-1 {
    grid-column: 1 / span 2;
}

.footer-col-2 {
    grid-column: 3 / span 2;
}

.footer-col-4:empty {
    display: none;
}

.footer-col-6 {
    width: 100%;
    max-width: 100%;
    justify-self: center;
}

.footer-col h1 {
    margin: 0.2em 0;
    font-size: 1.5vw;
}

.footer-col h2,
.footer-col h3,
.footer-col p,
.footer-col a,
.footer-col button {
    margin: 0;
}

.footer-col-1 h2 {
    margin-bottom: 0.2rem;
}

.footer-col-5 {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.footer-links li {
    margin-bottom: 0.5em;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col button {
    width: 100%;
    padding: 0.5em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.3em;
    cursor: pointer;
}

.footer-col button:hover {
    background-color: #0056b3;
}

#estimatedCost {
    min-height: 3.4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25em;
}

#estimatedCost .estimate-title {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

#estimatedCost .estimate-details {
    font-size: 0.8rem;
    line-height: 1.2;
    opacity: 0.8;
    min-height: 1.2em;
    white-space: nowrap;
}

/* =========================================
   MASTER FOOTER
========================================= */

.master-footer,
.master-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.master-footer {
    background-color: #1f1d1d;
    color: #fff;
    padding: 40px 20px;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 1rem;
}

.master-footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    /* max-width: 1200px;*/
    margin: 0 auto;
}

.master-footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.master-footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.master-footer-section ul {
    list-style: none;
}

.master-footer-section ul li {
    margin-bottom: 10px;
}

.master-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.master-link:hover {
    color: #007aff;
}

.master-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #007aff;
    color: #007aff;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.master-btn:hover {
    background-color: #007aff;
    color: #fff;
}

.whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

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

.master-newsletter-form input[type='email'] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
}

.master-newsletter-form .submit {
    background-color: #ff7f50;
    border-color: #ff7f50;
}

.master-newsletter-form .submit:hover {
    background-color: #ff5722;
    border-color: #ff5722;
}

.master-payment-icons {
    display: flex;
    gap: 10px;
}

.master-payment-icons img {
    width: 50px;
    height: auto;
}

.master-social-links {
    display: flex;
    gap: 15px;
}

.master-social-links a img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.master-social-links a:hover img {
    opacity: 0.7;
}

.master-footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 12px;
}

.master-footer-bottom a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.master-footer-bottom a:hover {
    text-decoration: underline;
}

.master-privacy {
    font-size: 12px;
    margin-top: 10px;
}

.master-cookies {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

.master-cookies:hover {
    color: #007aff;
}

/* =========================================
   Karuzela (backend)
========================================= */

.edgtf-image-gallery {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edgtf-ig-slider {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.owl-stage {
    display: flex;
    align-items: center;
}

.owl-item {
    height: 400px;
    display: flex;
    align-items: center;
}

.edgtf-ig-image {
    position: relative;
    padding: 0 10px;
}

.edgtf-ig-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Tytuły */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--caption-bg);
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    max-width: 80%;
    font-size: 1rem;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* Kontrolery */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    opacity: 1;
}

.owl-nav button.owl-prev {
    left: 20px;
}

.owl-nav button.owl-next {
    right: 20px;
}

/* Indykatory */
.owl-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    background-color: var(--indicator-inactive);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.owl-dots .owl-dot.active {
    background-color: var(--indicator-active);
}

/* =========================================
   Modal (email)
========================================= */

.modal.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
    position: relative;
    width: min(100%, 820px);
    max-width: 820px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal__title {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
    padding-right: 32px;
}

.modal__intro {
    font-size: clamp(13px, 1.5vw, 14px);
    color: #555;
    margin-bottom: 20px;
}

.summary {
    background: #f6f8fb;
    border-radius: 10px;
    padding: clamp(12px, 1.6vw, 16px);
    margin-bottom: 16px;
}

.summary__cost {
    margin-bottom: 14px;
}

.summary__cost span {
    display: block;
    font-size: clamp(12px, 1.4vw, 14px);
    color: #666;
    opacity: 0.6;
    margin-bottom: 4px;
}

.summary__cost strong {
    display: block;
    font-size: clamp(28px, 3.2vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.summary__costNote {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.summary__grid span {
    display: block;
    font-size: clamp(12px, 1.3vw, 13px);
    color: #666;
    opacity: 0.6;
}

.summary__grid strong {
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 600;
    color: #111827;
}

.modal__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.map-label {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    user-select: none;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
}

.map-label--building {
    font-size: 18px;
    color: #007bff;
}

.map-label--parking {
    font-size: 14px;
    color: #007bff;
}

.map-label--dock {
    font-size: 12px;
    color: #007bff;
}

.leaflet-marker-icon.leaflet-div-icon.leaflet-editing-icon {
    width: 10px !important;
    height: 10px !important;
    margin-left: -5px !important;
    margin-top: -5px !important;
}

.draw-inline-hint {
    margin-top: 4px;
    font-family: "Lato", sans-serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #6b7280;
    letter-spacing: 0.1px;
}

.leaflet-marker-icon.draw-first-point {
    width: 30px !important;
    height: 30px !important;
    margin-left: -15px !important;
    margin-top: -15px !important;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35);
}

.leaflet-marker-icon.leaflet-div-icon.leaflet-editing-icon.draw-first-point {
    width: 30px !important;
    height: 30px !important;
    margin-left: -15px !important;
    margin-top: -15px !important;
}

.leaflet-marker-icon.draw-first-point--pulse {
    animation: drawFirstPointPulse 1.6s ease-in-out infinite;
}

@keyframes drawFirstPointPulse {
    0% { box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.2); }
    100% { box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35); }
}

.draw-first-point-tooltip {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #1f2937;
}

.draw-idle-hint {
    pointer-events: none;
}

.draw-idle-hint__text {
    font-family: "Lato", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translate(12px, -10px);
    white-space: nowrap;
}

.draw-close-toast {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.draw-close-toast.is-visible {
    opacity: 1;
}

.draw-undo-btn {
    position: absolute;
    right: 16px;
    bottom: calc(var(--footer-h) + 16px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    touch-action: manipulation;
}

.draw-undo-btn.is-visible {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .draw-undo-btn {
        padding: 6px 8px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        min-width: 0;
    }
}

.draw-mobile-toast {
    position: absolute;
    left: 50%;
    bottom: calc(var(--footer-h) + 64px);
    transform: translateX(-50%);
    max-width: min(90%, 520px);
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.draw-mobile-toast.is-visible {
    opacity: 1;
}

.modal__input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.modal__error {
    color: #b00020;
    min-height: 18px;
    margin: 8px 0 0;
    font-size: 13px;
}

.modal__submit {
    width: 100%;
    margin-top: 10px;
    padding: 13px 12px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal__submit:hover {
    background: #007bff;
}

.modal__submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal__note {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.modal__legal {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
}

.modal__legal a {
    color: #007bff;
    text-decoration: underline;
}

.next__title {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 18px;
    margin-bottom: 0;
}

.next__intro {
    font-size: 13px;
    color: #666;
    margin: 4px 0 12px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.summary-next-step-cards {
    align-items: stretch;
}

.card {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 14px;
}

.summary-next-step-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.summary-next-step-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card--primary {
    border: 2px solid #007bff;
}

.card h4 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #111827;
}

.card p {
    font-size: 13px;
    color: #555;
}

.card__lead {
    margin-bottom: 10px;
    line-height: 1.45;
}

.card__meta {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 6px;
}

.card__price {
    font-weight: 600;
    margin: 0 0 12px;
    font-size: 15px;
    color: #111827;
}

.card__priceNote {
    font-size: 11px;
    color: #6b7280;
    margin: -6px 0 12px;
    line-height: 1.4;
}

.card__cta {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
}

.summary-next-step-card__cta {
    margin-top: auto;
}

.card__cta--secondary {
    background: #eee;
    color: #000;
}

.card__toggle {
    border: none;
    background: transparent;
    color: #007bff;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-align: left;
    margin-bottom: 8px;
}

.card__note {
    font-size: 11px;
    color: #666;
    margin-top: 0;
}

.card__note--strong {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

.card__timing {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
}

.card__expand {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.card__expand.is-open {
    opacity: 1;
}

.card__expandInner {
    padding-top: 4px;
}

.card__expandTitle {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.card__list {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
}

.card__list li {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.card__list li:last-child {
    margin-bottom: 0;
}

.modal__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: modal-spin 0.8s linear infinite;
}

.modal__spinner.hidden {
    display: none;
}

@keyframes modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-panel {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    background: rgba(248, 250, 252, 0.70);
    overflow-y: auto;
    padding: 20px;
}

.checkout-panel__shell {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    min-height: calc(100dvh - var(--navbar-h) - 40px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    padding: 24px;
}

.checkout-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.checkout-panel__back {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-panel__title {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.1;
    color: #111827;
}

.checkout-panel__content {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.checkout-panel__summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.checkout-panel__price {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 10px;
}

.checkout-panel__desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
}

.checkout-panel__stripe {
    min-height: 640px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
}

.checkout-panel__stripeMount {
    min-height: 600px;
}

.checkout-panel__error {
    margin-top: 14px;
    font-size: 13px;
    color: #b00020;
    line-height: 1.4;
}

body.checkout-panel-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .checkout-panel__content {
        grid-template-columns: 1fr;
    }

    .checkout-panel__shell {
        min-height: calc(100dvh - var(--navbar-h) - 24px);
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .modal__dialog {
        width: min(94vw, 820px);
        padding: 20px;
    }

    .summary__grid,
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 820px) {
    .modal {
        align-items: flex-start;
        padding: 12px;
    }

    .modal__dialog {
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }

    .summary {
        padding: 12px;
    }

    .summary__grid {
        gap: 8px 12px;
    }

    .next__title {
        margin-top: 14px;
    }
}

/* =========================================
   RESPONSYWNOŚĆ – POGRUPOWANA WG VIEWPORTÓW
========================================= */

/* Extra small – suwak (0–600px) */
@media screen and (max-width: 600px) {
    .slider-container input[type='range']::-webkit-slider-thumb,
    .slider-container input[type='range']::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}

/* Mobile – 0–768px */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .container,
    .container.show-preview {
        position: fixed;
        inset: 0;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
        padding: 0;
        height: 100dvh;
        gap: 0;
    }

    .map {
        position: absolute;
        inset: 0 0 calc(var(--footer-h) + 0.75rem) 0;
        padding: 0;
        border: none;
        background-color: transparent;
        z-index: 1;
    }

    #map {
        height: 100%;
        width: 100%;
    }

    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: #ffffff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        transition: height 0.25s ease, transform 0.25s ease;
        max-height: calc(100dvh - var(--navbar-h));
        overflow: hidden;
        display: flex;
        flex-direction: column;
        touch-action: none;
    }

    .sidebar__status {
        display: none;
        height: 56px;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        font-size: 0.95rem;
        color: #333;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .sidebar__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 16px 16px;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .sidebar.state-start {
        height: min(32dvh, 260px);
    }

    .sidebar.state-start .sidebar__status {
        display: none;
    }

    .sidebar.state-start #geometryForm,
    .sidebar.state-start #rectangleForm,
    .sidebar.state-start .input-container,
    .sidebar.state-start [data-i18n="section3_title"],
    .sidebar.state-start [data-i18n="section4_title"],
    .sidebar.state-start [data-i18n="section5_title"] {
        display: none;
    }

    .sidebar.state-draw {
        height: 56px;
    }

    .sidebar.state-draw .sidebar__status {
        display: flex;
    }

    .sidebar.state-draw .sidebar__content {
        display: none;
    }

    .sidebar.state-build {
        height: clamp(260px, 55dvh, 520px);
    }

    .sidebar.state-build .sidebar__status {
        display: none;
    }

    .sidebar.state-build #addressForm,
    .sidebar.state-build #drawPlotBtn,
    .sidebar.state-build [data-i18n="section1_title"],
    .sidebar.state-build [data-i18n="section2_title"],
    .sidebar.state-build #geometryForm,
    .sidebar.state-build [data-i18n="section4_title"] {
        display: none;
    }

    [data-i18n="section5_title"] {
        display: block;
    }

    .preview {
        display: none;
    }

    .navbar {
        height: 64px;
        padding: 0 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar.navbar--darkText {
        color: #000;
    }

    .navbar.navbar--lightText {
        color: #fff;
    }

    .navbar.scrolled.navbar--lightText {
        color: #000;
    }

    .menu {
        display: flex;
    }

    .hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 28px;
    }

    .nav-menu {
        position: fixed;
        inset: 1rem;
        background: rgba(168, 168, 168, 0.6);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        display: none;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1200;
        border: 5rem;
        border-radius: 16px;
    }

    .nav-menu.open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-toggle:checked ~ .nav-menu {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu .menu {
        flex-direction: column;
        gap: 18px;
        font-size: clamp(1.4rem, 6vw, 2rem);
        text-align: center;
    }

    .nav-menu__panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .nav-menu__logo {
        display: block;
        margin-bottom: 18px;
        font-family: "Lato", sans-serif;
        font-size: clamp(1.4rem, 8vw, 2.4rem);
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.06em;
        text-align: center;
    }

    .nav-menu .menu a {
        color: #ffffff;
    }

    body.nav-open {
        overflow: hidden;
    }

    .map,
    #map {
        height: 100%;
    }

    .input-group {
        width: 100%;
    }

    #drawPlotBtn {
        width: 100%;
        display: block;
    }

    .slider-container,
    .slider-container input[type='range'] {
        touch-action: pan-x;
    }

 .input-container label {
        min-width: 10;
    }

    .input-container select {
        flex: 1;
        width: 100%;
        min-width: 10;
        box-sizing: border-box;
    }

    .footer-bar {
        display: none;
    }

    .overlay {
        display: none;
    }

    body.mobile-build-footer .footer-bar {
        display: flex;
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        margin: 0;
        border-radius: 16px 16px 0 0;
        background-color: rgba(1, 2, 5, 0.75);
        height: 128px;
        max-height: 128px;
        overflow: hidden;
    }

    body.mobile-build-footer .sidebar {
        bottom: calc(var(--footer-h) + 0.75rem);
    }

    body.mobile-build-footer .sidebar.state-build {
        height: min(55dvh, calc(100dvh - var(--navbar-h) - var(--footer-h) - 1rem));
        max-height: calc(100dvh - var(--navbar-h) - var(--footer-h) - 1rem);
    }

    body.mobile-build-footer .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.2em;
        padding: 0.2em 0.4em 0.3em 0.4em;
        height: 100%;
        align-items: center;
        overflow: hidden;
        grid-auto-rows: 1fr;
    }

    body.mobile-build-footer .footer-section {
        display: contents;
    }

    body.mobile-build-footer .footer-col-1,
    body.mobile-build-footer .footer-col-2,
    body.mobile-build-footer .footer-col-3 {
        display: none;
    }

    body.mobile-build-footer #buildingVolume,
    body.mobile-build-footer .footer-link {
        display: none;
    }

    body.mobile-build-footer #estimatedCost .estimate-title {
        font-size: 0.9rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        padding: 0;
    }

    body.mobile-build-footer #buildingArea h2,
    body.mobile-build-footer #buildingVolume h2,
    body.mobile-build-footer .footer-col-4 p {
        font-size: 0.75rem;
        line-height: 1.1;
        margin: 0;
        padding: 0;
    }


    body.mobile-build-footer #estimatedCost .estimate-details {
        display: none;
    }

    body.mobile-build-footer #estimatedCost {
        min-height: 0 !important;
        height: auto;
    }

    body.mobile-build-footer .footer-content > * {
        min-height: 0;
    }

    body.mobile-build-footer .footer-col button,
    body.mobile-build-footer #sendEmailButton {
        padding: 0.2em 0.5em;
        font-size: 0.98rem;
        line-height: 1.05;
    }

    body.mobile-build-footer #sendEmailButton {
        border-radius: 0.3em;
        margin-bottom: 0.4rem;
    }

    body.mobile-build-footer .footer-col-6 .send-report-cell {
        height: 64px;
        border-radius: 12px;
    }

    body.mobile-build-footer .footer-col-6 #sendEmailButton.neumorphic-button {
        width: 90%;
        height: auto;
        min-height: 34px;
        font-size: 0.98rem;
    }

    .footer-bar.appFooter {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .leaflet-control-zoom {
        display: none;
    }

    /* Master footer – mobile */
    .master-footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .master-footer-section {
        text-align: center;
    }

    .master-social-links {
        justify-content: center;
    }

    .master-payment-icons {
        justify-content: center;
    }

    /* Karuzela – mobile */
    .carousel-caption h3 {
        font-size: 1rem;
    }

    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        padding: 8px;
        font-size: 1.2rem;
    }

    .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
    }

    .edgtf-ig-image {
        padding: 0 5px;
    }
}

/* Mobile – preferuj 100svh jeśli dostępne */
@supports (height: 100svh) {
    @media (max-width: 768px) {
        .container,
        .container.show-preview {
            height: 100svh;
        }
    }
}

/* Tablet – 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu__logo {
        display: none;
    }

    body {
        font-size: 1.02rem;
    }

    .header,
    .navbar {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 3.5rem 1.5rem 6em 1.5rem;
    }

    #drawPlotBtn {
        width: 100%;
        display: block;
    }
}

/* Male desktopy – 1025–1365px */
@media (min-width: 1025px) and (max-width: 1365px) {
    .nav-menu__logo {
        display: none;
    }

    body {
        font-size: 1.05rem;
    }

    .header,
    .navbar {
        padding: 1rem 1.75rem;
    }

    .container {
        padding: 3.5rem 1.75rem 6em 1.75rem;
    }

    #drawPlotBtn {
        width: 100%;
        display: block;
    }

    #sendEmailButton {
        font-size: 1.1rem;
        padding: 1.6em 1em;
    }
}

/* Duże desktopy – 1366–2560px */
@media (min-width: 1366px) and (max-width: 2560px) {
    .nav-menu__logo {
        display: none;
    }

    #drawPlotBtn {
        width: 100%;
        display: block;
    }

    #sendEmailButton {
        font-size: 1.1rem;
        padding: 1.6em 1em;
    }
}

/* Ultrawide – 2561px+ */
@media (min-width: 2561px) {
    .nav-menu__logo {
        display: none;
    }

    body {
    }

    #drawPlotBtn {
        width: 100%;
        display: block;
    }

    #sendEmailButton {
        font-size: 1.5rem;
        padding: 1.6em 1em;
    }

}

.parcel-selection-panel {
    margin-top: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: #007bff;
    color: #fff;
}

.parcel-selection-panel__message {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    color: #fff;
}

.parcel-selection-panel__messageRow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}

.parcel-selection-panel__messageRow .parcel-selection-panel__message {
    margin: 0;
}

.loading {
    display: inline-block;
    aspect-ratio: 1 / 1;
    vertical-align: middle;
    pointer-events: none;
}

.loading[hidden] {
    display: none !important;
}

.loading-spinner {
    width: 1.2rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: #dff4ff;
    border-right-color: #dff4ff;
    animation: loading-spinner 0.8s linear infinite;
}

.loading-sm {
    width: 1rem;
}

.loading-lg {
    width: 2rem;
    border-width: 3px;
}

@keyframes loading-spinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.map-loading {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 550;
    pointer-events: none;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(7, 18, 34, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.map-loading[hidden] {
    display: none !important;
}

.map-loading .loading-spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #8bd3ff;
    border-right-color: #8bd3ff;
}

.parcel-selection-panel__hint {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.parcel-selection-panel__actions {
    display: block;
    margin-bottom: 0.7rem;
}

#parcelSelectionActions[hidden],
#startFallbackDrawingBtn[hidden] {
    display: none !important;
}

.parcel-selection-panel__actions button,
#lookupParcelBtn,
#drawPlotBtn {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    width: 100%;
    display: block;
}

#startFallbackDrawingBtn.neumorphic-button {
    background-color: #007bff;
    border: none;
    border-radius: 16px;
    color: white;
    outline: none;
    text-align: center;
    line-height: 1.1;
    white-space: normal;
    box-shadow:
        -7px -7px 20px 0px #1988ff,
        -4px -4px 5px 0px #b2d7ff,
        7px 7px 20px 0px #0002,
        4px 4px 5px 0px #0001,
        inset 0px 0px 0px 0px #C6D6C3,
        inset 0px 0px 0px 0px #0001,
        inset 0px 0px 0px 0px #99caff,
        inset 0px 0px 0px 0px #0001;
    transition: box-shadow 0.3s ease-in-out;
}

#startFallbackDrawingBtn.neumorphic-button:active {
    box-shadow:
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #99caff,
        0px 0px 0px 0px #0001,
        0px 0px 0px 0px #0001,
        inset -7px -7px 20px 0px #1988ff,
        inset -4px -4px 5px 0px #99caff,
        inset 7px 7px 20px 0px #0003,
        inset 4px 4px 5px 0px #0001;
}

.parcel-selection-panel__summary,
.parcel-selection-panel__list {
    font-size: 0.92rem;
    color: #fff;
}

.parcel-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.parcel-selection-item button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}
