/* global.css — additions for the rebuilt www.vetplzen.cz.
   Loaded after all reused template styles so these rules win.
   The original JavaScript (Joomla / Helix Ultimate / SP Page Builder) was
   not carried over; the few styles it provided are recreated here. */

:root {
  --body_font_family: "DM Sans", sans-serif;
  --headings_font_family: "DM Sans", sans-serif;
}

body {
  font-family: var(--body_font_family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--headings_font_family);
}

/* Template custom CSS printed inline in the head on every original page:
   the --sppb-* colour palette (reproduced verbatim from the live head). */
:root {
  --sppb-topbar-bg-color: #141623;
  --sppb-topbar-text-color: #9fa2b7;
  --sppb-header-bg-color: #FFFFFF;
  --sppb-logo-text-color: #1fc2c2;
  --sppb-menu-text-color: #141623;
  --sppb-menu-text-hover-color: #1fc2c2;
  --sppb-menu-text-active-color: #1fc2c2;
  --sppb-menu-dropdown-bg-color: #FFFFFF;
  --sppb-menu-dropdown-text-color: #141623;
  --sppb-menu-dropdown-text-hover-color: #1fc2c2;
  --sppb-menu-dropdown-text-active-color: #1fc2c2;
  --sppb-text-color: #696e77;
  --sppb-bg-color: #FFFFFF;
  --sppb-link-color: #141623;
  --sppb-link-hover-color: #1fc2c2;
  --sppb-footer-bg-color: #141623;
  --sppb-footer-text-color: #9fa2b7;
  --sppb-footer-link-color: #FFFFFF;
  --sppb-footer-link-hover-color: #1fc2c2;
}

/* The original page overrides the template preset's primary colour (blue)
   with the site's teal on every page (used e.g. by the contact feature
   addon icons in the bottom module). */
:root {
  --primary_color: #1fc2c2;
}

/* Bottom and footer module headings are teal on the original site. */
#sp-bottom h1, #sp-bottom h2, #sp-bottom h3, #sp-bottom h4, #sp-bottom h5, #sp-bottom h6,
#sp-footer h1, #sp-footer h2, #sp-footer h3, #sp-footer h4, #sp-footer h5, #sp-footer h6 {
  color: #1fc2c2;
}

/* Original template custom CSS (the live page prints these inline in the
   head; reproduced here so the logo keeps its live sizes at every width). */
.logo-image { height: 95px; }
.logo-image-phone { height: 95px; }
@media (max-width: 992px) {
  .logo-image { height: 30px; }
  .logo-image-phone { height: 30px; }
}
@media (max-width: 576px) {
  .logo-image { height: 30px; }
  .logo-image-phone { height: 30px; }
}

/* Custom cursor follower — visual copied 1:1 from the original template
   (.cursor-follower in template.css), animation driven by our own script
   (initCursorFollower in main.js). Hidden by default; the script adds the
   follower-active class on body only on fine-pointer devices without a
   reduced-motion preference. */
.cursor-follower {
  display: none;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--primary_color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.75;
  z-index: 9999;
}
.cursor-follower::before {
  content: "";
  width: 10px;
  height: 10px;
  background-image: linear-gradient(to right, var(--secondary_color), var(--primary_color));
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
}
body.follower-active .cursor-follower {
  display: block;
}

/* Slider arrows — the rebuilt script injects the original .sp-nav-control
   markup; its styles come from the reused js_slider.css plus the per-addon
   rules reproduced next to the slider markup on the homepage. */

/* The slider text layer with the reservation notice has no width rule in
   the original styles (SPPB outputs the class without CSS). */
.sp-slider .sl-w-540 {
  max-width: 540px;
}

/* Scroll-up button, shown by the rebuilt script when the page is scrolled. */
.sp-scroll-up.show {
  display: block;
}

/* Client-side search results rendered under the finder forms. */
.search-results-box {
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li {
  border-bottom: 1px solid var(--border_color);
}

.search-results a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--link_color);
  text-decoration: none;
}

.search-results a:hover {
  background: var(--bg_color_dark);
  color: var(--link_hover_color);
}

.search-result-title {
  display: block;
  font-weight: 600;
  color: var(--headings_color);
}

.search-result-text {
  display: block;
  font-size: 0.85rem;
  color: var(--text_color);
}

.search-empty {
  padding: 1rem;
  margin: 0;
  color: var(--text_color);
}

/* The template prints this inline on every page; the base stylesheet only
   widens .sppb-container at this breakpoint, not .sppb-row-container. */
@media(min-width: 1400px) {
  .sppb-row-container { max-width: 1320px; }
}

