/* =============================================================================
   main.css – all styles of the Medipoint HM website (one file)
   =============================================================================

   SECTIONS (search for "#region" to jump between them):
     Font + variables ........ font, colours used everywhere
     Reset ................... removes default browser styles
     Icons ................... size of the small SVG icons (class "pi")
     PrimeFlex subset ........ grid / spacing helper classes (see below)
     Drawer .................. left sidebar menu + mobile slide-in menu
     Mobile header bar ....... top bar visible on small screens
     Layout + typography ..... headings, page width
     Home – intro / content .. home page (video, news)
     O nás, Služby, Ordinace . styles of the individual pages
     Map ..................... map box on the clinic pages

   SCREEN SIZES ("breakpoints"):
     The main switch is at 1200 px:
       > 1200 px  desktop – menu is a fixed sidebar on the left
       ≤ 1200 px  mobile/tablet – menu hidden, top bar with hamburger button
     "@media (max-width: 900px) { … }" = rules applied only on screens ≤ 900 px.

   HELPER CLASSES used in the HTML (from the PrimeFlex library):
     grid + col-12 md:col-6 … 12-column layout. "col-12" = full width on phones,
                              "md:col-6" = half width on screens ≥ 768 px.
     mt-5, mb-3, ml-4, pr-1 … margin/padding: m = margin, p = padding,
                              t/b/l/r = top/bottom/left/right, number = size
                              (1 = 0.25rem, 3 = 1rem, 4 = 1.5rem, 5 = 2rem, 6 = 3rem, 7 = 4rem)
     opacity-60 ............. 60 % opacity

   CACHE: after editing this file you don't need to do anything special –
   the PHP function asset() changes the file URL (?v=…) automatically.
   ============================================================================= */

/* #region Font + variables */

/* Inter – variable font: one file contains all weights 100–900. */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

/* CSS variables – define a value once, use it anywhere with var(--name).
   Change --ac-color to change the main (accent) colour of the whole site. */
:root {
  --ac-color: #2ea1b1;
  --headerbar-sticky-background: rgba(46, 161, 177, 0.65);
  --a-general-href-color: #2d98f6;
  --error-font-color: #721c24;
  --error-bg-color: #f8d7da;
  --error-border: 1px solid #f5c6cb;
  --drawer-width: 300px;
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  font-family: "InterVariable", "Inter", sans-serif;
  font-optical-sizing: auto;
}
/* #endregion */

/* #region Reset – remove default browser margins/paddings so all browsers look the same */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, var, b, u, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header,
hgroup, menu, nav, output, section, summary, time, mark, audio, video, picture {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-family: "InterVariable", sans-serif;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1;
  position: relative;
  padding: 0;
  color: #000;
  background: #fff;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--a-general-href-color);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ac-color);
  outline-offset: 2px;
}

ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: none; }

