.nav-wrapper .dropdown ul {
    top: 60px !important;
    display: none;
}

input::placeholder {
    color: #9a9a9a;
}

.content_box {
    position: absolute;
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    color: #223;
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.pierwszy_raz {
    z-index: 10000;
    top: 5px;
    width: auto;
    left: 50%;
    /* Przesunięcie do środka strony */
    transform: translateX(-50%);
    /* Wyśrodkowanie elementu */
    margin: auto;
    text-align: center;
    display: none;
}


.leaflet-container p {
    font-size: 1rem;
}

.leaflet-container h4 {
    font-size: 1.3rem;
}

.legend-block h4 {
    font-size: 12px;
    font-weight: normal;
}

select.blend-mode-dropdown {
    height: initial;
}

#polyline-measure-control, .leaflet-bar-polyline-measure a{
    background-image: url('images/ruler.png');
    font-size: 0;
}

.easy-button.download-gpx {
    background-image: url('images/gpx-download.svg');
    font-size: 0 !important;
}

.easy-button.download-kml {
    background-image: url('images/kml-download.svg');
    font-size: 0 !important;
}

.easy-button.reset-map {
    background-image: url('images/reset-map.svg');
    font-size: 0 !important;
}



.leaflet-contextmenu a.leaflet-contextmenu-item {
    font-size: 1rem;
    text-align: left;
    padding-bottom: 5px;
}

.leaflet-routing-container-hide button {
    display: none;
}

.leaflet-top .leaflet-routing-container.leaflet-routing-container-hide {
    padding-top: 2px;
}


.leaflet-routing-geocoders input {
    padding-left: 10px;
    width: calc(100% - 14px);
}

/* Kompaktowy układ pól LRM: mniejsza wysokość inputów i odstępów. */
.leaflet-routing-geocoders div {
    padding: 2px 0;
}

.leaflet-routing-container .leaflet-routing-geocoders input {
    box-sizing: border-box;
    width: calc(100% - 12px);
    height: 34px !important;
    min-height: 34px;
    line-height: 1.25;
    padding: 6px 8px;
    margin: 0;
}

.leaflet-routing-container .leaflet-routing-geocoders .leaflet-routing-add-waypoint,
.leaflet-routing-container .leaflet-routing-geocoders .leaflet-routing-reverse-waypoints,
.leaflet-routing-container .leaflet-routing-geocoders .leaflet-routing-remove-waypoint {
    line-height: 34px;
}

.leaflet-routing-profile-row {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 34px;
    height: 34px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: relative;
    margin: 10px 0;
}

.leaflet-routing-profile-label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    margin: 8px;
    align-self: center;
    align-self: center !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 34px !important;
    box-sizing: border-box !important;
}

.leaflet-routing-profile-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.leaflet-routing-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #333;
    padding: 0 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}


.leaflet-routing-profile-button .material-icons {
    margin-right: 0 !important;
    font-size: 16px !important;
}

.leaflet-routing-profile-button {
    padding: 0 8px;
    min-width: 34px;
    width: 34px;
}

.leaflet-routing-profile-button:hover {
    background: #f8f8f8;
    border-color: #c9c9c9;
}

.leaflet-routing-profile-button.is-active {
    border-color: #ec6a20;
    background: #fff7f2;
    box-shadow: inset 0 0 0 1px rgba(236, 106, 32, 0.2);
}

.leaflet-routing-profile-button:focus {
    outline: 2px solid rgba(236, 106, 32, 0.35);
    outline-offset: 1px;
}

.leaflet-routing-geocoders .leaflet-routing-profile-button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.leaflet-container .leaflet-control-mouseposition {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px #bbb;
    padding: 0 5px;
    margin: 0;
    color: #333;
    font: 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-green {
    -webkit-filter: hue-rotate(240deg);
    filter: hue-rotate(240deg);
}

.marker-red {
    -webkit-filter: hue-rotate(130deg);
    filter: hue-rotate(130deg);
}

.elevation-control.custom-theme {
    background-color: rgba(255, 255, 255, .5);
}

.elevation-control.elevation .background {
    background-color: transparent;
    height: 170px;
}

.elevation-control.elevation .legend {
    display: none;
}

.custom-theme.leaflet-control.elevation .area {
    fill: rgba(255, 255, 255, 0.85);
    stroke: #ec6a20;
    stroke-width: 2.8;
}

.custom-theme.height-focus.circle-lower {
    fill: #ec6a20;
}

/*
      .custom-theme.elevation-polyline {
        stroke: #000;
        stroke-opacity: 0.85;
      }*/

path[data-name="Slope"],
.legend-item[data-name="Slope"],
.elevation-control.elevation .y.axis.right {
    display: none !important;
}

path.custom-theme[stroke="#000"] {
    display: none;
}

.elevation-summary.multiline-summary>span {
    display: inline-block;
    padding-right: 20px;
}

.elevation-summary.multiline-summary {
    max-width: 600px;
}

.elevation-control.elevation-empty .elevation-summary,
.elevation-control.elevation-empty svg {
    display: none !important;
}

.easy-button-button {
    padding: 0;
    margin: 0;
    border: 0;
}

.easy-button.download-gpx {
    font-weight: bold;
    font-size: 15px;
}

.leaflet-custom-button {
    float: none;
    height: 27px;
    background-color: #f0f0f0; 
    color: #000; 
    border: 0;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.leaflet-custom-button:hover {
    background-color: #fff; 
    cursor: pointer; 
}


.leaflet-custom-button:focus {
    background-color: #f0f0f0;
}

.przycisk {
    -moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
    -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf));
    background: -moz-linear-gradient(center top, #ededed 5%, #dfdfdf 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
    background-color: #ededed;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: inline-block;
    font-family: arial;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 20px;
    text-decoration: none;
    text-shadow: 1px 1px 0px #ffffff;
    cursor: pointer;
}

.classname:hover {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed));
    background: -moz-linear-gradient(center top, #dfdfdf 5%, #ededed 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
    background-color: #dfdfdf;
}

