/* Główne style dla strony Żeglarskie Podróże */

/* Zmienne kolorystyczne */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --success-color: #34a853;
    --danger-color: #ea4335;
    --map-route-color-1: #ff6b35;
    --map-route-color-2: #ffa630;
    --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Podstawowe style */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    background-image: url('https://images.unsplash.com/photo-1565132587653-00e4d4b5b5e8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(248, 249, 250, 0.95);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1557b0;
    text-decoration: none;
}

/* Sekcja hero */
.hero-section {
    background: var(--hero-overlay), url('https://images.unsplash.com/photo-1565132587653-00e4d4b5b5e8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26,115,232,0.3), rgba(52,168,83,0.3));
}

.hero-section .container {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Karty destynacji */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Sekcje */
section {
    padding: 5rem 0;
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

section:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.95);
}

/* Mapy */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    height: 500px;
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Tabele */
.table {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-primary {
    background-color: var(--primary-color);
    color: white;
}

/* Accordion */
.accordion {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.25);
}

/* Formularz kontaktowy */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.25);
}

/* Przyciski */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
    transform: translateY(-2px);
}

/* Nawigacja */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background-color: white !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

/* Stopka */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .card-img-top {
        height: 200px;
    }

    .map-container {
        height: 400px;
    }
}

/* Animacje */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ikony Bootstrap */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Dodatkowe style dla map */
.leaflet-popup-content {
    font-family: 'Roboto', sans-serif;
    padding: 1rem;
}

.leaflet-popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.leaflet-popup-content p {
    margin-bottom: 0.5rem;
}

.leaflet-popup-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

/* Style dla sekcji z ofertami */
.offers-section {
    background-color: white;
    padding: 4rem 0;
}

.offer-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.offer-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.offer-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.offer-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.offer-card .features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.offer-card .features li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
}

/* Style dla sekcji z linkami */
.links-section {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.link-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.link-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.link-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Style dla sekcji z arkuszami */
.sheets-section {
    background-color: white;
    padding: 4rem 0;
}

.sheet-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sheet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sheet-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sheet-card .download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sheet-card .download-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}
