/* Importowanie czcionki Lato */
@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);
    /* Dodatkowe style */
}

/* Resetowanie stylów */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Globalne style */
body, h1, h2, h3, h4, h5, h6, p, input, button, div {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

body, html {
    height: 100%;
}

/* Nagłówek */
.header, .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    position: fixed; /* Przyklejony do okna przeglądarki */
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.0); /* Początkowo przezroczyste */
    color: #000; /* Czarny kolor tekstu */
    z-index: 1000;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* Kolor tła po przewinięciu */
    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: 1.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: color 0.5s ease;
}

.navbar.scrolled .logo a {
    color: #000;
}

/* Menu Style */
.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: bold;
}

.menu a {
    color: #000; /* Domyślny kolor linków */
    text-decoration: none;
    transition: color 0.5s ease;
}

.menu a:hover {
    color: #ff6600;
}

.navbar.scrolled .menu a {
    color: #000; /* Czarny kolor linków po przewinięciu */
}

/* Hamburger Menu */
.nav-toggle {
    display: none; /* Ukryty domyślnie */
}

.hamburger {
    display: none; /* Ukryty na desktopie */
    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: #fff;
    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 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
}

/* Styl kontenera */
.container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Mapa 2/3, Sidebar 1/3 */
    width: 100%;
    height: calc(100vh - 60px); /* Pełna wysokość minus nagłówek */
    transition: grid-template-columns 0.5s ease;
    padding: 4rem 2rem 6em 2rem; /* Dostosuj padding do wysokości navbaru i paska dolnego */
    gap: 20px; /* Dodanie odstępów między kolumnami */
}

.container.show-preview {
    grid-template-columns: 1fr 1fr 1fr; /* Mapa 1/3, Sidebar 1/3, Preview 1/3 */
}

/* Mapa */
.map {
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
}

/* Panel Boczny */
.sidebar {
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.sidebar h2,
.preview h3 {
    margin-bottom: 10px;
}

/* Sekcja podglądu */
.preview {
    display: none; /* Ukryta domyślnie */
    padding: 10px;
    border: none;
    background-color: #ffffff;
    transition: all 0.5s ease;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
    height: 100%;
}

.container.show-preview .preview {
    display: flex; /* Wyświetl podgląd */
}

/* Elementy wewnątrz podglądu */
#preview3DSection {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#map3D {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%;
}

/* Nowe style dla sekcji danych */
.data-section {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 20px; /* Opcjonalne: Zwiększ rozmiar czcionki */
}

.data-section h2 {
    margin-bottom: 10px;
}

.data-section p {
    margin-bottom: 5px;
}

/* Stylizacja dla strzałki w select */
#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;
    /* Dodatkowe style */
}

/* 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);
    border-radius: 12px;
    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: 0px;
    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; /* Odstęp między elementami */
    margin: 10px 0; /* Opcjonalny odstęp wokół kontenera */
    font-size: 1rem;
    position: relative;
    width: 100%;
}

.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; /* Pozycjonowanie uchwytu na środku paska */
}

.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 label {
    display: flex;
    align-items: center;
    min-width: 200px; /* Stała szerokość etykiety dla wyrównania */
    font-weight: normal;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
    text-align: left;
}

.slider-container span {
    margin-left: 5px; /* Odstęp między etykietą a wartością */
    font-weight: normal;
}

/* Responsywność suwaka */
@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;
    }
}

/* Kontener wejściowy */
.input-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Odstęp między etykietą a polem */
    margin: 5px 0; /* Opcjonalny odstęp wokół kontenera */
}

.input-container label {
    min-width: 200px; /* Stała szerokość etykiety dla wyrównania */
    font-weight: normal;
}

.input-container input[type="number"] {
    flex: 1; /* Pole wypełni dostępną przestrzeń */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Grupa wejściowa */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Odstęp między polem a przyciskiem */
}

.input-group input[type="text"] {
    flex: 1; /* Pole zajmuje dostępne miejsce */
    min-width: 200px; /* Minimalna szerokość pola */
    padding: 8px;
    font-size: 16px;
}

.input-group button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
}

/* Style przycisków */
#drawPlotBtn,
#send {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff; /* Kolor tła przycisku */
    color: #fff; /* Kolor tekstu */
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#drawPlotBtn:hover,
#send:hover {
    background-color: #0056b3; /* Kolor tła po najechaniu myszką */
}

/* Pasek dolny */
.footer-bar {
    position: fixed;
    bottom: 1em;
    left: 1em;
    right: 1em;
    /*height: 5em;*/
    background-color: rgba(1, 2, 5, 0.67);
    border-radius: 8px;
    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)
}


