/**
 * Public Layout Styles - Bootstrap 5 Municipal Design
 * Font: Space Grotesk
 */

@font-face {
    font-family: 'Space Grotesk';
    src: local('Space Grotesk Regular'), local('SpaceGrotesk-Regular'),
        url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ecedef;
}

.border-primary {
    border-color: #DAD9D8 !important;
}

a {
    text-decoration: none;
}

img[src*="pdf-icon"] {
    width: 40px !important;
    height: auto;
}

.d-flex:has(img[src*="pdf-icon"]) > p {
    margin-bottom: 0;
}

a:hover, #wrapper a:active {
    color: rgb(79, 79, 79);
}

a, a:visited {
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
    color: #090403;
}

.rounded-16 {
    border-radius: 16px;
}

.rounded-end-16 {
    border-bottom-right-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.bg-gray {
    background-color: rgba(218, 217, 216, .4);
}

.pdf-document img{
    width: 40px;
}

.pdf-document p{
    margin-bottom: 0px !important;
}

/* Navbar styling */
.navbar-municipal {
    background: #0F4F8A;
    padding: 0.875rem 0;
}

/* Full-width navigation bar — sits below the white header frame card */
.navbar-fullwidth {
    padding: 0 !important;
    min-height: 80px; /* minimum 80px tall */
}
.navbar-fullwidth > .container {
    align-items: stretch;
    min-height: 80px;
}
.navbar-fullwidth .navbar-collapse {
    align-items: stretch;
}
.navbar-fullwidth .navbar-nav {
    align-items: stretch;
}
.navbar-fullwidth .nav-item {
    display: flex;
    align-items: stretch;
}
.navbar-fullwidth .nav-link {
    display: flex;
    align-items: center;
    padding: 0 18px !important; /* vertical spacing handled by min-height on parent */
    border-bottom: 3px solid transparent;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
}
.navbar-fullwidth .nav-link:hover,
.navbar-fullwidth .nav-link:focus {
    background-color: rgba(255,255,255,0.12) !important;
    border-radius: 0 !important;
}
.navbar-fullwidth .nav-link.active {
    background-color: transparent !important;
    border-bottom-color: #A89B34 !important;
    border-radius: 0 !important;
    color: #fff !important;
}

.navbar-municipal .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-municipal .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-municipal .nav-link:hover,
.navbar-municipal .nav-link:focus {
    color: #fff;
    background-color: rgba(255,255,255,.1);
    border-radius: 0.25rem;
}

.navbar-municipal .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,.15);
    border-radius: 0.25rem;
}

.navbar-municipal .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
    padding: 0.5rem 0;
    min-width: 280px;
}

