						/* ===== RESPONSIVE DESIGN ===== */

						/* MOBILN? ZA??ZEN? */

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        margin: 10px;
        padding: 20px;
    }

    #search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group label {
        text-align: center;
    }

   						 /* Override gridu z search.css pro mobiln? zobrazen? */

    .form-group:first-of-type {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(12, auto) !important;
        gap: 5px !important;
        margin-bottom: 20px !important;
    }

    						/* P?euspo??d?n? v?ech element? do jednoho sloupce */

    .form-group:first-of-type > label:nth-child(1) { grid-column: 1 !important; grid-row: 1 !important; } /* Hled?m label */
    .form-group:first-of-type > select:nth-child(2) { grid-column: 1 !important; grid-row: 2 !important; } /* Hled?m select */

    .form-group:first-of-type > label:nth-child(3) { grid-column: 2 !important; grid-row: 1 !important; } /* kter?/? hled? label */
    .form-group:first-of-type > select:nth-child(4) { grid-column: 2 !important; grid-row: 2 !important; } /* kter?/? hled? select */

    .form-group:first-of-type > label:nth-child(5) { grid-column: 1 !important; grid-row: 3 !important; } /* z kraje label */
    .form-group:first-of-type > select:nth-child(6) { grid-column: 1 !important; grid-row: 4 !important; } /* z kraje select */

    .form-group:first-of-type > label:nth-child(7) { grid-column: 2 !important; grid-row: 3 !important; } /* m?sta label */
    .form-group:first-of-type > select:nth-child(8) { grid-column: 2 !important; grid-row: 4 !important; } /* m?sta select */

    .form-group:first-of-type > label:nth-child(9) { grid-column: 1 !important; grid-row: 5 !important; } /* v?k label */
    .form-group:first-of-type > .range-inputs:nth-child(10) { grid-column: 1 !important; grid-row: 6 !important; } /* v?k inputs */
    
    .form-group:first-of-type > label:nth-child(11) { grid-column: 2 !important; grid-row: 5 !important; } /* v??ka label */
    .form-group:first-of-type > .range-inputs:nth-child(12) { grid-column: 2 !important; grid-row: 6 !important; } /* v??ka inputs */
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
        max-height: 120px;
    }
    
    .range-inputs {
        justify-content: center;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .user-cards-wrapper {
        gap: 5px;
        margin: 5px auto;
        max-width: 1000px;
    }

    .user-grid {
        gap: 5px;
        max-width: 100%;
        padding: 5px;
    }

    .user-card {
        width: 90px;
        border-radius: 0px;
        overflow: hidden;
    }
    
    .user-card-right {
        padding: 10px;
        max-height: 50%;
    }
    
    .user-card-left:hover::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        padding: 15px;
    }

    .search-wrapper h2 {
        font-size: 20px;
    }
    
    .range-inputs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .short-input {
        width: 100px !important;
    }
}

						/* TABLET A MEN?? DESKTOP */

