body {
    background-color:  #333; /* Ciemniejszy szary dla tła strony */
}

#page{
   max-width: 1400px; margin: 0 auto; position: relative;
}

header {
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 300px;
    background-size: cover;
    color: white; /* Dodaj dla tekstu w headerze jeśli potrzebny */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/Warsaw-panorama.jpg');
}

.logo{
    position: absolute;
    display: block;
    color: white;
    top: 5px;
    left: 5px;
    width: 160px;
    height: 66px;
    text-decoration: none;

}

.logo h1{
    margin: 0;
}
.logo h1 a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}
#weather-info-short{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    top: 0;
    right: 0;
    width: 85px;
    height: 66px;
    text-decoration: none;
}
#toggle-weather-info:hover{
    cursor: pointer;
}
#toggle-weather-info{
    padding: 8px 8px;
    border-radius: 8px;
    position: sticky;
    top: 0;
}
.forecast-day{
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
}

#weather-info-short  p{
    margin: 0;
}
.hidden{
    display: none;
}

.date{
    right: 5px;
}
.weather-icon{
    width: 60px;
    height: 60px;
    object-fit: contain; /* albo cover, jeśli chcesz przycięcie */
    border-radius: 8px;
}

.center-title{
    text-align: center;
}

.navigation{
    display: flex;
    background-color:#333;
    position: sticky;
    top:0;
}
/* Styl przycisku burgera */
.burger {
    display: none;
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Ukryj kategorie w wersji mobilnej, pokaż burgera */
@media (max-width: 768px) {
    .categories {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        padding: 10px;
        justify-content: center;
    }

    .categories.show {
        display: flex;
    }

    .burger {
        display: block;
    }

    .navigation {
        flex-direction: column;
        align-items: flex-start;
    }
}


.categories {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    top:1px;
    background-color:#333 ;

}

.category-button {
    display: flex;

    color: white; /* Biały tekst dla lepszej czytelności */
    text-decoration: none;
    transition: all 0.3s;
    height: 40px;
    text-justify: auto;
    text-align: center;
    align-items: center;          /* wyśrodkowanie w pionie */
    justify-content: center;      /* wyśrodkowanie w poziomie */
    padding: 6px 12px;
    background: #203d5e;
    border-radius: 5px;
    margin-right: 20px;
}

.category-button:hover {
    background-color: #3a5a78;
    cursor:pointer;
}
.category-button.active {
    background-color: #007BFF;
    color: white;
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 5px;
}

.card {
    background-color: #e0e0e0; /* Ciemniejszy szary niż poprzednio */
    border: 1px solid #b0b0b0; /* Ciemniejsza obramówka */
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Mocniejszy cień */
    padding: 10px;
    width: 300px;
    transition: transform 0.2s;
}
.thumbnail-container{
    height: 200px;
}
.attraction-thumbnail{
    height: 200px;
    width: 100%;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.card h2{
    margin: 0;
}

.description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    transition: max-height 0.5s ease;
    text-align: justify;
    hyphens: auto;
}

.description.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
}

.toggle-button {
    background-color: #1a4b7c;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.toggle-button:hover{
    background-color: #16385d;
}

.extra-info {
    display: none;
}

.description.expanded + .toggle-button + .extra-info {
    display: block;
}


.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px 0;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    justify-content: center;
}

.pagination a {
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #909090; /* Ciemniejsza obramówka */
    color: #333;
    border-radius: 4px;
    background-color: #e0e0e0; /* Tło przycisków paginacji */
}

.pagination a:hover {
    background-color: #d0d0d0;
}

.pagination a.active {
    background-color: #203d5e; /* Spójny z kolorem nagłówka */
    color: white;
    font-weight: bold;
    border-color: #203d5e;
}
.pagination a.disabled {
    pointer-events: none;
    color: #aaa;
    background-color: #f0f0f0;
}

.pagination a.ellipsis {
    cursor: default;
    background: none;
    border: none;
    font-weight: bold;
    padding: 6px 10px;
}
.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #999;

    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-style: italic;
}
#side-info-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}
#weather-side-info-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}
#weather-info-5days {
    background-color: #f0f4f8;  /* jasne tło */
    border: 1px solid #ccc;     /* delikatna ramka */
    border-radius: 8px;         /* zaokrąglone rogi */
    padding: 16px;              /* odstęp wewnątrz */
    margin-top: 8px;            /* odstęp od przycisku */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* lekki cień */
    transition: all 0.3s ease;  /* animacja */
}


#toggle-side-info, #toggle-proposed-trip-route-info {
    background-color:#007bff;
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#toggle-side-info:hover {
    background-color: #1a324b;
}

#side-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#side-info-content.hidden {
    display: none;
}

#map-link-container,
#selected-points-container {
    background-color: #ffffffee;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
    color: #333;
}

.add-to-map-button:hover {
    cursor: pointer      /* ciemniejszy niebieski po najechaniu */
}

/* Styl tylko dla linka */
#map-link-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#map-link-container a:hover {
    text-decoration: underline;
}

/* Lista wybranych punktów */
#selected-points-container h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #007bff;
}

#points-list {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}


@keyframes slow-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.blinking {
    animation: slow-blink 1s ease-in-out infinite;
}
.category-wrapper {
    position: relative;
    display: inline-block;
}


.district-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    min-width: 150px;
    margin-right: 20px;
    text-align: center;

}

.category-wrapper:hover .district-submenu {
    display: block;
}

.district-submenu a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #333;
}

.district-submenu a:hover {
    background-color: darkgrey;
}


footer {
    display: flex;
    justify-content: center; /* poziome wyśrodkowanie */
    align-items: center;     /* pionowe wyśrodkowanie */
    flex-direction: column;  /* jeśli jest więcej niż jedna linia tekstu */
    text-align: center;
    background-color: #203d5e;
    height: 150px;
    width: 100%;
    color: white;
    text-decoration:none;
}
footer a{
    text-decoration:  none;
    color: white;
}

    .categories {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .categories.show {
        display: flex;
    }

@media (min-width: 769px) {
    .categories {
        display: flex !important;
        flex-direction: row;
        gap: 10px;
    }


    #burger-toggle {
        display: none;
    }
}
#scrollToTopBtn {
    position: fixed;
    bottom: 45px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 30%;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
}
/* Na mniejszych ekranach dopasuj szerokość submenu do przycisku kategorii */
@media (max-width: 768px) {
    .category-wrapper {
        position: relative;
    }

    .district-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 10;
    }

    .category-button {
        display: flex;
        width: 100%;
        box-sizing: border-box;

    }
}