.navbar-municipal .dropdown-item {
    padding: 0.95rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #212529;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-municipal .dropdown-item:hover,
.navbar-municipal .dropdown-item:focus {
    background-color: #f0f6fc;
    color: #0F4F8A;
}

.navbar-municipal .dropdown-item.active,
.navbar-municipal .dropdown-item:active {
    background-color: #e8f0f9;
    color: #0F4F8A;
}

/* ── Header frame (Design A2 — Bootstrap) ─────────────────── */

/* Full-width white utility bar */
.header-outer {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Frame — no card styling, full-width white */
.header-frame {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Logo */
.header-logo-img { height: 80px; width: auto; display: block; }

/* Search wrapper — centers the input-group with max-width */
.header-search-wrap { max-width: 520px; margin: 0 auto; }

/* Search input-group override */
.header-search {
    border: 1px solid #d4d4d4 !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.header-search .form-control {
    font-size: 14px;
    padding: 9px 14px;
    background: transparent;
}
.header-search .form-control::placeholder { color: #9a9a9a; }
.header-search .form-control:focus { box-shadow: none !important; }

/* Search submit button */
.btn-site-search {
    background: #A89B34;
    color: #fff !important;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 !important;
    white-space: nowrap;
}
.btn-site-search:hover,
.btn-site-search:focus { background: #8a7f2b; color: #fff !important; }

/* ── Language button ── */
.hdr-lang-btn {
    border: 1px solid #d4d4d4 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #090403 !important;
    background: transparent !important;
    white-space: nowrap;
    transition: background 160ms, border-color 160ms;
}
.hdr-lang-btn:hover,
.hdr-lang-btn:focus { background: #f5f5f0 !important; color: #090403 !important; }
.hdr-lang-btn.show,
.hdr-lang-btn[aria-expanded="true"] {
    background: #f5f5f0 !important;
    border-color: #0F4F8A !important;
    color: #090403 !important;
}
/* Hide Bootstrap's default caret — we use BI chevron */
.hdr-lang-btn::after { display: none !important; }

/* ── User button ── */
.hdr-user-btn {
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    padding: 4px 10px 4px 4px !important;
    font-size: 14px;
    font-weight: 500;
    color: #090403 !important;
    background: transparent !important;
    white-space: nowrap;
    transition: background 160ms, border-color 160ms;
}
.hdr-user-btn:hover,
.hdr-user-btn:focus {
    background: #f5f5f0 !important;
    border-color: #d4d4d4 !important;
    color: #090403 !important;
}
.hdr-user-btn.show,
.hdr-user-btn[aria-expanded="true"] {
    background: #f5f5f0 !important;
    border-color: #0F4F8A !important;
    color: #090403 !important;
}
.hdr-user-btn::after { display: none !important; }

/* Chevron rotation when open (Bootstrap sets aria-expanded) */
.hdr-chevron {
    font-size: 11px;
    opacity: 0.6;
    transition: transform 160ms;
}
.hdr-lang-btn[aria-expanded="true"] .hdr-chevron,
.hdr-user-btn[aria-expanded="true"] .hdr-chevron { transform: rotate(180deg); }

/* Avatar circle */
.hdr-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0F4F8A;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* ── Dropdown panels ── */
.hdr-lang-menu,
.hdr-user-menu {
    border-radius: 12px !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.04) !important;
    padding: 6px !important;
    margin-top: 6px !important;
}
.hdr-lang-menu { min-width: 170px; }
.hdr-user-menu { min-width: 240px; }

/* Language options */
.hdr-lang-opt {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #090403 !important;
}
.hdr-lang-opt:hover,
.hdr-lang-opt:focus { background: rgba(15,79,138,0.06) !important; color: #090403 !important; }
.hdr-lang-opt.active,
.hdr-lang-opt:active { background: rgba(15,79,138,0.08) !important; color: #090403 !important; }
.hdr-lang-code {
    font-weight: 700;
    width: 28px;
    color: #0F4F8A;
    letter-spacing: 0.04em;
    font-size: 12px;
    flex-shrink: 0;
}

/* User dropdown header (name + email) */
.hdr-user-name { font-size: 14px; font-weight: 600; color: #090403; }
.hdr-user-email { font-size: 12px; }

/* User dropdown items */
.hdr-menu-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #090403 !important;
}
.hdr-menu-item:hover,
.hdr-menu-item:focus { background: rgba(15,79,138,0.06) !important; color: #090403 !important; }
.hdr-menu-item i { font-size: 16px; color: #0F4F8A; width: 18px; flex-shrink: 0; }
.hdr-logout,
.hdr-logout:hover,
.hdr-logout:focus { color: #b03030 !important; }
.hdr-logout i { color: #b03030 !important; }

.hdr-badge-count {
    background: #A89B34 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600;
    border-radius: 999px !important;
    padding: 2px 7px !important;
}

/* Hero image styling */
.hero-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

/* Quick Links */
.quick-links {
    background: #0F4F8A;
    padding: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,.1);
    min-height: 180px;
}

.quick-link-item:last-child {
    border-right: none;
}

.quick-link-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.quick-link-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.quick-link-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}

.quick-link-item:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.quick-link-item:hover i,
.quick-link-item:hover h3 {
    color: #fff;
}

/* Main content styling */
.main-content {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Breadcrumbs styling */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    padding: 0.5rem 0;
}

.breadcrumb-link {
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #212529;
}

.breadcrumb-separator {
    color: #6c757d;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 400;
}

/* Bootstrap breadcrumb override */
.breadcrumb-item a {
    color: #212529;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #212529;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 400;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Page Title Section */
.page-title-section {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
}

.page-title-section h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

/* Card styling */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    background-color: #DAD9D8;
}

/* Aktuality Section - Modern Card Design */
.aktuality-section {
    margin-bottom: 3rem;
}

.section-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}

.view-all-link {
    color: #0F4F8A;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #0a3a5e;
}

.view-all-link i {
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.article-card-modern {
    background: #f5f5f0;
    padding: 1.75rem;
    border-radius: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.article-card-title,
a.article-card-title,
.article-card-title a {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.article-card-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.article-card-excerpt {
    color: #495057;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-viac {
    display: inline-block;
    background: #9b8b3d;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.btn-viac:visited {
    color: #fff;
}

.btn-viac:hover {
    background: #887a35;
    color: #fff;
}

/* Office Hours Block Styling */
.office-hours-block {
    background-color: #f8f9fa;
}

.office-hours-title {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    border-left: 4px solid #212529;
    padding-left: 1rem;
    margin-bottom: 2rem;
}


.office-hours-row {
    font-size: 1.25rem;
}

.day-name {
    font-size: 1.125rem;
    color: #212529;
}

.time-slot {
    font-size: 1.125rem;
    color: #212529;
    min-width: 140px;
}

.time-slot.closed-day {
    color: #c9a961;
    font-weight: 500;
}

.office-hours-img {
    object-fit: cover;
    min-height: 400px;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Documents page */
.doc-filetype-icon {
    font-size: 2rem;
    color: #212529;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .doc-filetype-icon { font-size: 1.25rem; }
    .doc-table .d-flex.gap-3 { gap: 0.5rem !important; }
    .doc-table .d-flex > div { min-width: 0; }
    .doc-table tbody td { padding: 0.625rem 0.5rem; }
    .btn-doc-download {
        min-width: 2.25rem;
        min-height: 2.25rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}

.doc-size-badge {
    background-color: #4a4a4a;
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.doc-table thead th {
    background-color: #DAD9D8;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    font-weight: 600;
    padding: 1rem 0.75rem;
}

.doc-table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}

.btn-doc-download {
    background-color: #A89B34;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-doc-download:hover {
    background-color: #8a7f2b;
    color: #fff;
}

/* Content components — accordion (native <details>/<summary>, see PurifyHelper) */
details.component-accordion {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

details.component-accordion summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

details.component-accordion summary::-webkit-details-marker {
    display: none;
}

details.component-accordion[open] summary {
    margin-bottom: 0.5rem;
}

.doc-cat-item.active {
    background-color: #ECECEC !important;
    border-color: #ECECEC !important;
    color: #212529 !important;
}

.doc-cat-item.active i {
    color: #212529;
}

/* Footer styling */
.site-footer {
    background: #0F4F8A;
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.site-footer .contact-info {
    line-height: 1.8;
}

.site-footer .contact-info i {
    width: 24px;
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    /* Header utility row: search moves to 2nd row on mobile */
    .header-utility-row { flex-wrap: wrap; gap: 10px !important; padding: 14px 16px !important; }
    .header-logo-img { height: 56px; }
    .header-search-wrap {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }
    .navbar-fullwidth { padding: 0 !important; }
    .navbar-fullwidth .nav-link { padding: 10px 8px !important; border-bottom: none !important; }
    .navbar-fullwidth .navbar-collapse.show { padding-bottom: 10px; }
}

@media (max-width: 991.98px) {
    .office-hours-content {
        border-radius: 0.5rem !important;
    }

    .office-hours-img {
        border-radius: 0.5rem;
        min-height: 300px;
    }

    .office-hours-title {
        font-size: 1.75rem;
    }

    .office-hours-row {
        font-size: 1rem;
    }

    .day-name,
    .time-slot {
        font-size: 1rem;
    }

    .time-slot {
        min-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .quick-link-item {
        padding: 1.5rem 1rem;
        min-height: 150px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .quick-link-item i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .quick-link-item h3 {
        font-size: 0.9rem;
    }

    .quick-link-item p {
        font-size: 0.8rem;
    }

    .quick-links .row > div:last-child .quick-link-item {
        border-bottom: none;
    }

    .office-hours-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .office-hours-row .time-slot {
        text-align: left !important;
    }

    .main-content {
        padding: 1rem;
    }
}

/* =============================================
   3-level flyout submenu
   ============================================= */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    z-index: 1021;
    margin-top: -1px;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08) !important;
    padding: 0.5rem 0 !important;
}

.dropdown-submenu:hover > .dropdown-submenu-panel,
.dropdown-submenu:focus-within > .dropdown-submenu-panel {
    display: block;
}

.dropdown-submenu:hover > .dropdown-submenu-toggle,
.dropdown-submenu:focus-within > .dropdown-submenu-toggle {
    background-color: #f0f6fc;
    color: #0F4F8A;
}

.dropdown-submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dropdown-submenu-toggle .bi-chevron-right {
    opacity: 0.6;
    flex-shrink: 0;
}

/* Mobile: level-2 dropdown panels flow inline (no Popper float) */
@media (max-width: 991.98px) {
    /* Column layout so the dropdown menu stacks below its toggle */
    .navbar-fullwidth .nav-item.dropdown {
        flex-direction: column;
    }

    /* Override Popper absolute positioning — menu flows in the document */
    .navbar-fullwidth .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        min-width: 0;
        width: 100%;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    /* Level-2 items: white text on the blue navbar background */
    .navbar-fullwidth .navbar-nav .dropdown-menu > li > .dropdown-item {
        color: rgba(255,255,255,.85) !important;
        padding-left: 1.5rem !important;
        border-radius: 0 !important;
    }
    .navbar-fullwidth .navbar-nav .dropdown-menu > li > .dropdown-item:hover,
    .navbar-fullwidth .navbar-nav .dropdown-menu > li > .dropdown-item:focus {
        background-color: rgba(255,255,255,.1) !important;
        color: #fff !important;
    }

    /* Rotate chevron when submenu is open on mobile */
    .dropdown-submenu-toggle.submenu-open .bi-chevron-right {
        transform: rotate(90deg);
        transition: transform 0.2s ease;
    }

    /* Level-3 panel: stacked below, indented */
    .dropdown-submenu-panel {
        position: static;
        left: auto;
        top: auto;
        margin-left: 1rem;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
    .navbar-fullwidth .navbar-nav .dropdown-submenu-panel .dropdown-item {
        color: rgba(255,255,255,.7) !important;
        padding-left: 2.5rem;
        font-size: 0.875rem;
        border-radius: 0 !important;
    }
    .navbar-fullwidth .navbar-nav .dropdown-submenu-panel .dropdown-item:hover,
    .navbar-fullwidth .navbar-nav .dropdown-submenu-panel .dropdown-item:focus {
        background-color: rgba(255,255,255,.1) !important;
        color: #fff !important;
    }
}

/* --- Two-column dropdown for menus with > 10 items (desktop only) --- */
@media (min-width: 992px) {
    .navbar-municipal .dropdown-menu-cols-2 {
        min-width: 520px;
        grid-template-columns: 1fr 1fr;
        padding: 0.5rem 0;
    }
    .navbar-municipal .dropdown-menu-cols-2.show {
        display: grid;
    }
}

/* --- Article detail — featured image hero --- */
.article-hero {
    width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f8f9fa;
    text-align: center;
}
.article-hero img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
}

/* --- Reservation page buttons --- */
.btn.btn-rezervacia {
    background-color: #0F4F8A;
    border-color: #0F4F8A;
    color: #fff;
}
.btn.btn-rezervacia:hover,
.btn.btn-rezervacia:focus {
    background-color: #0d4478;
    border-color: #0d4478;
    color: #fff;
}
.btn.btn-rezervacia:disabled,
.btn.btn-rezervacia[disabled] {
    background-color: #0F4F8A;
    border-color: #0F4F8A;
    color: #fff;
    opacity: 0.55;
}
.btn.btn-spat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

/* --- Calendar navigation arrows --- */
.btn-cal-nav {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #555;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.btn-cal-nav:hover,
.btn-cal-nav:focus {
    background-color: #e0e0e0;
    border-color: #aaa;
    color: #333;
}

/* --- Calendar day cursor --- */
.calendar-day {
    cursor: default;
    padding: 0.35rem 0.25rem;
}
.calendar-day[data-date] {
    cursor: pointer;
}

/* --- Links inside page content --- */
.page-content a {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.page-content a:hover {
    color: #0a58ca;
}

/* --- Pagination (Bootstrap override) --- */
.pagination .page-link {
    color: #0F4F8A;
}
.pagination .page-link:hover {
    color: #0a3a66;
    background-color: #eaf1f8;
    border-color: #dee2e6;
}
.pagination .page-link:focus {
    color: #0a3a66;
    box-shadow: 0 0 0 0.25rem rgba(15, 79, 138, 0.25);
}
.pagination .page-item.active .page-link {
    background-color: #0F4F8A;
    border-color: #0F4F8A;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
}
