/* ---------------------------------
   PROJECT DIRECTORY
---------------------------------- */
.project-directory {
  max-width: 980px;
}

.project-directory > h2 {
  margin: 0 0 1.5rem;
}

.project-directory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-directory__list li {
  border-bottom: 1px solid var(--line);
}

.project-directory__list a {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--color-text-main);
}

.project-directory__list a:hover,
.project-directory__list a:focus-visible {
  color: var(--blue-700);
  background: transparent;
  transform: none;
  outline: none;
}

.project-directory__list strong {
  line-height: 1.35;
}

.project-directory__arrow {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: 1.1rem;
  line-height: 1.35;
  transition: transform 0.18s ease;
}

.project-directory__list a:hover .project-directory__arrow,
.project-directory__list a:focus-visible .project-directory__arrow {
  transform: translateX(0.2rem);
}

@media (max-width: 620px) {
  .project-directory__list {
    grid-template-columns: 1fr;
  }
}

.contact-group__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-group__heading h3 {
  margin: 0;
}

.count-badge {
  display: inline-flex;
  min-width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  padding-inline: 9px;
  color: var(--blue-700);
  background: var(--surface-blue);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.contact-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-card:hover {
  border-color: #b7d4ee;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-card h4 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.contact-card__purpose {
  min-height: 44px;
  margin-bottom: 14px;
  color: var(--ink-600);
  font-size: 0.9rem;
}

.contact-card--person {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  content-visibility: auto;
  contain-intrinsic-block-size: 230px;
}

.contact-card__body {
  min-width: 0;
}

.contact-card__body .contact-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-photo--directory,
.contact-avatar {
  width: 72px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.contact-photo--directory {
  object-fit: cover;
  object-position: center top;
}

.contact-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue-700);
  background: linear-gradient(145deg, var(--surface-blue), var(--surface-alt));
}

img.contact-avatar {
  padding: 6px;
  object-fit: contain;
  object-position: center;
}

.contact-avatar--female {
  color: var(--magenta-500);
}

.contact-avatar svg {
  width: 48px;
  height: 58px;
  stroke: currentColor;
  stroke-width: 3;
}

.contact-avatar:not(.contact-avatar--service) svg {
  fill: currentColor;
  stroke: none;
}

.contact-avatar--service {
  color: var(--green-500);
}

.contact-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 11px;
}

.contact-role {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--blue-700);
  background: var(--surface-blue);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.35;
}

.contact-card__office {
  margin: 0 0 8px;
  color: var(--ink-600);
  font-size: 0.84rem;
}

.contact-card__dropdown {
  width: min(100%, 290px);
  margin-top: 14px;
  color: var(--ink-600);
  background: var(--surface-alt);
  border: 1px solid color-mix(in srgb, var(--blue-500) 28%, var(--line));
  border-radius: 12px;
  font-size: 0.82rem;
  overflow: hidden;
}

.contact-card__dropdown summary {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: var(--blue-700);
  background: color-mix(in srgb, var(--blue-500) 8%, var(--surface));
  border: 0;
  border-radius: 11px;
  font-weight: 760;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.contact-card__dropdown summary::-webkit-details-marker {
  display: none;
}

.contact-card__dropdown summary::before {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  content: "+";
  color: var(--surface);
  background: var(--blue-700);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
}

.contact-card__dropdown[open] summary::before {
  content: "−";
}

.contact-card__dropdown[open] summary {
  border-radius: 11px 11px 0 0;
}

.contact-card__dropdown summary:hover {
  color: var(--blue-700);
  background: color-mix(in srgb, var(--blue-500) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--blue-500) 45%, var(--line));
}

.contact-card__dropdown summary:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: -3px;
}

.contact-card__dropdown ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 11px 37px;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--blue-500) 22%, var(--line));
  border-radius: 0;
  list-style: none;
}

.contact-card__dropdown li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.contact-card__dropdown li::before {
  content: "•";
  color: var(--blue-700);
  font-weight: 900;
}

