
.map-container, .leaflet-container, .search-filter, .flight-map-filters{
    font-family: 'Oswald', sans-serif;
}
#map {
    height: 800px;
    width: 100%;
    border-radius: 10px;
    
}

.map-info {  
    width: 100%;
    background: #eaf3ff;
    border: 1px solid #eee;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: start;
    border-radius: 10px;
    margin-top: 10px;
}

.map-info p {
    color: #000;
    padding: 20px;
    margin: 0;
    font-size: var(--font-base);
}

.search-filter {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;


}

.flight-search-wrapper {
    display: flex;
    justify-content: center;
    width: fit-content;
}

.flight-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 500px;
    gap: 10px;
}

.flight-search-form .field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.flight-search-form .field label {
    font-size: var(--font-small);
    color: gray;
    margin-bottom: 2px;
}

.flight-search-form .field input {
    border: none;
    outline: none;
    font-size: var(--font-base);
    font-weight: 600;
    background: transparent;
    color: var(--dark-blue);
    overflow: hidden;
}

.flight-search-form .field input::placeholder {
    color: #aaa;
    font-weight: normal;
}

.flight-search-form .field input[readonly] {
    color: #333;
    background: #f9f9f9;
    cursor: default;

}

.flight-search-form .swap-btn {
    border: 1px solid #ccc;
    border-radius: 100%;
    padding: 5px;
    background: white;
    cursor: pointer;
    font-size: var(--font-base);
    transition: background 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;

}

.flight-search-form .swap-btn:hover {
    background: #f0f0f0;
}
.flight-map-filters{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: absolute;
    z-index: 998;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);

}


#airlineDropdown {
    padding: 10px 30px;
    font-size: var(--font-small);
    border-radius: 5px;
    background: #fff;
    color: #000;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('https://zracnalukazadar.kinsta.cloud/wp-content/uploads/2025/09/caret-down.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

#airlineDropdown option {
    background: #fff;
    color: #000;
}

#airlineDropdown:focus {
    outline: none;
    border: none;
}

.leaflet-div-icon.destination-label {
    background: none;
    border: none;
    font-size: var(--font-small);
    color: black;
    font-weight: bold;
}

.destination-label .destination-label-box {
    background-color: var(--dark-blue);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    font-size: var(--font-small);
    font-weight: normal;

    cursor: pointer;
    color: white;
}

.zadar-label .zadar-label-box {
    background-color: var(--dark-blue);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: var(--font-small);
    font-weight: bold;
    color: white;
    box-shadow: 2 2px 2px rgba(0, 0, 0, 0.3);

    cursor: pointer;
}

.slide-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.slide-panel.open {
    transform: translateX(0px);
}

.panel-header {
    padding: 20px 15px;
    background-color: var(--dark-blue);
    color: white;
    display: flex;
    border-radius: 0 0 0 10px;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.panel-header-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.panel-header h3 {
    margin: 0;
    font-size: var(--font-large);
    padding: 0 10px;

}

#time {
    font-size: var(--font-small);
    color: #eee;
    padding: 0 10px;
    margin: 10px 0;
}

#closePanelBtn {
    background: none;
    border: none;
    color: white;
    padding: 0;
    cursor: pointer;
}

#closePanelBtn:hover,
#closePanelBtn:focus {
    color: white;
    border: none;
}

#closePanelBtn svg {
    width: 24px;
    height: 24px;
    transition: all 0.1s ease-in;
}

#closePanelBtn svg:hover {
    transform: scale(1.2);
}

.close-aside {
    position: absolute;
    z-index: 997;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;
    background: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 5px;
}

.panel-body {
    padding: 10px 15px;
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.panel-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolone jednake širine */
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
    margin-top: 20px;

}

.raspored-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.raspored-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.raspored-tabs {

    border-radius: 20px;
    background: #fff;
    padding: 3px;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.raspored-tabs span {
    background: #eee;

    color: #000;
    padding: 2px 10px;
    border-radius: 10px;
}

.raspored-tabs span.active {
    background: var(--dark-blue);
    color: #fff;
}

#panel-days {
    width: 100%;
}

.panel-actions a, .panel-actions span {

    padding: 10px;
    border: none;
    background-color: var(--dark-blue);
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: var(--font-small);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    width: 85px;
}

.panel-actions a:hover, .panel-actions span:hover {
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    color: white;
}



#reset {
    background: var(--danger);
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    color: white;
    text-transform: capitalize;
    font-size: var(--font-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#home {
    background: var(--dark-blue);
    border-radius: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease-in;
}

#home:hover {
    background: var(--dark-blue);
    box-shadow: none;
}

#reset:hover {
    background: var(--danger);
    box-shadow: none;
}

#reset svg {
    width: 12px;
    height: 12px;
}

button.btnSubmit {
    background: var(--dark-blue);
    border: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

button.btnSubmit svg {
    background: var(--dark-blue);
}

button.btnSubmit:hover {
    background: var(--dark-blue);
}

button.btnSubmit:focus {
    background: var(--dark-blue);
}

/* Kontejner za marker */
.pulse-container {
    position: relative;
    width: auto;
    height: auto;
}

/* Pulsirajući krug */
.pulse-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-blue);
    position: absolute;
    border: 1px solid white;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 0 rgba(30, 144, 255, 0.4);
}

/* Pulsirajuća animacija */
@keyframes pulse-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.4);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.6);
        box-shadow: 0 0 0 20px rgba(30, 144, 255, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0);
    }
}

/* Labela */
.zadar-label-box {
    position: absolute;
    left: 10px;
    /* udaljenost od kružića */
    top: -10px;
    background-color: var(--dark-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--font-small);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

#weather-info {
    margin-top: 20px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.weather-wind {
    font-size: var(--font-small);
    color: #666;
    margin-top: 4px;
}

.flight-day-row {
    padding: 6px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    font-size: var(--font-small);
    color: #5c5b5b;
}

.flight-day-label {
    display: inline-block;
    font-weight: bold;
    margin-right: 6px;
    width: 30px;
}

.flight-times {
    display: inline;
}

.plane-icon {
    z-index: 1000;
}

.airline-img {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;

}

.airline-img button {
    width: 50%;
    margin: 0;
    padding: 5px;
    border: 1px solid #fff;
    background: #eee;
    transition: all 0.1s ease-in-out;
}

.airline-img button:hover {
    background: #00a8e06c;
}
.airline-img button:focus {
    background: #00a8e06c;
}

.raspored {
    font-size: var(--font-base);
    color: #5c5b5b;
    font-weight: 600;
}

.map-legend {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    z-index: 997;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.legend-dot {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.non-schengen,
.schengen {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.schengen {
    background: var(--danger);
}

.non-schengen {
    background: var(--dark-blue);
}

.vrijeme {
    margin: 0 10px;
}
.leaflet-top, .leaflet-left {
    z-index: 997!important;
}

@media(max-width: 600px) {
    .flight-search-form {
        width: 250px;
    }

    .map-legend {
        bottom: 20px;
    }


}