table { border-collapse: collapse; border-spacing: 0; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

abbr[title] { text-decoration: none; }

img, video { max-width: 100%; height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* When jumping to an anchor (e.g. /#novinky), leave space for the fixed mobile top bar. */
[id] { scroll-margin-top: 4.5rem; }
/* #endregion */

/* #region Icons (inline SVG, replaces the PrimeIcons font) */
.pi {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
/* #endregion */

/* #region PrimeFlex subset (only the classes the site uses) */
.grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
}
.grid > [class*="col-"] { box-sizing: border-box; }
.col-12 { flex: 0 0 auto; padding: 0.5rem; width: 100%; }

.pr-1 { padding-right: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mt-6 { margin-top: 3rem !important; }
.mt-7 { margin-top: 4rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.opacity-60 { opacity: 0.6 !important; }
.block { display: block !important; }

@media screen and (min-width: 768px) {
  .md\:col-4 { flex: 0 0 auto; padding: 0.5rem; width: 33.3333%; }
  .md\:col-5 { flex: 0 0 auto; padding: 0.5rem; width: 41.6667%; }
  .md\:col-6 { flex: 0 0 auto; padding: 0.5rem; width: 50%; }
  .md\:col-7 { flex: 0 0 auto; padding: 0.5rem; width: 58.3333%; }
  .md\:col-8 { flex: 0 0 auto; padding: 0.5rem; width: 66.6667%; }
  .md\:pr-6 { padding-right: 3rem !important; }
  .md\:mt-0 { margin-top: 0 !important; }
}
/* #endregion */

/* #region Skip link – hidden above the page, slides in when focused with the Tab key
   "fixed" (not "absolute") on purpose: <body> is position: relative, and on
   subpages the top margin of the first content block collapses through <main>
   and <body>, moving the body's top edge down by ~80 px. An absolute link would
   then sit at -100 + 80 = -20 px and peek into the page. "fixed" measures from
   the browser window, so the link stays fully hidden on every page. */
.skipLink {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #176b77;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.skipLink:focus { top: 1rem; }
/* #endregion */

/* #region Drawer (sidebar navigation)
   HTML: includes/layout/nav.php   JS (open/close): assets/js/main.js
   Desktop: fixed 300 px sidebar. Mobile: moved off-screen to the left
   (translateX(-100%)) and slid in when <body> has class "drawer-open". */
.p-drawer-left .p-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: var(--drawer-width);
  height: 100vh;
  height: 100dvh;
  padding: 1rem 0.7rem;
  background: #2b8f9d url("../img/drawerbg.jpg") no-repeat 0 0 / cover;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
}

.p-drawer-left .p-drawer a { color: #fff; }

.p-drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.3rem 0 0 0.7rem;
}

.p-drawer-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s;
}
.p-drawer-close-button:hover { background-color: rgba(255, 255, 255, 0.15); }
.p-drawer-close-button .pi { width: 25px; height: 25px; }

.p-drawer-content {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.drawerLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0 0;
  text-align: center;
}

.drawerLogo a {
  color: #fff;
  text-decoration: none;
}

.drawerLogo img {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.drawerLogo span {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
}

.drawerLogo em {
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin: 1.3rem 0 0 0;
}

.p-drawer-left .nav {
  list-style-type: none;
  text-align: center;
  position: absolute;
  top: 48%;
  left: 0;
  width: 100%;
}

.p-drawer-left .nav li { padding: 0.6rem 0; }

.p-drawer-left .nav li a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: all 0.3s linear;
}

.p-drawer-left .nav li a:hover { opacity: 1; }

.p-drawer-left .nav li.active a {
  opacity: 1;
  font-weight: 700;
}

/* Nav entrance (replaces anime.js stagger) – only on the first page view of a session */
@keyframes navIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-anim .p-drawer-left .nav li { animation: navIn 0.225s cubic-bezier(0.25, 1, 0.5, 1) both; }
.nav-anim .p-drawer-left .nav li:nth-child(1) { animation-delay: 0.025s; }
.nav-anim .p-drawer-left .nav li:nth-child(2) { animation-delay: 0.15s; }
.nav-anim .p-drawer-left .nav li:nth-child(3) { animation-delay: 0.275s; }
.nav-anim .p-drawer-left .nav li:nth-child(4) { animation-delay: 0.4s; }
.nav-anim .p-drawer-left .nav li:nth-child(5) { animation-delay: 0.525s; }
.nav-anim .p-drawer-left .nav li:nth-child(6) { animation-delay: 0.65s; }

.p-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s linear 0.4s;
}

@media screen and (min-width: 1201px) {
  .p-drawer-header { display: none !important; }
  .p-drawer-mask { display: none; }
}

@media screen and (max-width: 1200px) {
  .drawerLogo img { height: 50px; }

  .drawerLogo span {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .drawerLogo em {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0.6rem 0 0 0;
    opacity: 0.7;
  }

  .p-drawer-left .nav { top: 38%; }

  /* Off-canvas */
  .p-drawer-left .p-drawer {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-drawer), visibility 0s linear 0.5s;
  }

  .drawer-open .p-drawer-left .p-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s var(--ease-drawer);
  }

  .drawer-open .p-drawer-mask {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s;
  }

  body.drawer-open { overflow: hidden; }
}
/* #endregion */

/* #region Mobile header bar – hidden on desktop, shown at ≤ 1200 px.
   main.js adds class "reveal" (shadow) once the page is scrolled. */
#header {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.7rem;
  line-height: 3.55rem;
  background-color: var(--headerbar-sticky-background);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
  cursor: default;
  z-index: 100;
  padding-left: 1rem;
  align-items: center;
  transition: box-shadow 0.2s;
}

#header.reveal { box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.425); }

#header .mobileMenu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 14px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  color: #fff;
}

#header > .logo {
  display: flex;
  align-items: center;
  width: fit-content;
  position: absolute;
  left: 60px;
}

