:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --primary: #005fb8;
  --primary-dark: #ffffff;
  --text: #1a1a1f;
  --text-muted: #5c5c5c;
  --border: #d0d0dd;
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition-fast: 0.15s ease-out;
  --font-main:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-search {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.search-container.header-search {
  /* display: none; */
}

.search-container-large {
  position: relative;
  width: 100%;
}

.search-container-large .employee-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  border-radius: 999px;
  border: 2px solid #005fb8;
  outline: none;
  background-color: #fff;
}

.search-container-large .employee-search-input::placeholder {
  color: #888;
}

.search-container-large .employee-search-input:focus {
  border-color: #003f80;
  box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.25);
}

.search-container-large .search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.4rem;
  max-height: 18rem;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

.search-results.visible {
  display: block;
}

.search-results:not(.visible) {
  display: none;
}

.search-result-item {
  padding: 0.6rem 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: #f3f3f3;
}

.search-result-name {
  font-weight: 600;
}

.search-result-meta {
  font-size: 0.9rem;
  color: #555;
}

.big-button-grid {
  margin-top: 1.5rem;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  position: relative;
  overflow-x: hidden;

  font-family: var(--font-main);
  color: var(--text);

  background-color: #0e6cc4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.main-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  padding: 0.75rem .5rem;
  background: rgb(53, 114, 194);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  gap: 0.7rem;
}

.header-left {
  flex: 0 0 auto;
}

.logo {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 0.2rem;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--primary-dark);
  border: 1px solid transparent;
  font-size: 1.4rem;
  transition: var(--transition-fast);
  background: transparent;
}

.nav-link:hover {
  border-color: var(--border);
  color: var(--primary-dark);
}

.nav-link.active {
  background: #fff;
  color: #000;
  border-color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.clock {
  min-width: 4.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.search-container {
  position: relative;
}

#employeeSearch {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  min-width: 10rem;
  width: 15rem;
  font-size: 1.2rem;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  display: none;
}

.search-results.visible {
  display: block;
}

.search-result-item {
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.search-result-item:nth-child(odd) {
  background: #fafafe;
}

.search-result-item:hover {
  background: #e6f0ff;
}

.search-result-name {
  font-weight: 600;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* style.css */
.akce-ticker {
  position: relative;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.6rem;
  color: yellow;
  font-weight: 700;
  text-decoration: none;
  max-height: 5rem;
}

#akce-container .akce-ticker-line {
  white-space: nowrap;   /* všechno v jedné řádce */
}

/* style.css – ticker podporuje libovolný <img> uvnitř */
.akce-ticker img {
  height: 2em;
  vertical-align: middle;
  margin-right: 6px;
}
/* style.css – jen odeber podtržení */
.akce-ticker a[data-room] {
  text-decoration: none !important;
}

.akce-ticker > div {
  display: inline-block;
  padding-left: 100%;
  text-decoration: none;
  animation: akceScroll 12s linear infinite;
}

@keyframes akceScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.hero {
  text-align: center;
  margin: 1.2rem 0 1.2rem;
}

.hero h1 {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.hero p {
  margin: 0;
  color: var(--text-muted);
}

.big-button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.big-btn {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-height: 250px;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  text-align: center;
}

.big-btn.as-link {
  text-decoration: none;
  color: inherit;
}

.big-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff, #e3edff);
}

.big-btn-icon {
  width: 75%;
  height: 50%;
  object-fit: contain;
  margin-bottom: 0.6rem;
}

.big-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-btn-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.big-btn-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
}

.content-card h1 {
  margin-top: 0;
}

.code {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 1.5rem;
  background: #f4f4f8;
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
}

.note {
  margin-top: 1rem;
  color: var(--text-muted);
}

.map-controls {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.floor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.floor-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.4rem 1.5rem;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.floor-btn.active,
.floor-btn:hover {
  background: #c40000;
  color: #fff;
  border-color: #c40000;
}

.map-view {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
/* style.css */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.4rem;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: 0.15s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-flag:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.floor-svg {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.map-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.special-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.special-card {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafafe;
  font-size: 0.9rem;
}

.special-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-dialog {

  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.4rem 1rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  max-width: 50rem;
  width: calc(100% - 3rem);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 51;
}

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-content h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .big-button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .big-button-grid {
    grid-template-columns: 1fr;
  }

  .main-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header-right {
    margin-left: auto;
  }

  .special-list {
    grid-template-columns: 1fr;
  }
}

.vk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--primary);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.6rem 0.7rem;
  border-top: 0px solid var(--border);
  user-select: none;
}

.vk.hidden {
  display: none;
}

.vk-row {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  justify-content: center;
}

.vk-row-bottom {
  margin-bottom: 0;
}

.vk button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f4f4f8;
  padding: 0.35rem 0.45rem;
  min-width: 5rem;
  font-size: 3rem;
  cursor: pointer;
  transition:
    background 0.1s ease-out,
    transform 0.05s;
}

.vk button:active {
  background: #dde7ff;
  transform: translateY(1px);
}

.vk-space {
  min-width: 8rem;
}

