/* ===== ZÁKLADNÉ NASTAVENIA (PÔVODNÉ Z TEMATICKEMAPY.SK) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    width: 100%;
    overflow-x: hidden;
}

/* ===== HEADER - NOVÝ PODĽA VZORU SKEYEMAP ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #005289;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    display: block;
    height: 80px;
    max-width: 100%;
}

/* Navigácia */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu a {
    color: var(--text-color);
    font-size: 14px;
}

.dropdown-menu a:hover {
    color: var(--secondary-color);
}

.header-contact .phone {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.header-contact .phone i {
    margin-right: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* ===== HERO SEKCIA - PRISPÔSOBENÁ PRE TEMATICKÉ MAPY ===== */
.hero-mapy {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(193, 188, 188, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: auto;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 80px;
    padding: 60px 0;
}



.hero-mapy .hero-content {
    max-width: 800px;
}

.hero-mapy h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-family: var(--font-primary);
    line-height: 1.2;
}

.hero-mapy .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-family: var(--font-secondary);
}

.hero-mapy .hero-buttons {
    display: flex;
    gap: 20px;
}

/* Tlačidlá */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* ===== HLAVNÝ OBSAH - PÔVODNÝ Z TEMATICKEMAPY.SK ===== */


.container {
    max-width: 85vw;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}


/* Sekcie */
.section-full {
    width: 100%;
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
    background-color: inherit;
}

.section-alt {
    background-color: #f5f5f5;
}

.section-title {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    text-align: center;
    font-family: var(--font-primary);
}

.section-perex {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-secondary);
}

/* Karta s iframe */
.card-fullwidth {
    width: 100%;
    margin-bottom: 40px;
}

.card-with-iframe-first {
    display: flex;
    flex-wrap: wrap;  /* Zmeniť z nowrap na wrap */
    gap: 40px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;  /* Pridať - zabráni pretekaniu obsahu */
    width: 100%;  /* Zabezpečí, že element nepresahuje rodiča */
    max-width: 100%;  /* Dodatočná ochrana */
}

.card-with-iframe-first .card-content {
    flex: 1 1 40%;  /* Umožní flexibilné prispôsobenie */
    min-width: 250px;  /* Minimálna šírka pre obsah */
}

.card-with-iframe-first .card-iframe {
    flex: 1 1 55%;  /* Umožní flexibilné prispôsobenie */
    min-width: 300px;  /* Minimálna šírka pre iframe */
    height: 400px;
    position: relative;  /* Pre lepšiu kontrolu */
}

.card-iframe iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;  /* Odstráni medzery pod iframe */
}

/* Grid kariet */
.card-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0056b3;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0056b3;
    font-size: 1.4rem;
    font-family: var(--font-primary);
}

.card p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

/* Záložkové rozhranie */
.showcase-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    min-height: 500px;
}

.showcase-tabs {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    border-left: 4px solid transparent;
    width: 100%;
}

.tab-button i {
    font-size: 1.5rem;
    color: #0056b3;
    width: 30px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: #f0f7ff;
}

.tab-button.active {
    background: #0056b3;
    color: white;
    border-left-color: #ffd700;
    box-shadow: 0 6px 15px rgba(0,86,179,0.3);
}

.tab-button.active i {
    color: #ffd700;
}

.showcase-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #0056b3;
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.content-panel h3 {
    color: #0056b3;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    font-family: var(--font-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 3px solid #0056b3;
}

.feature-item i {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.feature-item span {
    color: #666;
    font-size: 0.9rem;
}

.info-window-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.info-window-text {
    flex: 1;
}

.info-window-image {
    flex: 1;
    text-align: center;
}

.info-window-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

/* Ukážky máp */
.map-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.map-showcase-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #0056b3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-showcase-title {
    color: #0056b3;
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
    font-family: var(--font-primary);
}

.map-showcase-subtitle {
    color: #444;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    font-style: italic;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
}

.map-showcase-iframe {
    width: 100%;
    height: 350px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #0056b3;
}

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

.map-showcase-buttons {
    display: flex;
    gap: 15px;
    margin: 15px 0 5px 0;
}

.map-showcase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0056b3, #003d82);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,86,179,0.2);
    flex: 1;
}

.map-showcase-btn:hover {
    background: linear-gradient(135deg, #003d82, #002b5c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,86,179,0.3);
}

.map-showcase-btn-open:hover {
    background: linear-gradient(135deg, #1e7e34, #155d27);
}

.map-showcase-text {
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    margin-top: 15px;
    opacity: 1;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 3px solid #ffd700;
}

.map-showcase-text.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

.map-showcase-text-content {
    padding: 20px;
}

/* ===== FOOTER - NOVÝ PODĽA VZORU SKEYEMAP ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    clear: both;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-top: 20px;
    color: #bdc3c7;
    font-family: var(--font-secondary);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-family: var(--font-primary);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #bdc3c7;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-secondary);
}

.footer a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #bdc3c7;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.2);
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        margin: 0;
        list-style: none;
    }
    
    /* Opravený selektor - active trieda sa aplikuje priamo na nav-menu */
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: var(--dark-color);
        transition: color 0.3s ease;
        z-index: 1001;
        padding: 10px;
    }
    
    .mobile-menu-btn:hover {
        color: var(--secondary-color);
    }
    
    .mobile-menu-btn.active {
        color: var(--secondary-color);
    }
    
    .header-contact {
        display: none;
    }
    
    /* Dropdown menu na mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        min-width: auto;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-mapy {
        min-height: 400px;
        padding: 40px 0;
        margin-top: 70px;
    }
    
    .hero-mapy h1 {
        font-size: 2rem;
    }
    
    .hero-mapy .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-mapy .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-mapy .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-with-iframe-first {
        flex-direction: column;
        padding: 20px;
    }
    
    .card-with-iframe-first .card-content,
    .card-with-iframe-first .card-iframe {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card-with-iframe-first .card-iframe {
        height: 300px;
    }
    
    .showcase-container {
        flex-direction: column;
    }
    
    .showcase-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        flex: 0 0 auto;
    }
    
    .tab-button {
        min-width: auto;
        width: 100%;
        padding: 8px 10px;
        height: auto;
        gap: 8px;
        justify-content: center;
        text-align: center;
    }
    
    .info-window-container {
        flex-direction: column;
    }
    
    .map-showcase-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }
    
    .header-content {
        height: 70px;
        padding: 0 15px;
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .hero-mapy {
        margin-top: 70px;
        min-height: 350px;
    }
    
    .hero-mapy h1 {
        font-size: 1.6rem;
    }
    
    .hero-mapy .hero-subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .map-showcase-iframe {
        height: 250px;
    }
    
    .map-showcase-title {
        font-size: 1.4rem;
    }
    
    .map-showcase-subtitle {
        font-size: 1rem;
    }
}

/* Pridaná dodatočná úprava pre main element */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
}


@media (max-width: 768px) {
    .hero-mapy .container {
        flex-direction: column !important;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badge {
        margin-top: 20px;
    }
}