/*
Theme Name: Poliklinika
Theme URI: https://github.com/andrejsrna/poliklinika
Author: Andrej Srna
Description: WordPress theme styled to closely match the legacy Poliklinika Tehelna Joomla site.
Version: 0.2.0
Text Domain: poliklinika
*/

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #ebebeb;
  color: #fff;
  font: 300 12px/18px Arial, sans-serif;
}

a {
  color: #fff;
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table td,
table th {
  border: 1px solid rgba(255, 255, 255, 0.92);
  padding: 10px;
  vertical-align: top;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clr,
.clear,
.clearfix,
.jp_estates-poznamka {
  clear: both;
}

#page-container {
  width: 100%;
  max-width: 985px;
  min-width: 310px;
  min-height: 100%;
  margin: 0 auto;
  padding: 18px 0 24px;
  background: #fff;
  position: relative;
  z-index: 1;
}

#page-header-home {
  width: 96%;
  margin: 0 auto 13px;
  display: table;
}

#page-header-home #page-logo {
  display: table-cell;
  vertical-align: middle;
}

#page-header-home #page-logo .logo {
  width: 83%;
  max-width: 325px;
  margin: 0 auto;
}

#page-header-home #header-right {
  width: 57%;
  display: table-cell;
  vertical-align: middle;
  position: relative;
  text-align: right;
}

#page-header-home #header-right img.bg-header {
  width: 100%;
}

#page-header-home #header-search {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 208px;
  border: 1px solid #a6a6a7;
  background: #fff;
}

#content-container {
  width: 96%;
  margin: 0 auto;
  position: relative;
}

#aside-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 208px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#page-content {
  min-width: 208px;
  margin-left: 223px;
  transition: margin-left 0.2s ease;
}

#page-logo.subpage {
  margin: 44px 0 38px;
}

#page-logo .logo {
  margin: 0;
}

#page-nav {
  margin: 0 0 15px;
}

#page-nav > ul.menu,
#page-nav > ul.nav,
#page-nav .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

#page-nav > ul.menu > li,
#page-nav > ul.nav > li {
  margin: 0 0 1px;
  background: #3498db url("assets/menu-list.png") no-repeat 15px 16px;
}

#page-nav > ul.menu > li.current-menu-item,
#page-nav > ul.menu > li.current-page-ancestor,
#page-nav > ul.menu > li.current-menu-ancestor,
#page-nav > ul.menu > li.current_page_parent,
#page-nav > ul.menu > li.current_page_item {
  background-color: #287eb7;
}

#page-nav > ul.menu > li > a {
  display: block;
  padding: 15px 12px 14px 35px;
  color: #fff;
  text-decoration: none;
  line-height: normal;
}

#page-nav > ul.menu > li > a:hover,
#page-nav > ul.menu > li > a:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

#page-nav .sub-menu li {
  margin: 0;
  padding: 3px 5px;
  background: #78bbe8;
  font-size: 11px;
  line-height: 16px;
}

#page-nav .sub-menu a {
  display: block;
  padding: 0 0 0 35px;
  color: #fff;
  text-decoration: none;
}

#page-nav .sub-menu .sub-menu a {
  padding-left: 45px;
}

#page-nav .sub-menu a:hover,
#page-nav .sub-menu a:focus-visible {
  color: #1a1a1a;
}

#page-nav .sub-menu .current-menu-item > a,
#page-nav .sub-menu .current_page_item > a {
  color: #1a577f;
}

.search {
  width: 206px;
  border: 1px solid #a6a6a7;
  background: #fff;
}

.search form {
  margin: 0;
  padding: 0;
}

.search .inputbox,
.search input.search-query,
#mod-search-searchword {
  float: left;
  width: 150px;
  height: 27px;
  line-height: 27px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  color: #000;
  background: #fff;
}

.search .button {
  float: left;
  width: 33px;
  height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff url("assets/lupa.png") no-repeat right center;
  cursor: pointer;
}

