/* -------------------------- */
/*          ROOT COLORS       */
/* -------------------------- */
:root {
    --primary-color: #e4edf7;
    --secondary-color: #459afa;
    --third-color: #13c3cf;
    --p-font-color: #212529;
    --font-family: Arial, sans-serif;
}


/* -------------------------- */
/*       BASIC LAYOUT         */
/* -------------------------- */
html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    flex-direction: column;
    background-color: var(--primary-color);
    font-family: var(--font-family);
}



footer {
    flex-shrink: 0;
    text-align: center;
}

footer p i {
    width: 20px;
    display: inline-block;
}


/* -------------------------- */
/*       TYPOGRAPHY           */
/* -------------------------- */
p, li, h2, label, h5 {
    color: var(--p-font-color);
}

.header-title {
    color: var(--p-font-color);
    font-size: 1.8rem;
    font-weight: bold;
}


/* -------------------------- */
/*        NAVIGATION          */
/* -------------------------- */
.navbar {
    background-color: var(--secondary-color) !important;
    z-index: 1030; /* stejně jako Bootstrap navbar */
}

.navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: center;
}

.navbar-toggler-icon {
    filter: invert(100%);
}

.nav-link {
    color: #ffffff !important;
    position: relative;
    text-decoration: none !important;
    display: inline-block;
}

.nav-link:hover {
    color: var(--p-font-color) !important;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transform-origin: center center;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}


.navbar-nav .nav-link {
    color: #fff;
}

.navbar-nav .nav-link:hover {
    text-decoration: none; /* odstraněno underline z původního hover */
}

.nav-link.active {
    color: var(--p-font-color) !important;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}


/*     MOBILE NAVIGATION      */
/* -------------------------- */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #459afa;
  z-index: 1050;
  padding-top: 4rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-overlay .nav-link {
  font-size: 1.5rem;
  padding: 1rem;
  color: white !important;
  position: relative;
}

/* Animace bílé čáry pod textem */
.mobile-menu-overlay .nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transform-origin: center center;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.mobile-menu-overlay .nav-link:hover::after {
  transform: scaleX(1);
}

/* ✖ Zavírací tlačítko */
.close-overlay-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  z-index: 1051;
  cursor: pointer;
}


/* -------------------------- */
/*         BUTTONS            */
/* -------------------------- */
.btn {
    padding: 6px 12px;
    margin: 5px;
}

.btn-primary {
    background-color: #007bff;
}

.btn-success {
    background-color: #28a745;
}

.btn-info {
    background-color: #17a2b8;
}

/* Custom button styles from Custom1 */
.btn-custom {
    background: #28a745;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.btn-custom:hover {
    background: #218838;
    transform: scale(1.05);
}
.btn-danger-custom {
    background: #dc3545;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.btn-danger-custom:hover {
    transform: scale(1.05);
}
.btn-light-custom {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.btn-light-custom:hover {
    transform: scale(1.05);
}


/* -------------------------- */
/*        FORMS               */
/* -------------------------- */
.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: #ccc;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);
    background: white;
}

.custom-modal label {
    font-weight: bold;
    color: var(--p-font-color);
    margin-bottom: 5px;
    display: block;
}

.custom-modal textarea {
    min-height: 120px;
    resize: vertical;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-modal input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    accent-color: var(--secondary-color);
    vertical-align: middle;
}

.custom-modal .checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.custom-modal .checkbox-container label {
    margin-bottom: 0;
    margin-left: 5px;
}


.custom-file-input::-webkit-file-upload-button {
    display: none !important;
}
.custom-file-input::file-selector-button {
    display: none !important;
}
.custom-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.custom-file-label {
    background: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    font-size: 16px;
    position: relative;
}

.custom-file-label::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.custom-file-label:hover {
    background: var(--third-color);
    transform: scale(1.05);
}

.custom-file-label i {
    margin-right: 8px;
}


/* -------------------------- */
/*         MODALS             */
/* -------------------------- */
.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal-backdrop.show {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.7);
}

.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.custom-modal {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 2px solid var(--secondary-color);
    animation: slideIn 0.3s ease-out;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--secondary-color);
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: var(--third-color);
    transform: scale(1.1);
}


/* -------------------------- */
/*         COLLAPSE           */
/* -------------------------- */
.card-collapse {
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.card-collapse:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-collapse > .collapse {
    overflow: hidden;
}

img.alignright {
    float: right;
    max-width: 100%;
    height: auto;
    margin-left: 1rem;
}

.card-collapse img {
    max-width: 100%;
    height: auto;
}

.collapse-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.collapse-toggle:focus {
    outline: none;
    box-shadow: none;
}

.collapse-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.collapse.show + .collapse-icon,
.collapse-toggle[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.rotate-up {
    transform: rotate(180deg);
}


/* -------------------------- */
/*       ANIMATIONS           */
/* -------------------------- */
@keyframes slideIn {
    0% {
        transform: translateY(500px);
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}


/* -------------------------- */
/*        OVERRIDES           */
/* -------------------------- */
.tox-statusbar__path-item {
    display: none !important;
}

.navbar-toggler {
  margin: 0 auto;
  display: block;
}

#headerSections {
  text-align: center;
}

#headerSections .nav-link {
  text-align: center;
}
html {
  width: 100%;
  overflow-x: hidden;
}

#fontFamily {
  height: 50px;
}

/* -------------------------- */
/*        MAP LAYOUT          */
/* -------------------------- */
.map-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.title-container {
    flex: 1;
    min-width: 300px;
}

.title-container h2 {
    margin-bottom: 15px;
}

.info-container {
    padding: 15px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .map-title-row {
        flex-direction: column;
    }

    .map-container,
    .title-container {
        flex: none;
        width: 100%;
    }

    /* Adjust nav-link hover and active for mobile to reduce brightness */
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.5);
    }

    /* Make card background less opaque on mobile so it's less bright */
    .card-collapse {
        background-color: rgba(248,249,250,0.85);
    }
}
		