[data-theme="dark"] .contact-role {
  color: var(--blue-300);
  background: #193149;
}

[data-theme="dark"] .primary-contact__role,
[data-theme="dark"] .contact-card__dropdown summary,
[data-theme="dark"] .contact-card__dropdown li::before {
  color: var(--blue-300);
}

[data-theme="dark"] .contact-card__dropdown {
  color: var(--ink-700);
  background: #162536;
  border-color: rgba(133, 212, 255, 0.38);
}

[data-theme="dark"] .contact-card__dropdown summary {
  background: rgba(133, 212, 255, 0.08);
}

[data-theme="dark"] .contact-card__dropdown summary:hover {
  color: #bfe4ff;
  background: rgba(133, 212, 255, 0.15);
}

[data-theme="dark"] .contact-card__dropdown summary::before {
  color: #071426;
  background: var(--blue-300);
}

[data-theme="dark"] .contact-card__dropdown ul {
  border-top-color: rgba(133, 212, 255, 0.24);
}

[data-theme="dark"] .contact-avatar {
  border-color: var(--line-strong);
}

.no-results {
  display: none;
  padding: 34px;
  color: var(--ink-600);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.hours-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hours-table th,
.hours-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table th {
  width: 130px;
  color: var(--navy-950);
}

#uredni-hodiny .hours-table td {
  text-align: center;
}

@media (min-width: 901px) {
  #uredni-hodiny .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  }

  #uredni-hodiny .hours-table td {
    white-space: nowrap;
  }
}

.day-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hours-table tr.is-today {
  background: var(--success-bg);
}

.today-badge {
  display: none;
  margin-left: 8px;
  padding: 2px 8px;
  color: var(--success-text);
  background: #d9f1dd;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.is-today .today-badge {
  display: inline-flex;
}

.submission-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 95, 186, 0.18);
  font-size: 0.9rem;
}

.map-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-card__embed {
  position: relative;
}

.external-embed {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071426;
  border-radius: inherit;
}

.external-embed:focus-within {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
}

:is(.about-video, .map-card, .video-frame, .content-embed__frame):has(.external-embed:focus-within) {
  overflow: visible;
}

.external-embed__frame:focus {
  outline: none;
}

.external-embed--map {
  aspect-ratio: 13 / 5;
  min-height: 240px;
}

.external-embed--presentation {
  border-radius: 14px;
}

.external-embed__poster,
.external-embed__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.external-embed__poster {
  object-fit: cover;
}

.external-embed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: rgba(7, 20, 38, 0.18);
  border: 0;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
}

.external-embed__overlay:hover,
.external-embed__overlay:focus-visible {
  background: rgba(7, 20, 38, 0.34);
}

.external-embed__overlay:focus-visible {
  outline: none;
}

.external-embed__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 12px 16px;
  background: rgba(7, 20, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  font-weight: 750;
  line-height: 1.25;
}

.external-embed__icon {
  flex: 0 0 auto;
  width: max(1.35em, var(--embed-icon-size, 1.35em));
  height: max(1.35em, var(--embed-icon-size, 1.35em));
}

.external-embed__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.external-embed__service {
  font-size: 0.85em;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.82);
}

.external-embed.is-active {
  background: #000;
}

.map-card .external-embed__frame {
  height: 100%;
  min-height: 0;
  pointer-events: auto;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
  pointer-events: none;
}

.map-card__embed.is-active iframe {
  pointer-events: auto;
}

.map-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: rgba(7, 20, 38, 0.1);
  border: 0;
  text-align: center;
  transition: background var(--transition);
}

.map-card__overlay:hover,
.map-card__overlay:focus-visible {
  background: rgba(7, 20, 38, 0.18);
}

.map-card__overlay span {
  padding: 10px 16px;
  background: rgba(7, 20, 38, 0.86);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  line-height: 1.2;
}

.map-card__embed.is-active .map-card__overlay {
  display: none;
}

.map-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}

.address-block {
  display: grid;
  gap: 3px;
}

.address-block strong {
  color: var(--navy-950);
}