.btn-kraj-filter {
  padding: 1rem 1.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: #f0f4ff;
  border: 2px solid #c7d6f7;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.15s ease-out;
  min-width: 150px;
  text-align: center;
  color: #003a75;
}

.btn-kraj-filter:hover {
  background: #e0ebff;
  border-color: #a7c0f0;
}

.btn-kraj-filter.active {
  background: #005fb8 !important;
  color: #fff !important;
  border-color: #004a8d !important;
}

#company2ListWrapper {
  margin-top: 1rem;
  font-size: 1.1rem;
}

#modalContent ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#modalContent li {
  margin-bottom: .2rem;
}

/* každý druhý řádek v seznamu zaměstnanců */
#modalContent li:nth-child(odd) {
    background: #dce3ff;
    border-radius: 10px;
}

#modalContent li:nth-child(even) {
    background: #ffffff;
    border-radius: 10px;
}

/* lepší odsazení, aby to nevypadalo nalepené */
#modalContent li {
    padding: 0.8rem 1rem;
}

.emp-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  margin-bottom: 0.15rem;
}
/* doplň do style.css – nový inline blok kontaktů v horní řádce */
.emp-contact {
  margin-left: auto;
  font-size: 0.95rem;
  color: #444;
  white-space: nowrap;
}

.emp-link {
  display: inline-flex;
  align-items: center;
  background: #005fb8 !important;
  padding: 0.25rem 0.8rem !important;
  border-radius: 999px !important;
  border: 2px solid #005fb8 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none !important;
}

.emp-link:hover {
  background: #fff !important;
  color: #005fb8 !important;
}

.emp-position {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1f;
}

.emp-row-bottom {
  font-size: 0.95rem;
  color: #444;
}

#modalContent .kraj-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.emp-detail-name {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 3px solid #005fb8;
  color: #005fb8;
  font-weight: 800;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.emp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.emp-detail-grid > div:nth-child(4n + 1),
.emp-detail-grid > div:nth-child(4n + 2) {
  background-color: #cbdcff;
}

.emp-detail-grid > div {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.emp-detail-label {
  font-weight: 700;
  color: #222;
}

.emp-detail-value {
  color: #000;
}

.emp-detail-section {
  margin-bottom: 1.4rem;
}

.special-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.9rem;
  justify-content: center;
}

.special-filter-btn {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f4f4f8;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.05s;
  min-width: 110px;
  text-align: center;
}

.special-filter-btn:hover {
  background: #e4ebff;
  border-color: #b7c7f0;
}

.special-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(1px);
}

.secretariats {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.secretariat-card {
  border: none;
  border-radius: 14px;
  background: #e6f1ff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.2rem;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.secretariat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  background-color: #f7fbff;
}

.secretariat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #005fb8;
  margin-bottom: 0.3rem;
}

.secretariat-subtitle {
  font-size: 0.98rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.2rem;
}

.secretariat-room {
  font-size: 0.95rem;
  color: #555;
}

.room-detail-title {
  color: #005fb8;
  text-decoration: underline;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.room-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.room-detail-grid > div:nth-child(4n + 1),
.room-detail-grid > div:nth-child(4n + 2) {
  background-color: #cbdcff;
}

.room-detail-grid > div {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.room-detail-label {
  font-weight: 700;
  color: #222;
}

.room-detail-value {
  color: #000;
}

@media (max-width: 900px) {
  .secretariats {
    grid-template-columns: 1fr;
  }
}

main,
header,
.main-wrapper,
.hero,
.big-button-grid,
.secretariats {
  position: relative;
  z-index: 30;
}

.help-card {
  padding: 2rem 2.2rem;
}

.help-title {
  font-size: 2rem;
  font-weight: 800;
  color: #005fb8;
  margin-bottom: 1.2rem;
}

.help-intro {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.help-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003f80;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.help-list {
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.help-list li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.content-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.box {
  position: fixed;
  bottom: 0;
  left: -50vw;
  width: 100%;
  height: 100%;

  transform: rotate(180deg);

  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wave {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  top: 0;
  left: 0;
  border-radius: 43%;
  background: #0af;
  animation: drift 9s infinite linear;
  transform-origin: 50% 48%;
}

.wave.-three {
  animation: drift 10s infinite linear;
  background-color: #77daff;
}

.wave.-two {
  animation: drift 8s infinite linear;
  opacity: 0.1;
  background: black;
}

.box:after {
  content: "";
  display: block;
  width: 120%;
  height: 120%;
  transform: translate3d(0, 0, 0);
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  from {
    transform: rotate(360deg);
  }
}

.contain {
  animation-delay: 4s;
  z-index: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.icon {
  width: 100px;
  height: 100px;
  margin: 0 5px;
}

.icon:nth-child(2) img {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.icon:nth-child(3) img {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.icon:nth-child(4) img {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.icon img {
  -webkit-animation: anim 2s ease infinite;
  animation: anim 2s ease infinite;
  -webkit-transform: scale(0, 0) rotateZ(180deg);
  transform: scale(0, 0) rotateZ(180deg);
}

@-webkit-keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0;
  }
  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }
  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }
  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0;
  }
}

@keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0;
  }
  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }
  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }
  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0;
  }
}