@media screen and (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
    }
    
     .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        margin: 10px;
        padding: 20px;
    }
    
    #search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group label {
        text-align: center;
    }

   						 /* Override gridu z search.css pro mobiln? zobrazen? */

    .form-group:first-of-type {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(12, auto) !important;
        gap: 5px !important;
        margin-bottom: 20px !important;
    }
    
    						/* P?euspo??d?n? v?ech element? do jednoho sloupce */

    .form-group:first-of-type > label:nth-child(1) { grid-column: 1 !important; grid-row: 1 !important; } /* Hled?m label */
    .form-group:first-of-type > select:nth-child(2) { grid-column: 1 !important; grid-row: 2 !important; } /* Hled?m select */
    
    .form-group:first-of-type > label:nth-child(3) { grid-column: 2 !important; grid-row: 1 !important; } /* kter?/? hled? label */
    .form-group:first-of-type > select:nth-child(4) { grid-column: 2 !important; grid-row: 2 !important; } /* kter?/? hled? select */
    
    .form-group:first-of-type > label:nth-child(5) { grid-column: 1 !important; grid-row: 3 !important; } /* z kraje label */
    .form-group:first-of-type > select:nth-child(6) { grid-column: 1 !important; grid-row: 4 !important; } /* z kraje select */
    
    .form-group:first-of-type > label:nth-child(7) { grid-column: 2 !important; grid-row: 3 !important; } /* m?sta label */
    .form-group:first-of-type > select:nth-child(8) { grid-column: 2 !important; grid-row: 4 !important; } /* m?sta select */
    
    .form-group:first-of-type > label:nth-child(9) { grid-column: 1 !important; grid-row: 5 !important; } /* v?k label */
    .form-group:first-of-type > .range-inputs:nth-child(10) { grid-column: 1 !important; grid-row: 6 !important; } /* v?k inputs */
    
    .form-group:first-of-type > label:nth-child(11) { grid-column: 2 !important; grid-row: 5 !important; } /* v??ka label */
    .form-group:first-of-type > .range-inputs:nth-child(12) { grid-column: 2 !important; grid-row: 6 !important; } /* v??ka inputs */
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
        max-height: 120px;
    }

    .range-inputs {
        justify-content: center;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
        height: 40px;
    }
    
    .sidebar {
        width: 100%;
        background-color: #f2f2f2;
        padding: 10px;
    }


    .menu-toggle {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 28px;
        text-align: center;
        cursor: pointer;
        padding: 10px 0;
        user-select: none;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 5px 0;
        text-align: center;
    }

    .menu-toggle:checked + .hamburger + .menu-list {
        display: flex;
    }

    .menu-list li {
        list-style: none;
    }

    .menu-list li a {
    display: block;
    width: 60%;
    margin: 8px auto;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    text-decoration: none;
    
    background: #ffffff;       /* Bílé pozadí */
    border: 2px solid #154360; /* Tmavý okraj */
    color: #154360;            /* Tmavý text a ikona */
    border-radius: 8px;
    box-shadow: none;

    transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-list li a:hover,
.menu-list li a.active {
    background: #ffffff;
    border-color: #ed2f8e;
    color: #ed2f8e;
}
    
    .profile-details .column {
        width: 100%;
    }

    .profile-details {
        flex-direction: column;
        gap: 20px;
    }

    .profile-details .column {
        flex: none;
        width: 100%;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 10px 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .profile-details .column p {
        margin: 6px 0;
        font-size: 14px;
    }
}

						/* DESKTOP */

@media screen and (min-width: 769px) {
    .menu-toggle,
    .hamburger {
        display: none !important;
    }

    .logo-desktop {
        display: block;
    }
    
    .logo-mobile {
        display: none;
    }
    
    .menu-list {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        padding: 10px 0;
    }

    .menu-list li {
        list-style: none;
    }

    .menu-list li a {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    min-width: 250px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    background: #ffffff;         /* Bílé pozadí */
    border: 2px solid #154360;   /* Tmavý okraj */
    color: #154360;              /* Tmavý text a ikona */
    border-radius: 6px;
    box-shadow: none;

    /* Plynulý přechod pro barvy */
    transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-list li a.active,
.menu-list li a:hover {
    background: #ffffff;         /* Pozadí zůstává bílé */
    border-color: #ed2f8e;       /* Růžový okraj */
    color: #ed2f8e;              /* Růžový text a ikona */
}

}

						/* STICKY MENU (jen pro desktop) */

@media screen and (min-width: 769px) {
    .main-menu.sticky .label {
        display: none;
    }

    .main-menu.sticky .icon {
        display: inline-block;
        font-size: 20px;
        position: relative;
    }
	
    .main-menu.sticky .menu-list a:hover::after {
        content: attr(data-label);
        position: absolute;
        bottom: -28px;
        left: 50%;
        transform: translateX(-50%);
        background: #f5f5f5;
        color: #154360;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 13px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        animation: fadeTooltip 0.2s forwards;
    }

    .top-menu.scrolled .menu-list li a .label {
        display: none !important;
    }

    .top-menu.scrolled .menu-list li a {
        position: relative;
        padding: 8px;
        width: auto;
        min-width: 50px;
    }

    .top-menu.scrolled .menu-list li a::after {
        content: attr(data-label);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        color: #154360;
        padding: 6px 10px;
        border-radius: 6px;
        white-space: nowrap;
        font-size: 16px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 9999;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        margin-top: 5px;
    }

    .top-menu.scrolled .menu-list li a:hover::after {
        opacity: 1;
		color: #154360;
    }
}


@media (max-width: 768px) {

    .content-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
		order: -1;
    }
	
    .user-bar {
        position: static;
    }
	
    .user-info {
    }
	
    .nav-center {
        flex-direction: column; /* Se?ad? polo?ky pod sebe */
        max-width: 300px; /* Omez? ???ku na mobilu pro hez?? vzhled */
    }

    .nav-center-button,
	.nav-center-button-1,
	.nav-center-button-unactive {
        /* Vynulov?n? po?ad?, aby se zobrazilo spr?vn? uprost?ed */
        order: -2; 
    }
	
	.nav-box,
	.nav-box-1,
	.nav-box-unactive {
		flex: 1;
		width: 100%;
	}
    
    						/* P?i?azen? po?ad? ostatn?m tla??tk?m */
	
    .nav-box:nth-child(1) { order: -1; } /* Profil */
    .nav-box:nth-child(2) { order: 0; } /* Zpr?vy */
    .nav-box:nth-child(4) { order: 1; }  /* N?v?t?vy */
    .nav-box:nth-child(5) { order: 2; }  /* Spojen? */

}
}


@media (max-width: 768px) {
    .stat-item {
        width: 100%;
        max-width: 280px;
    }

    .stat-label {
        font-size: 13px;
    }

    .stat-value {
        font-size: 15px;
    }
}

/* Responsivn? ?pravy */

@media (max-width: 768px) {
    .delete-visit-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .delete-visit-btn::before {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .delete-visit-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .delete-visit-btn::before {
        font-size: 18px;
    }
}

/* Responsivn? ?pravy */

@media (max-width: 1200px) {
    .visited-page .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .visited-page .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .visited-page .match-actions {
        flex-direction: column;
    }

    .visited-page .match-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .visited-page .match-card {
        padding: 15px;
    }

    .visited-page .match-photo img {
        width: 60px;
        height: 60px;
    }
}

/* Responsivn? ?pravy */

@media (max-width: 1200px) {
    .visitors-page .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .visitors-page .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .visitors-page .match-actions {
        flex-direction: column;
    }

    .visitors-page .match-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .visitors-page .match-card {
        padding: 15px;
    }

    .visitors-page .match-photo img {
        width: 60px;
        height: 60px;
    }
}

/* Responsivn? ?pravy */

@media (max-width: 1200px) {
    .matche-page .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .matche-page .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .matche-page .match-actions {
        flex-direction: column;
    }

    .matche-page .match-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .matche-page .match-card {
        padding: 15px;
    }

    .matche-page .match-photo img {
        width: 60px;
        height: 60px;
    }
}

