/* Přepsání primární fialové barvy na zelenou pro pobočku Beroun */
.branch-beroun {
    --bs-primary: #2BAE33;
    --primary: #2BAE33;
    /* Bootstrap table-primary variables */
    --bs-table-bg-primary: #2BAE33; /* Base color for table-primary */
    --bs-table-bg-hover: #228b29; /* Darker hover for table rows */
    --bs-table-border-color: #2BAE33; /* Border color for table */
    --bs-table-striped-bg: #f1f9f2; /* Lighter stripe color */
    --bs-table-active-bg: #228b29; /* Active state background */
}

.branch-beroun .text-primary {
    color: #2BAE33 !important;
}

.branch-beroun .bg-primary {
    background-color: #2BAE33 !important;
}

.branch-beroun .btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.branch-beroun .btn-primary:hover {
    background-color: #228b29 !important;
    border-color: #228b29 !important;
    color: #fff !important;
}

.branch-beroun .border-primary {
    border-color: var(--bs-primary) !important;
}

/* Úpravy specifických prvků šablony */
.branch-beroun .navbar-light .navbar-nav .nav-link:hover,
.branch-beroun .navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

/* Obecné nadpisy jsou zelené, ale umožníme barevným třídám je přebít */
.branch-beroun h1, .branch-beroun h2, .branch-beroun h3, 
.branch-beroun h4, .branch-beroun h5, .branch-beroun h6,
.branch-beroun .h1, .branch-beroun .h2, .branch-beroun .h3, 
.branch-beroun .h4, .branch-beroun .h5, .branch-beroun .h6 {
    color: #2BAE33;
}

/* Zajištění, aby utility třídy (text-success, text-info atd.) fungovaly i na nadpisy */
.branch-beroun .text-info { color: #0dcaf0 !important; }
.branch-beroun .text-warning { color: #ffc107 !important; }
.branch-beroun .text-success { color: #198754 !important; }
.branch-beroun .text-danger { color: #dc3545 !important; }
.branch-beroun .text-secondary { color: #6c757d !important; }

/* Specifické opravy pro Kroužky (Interests) - text musí ladit s linkou */
.branch-beroun .classes-item h6 {
    color: inherit; /* Přebere barvu z text-primary/success/warning třídy na stejném elementu */
}

/* Věk: a linka nad ním v sekci Kroužky musí zůstat fialové (#8440A8) jako na Braníku */
.branch-beroun .classes-item .border-primary {
    border-color: #8440A8 !important;
}
.branch-beroun .classes-item .border-primary .text-primary {
    color: #8440A8 !important;
}

/* Nadpisy v Hero sekcích (Carousel a Page Header) musí zůstat bílé */
.branch-beroun .page-header h1, 
.branch-beroun .page-header .breadcrumb-item,
.branch-beroun .page-header .breadcrumb-item a,
.branch-beroun .header-carousel h1,
.branch-beroun .header-carousel p {
    color: #fff !important;
}

.branch-beroun a:hover {
    color: #228b29;
}

/* --- GALERIE (Facility Section) --- */
/* Vracíme fialovou barvu pro Výlety (primary), aby se v Berouně nezměnila na oranžovou */
.branch-beroun .facility-item .bg-primary {
    background-color: #8440A8 !important;
}
.branch-beroun .facility-item:not(:hover) .text-primary {
    color: #8440A8 !important;
}
.branch-beroun .facility-item .btn-primary {
    background-color: #8440A8 !important;
    border-color: #8440A8 !important;
}

/* Ostatní ikonky v galerii musí zůstat barevné */
.branch-beroun .facility-item .bg-info { background-color: #0dcaf0 !important; }
.branch-beroun .facility-item .bg-warning { background-color: #ffc107 !important; }
.branch-beroun .facility-item .bg-success { background-color: #198754 !important; }
.branch-beroun .facility-item .bg-danger { background-color: #dc3545 !important; }
.branch-beroun .facility-item .bg-secondary { background-color: #6c757d !important; }

/* Zajištění, aby na hoveru v galerii vše zbělelo (přebíjíme globální oranžovou) */
.branch-beroun .facility-item:hover * {
    color: #FFFFFF !important;
}

/* Tlačítka v galerii musí zůstat bílá kvůli kontrastu na barevném pozadí */
.branch-beroun .facility-item .btn {
    color: #fff !important;
    border-color: #fff !important;
}

/* Zviditelnění tlačítka pro návrat nahoru na oranžovém pozadí patičky */
.branch-beroun .back-to-top {
    border: 2px solid #ffffff !important;
}

/* Patička: Zelené pozadí, bílý text */
.branch-beroun .footer {
    --bs-primary: #8440A8 !important;
    --primary: #8440A8 !important;
    background-color: #2BAE33 !important;
    color: #fff !important;
}
.branch-beroun .footer h1, .branch-beroun .footer h2, .branch-beroun .footer h3, 
.branch-beroun .footer h4, .branch-beroun .footer h5, .branch-beroun .footer h6,
.branch-beroun .footer p, .branch-beroun .footer a:not(.btn-social) {
    color: #fff !important;
}
.branch-beroun .footer a:hover {
    color: #d3d3d3 !important; /* Lehce šedá barva pro indikaci najetí */
}

/* Sociální ikony v patičce: po najetí zelené pozadí */
.branch-beroun .footer .btn-social:hover {
    background-color: #2BAE33 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Cookie Consent Overrides pro Beroun */
.branch-beroun #silktide-wrapper {
    --primaryColor: #2BAE33 !important;
}

.branch-beroun #silktide-cookie-icon {
    background-color: #2BAE33 !important;
    border-color: #2BAE33 !important;
}

.branch-beroun #silktide-cookie-icon:hover {
    background-color: #228b29 !important;
}

.branch-beroun #silktide-wrapper .st-button--primary:hover {
    background-color: #228b29 !important;
    border-color: #228b29 !important;
}

.branch-beroun #silktide-wrapper .st-button--secondary {
    color: #2BAE33 !important;
    border-color: #2BAE33 !important;
}

.branch-beroun #silktide-wrapper .st-button--secondary:hover {
    background-color: #2BAE33 !important;
    color: #ffffff !important;
}

.branch-beroun #silktide-modal h1 {
    color: #2BAE33 !important;
}

.branch-beroun #silktide-modal .switch input:checked + .switch__pill {
    background: #2BAE33 !important;
}

/* Specific overrides for table-primary class */
.branch-beroun .table-primary {
    --bs-table-bg: var(--bs-table-bg-primary);
    --bs-table-border-color: var(--bs-table-border-color);
    --bs-table-striped-bg: var(--bs-table-striped-bg);
    --bs-table-striped-color: #fff; /* Text color for primary table */
    --bs-table-active-bg: var(--bs-table-active-bg);
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: var(--bs-table-bg-hover);
    --bs-table-hover-color: #fff;
    color: #fff;
    border-color: var(--bs-table-border-color);
}

/* Úprava barvy při najetí (hover/focus) v dropdown menu pro Beroun - šedá */
.branch-beroun .dropdown-item:hover,
.branch-beroun .dropdown-item:focus {
    background-color: #e9ecef !important; /* Standardní Bootstrap světle šedá */
    color: #1e2125 !important; /* Standardní Bootstrap tmavý text */
}

/* Úprava barvy při aktivním stavu (kliknutí) v dropdown menu pro Beroun - zelená */
.branch-beroun .dropdown-item:active,
.branch-beroun .dropdown-item.active {
    background-color: #2BAE33 !important;
    color: #ffffff !important;
}