#header > .logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

#header > .logo img {
  height: 30px;
  width: 50px;
  margin: 0;
  filter: brightness(0) invert(1);
}

#header > .logo span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
}

@media (max-width: 1200px) {
  #header {
    display: flex;
    place-items: center;
  }
}
/* #endregion */

/* #region Layout + typography */

/* Page content. On desktop it is pushed right by the width of the sidebar. */
main {
  margin: 0 auto;
  width: 100%;
  padding: 0 0 0 var(--drawer-width);
  position: relative;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 3rem 0;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 1px;
}

p { line-height: 1.6; }

.mainContainer {
  display: block;
  margin: 5rem auto;
  max-width: 1100px;
}

/* Page heading with gradient-coloured text (background clipped to the letters)
   and a short gradient line under it (::after). */
.mainContainer h1 {
  position: relative;
  width: fit-content;
  background: linear-gradient(to right, #176b77, #2e95a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4rem;
  padding-top: 0.5rem;
}

.mainContainer h1::after {
  content: '';
  display: block;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 30%;
  height: 3px;
  background: linear-gradient(to right, #a1e0e9, #2c9caa);
}

@media (max-width: 1470px) {
  .mainContainer { padding-left: 2rem; }
}

@media (max-width: 1200px) {
  main { padding: 3rem 1.5rem 0 1.5rem; }
  main:has(.introBox) { padding: 0; }

  .mainContainer {
    margin-top: 3rem;
    padding-left: unset;
  }

  .mainContainer h1 { font-size: 2rem; }

  h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
  }
}

@media (max-width: 730px) {
  .mainContainer h1 {
    font-size: 1.8rem;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  .mainContainer h1 { font-size: 1.5rem; }
}
/* #endregion */

/* #region Home – intro (video background with the doctors' names sliding in) */
.introBox {
  width: 100%;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: #cfe7ea;
}

.introBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.introBox .titlesWrap {
  position: absolute;
  left: 3rem;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.introBox .titlesWrap h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  opacity: 1;
  text-transform: none;
  font-size: 1rem;
  letter-spacing: normal;
  font-weight: 300;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(150px); }
  to   { opacity: 1; transform: translateX(0); }
}

.introBox .titleLine {
  display: block;
  width: fit-content;
  line-height: 1;
  border-radius: 3px;
  animation: slideInRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.introBox h1 .titleLine {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--ac-color);
  padding: 1rem;
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.introBox h1 .titleLine:nth-child(1) { animation-delay: 0.1s; }
.introBox h1 .titleLine:nth-child(2) { animation-delay: 0.35s; }

.introBox .titleSub {
  background-color: rgba(46, 161, 177, 0.75);
  color: #fff;
  padding: 0.5rem 1.3rem;
  font-weight: 100;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin: 0.5rem 0 0 0;
  animation-delay: 0.6s;
}
/* #endregion */

/* #region Home – content + news */
.contentBox {
  padding: 4rem 1rem 2rem 1rem;
  margin: 0 auto;
  max-width: 1100px;
}

.contentBox h2 { 
  margin-bottom: 3rem;
  width: fit-content;
    background: linear-gradient(to right, #176b77, #2e95a4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 0.2rem;
    position: relative;
}

.contentBox h2::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 30%;
    height: 3px;
    background: linear-gradient(to right, #a1e0e9, #2c9caa);
}

.aboutBox img {
  display: block;
  margin: 2rem auto 0 auto;
  max-width: 100%;
}

.aboutBox a {
  font-size: 0.9rem;
  white-space: nowrap;
}

.aboutBox a .pi {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  vertical-align: -0.05em;
}

/* Quick links under the about text. On desktop they sit centred on one line
   ("Služby a ceník • Ordinace …"); the "•" separators are drawn by CSS below.
   On phones (≤ 767 px) they become a normal bullet list – see the media query. */
.aboutLinks ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.6rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
}

/* Same text size as the paragraph above (undoes the smaller ".aboutBox a" size) */
.aboutLinks a { font-size: inherit; }

/* "•" in front of every link except the first one */
.aboutLinks li + li::before {
  content: '•';
  color: #2c9caa;
  font-size: 0.8rem;
  margin-right: 0.6rem;
}

.novinkaBox {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.novinkyWrap .novinkaBox:first-child {
  padding-top: 0;
  border-top: none;
}

.novinkaBox h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  line-height: 1.6rem;
}

.novinkaBox h3 a {
  color: #000;
}

.novinkaBox .datum {
  font-size: 0.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  margin: 0 0 1rem 0;
  opacity: 0.6;
}

.novinkaBox .datum .pi {
  font-size: 0.9rem;
  margin-right: 0.4rem;
  opacity: 0.4;
  vertical-align: -0.1em;
}

/* ":target" = the news item whose anchor is in the URL (e.g. /#novinka-xyz) → underline its title. */
.novinkaBox:target h3 a { text-decoration: underline; text-underline-offset: 4px; }

/* Text of a news item (HTML written in the database).
   white-space: pre-line → line breaks typed in the database are kept. */
.bodyContainer {
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
  overflow-x: auto;
  color: rgba(0, 0, 0, 0.7);
}

.bodyContainer strong, .bodyContainer b { font-weight: 700; color: rgba(0, 0, 0, 0.8); }
.bodyContainer a { text-decoration: underline; text-underline-offset: 2px; }
.bodyContainer ul { list-style: disc; padding-left: 1.5rem; }
.bodyContainer ol { list-style: decimal; padding-left: 1.5rem; }

.bodyContainer table {
  width: fit-content;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: normal;
}

.bodyContainer table th {
  background-color: #fff;
  padding: 0.5rem;
  color: var(--ac-color);
  font-weight: 600;
  border: 1px solid rgba(46, 161, 177, 0.25);
}

.bodyContainer table td {
  background-color: #fff;
  padding: 0.5rem 0.35rem;
  min-width: 4.2em;
  text-align: center;
  border: 1px solid rgba(46, 161, 177, 0.25);
}

.bodyContainer table td.label {
  text-align: left;
  opacity: 0.6;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .introBox { min-height: 400px; }

  .contentBox {
    padding: 4rem 0 2rem 0;
    max-width: 1000px;
  }
}

@media (max-width: 1000px) {
  .contentBox { padding: 3rem 1rem; }
  .aboutBox img { max-width: 90%; }
}

@media (max-width: 900px) {
  .introBox .titlesWrap {
    left: 2rem;
    bottom: 2rem;
  }

  .introBox h1 .titleLine {
    padding: 0.6rem;
    font-size: 2rem;
    border-radius: 2px;
  }

  .introBox .titleSub {
    padding: 0.4rem 0.5rem;
    font-size: 1.2rem;
    margin: 0.2rem 0 0 0;
    border-radius: 2px;
  }

  .bodyContainer table { font-size: 0.8rem; }
}

@media (max-width: 767px) {
  .aboutBox img { max-width: 50%; }

  /* Quick links: a plain bullet list, one link per line */
  .aboutLinks ul {
    display: block;
    list-style: disc;
    padding-left: 1.25rem;
  }
  .aboutLinks li { margin: 0.3rem 0; }
  .aboutLinks li::marker { color: #2c9caa; }
  .aboutLinks li + li::before { content: none; }
}

@media (max-width: 680px) {
  .bodyContainer table { font-size: 0.7rem; }
  .bodyContainer table th,
  .bodyContainer table td { padding: 0.4rem; }
}

@media (max-width: 530px) {
  .introBox { min-height: 300px; }

  .introBox .titlesWrap,
  .introBox .titlesWrap h1 {
    gap: 0.5rem;
  }

  .introBox .titlesWrap {
    left: 0.6rem;
    bottom: 0.6rem;
  }

  .introBox h1 .titleLine {
    padding: 0.4rem;
    font-size: 1.8rem;
    letter-spacing: 0;
  }

  .introBox .titleSub {
    font-size: 1.2rem;
    letter-spacing: 0;
  }
}
/* #endregion */

/* #region O nás */
.personBox h2 {
  text-transform: none;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.position {
  text-transform: uppercase;
  font-size: 1.1rem;
  opacity: 0.5;
  display: block;
  margin: 0 0 2rem 0;
}

.personBox p {
  line-height: 2;
  opacity: 0.8;
}

.personBox img { max-width: 100%; display: block; }

@media (max-width: 767px) {
  .personBox img {
    margin: 0 auto;
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 730px) {
  .personBox h2 { font-size: 1.6rem; }
  .position { font-size: 1rem; margin: 0 0 2rem 0; }
}

@media (max-width: 620px) {
  .personBox h2 { font-size: 1.4rem; }
  .position { font-size: 0.9rem; margin: 0 0 1rem 0; }
  .personBox p { font-size: 0.9rem; line-height: 1.8; }
}
/* #endregion */

/* #region Služby a ceník */
.sluzby {
  list-style: none;
  padding-left: 2rem;
  margin-bottom: 4rem;
}

.sluzby li {
  line-height: 1.6;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

/* PrimeIcons "angle-right" as a bullet */
.sluzby li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.85em;
  height: 0.85em;
  background-color: #2e95a4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.25,16.25A.74.74,0,0,1,9.72,16a.75.75,0,0,1,0-1.06l3-3-3-3A.75.75,0,0,1,10.78,8l3.5,3.5a.75.75,0,0,1,0,1.06L10.78,16A.74.74,0,0,1,10.25,16.25Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.25,16.25A.74.74,0,0,1,9.72,16a.75.75,0,0,1,0-1.06l3-3-3-3A.75.75,0,0,1,10.78,8l3.5,3.5a.75.75,0,0,1,0,1.06L10.78,16A.74.74,0,0,1,10.25,16.25Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem 1.1rem;
  background-color: #2c9caa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.order-btn .pi {
  font-size: 0.7rem;
  margin-left: 0.6rem;
}

.order-btn:hover { background-color: #26858f; }

.cenik {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 0 0 2rem;
}

.cenik-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  line-height: 1.3;
}

.cenik-row:not(:last-child) { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }

.cenik-price {
  white-space: nowrap;
  font-weight: 600;
  opacity: 0.6;
}

.cenik-price em {
  font-style: normal;
  font-weight: 400;
}

@media (max-width: 860px) {
  .sluzby { padding-left: 1rem; }
  .cenik { margin-left: 1rem; }
}

@media (max-width: 700px) {
  .sluzby { padding-left: 0; }
  .cenik { margin-left: 0; }
}
/* #endregion */

/* #region Ordinace */
.ordinaceContentBox h2 {
  font-size: 1rem;
  text-transform: none;
  margin: 0 0 1rem 0;
}

.ordinaceContentBox h2 span {
  background: linear-gradient(to right, #176b77, #2e95a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ordinaceContentBox h2 .pi {
  font-size: 0.8rem;
  margin-right: 0.6rem;
  opacity: 0.5;
  vertical-align: -0.05em;
}

.ordinaceContentBox p { margin-top: 0; }

.ordinaceContentBox p strong {
  font-weight: 700;
  letter-spacing: 1px;
}

.ordinaceContentBox a.phone { color: inherit; }
.ordinaceContentBox a.phone:hover { color: var(--ac-color); }

.ord-table {
  border-collapse: collapse;
  width: fit-content;
}

.ord-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  padding: 0 1rem 0.8rem 1rem;
  text-align: center;
}

.ord-table tbody td,
.ord-table tbody th {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: top;
}

.ord-table tr > :last-child { padding-right: 0; }

.ord-table tbody tr:not(:last-child) > * {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ord-table .ord-den {
  font-weight: 600;
  width: 2rem;
  padding-left: 0;
  text-align: left;
}

.ord-table td > div + div { margin-top: 0.5rem; }

.ord-table .ord-cas { white-space: nowrap; }

.ord-table .ord-pozn {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
  font-style: italic;
}

.ord-table tbody div:has(.ord-pozn) .ord-cas { opacity: 0.7; }

.ord-table td.ord-pozn-row {
  text-align: left;
  line-height: 1.5;
  max-width: 22rem;
}

.ord-table tbody tr:has(.ord-pozn-row) .ord-den { line-height: 1.5; }

.ord-table td.ord-pozn-row a {
  color: var(--ac-color);
  white-space: nowrap;
}

.ord-content { line-height: 1.6; }

img.ord {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 16px;
}
/* #endregion */

/* #region Map (Leaflet + Mapy.cz) */
#mapContainer {
  position: relative;
  min-height: 600px;
  margin: 3rem auto 2rem 0;
  border-radius: 16px;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  min-height: 600px;
  border-radius: 16px;
  background: #e8eef0;
  overflow: hidden;
}

.mapFallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

#map img { max-width: none; }

@media (max-width: 600px) {
  #mapContainer, #map { min-height: 420px; }
}
/* #endregion */

/* #region Reduced motion – visitors who turned off animations in their OS settings get none */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
/* #endregion */