.classname:active {
    position: relative;
    top: 1px;
}

.tak {
    color: #349421;
}

.nie {
    color: #bd3b3b;
}

.szukaj {
    padding: 6px 10px;
    font-size: 10px;
}

.przyciski {
    margin-left: auto;
    margin-right: auto;
}

#jak_korzystac {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    padding: 0 15px;
}

.leaflet-control-layers-list div {
    line-height: 2rem;
    padding: 5px 0;
}

.leaflet-control-layers-list label div:hover {
    background-color: #dcdcdc;
    cursor: pointer;
}

.leaflet-control-layers-overlays div {
    padding-left: 5px;
}

.leaflet-control-layers-base,
.leaflet-control-layers-overlays {
    text-align: left;
}

.leaflet-control-layers-list label {
    color: #ec6a20;
    font-weight: bold;
}

.dropdown ul {
    display: none;
}

.map-dropdown i.right {
    margin-left: -8px;
    margin-right: -8px;
}

.map-dropdown li {
    width: 40px;
}

#dropdown-map {
    overflow: hidden;
}

#dropdown-search {
    overflow-y: visible !important;
    top: 10px !important;
}

.leaflet-locationiq-results {
    z-index: 900;
    margin-top: 50px;
}

.leaflet-locationiq-expanded .leaflet-locationiq-input {
    padding-left: 35px;
}

body.keyboard-focused .leaflet-locationiq-input:focus,
.leaflet-locationiq-input:focus {
    outline: none;
    box-shadow: none;
}

.leaflet-locationiq-results {
    background-color: #fff;
}

#search-results-container {
    z-index: 10000;
    position: absolute;
    width: 300px;
    right: 20px;
    top: 40px;
    max-height: 100vh;
    background-color: #fff;
}

#download-gpx {
    font-size: 10px;
    padding-left: 32px;
    margin-top: 7px;
    margin-bottom: 0;
    cursor: pointer;
    width: initial;
    height: initial;
    line-height: inherit;
    border-radius: 0;
}

#download-gpx:hover {
    cursor: pointer;
}

.reklamowka_header_footer {
    max-width: 100%;
    padding: 20px 0;
    /*height: 280px; */
}

.reklamowka_half-height {
    /*max-height: 90px;*/
}


#reklamowka {
    position: absolute;
    max-width: 100%;
    max-height: 25%;
    z-index: 1000;
    left: 5%;
    bottom: 100px;
}

#reklama {
    background-color: #fff;
    width: 100%;
    height: 100%;
    display: inline-block;
}

#zamknij_reklame {
    text-align: right;
    font-size: 11px;
    width: 100%;
    cursor: pointer;
    color: rgb(249, 118, 0);
}


.importantDisplayNone {
    display: none !important;
}


.legend-elements {
    text-align: left;
}

.leaflet-control-layers-list {
    max-height: 80vh;
    overflow: auto;
}


.bw-map {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}


.marker-cluster-small {
    fill: rgba(181, 226, 140, 0.6);
}


.marker-cluster-medium {
    fill: rgba(241, 211, 87, 0.6);
}


.marker-cluster-large {
    fill: rgba(253, 156, 115, 0.6);
}


.custom-leaflet-icon .leaflet-routing-remove-btn {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    color: red;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-size: 16px;
    /* Zwiększony rozmiar fontu */
    font-weight: bold;
    /* Pogrubienie tekstu */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 2px solid #ccc;
    /* Cienka obwódka */
}

.leaflet-routing-remove-waypoint-popup {
    cursor: pointer;
}


.ripple-marker {
    /* Klasa kontenera - może być pusta */
}