.search .button:hover,
.search .button:focus-visible {
  background-color: #f4f4f4;
}

.menu-toggle {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border: 0;
  background: #3498db;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #287eb7;
}

body.menu-collapsed #aside-left {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
}

body.menu-collapsed #page-content {
  margin-left: 0;
}

#home-content-top,
#home-main-content,
#home-content-bottom {
  margin: 0 0 20px;
  padding-top: 1px;
}

#home-content-top p {
  margin: 0;
}

#home-content-top img.home-lekari {
  float: left;
  width: 51.5%;
  max-width: 367px;
  background: #ff6fa2;
}

#home-content-top img.home-prostory {
  float: right;
  width: 47.4%;
  max-width: 341px;
  background: #60bec5;
}

#home-main-content,
.moduletable.pink,
#home-main-content.pink {
  padding: 22px 25px 22px 65px;
  background: #ff6fa2 url("assets/sign-white.png") no-repeat 25px 22px;
}

.moduletable.green,
#home-main-content.green {
  padding: 22px 25px 22px 65px;
  background: #60bec5 url("assets/sign-white.png") no-repeat 25px 22px;
}

.moduletable.black,
#home-main-content.black {
  padding: 22px 25px 22px 65px;
  background: #333 url("assets/sign-white.png") no-repeat 25px 22px;
}

.moduletable {
  margin: 0 0 15px;
}

.moduletable .custom p + p,
#home-main-content p + p {
  margin-top: 12px;
}

.entry-header {
  margin: 0 0 15px;
}

.entry-title,
.page-title,
.moduletable h2,
.moduletable h3,
#page-content h1,
#page-content h2,
h3.pd-ctitle {
  margin: 0 0 15px;
  padding: 0;
  color: #000;
  font-size: 19px;
  line-height: 22px;
  font-weight: normal;
}

.moduletable.black h2,
.moduletable.black h3 {
  color: #fff;
}

.entry-meta {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
}

.entry-content p:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p:last-child,
.entry-content > *:last-child {
  margin-bottom: 0;
}

.item-page-home .entry-content > h1:first-child,
.item-page-home .entry-content > .page-title:first-child {
  display: none;
}

.legacy-home-hero {
  margin: 0;
}

.legacy-kicker {
  margin: 0 0 10px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-lead {
  max-width: none;
  font-size: 12px;
  line-height: 18px;
}

.legacy-section + .legacy-section {
  margin-top: 22px;
}

.legacy-section__header {
  margin-bottom: 8px;
}

.legacy-section__header h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
}

.legacy-card-grid {
  display: block;
}

.legacy-category-list {
  display: block;
}

a.no-decoration {
  text-decoration: none;
}

a.categoryList {
  display: block;
  line-height: 22px;
  padding: 5px;
}

a.categoryList:hover,
a.categoryList:focus-visible {
  background: #e66593;
}

span.categryList-left {
  display: block;
  float: left;
  width: 50%;
  padding-right: 10px;
  box-sizing: border-box;
  font-style: italic;
}

span.categryList-right {
  display: block;
  float: right;
  width: 50%;
  font-style: italic;
  text-decoration: underline;
}

.legacy-card {
  display: block;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
}

.legacy-card:first-child {
  border-top: 0;
}

.legacy-card h3 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
}

.legacy-card h3 a {
  text-decoration: none;
}

.legacy-card p {
  margin: 0;
  color: #fff;
}

.page-id-10 .legacy-card,
.page-id-10 .legacy-download {
  padding: 4px 0;
}

.page-id-10 .legacy-lead {
  margin-bottom: 14px;
}

.page-id-10 .entry-content {
  max-width: none;
}

.legacy-article p {
  margin: 0 0 5px;
}

.legacy-article table {
  margin: 6px 0 10px;
}

.legacy-article .legacy-table td,
.legacy-article .legacy-table th {
  padding: 10px;
}