/* BA Forms prints this per-form theme variable block into the page head;
   reproduced here verbatim for form id 1 (used on the home and contact pages). */
.ba-form-1,
.ba-form-message-popup[data-form="1"],
.forms-calendar-wrapper[data-form="1"],
.ba-form-authorize-modal[data-form="1"],
.ba-form-paypal-modal[data-form="1"] {
    --form-width-value: 100%;
	--form-width-fullwidth: auto;
	--form-background-color: rgba(255, 255, 255, 0);
	--form-padding-top: 25px;
	--form-padding-right: 25px;
	--form-padding-bottom: 25px;
	--form-padding-left: 25px;
	--form-border-top: 0;
	--form-border-right: 0;
	--form-border-bottom: 0;
	--form-border-left: 0;
	--form-border-color: #e3e3e3;
	--form-border-radius: 0px;
	--form-border-width: 1px;
	--form-shadow-value: 0;
	--form-shadow-color: rgba(0, 0, 0, 0.15);
	--label-typography-font-family: inherit;
	--label-typography-font-size: 16px;
	--label-typography-letter-spacing: 0px;
	--label-typography-line-height: 36px;
	--label-typography-color: #212121;
	--label-typography-font-weight: normal;
	--label-typography-text-align: left;
	--label-typography-font-style: normal;
	--label-typography-text-transform: none;
	--field-background-color: #f5f8f9;
	--field-padding-top: 15px;
	--field-padding-right: 15px;
	--field-padding-bottom: 15px;
	--field-padding-left: 15px;
	--field-margin-top: 15px;
	--field-margin-bottom: 15px;
	/* Deliberate improvement over the original form: the border sides were 0,
	   which left the fields nearly invisible on the light page background.
	   The 1px border uses the form's own border color from the design system. */
	--field-border-top: 1;
	--field-border-right: 1;
	--field-border-bottom: 1;
	--field-border-left: 1;
	--field-border-color: #e3e3e3;
	--field-border-radius: 9px;
	--field-border-width: 1px;
	--field-typography-font-family: inherit;
	--field-typography-font-size: 16px;
	--field-typography-letter-spacing: 0px;
	--field-typography-line-height: 28px;
	--field-typography-color: #212121;
	--field-typography-font-weight: normal;
	--field-typography-text-align: left;
	--field-typography-font-style: normal;
	--field-typography-text-transform: none;
	--field-icon-size: 24px;
	--field-icon-color: #212121;
	--field-icon-text-align: flex-start;
	--theme-color: #459bfb;
	--lightbox-color: rgba(0,0,0,0.15);
	}

/* Compact phone-prefix chip (user request): the original chip (flag + code +
   arrow, ~132px wide) occupied almost half of the phone field, so the field
   looked much narrower than the others even though the box is the same width.
   The chip is slimmed down to "+420 ▾" (flags remain in the dropdown list),
   and the field height is aligned with the other inputs. The dropdown itself
   still works identically (see initPhonePrefixDropdown in main.js). */
.com-baforms-wrapper .ba-form-phone-field .ba-field-container > input {
	height: auto;
	padding-left: 5.5rem !important;
}
.com-baforms-wrapper .ba-phone-selected-country {
	height: 46px;
	padding-right: 1.25rem;
}
.com-baforms-wrapper .ba-phone-selected-country .ba-phone-flag {
	display: none;
}
.com-baforms-wrapper .ba-phone-selected-country:before {
	top: 50%;
	margin-top: 0;
	transform: translateY(-50%);
}
.com-baforms-wrapper .ba-phone-countries-list-wrapper {
	margin-top: 2.75rem;
}

/* Site-wide custom CSS that the original Joomla template prints inline on
   every page. The only part affecting page elements is this mobile rule for
   heading addons using the "title-1" design (the original block also contains
   an invalid stray "padding-top: 15px;" declaration that browsers discard). */
@media (max-width: 575.98px) {
    [class*="title-1"].sppb-addon .sppb-addon-title {
        font-size: 33px;
        padding-top: 149px !important;
    }
}

/* The article template prints this inline on every com_content article page:
   the social-share icon list is present in the markup but hidden, so the
   ratings/social-share bar collapses to zero height. Reproduced verbatim. */
.article-social-share .social-share-icon ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: none;
}

/* Kontakt — map frame. The original page rendered the map through the
   Phoca Maps Joomla extension (part of the compromised site): its code is
   never carried over, the module content is replaced by our own keyless
   Google Maps embed iframe and the wrapper uses neutral class names. This
   single rule reproduces the original grey box-shadow frame (formerly
   .phocamaps-box-border-grey .phocamaps-map from phocamaps.css). */
.kontakt-mapa-box .kontakt-mapa-frame {
    box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.35);
}
