/* Základné nastavenia a premenné */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-gold: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 70px; /* Priestor pre mobilné menu */
}

/* Hlavicka */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 12px 24px;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    width: 300px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-color);
    margin-left: 8px;
    outline: none;
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 12px;
}

/* Tlacidlá */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-small {
    background: var(--card-border);
    color: var(--text-color);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-favorite {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.full-width {
    width: 100%;
    margin-top: 12px;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumbs {
    display: flex;
    list-style: none;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs .active {
    color: var(--primary);
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Karta / Widget */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

/* Skimapa */
.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.map-overlay-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-open {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.map-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.green { background: var(--accent-green); }
.dot.red { background: var(--accent-red); }
.dot.gray { background: var(--text-muted); }

/* Pocasie */
.weather-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.temp {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Skipasy */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.highlight-price {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

/* Kamery */
.live-indicator {
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.webcam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.webcam-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.webcam-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.webcam-title {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    width: 100%;
    font-size: 0.75rem;
    padding: 4px;
    text-align: center;
}

/* Info Stredisko */
.info-list {
    list-style: none;
    font-size: 0.9rem;
}

.info-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 8px;
}

/* Mobilná navigácia (Sticky Bottom Bar) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.mobile-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Responsivita (Mobily) */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .map-image {
        height: 250px;
    }
}
