* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    color: #333;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.navbar {
    background: #1b3a5c;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.logo span { color: #e0a030; }

.nav-links { display: flex; flex-wrap: wrap; }

.nav-links a {
    color: #ccc;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.hero {
    position: relative;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 { font-size: 2rem; margin-bottom: 10px; }
.hero-content p { font-size: 1rem; margin-bottom: 15px; }

.btn {
    display: inline-block;
    padding: 10px 22px;
    background: #e0a030;
    color: #1b3a5c;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-outline {
    background: none;
    border: 2px solid #e0a030;
    color: #e0a030;
}

.section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: #1b3a5c;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.card img { width: 100%; height: 180px; object-fit: cover; }

.card-body { padding: 14px; }
.card-body h3 { color: #1b3a5c; margin-bottom: 6px; }
.card-body p { color: #666; font-size: 0.9rem; }

.page-header {
    background: #1b3a5c;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 5px; }
.page-header p { color: #a0bcd6; }

.info-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    width: 220px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-top: 3px solid #e0a030;
    transition: transform 0.2s;
}

.info-box:hover {
    transform: scale(1.05);
}

.info-box .icon { font-size: 2rem; margin-bottom: 6px; }
.info-box h3 { color: #1b3a5c; margin-bottom: 5px; font-size: 1rem; }
.info-box p { color: #777; font-size: 0.8rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.04);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 8px;
    font-size: 0.85rem;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 80%;
    max-height: 70vh;
    margin: 0 auto;
}

.lightbox-caption { color: white; margin-top: 10px; }

.lightbox-close {
    position: absolute;
    top: 15px; right: 25px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    margin-top: 15px;
}

.lightbox-nav button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1rem;
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #1b3a5c;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: Verdana, sans-serif;
}

.form-group textarea { min-height: 80px; resize: vertical; }

.form-group .radio-group,
.form-group .checkbox-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group .radio-group label,
.form-group .checkbox-group label {
    font-weight: normal;
    cursor: pointer;
}

.form-group .radio-group input,
.form-group .checkbox-group input { width: auto; }

.error-msg {
    color: red;
    font-size: 0.8rem;
    margin-top: 3px;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: red; }

.form-group.error .error-msg { display: block; }

.form-success {
    display: none;
    background: #d4edda;
    color: green;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 12px;
}
.form-success.show { display: block; }

.data-table-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead { background: #1b3a5c; color: white; }

.data-table th, .data-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.loading-spinner {
    text-align: center;
    padding: 25px;
    color: #888;
}

.badge {
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.7rem;
    color: white;
}
.badge-green { background: #28a745; }
.badge-blue { background: #2196F3; }

.region-card {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    transition: transform 0.2s;
}

.region-card:hover {
    transform: scale(1.02);
}

.region-card img { width: 250px; object-fit: cover; }

.region-card .region-info { padding: 18px; }
.region-card .region-info h3 { color: #1b3a5c; margin-bottom: 6px; }
.region-card .region-info p { color: #666; font-size: 0.9rem; line-height: 1.5; }

.atrakcie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.atrakcia-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.atrakcia-card:hover {
    transform: scale(1.03);
}

.atrakcia-card img { width: 100%; height: 190px; object-fit: cover; }
.atrakcia-card .atrakcia-info { padding: 14px; }
.atrakcia-card .atrakcia-info h3 { color: #1b3a5c; margin-bottom: 5px; }
.atrakcia-card .atrakcia-info p { color: #666; font-size: 0.85rem; }

.tag {
    display: inline-block;
    background: #e6eef5;
    color: #1b3a5c;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-top: 6px;
    font-weight: bold;
}

.content-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.content-section h2 { color: #1b3a5c; margin-bottom: 10px; }
.content-section p { color: #555; margin-bottom: 10px; line-height: 1.5; }
.content-section ul { list-style: disc; padding-left: 18px; margin-bottom: 10px; }
.content-section ul li { color: #555; margin-bottom: 4px; }

.content-image { width: 100%; border-radius: 6px; margin: 15px 0; }

.footer {
    background: #1b3a5c;
    color: #a0bcd6;
    padding: 25px 20px 12px;
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.footer-content > div {
    min-width: 180px;
}

.footer h4 { color: white; margin-bottom: 8px; }
.footer p, .footer a { font-size: 0.8rem; color: #a0bcd6; }
.footer ul { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    padding: 0;
    margin: 0;
}
.footer ul li { margin-bottom: 0; }

.footer-bottom {
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
}

.text-center { text-align: center; }
.link-text { color: #1b3a5c; text-decoration: underline; }
.skryta { display: none; }
.chyba-text { color: red; text-align: center; padding: 20px; }

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        justify-content: center;
    }

    .hero { height: 250px; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.85rem; }

    .section { padding: 25px 15px; }
    .section-title { font-size: 1.3rem; }

    .card { width: 100%; }
    .info-box { width: 100%; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item { height: 150px; }

    .region-card { flex-direction: column; }
    .region-card img { width: 100%; height: 160px; }

    .atrakcia-card { width: 100%; }

    .data-table-container { padding: 10px; }
    .data-table th, .data-table td {
        padding: 5px 6px;
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 60vh;
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item { height: 180px; }

    .nav-links a {
        padding: 5px 7px;
        font-size: 0.8rem;
    }
}
