body {
    font-family: 'Montserrat', sans-serif;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/layout/banner-bg.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    color: white;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/layout/banner-bg-mobile.JPG');
        padding: 60px 0;
    }
}

.feature-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

#rezerwacja {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/layout/reservation-form-bg.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    #rezerwacja {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/layout/reservation-form-bg-mobile.JPG');
    }
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid + .invalid-feedback {
    display: block;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.airport-card {
    transition: transform 0.3s;
    margin-bottom: 20px;
}
.airport-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #005ffe;
}

footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
}

#map-container {
    height: 600px;
}

.gallery-card {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
}
.gallery-card:hover {
    transform: translateY(-5px);
}
.gallery-card img {
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
    transition: transform 0.3s, opacity 0.3s;
}
.gallery-card:hover img {
    transform: scale(1.05);
}
.gallery-card img[loading="lazy"] {
    opacity: 0.8;
}
.gallery-card img.lazyloaded {
    opacity: 1;
}
.gallery-card .card-body {
    padding: 1rem;
    background: #f8f9fa;
}
.gallery-card .card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #333;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    height: 250px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-overlay i {
    color: white;
    font-size: 2rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.form-section-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
}
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}
.form-check-input {
    margin-top: 0.3em;
}
.text-danger {
    color: #dc3545;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(var(--bs-dark-rgb), 0.8);
    color: #fff;
    border: none;
    border-radius: 15%;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, box-shadow 0.5s, visibility 0.5s ease;
    z-index: 999;
}
.back-to-top:hover {
    background: rgba(var(--bs-dark-rgb), 1);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