.legacy-download-list {
  display: block;
}

.legacy-download {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
}

.legacy-download:first-child {
  border-top: 0;
}

.legacy-download h3 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 18px;
}

.legacy-download__header {
  margin-bottom: 8px;
}

.legacy-download__meta {
  font-weight: bold;
}

.legacy-property-sections {
  margin-top: 18px;
}

.legacy-property-grid {
  display: grid;
  gap: 16px;
}

.legacy-property {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px;
}

.legacy-property__media {
  display: block;
  margin-bottom: 12px;
}

.legacy-property__media img {
  width: 100%;
}

.legacy-property__body h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
}

.legacy-meta {
  margin: 0 0 12px;
}

.legacy-meta div {
  margin-bottom: 6px;
}

.legacy-meta dt,
.legacy-meta dd {
  display: inline;
  margin: 0;
}

.legacy-meta dt {
  font-weight: bold;
}

.legacy-file-link {
  display: inline-block;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.legacy-property__details {
  margin-top: 12px;
}

.legacy-property__details .jp_estates-miestnost {
  display: table;
  width: 100%;
}

.legacy-property__details .jp_estates-miestnost div {
  display: table-cell;
  padding: 5px;
}

.legacy-property__details .jp_estates-miestnost1 div {
  background: #55a4aa;
}

.jp_estates-miestnost_cislo {
  width: 13%;
}

.jp_estates-miestnost_nazov,
.jp_estates-miestnost_vymera {
  width: 33%;
}

.jp_estates-miestnost_pdf {
  width: 13%;
}

.legacy-table {
  box-shadow: none;
}

.legacy-table th {
  text-align: left;
  color: #fff;
}

.pagination {
  text-align: center;
}

.pagination .page-numbers,
.pagination li {
  display: inline-block;
  padding: 0 10px;
}

.item-page-home .entry-content > .legacy-section,
.item-page-home .legacy-kicker {
  display: none;
}

.item-page-home .legacy-home-hero h1 {
  display: none;
}

.item-page-home .legacy-home-hero p {
  margin: 0;
}

@media screen and (max-width: 768px) {
  #page-header-home #header-search {
    right: 8px;
    bottom: 8px;
  }

  .legacy-property-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 560px) {
  #page-container {
    padding: 12px 0 18px;
  }

  #aside-left {
    position: static;
    width: 100%;
    margin: 0 0 15px;
    transform: none;
  }

  #page-content {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  body.menu-collapsed #aside-left {
    display: none;
  }

  #page-logo.subpage {
    margin: 0 0 15px;
  }

  .search {
    width: auto;
  }

  .search .inputbox,
  .search input.search-query,
  #mod-search-searchword {
    width: calc(100% - 53px);
  }

  span.categryList-left,
  span.categryList-right {
    float: none;
    width: 100%;
    padding-right: 0;
  }
}

@media screen and (max-width: 480px) {
  #page-header-home,
  #page-header-home #page-logo,
  #page-header-home #header-right {
    display: block;
    width: 100%;
  }

  #page-header-home #page-logo .logo {
    width: 100%;
    max-width: 260px;
    margin-bottom: 15px;
  }

  #page-header-home #header-right {
    text-align: left;
  }

  #page-header-home #header-search {
    position: static;
    width: auto;
    margin-top: 8px;
  }

  #home-content-top img.home-lekari,
  #home-content-top img.home-prostory {
    float: none;
    width: 100%;
    max-width: none;
  }

  #home-main-content,
  .moduletable.pink,
  .moduletable.green,
  .moduletable.black,
  #home-main-content.pink,
  #home-main-content.green,
  #home-main-content.black {
    padding: 56px 16px 18px;
    background-position: 16px 18px;
  }

  .legacy-property__details .jp_estates-miestnost,
  .legacy-property__details .jp_estates-miestnost div {
    display: block;
    width: auto;
  }
}
