#mapa {
    position: relative; /* Dodaje kontekst pozycjonowania */
    aspect-ratio: 1792 / 599;
    margin-top: 2.5rem;
}
#mapa img {
    width: 100%;
    display: block;
}
#mapa svg {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    pointer-events: auto;
}
.lokal {
    cursor: pointer;
    opacity: 0;
    transition: fill-opacity 0.3s;
}
.lokal.dostepny:hover {
    fill: rgba(0, 255, 0, 0.5); /* Zielony dla dostępnych */
    opacity: .8;
}
.lokal.rezerwacja:hover {
    fill: rgba(255, 255, 0, 0.5); /* Żółty dla rezerwacji */
    opacity: .8;
}
.lokal.sprzedane:hover {
    fill: rgba(255, 0, 0, 0.5); /* Czerwony dla sprzedanych */
    opacity: .8;
}
.lokal:hover {
    /* stroke: #000;
    stroke-width: 2px; */
    fill-opacity: 0.7;
}

/* Sekwencyjne animacje elementów */
.fade-in-item {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.lokal-info-box {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    max-width: 50%;
    border: 2px solid white;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.50); /* ← półprzezroczyste tło */
    padding: 12px 16px;
    box-sizing: border-box;
    text-align: left !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    border-color: transparent;
    transition: border-color 0.8s ease, opacity 0.3s ease 0.8s, visibility 0s linear 0.8s;
}

.lokal-info-box.show {
    border-color: white;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lokal-info-box .fade-in-item {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lokal-info-box.show .fade-in-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

#lokal-nazwa {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
}

#lokal-meta {
    font-size: 12px;
    color: #eee;
}

#lokal-cena {
    font-weight: bold;
    font-size: 14px;
    margin: 6px 0;
    color: white;
}

#lokal-opis {
    font-size: 12px;
    color: #ddd;
}


#lokal-link {
    margin-top: 8px;
    display: inline-block;
    font-size: 0.75em; 
    padding: 4px 8px;  
    transform: scale(0.7); 
    transform-origin: left top; 
}

/* #lokal-link {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 2px;
    color: #ddfbfc;
  }

#lokal-link:hover {
    color: #91fafe;
} */

#phone-link {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 6px;
    color: #1efe00;
}

#phone-link:hover {
    color: #119100;
}

#email-link {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 6px;
    color: #ffd000;
}

#email-link:hover {
    color: #ffea8d;
}

#facebook-link {
  display: inline-block;
  font-size: 1.2em;
  margin-right: 6px;
  color: #0078a4;
}

#facebook-link:hover {
    color: #00bbff;
}

#phone-link i,
#email-link i,
#facebook-link i {
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 807px) {
    .lokal-info-box {
        left: 10px;
        bottom: 10px;
        max-width: 90%;
        padding: 10px;

        transform: scale(0.7);
        transform-origin: left bottom;
    }

    #lokal-nazwa,
    #lokal-opis {
        display: none;
    }

    #lokal-meta {
        font-size: 11px;
    }

    #lokal-link {
        transform: scale(0.7);
        transform-origin: left top;
    }
}


.close-button {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: white; /* ← upewniamy się, że jest widoczny */
    cursor: pointer;
    opacity: 1;
    z-index: 1000;
}

.tooltip {
    position: absolute; /* Kluczowe dla dynamicznej pozycji */
    display: none; /* Ukrycie domyślne */
    background: #2b2b2b; /* Jasnoszare tło */
    color: #a9a9a9; /* Ciemnoszary tekst */
    border: 1px solid #3a3a3b; /* Obramowanie w średnim szarym odcieniu */
    padding: 5px;
    font-size: 14px;
    pointer-events: none; /* Zapobiega kolizjom z myszą */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Lekki cień */
    border-radius: 4px; /* Zaokrąglone rogi */
    z-index: 1500; /* Wyższy indeks, aby tooltip był widoczny nad innymi elementami */
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.custom-list {
    list-style-type: none; /* Usunięcie domyślnych kropek */
    padding-left: 0;
    margin: 0 0 20px 0;
}

.custom-list-item {
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.custom-list-item::before {
    content: "•"; /* Custom bullet */
    position: absolute;
    left: 0;
    top: 0;
    color: #007bff; /* Kolor punktora */
    font-size: 18px;
}

.nested-list {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 5px;
}

.nested-list-item {
    font-size: 14px;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.nested-list-item::before {
    content: "–"; /* Inny punktor dla podlist */
    position: absolute;
    left: 0;
    top: 0;
    color: #555;
    font-weight: bold;
}

.map-responsive{
    overflow:hidden;
    padding-bottom:56.25%; /* 16:9 ratio */
    position:relative;
    height:0;
}
.map-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 2rem;
}
  
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 2rem;
}

#Answering {
    transition: opacity 0.3s ease;
}

#Answering.hidden {
    opacity: 0;
}

.lokal-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    background-color: #ffffff;
    border: 1px solid #ddd;
    /* border-radius: 6px; */
    padding: 15px 20px;
  }
  
  .lokal-info li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    text-align: right !important;
  }
  
  .lokal-info li:last-child {
    border-bottom: none;
  }
  
  .lokal-info .label {
    text-align: left !important;
    font-weight: 600;
    color: #333;
  }
  
  .lokal-info .highlight {
    font-weight: 700;
    color: #2c3e50;
  }
  
  .lokal-info .price {
    color: #e74c3c;
    font-size: 16px;
  }

  .lokal-bg {
    background-color: #f3f3f3;
  }
  
  /* Główna sekcja banera */
  .lokal-banner {
    position: relative;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #9c293c;
    color: #fff;
    z-index: 1;
  }
  
  .lokal-banner-container {
    position: relative;
    z-index: 2;
    padding: 0 15px;
  }
  
  /* Tytuł */
  .lokal-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  /* Dekoracyjna kreska pod tytułem */
  .lokal-banner-decor::before {
    content: '';
    display: inline-block;
    width: 72px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
  }
  
  /* Tło banera */
  .lokal-banner-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    height: 100%;
  }
  
  /* Breadcrumbs */
  .lokal-breadcrumbs-container {
    padding: 20px 0;
    text-align: center;
  }
  
  .lokal-breadcrumbs {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .lokal-breadcrumbs li {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 500;
    color: #777;
    position: relative;
    margin: 0 5px;
  }
  
  .lokal-breadcrumbs li::after {
    content: "";
    font-family: "Material Design Icons";
    font-size: 14px;
    color: #151515;
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
  }
  
  .lokal-breadcrumbs li:last-child::after {
    display: none;
  }
  
  .lokal-breadcrumbs li.active {
    font-weight: 900;
    color: #151515;
  }
  
  .lokal-breadcrumbs a {
    color: #777;
    text-decoration: none;
  }
  
  .lokal-breadcrumbs a:hover {
    color: #9c293c;
  }
  
  /* RESPONSYWNOŚĆ */
  @media (max-width: 768px) {
    .lokal-banner {
      height: 350px;
    }
    .lokal-banner-title {
      font-size: 28px;
    }
  }
  
  @media (max-width: 480px) {
    .lokal-banner {
      height: 250px;
    }
    .lokal-banner-title {
      font-size: 24px;
    }
  }
  