.ripple-animation {
    width: 100px; /* Docelowa średnica (50px promienia) */
    height: 100px;
    margin-left: -50px; /* Aby wyśrodkować animację nad punktem */
    margin-top: -50px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.5); /* Kolor i przezroczystość animacji */
    animation-name: ripple;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    /* Poniższe właściwości zostaną ustawione dynamicznie w JavaScript:
       - animation-duration
       - animation-iteration-count
    */
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.table-container {
  max-width: 80vw;        /* szerokość dopasowana do ekranu */
  overflow-x: auto;     /* przewijanie tylko w poziomie */
}

.table-container table {
  width: max-content;   /* tabela tylko tak szeroka, jak treść */
  border-collapse: collapse; /* opcjonalnie dla wyglądu */
}

@media only screen and (max-width : 1370px) {
    nav ul a {
        padding: 0 10px;
    }
}

@media only screen and (max-width : 1024px) {

    #reklama_header,
    #reklamowka_header,
    #reklama,
    #reklamowka,
    .opacity_slider_control {
        display: none;
    }

    .leaflet-bottom.leaflet-left {
        padding-bottom: 2rem;
    }

    .legend-block .opacity-slider {
        display: none;
    }

    .leaflet-html-legend {
        overflow: auto;
        max-height: 20vh;
    }

    .sidenav>li>ul>li>a {
        color: rgba(0, 0, 0, .87);
        font-size: 14px;
        font-weight: 500;
        height: auto !important;
        line-height: 1em !important;
        padding: 0 32px;
    }


    .leaflet-popup-content {
    max-width: 240px;
    height: 300px;
    overflow-y: scroll;
    }
}

@media only screen and (max-width: 600px) {

}
/* Niewidoczna szeroka sciezka SVG - bufor dotyku dla szlakow */
.trail-touch-target {
    pointer-events: all !important;
}
.trail-touch-target,
.trail-interactive-target {
    cursor: pointer !important;
}
/* Kursor łapka gdy szlak jest podświetlony – eliminuje migotanie między SVG a tłem */
.leaflet-container.pointer-cursor-enabled,
.leaflet-container.pointer-cursor-enabled .leaflet-interactive {
    cursor: pointer !important;
}

.leaflet-routing-profile-spacer {
    flex: 1 1 auto;
    min-width: 8px;
    height: 1px;
}

.leaflet-routing-profile-row .leaflet-routing-add-waypoint {
    align-self: center !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 34px !important;
    box-sizing: border-box !important;
    order: 99;
    line-height: normal !important;
}

@media (max-width: 1025px) {
  .leaflet-routing-container,
  .leaflet-routing-error,
  .leaflet-html-legend {
    width: 250px;
  }
}

/* ── Kontrolka "Zmień mapę" + "Współczesna granica Polski" (mapa z 1939) ─── */
/* Celujemy w konkretne klasy, nie w ".wig1939-bar a", żeby nie kaskadować
   na elementy dropdown (które też są <a> wewnątrz .wig1939-bar). */
.wig1939-bar {
    display: flex;
}

.wig1939-map-btn,
.wig1939-border-btn {
    display: block;
    width: auto;
    padding: 0 10px;
    height: 27px;
    line-height: 27px;
    font-size: 13px;
    font-family: inherit;
    color: #333 !important;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}

.wig1939-map-btn {
    border-bottom: 1px solid #ccc;
}

.wig1939-map-btn:hover,
.wig1939-border-btn:hover {
    background-color: #fff;
    color: #333 !important;
}

/* Aktywny toggle granicy – kolor akcentu serwisu */
.wig1939-border-btn.wig1939-active {
    font-weight: 600;
    color: #ec6a20 !important;
    background-color: #fff7f2;
}

/* Wrapper dropdownu */
.wig1939-dd-wrap {
    position: relative;
}

/* Lista opcji dropdownu – wysuwa się na prawo od paska */
.wig1939-dd {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, .2);
    z-index: 1100;
}

.wig1939-dd.wig1939-open {
    display: block;
}

.wig1939-dd-item {
    display: block;
    padding: 8px 14px;
    height: auto;
    line-height: 1.4;
    font-size: 13px;
    color: #333 !important;
    background-color: #fff;
    /* box-shadow zamiast border-bottom: nie tworzy 1px przerwy między elementami,
       przez co nie ma migotania przy przesuwaniu kursora między pozycjami listy */
    box-shadow: inset 0 -1px 0 #eee;
    cursor: pointer;
    text-decoration: none;
}

.wig1939-dd-item:last-child {
    box-shadow: none;
}

.wig1939-dd-item:hover {
    background-color: #f4f4f4;
}

.wig1939-dd-item.wig1939-active {
    background-color: #fff7f2;
    font-weight: 600;
    color: #ec6a20 !important;
}
