/* Základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: #000000;
    color: #ffffff;
}

::-moz-selection {
    background: #000000;
    color: #ffffff;
}

body {
    font-family: 'Figtree', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navigace */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-bar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-bar ul li {
    margin-right: 25px;
    margin-left: 25px;
}

.nav-bar ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 0.9em;
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-bar ul li:nth-child(1) a { animation-delay: 0.1s; }
.nav-bar ul li:nth-child(2) a { animation-delay: 0.2s; }
.nav-bar ul li:nth-child(3) a { animation-delay: 0.3s; }
.nav-bar ul li:nth-child(4) a { animation-delay: 0.4s; }
.nav-bar ul li:nth-child(5) a { animation-delay: 0.5s; }

.nav-bar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #000000;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-bar ul li a:hover::after {
    width: 90%;
}

.nav-bar ul li a:hover {
    color: #000000;
    text-shadow: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero sekce */
.hero-section {
    background: #2b2b2b;
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 6rem 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

/* Sekce oblastí */
.areas-section {
    padding: 4rem 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.areas-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.areas-text ul {
    list-style: none;
    margin: 1rem 0;
}

.areas-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.areas-text li::before {
    content: "•";
    color: #C95603;
    position: absolute;
    left: 0;
}

/* Kontejner pro mapu */
.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Overlay s informacemi o mapě */
.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.map-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #C95603;
    font-weight: 600;
}

.map-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

/* Loading stav pro mapu */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
    border-radius: 10px;
}



/* Styly pro Google Maps InfoWindow */
.gm-style-iw-c {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gm-style-iw-d h4 {
    color: #C95603;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.gm-style-iw-d p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

/* Vlastní mapa styly */
#custom-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Leaflet popup styly */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.popup-content {
    text-align: center;
    padding: 5px;
}

.popup-content h4 {
    color: #C95603;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.popup-content p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.popup-content p strong {
    color: #333;
}

/* Leaflet tooltip styly */
.leaflet-tooltip {
    background: rgba(201, 86, 3, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(201, 86, 3, 0.9);
}

/* Leaflet attribution pozice */
.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8);
}

/* Sekce schopností */
.capabilities-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.capabilities-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.7s forwards;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.capability-item {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.capability-item:nth-child(1) { animation-delay: 0.8s; }
.capability-item:nth-child(2) { animation-delay: 0.9s; }
.capability-item:nth-child(3) { animation-delay: 1.0s; }
.capability-item:nth-child(4) { animation-delay: 1.1s; }

.capability-item h3 {
    color: #C95603;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #2b2b2b;
    padding: 10px;
    text-align: center;
    color: white;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responzivní design */
@media (max-width: 768px) {
    .nav-bar ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-bar ul li {
        margin: 10px 0;
    }

    .areas-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        max-width: 100%;
    }

    .map-container iframe {
        height: 300px;
    }

    .map-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        background: rgba(255, 255, 255, 1);
    }



    .hero-section h1 {
        font-size: 2rem;
    }

    .areas-section h2,
    .capabilities-section h2 {
        font-size: 2rem;
    }
}

.area-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
} 