/* Zawartość paska */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr 1fr 1fr; /* Dostosuj szerokości kolumn */
    gap: 1em;
    width: 100%;
    align-items: center;
padding:1em

}

.footer-col {
    color: white;
}

.footer-col h1 {
    font-size: 1rem; /* Dostosuj rozmiar czcionki w razie potrzeby */
    margin: 0.2em 0;
            font-size: 1.5vw;
}

.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;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container,
    .container.show-preview {
        grid-template-columns: 1fr; /* Jedna kolumna na małych ekranach */
        padding: 1rem;
    }
    .map, .sidebar, .preview {
        grid-column: 1 / -1; /* Wszystkie sekcje w jednej kolumnie */
        width: 100%;
    }
    .preview {
        height: 400px; /* Ustaw wysokość podglądu na urządzeniach mobilnych */
    }
}

/* Reset podstawowych stylów */
.master-footer, .master-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.master-footer {
  background-color: #1F1D1D; /* Kolor tła stopki */
  color: #fff; /* Kolor tekstu */
  padding: 40px 20px;
  font-family: 'MessinaSansWeb', Helvetica, Arial, sans-serif;
}

.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; /* Kolor na hover */
}

.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;
}

/* Sekcja Prawna */
.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;
}

/* Responsywność */
@media (max-width: 768px) {
  .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;
  }
}
/* Importowanie czcionki Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Definicje zmiennych kolorów */
:root {
    --primary-color: #e01e48;
    --caption-bg: rgba(0, 0, 0, 0.5);
    --indicator-active: #e01e48;
    --indicator-inactive: #ccc;
}

/* Resetowanie stylów */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Stylizacja karuzeli */
.edgtf-image-gallery {
    position: relative;
    max-width: 1200px; /* Maksymalna szerokość karuzeli */
    margin: 50px auto; /* Centrowanie karuzeli z marginesem góra/dół */
    padding: 0 20px; /* Padding po bokach */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.edgtf-ig-slider {
    width: 100%; /* Wypełnia szerokość rodzica */
    max-width: 1200px; /* Maksymalna szerokość */
    height: 400px; /* Wysokość karuzeli */
    overflow: hidden; /* Ukrywa wszystko, co wykracza poza kontener */
    margin: 0 auto; /* Centrowanie */
    position: relative;
}

.owl-stage {
    display: flex;
    align-items: center; /* Wyśrodkowanie pionowe elementów */
}

.owl-item {
    height: 400px; /* Dopasowana wysokość do karuzeli */
    display: flex;
    align-items: center; /* Wyśrodkowanie zawartości */
}

.edgtf-ig-image {
    position: relative;
    padding: 0 10px; /* Margines wewnętrzny między obrazkami */
}

.edgtf-ig-image img {
    width: 100%; /* Obrazy wypełniają szerokość kontenera */
    height: 100%; /* Stała wysokość */
    display: block;
    border-radius: 8px; /* Zaokrąglenie rogów */
    object-fit: cover; /* Obraz wypełnia kontener bez zniekształceń */
}

/* Stylizacja tytułów */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    max-width: 80%;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* Stylizacja kontrolerów */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e01e48; /* Kolor tła przycisków */
    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;
}

/* Stylizacja indykatorów */
.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: #ccc; /* Kolor nieaktywnych indykatorów */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.owl-dots .owl-dot.active {
    background-color: #e01e48; /* Kolor aktywnego indykatora */
}

/* Responsywność */
@media (max-width: 768px) {
    .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; /* Mniejszy margines na mniejszych ekranach */
    }
}
/* MOBILE-ONLY FIX */
@media (max-width: 768px){
  :root{
    /* dopasuj do realnych wymiarów */
    --navbar-h: 64px;
    --footerbar-h: 96px;
  }

  /* pełna wysokość widoku minus stały header i footer-bar */
  .container,
  .container.show-preview{
    height: calc(100dvh - var(--navbar-h) - var(--footerbar-h));
    padding: calc(var(--navbar-h) + 1rem) 1rem calc(var(--footerbar-h) + 1rem) 1rem;
  }

  /* Leaflet musi mieć realną wysokość na mobile */
  .map, #map{
    height: 100%;
    min-height: 70dvh; /* bezpieczne minimum */
  }
}

/* Preferuj 100svh jeśli dostępne (mobilne przeglądarki) */
@supports (height: 100svh){
  @media (max-width: 768px){
    .container,
    .container.show-preview{
      height: calc(100svh - var(--navbar-h) - var(--footerbar-h));
    }
  }
}
