/*
 * The theme layer of the portal: what the Xproperty template does not have, and the look of the header and the footer. The
 * colors and fonts of a site come from the CSS variables the ThemeHelper writes into the page (Theme.colors, Theme.darkColors,
 * Theme.fonts); the --hm-* tokens fall back to the template's variables, so a site that does not set them keeps the
 * template's look. Do not edit the files of vendor/xproperty, override them here.
 */

/* ===== the page: the footer sits at the bottom of the window, also when the page is short ===== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

body > .cs_footer {
  flex-shrink: 0;
}

/* ===== titles: the display font and weight of the site ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hm-font-display, var(--primary-font));
  font-weight: var(--hm-display-weight, 700);
}

/* ===== the header ===== */
/* a solid bar with a thin line (the template's header is transparent over its hero and turns solid when scrolled) */
.cs_site_header.cs_style_1,
.cs_site_header.cs_style_1.cs_sticky_active {
  background-color: var(--hm-header, var(--hm-bg, var(--white-color)));
  border-bottom: 1px solid var(--hm-line, transparent);
  box-shadow: none;
}

/* the height of the logo grows with the width of the screen, from --hm-logo-*-mobile at 480px to --hm-logo-*-desktop at 2200px (unitless
   pixels, the administrator sets them per place and per end of the scale on the page of the logo; either may be the larger); the default
   is the small step */
:root {
  --hm-logo-header-h: calc(
    var(--hm-logo-header-mobile, 36) * 1px + (var(--hm-logo-header-desktop, 52) - var(--hm-logo-header-mobile, 36)) * clamp(0px, 100vw - 480px, 1720px) / 1720
  );
  --hm-logo-footer-h: calc(
    var(--hm-logo-footer-mobile, 36) * 1px + (var(--hm-logo-footer-desktop, 52) - var(--hm-logo-footer-mobile, 36)) * clamp(0px, 100vw - 480px, 1720px) / 1720
  );
}

/* the bar grows with the logo: 20px above and below it, never lower than 88px; what starts under the fixed bar (the hero, the first section of
   a page) keeps clear of it by the same height */
:root {
  --hm-header-h: max(88px, calc(var(--hm-logo-header-h) + 40px));
}

.cs_site_header.cs_style_1 .cs_main_header_in {
  height: var(--hm-header-h);
}

/* the home page with a hero picture: the menu is translucent over the picture at the top of the page (the background, not the letters), and
   what shows through can be blurred; once the page is scrolled the solid bar is back (the settings of the hero block, the classes are on the body) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  body.hm-header-glass-low .cs_site_header.cs_style_1:not(.cs_sticky_active) {
    background-color: color-mix(in srgb, var(--hm-header, var(--hm-bg, var(--white-color))) 80%, transparent);
  }

  body.hm-header-glass-medium .cs_site_header.cs_style_1:not(.cs_sticky_active) {
    background-color: color-mix(in srgb, var(--hm-header, var(--hm-bg, var(--white-color))) 60%, transparent);
  }

  body.hm-header-glass-high .cs_site_header.cs_style_1:not(.cs_sticky_active) {
    background-color: color-mix(in srgb, var(--hm-header, var(--hm-bg, var(--white-color))) 40%, transparent);
  }
}

body.hm-header-blur-low .cs_site_header.cs_style_1:not(.cs_sticky_active) {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.hm-header-blur-medium .cs_site_header.cs_style_1:not(.cs_sticky_active) {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* the logo image of the site (Theme.logo): its height is set by the administrator (see --hm-logo-*), in the header and the footer */
.cs_site_brand img,
.cs_footer .cs_logo img {
  display: block;
  flex: none;
  width: auto;
  /* a wide logo does not push the menu out or leave the screen: it is shown smaller (contain keeps its proportions) instead */
  max-width: 28vw;
  height: var(--hm-logo-header-h);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 991.98px) {
  /* a phone: the right side of the bar (the menu button) keeps its room */
  .cs_site_brand img {
    max-width: calc(100vw - 150px);
  }
}

.cs_footer .cs_logo img {
  max-width: 100%;
  height: var(--hm-logo-footer-h);
}

/* a site with a logo for each look shows the one of the look the visitor has (the cs_dark class of the html element, see mode.js) */
html:not(.cs_dark) .hm-look-dark,
html.cs_dark .hm-look-light {
  display: none !important;
}

/* the name of the site in place of a logo image */
.cs_site_brand_text {
  display: inline-block;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 22px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hm-text, var(--primary-color));
}

.cs_site_header.cs_style_1 .cs_nav_list > li > a {
  font-family: var(--secondary-font);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* the page that is shown */
.cs_site_header.cs_style_1 .cs_nav_list > li.hm-active > a {
  color: var(--hm-accent-light, var(--accent-color));
  box-shadow: 0 2px 0 var(--accent-color);
}

/* The main menu (desktop): every item is a cell as tall as the header, from the top of the screen to the line under the
   header. On hover the template's rising circle fills the whole cell (the same animation as the buttons, see
   components.css) and the text changes color. The circle is the ::after of the link, the ::before is the arrow of a
   dropdown parent. The gap between the items moved from the margin into the padding of the links, so the fill reaches
   the neighbours. */
@media (min-width: 1200px) {
  .cs_site_header.cs_style_1 .cs_nav_list > li {
    margin-right: 0;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li > a {
    --hm-btn-fill: var(--accent-color);
    z-index: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: color 0.3s cubic-bezier(0.58, 0, 0.88, 1);
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li.menu-item-has-children > a {
    padding-right: 32px;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li.menu-item-has-children > a::before {
    right: 14px;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li > a::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 110%;
    left: 50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: var(--hm-btn-fill);
    transform: translateX(-50%);
    transition-duration: 600ms;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li > a:hover,
  .cs_site_header.cs_style_1 .cs_nav_list > li > a:focus-visible,
  .cs_site_header.cs_style_1 .cs_nav_list > li:hover > a,
  .cs_site_header.cs_style_1 .cs_nav_list > li.hm-active > a:hover {
    color: var(--hm-btn-text, var(--hm-text, #fff));
    opacity: 1;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li > a:hover::after,
  .cs_site_header.cs_style_1 .cs_nav_list > li > a:focus-visible::after,
  .cs_site_header.cs_style_1 .cs_nav_list > li:hover > a::after {
    top: -40%;
  }

  /* the underline of the page being shown sits on the line under the header (inside the link: it is cut off outside) */
  .cs_site_header.cs_style_1 .cs_nav_list > li.hm-active > a {
    box-shadow: inset 0 -2px 0 var(--accent-color);
  }
}

@media (min-width: 1400px) {
  .cs_site_header.cs_style_1 .cs_nav_list > li > a {
    padding: 0 20px;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li.menu-item-has-children > a {
    padding-right: 36px;
  }

  .cs_site_header.cs_style_1 .cs_nav_list > li.menu-item-has-children > a::before {
    right: 16px;
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .cs_site_header.cs_style_1 .cs_nav_list > li > a::after {
    transition-duration: 0ms;
  }
}

.cs_site_header.cs_style_1 .cs_dropdown_list li.hm-active > a {
  color: var(--hm-accent-light, var(--accent-color));
}

/* the switch of the look: in the right side of the header; on a phone (under 576px) that side is hidden, so the switch stands at the top of
   the menu instead */
.hm-mode-toggle-item {
  display: flex;
  align-items: center;
}

.hm-mode-toggle-menu {
  display: none;
  padding: 12px 15px 4px;
}

@media (max-width: 575.98px) {
  .hm-mode-toggle-menu {
    display: block;
  }
}

/* the right side of the header (the phone, the switch, the button) is wider than the 300px the template gives it, and the phone number would
   run into the last menu item: it takes the room it needs; under 1500px, where the room is the least (the longest menu, the one of Szeged, with the
   longest phone number just fits at 1200px), the menu items give a little of theirs, the more the narrower the screen */
@media (min-width: 1200px) {
  .cs_site_header.cs_style_1 .cs_right_nav_list {
    max-width: none;
  }
}

@media (min-width: 1200px) and (max-width: 1299.98px) {
  .cs_site_header.cs_style_1 .cs_nav_list > li > a {
    padding: 0 8px;
  }

  .cs_site_header.cs_style_1 .cs_right_nav_list {
    gap: 12px;
  }

  .cs_site_header.cs_style_1 .cs_right_nav_list .hm-btn {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (min-width: 1300px) and (max-width: 1399.98px) {
  .cs_site_header.cs_style_1 .cs_nav_list > li > a {
    padding: 0 11px;
  }
}

@media (min-width: 1400px) and (max-width: 1499.98px) {
  .cs_site_header.cs_style_1 .cs_nav_list > li > a {
    padding: 0 17px;
  }
}

/* the phone number in the header is a plain link, not the template's "Login" text */
.cs_header_phone {
  color: var(--hm-muted, var(--secondary-color));
  white-space: nowrap;
}

.cs_header_phone:hover {
  color: var(--hm-accent-light, var(--accent-color));
}

/* ===== the footer ===== */
.hm-footer {
  background-color: var(--hm-surface, var(--primary-color));
  border-top: 1px solid var(--hm-line, transparent);
  color: var(--hm-muted, #cfcfcf);
}

.hm-footer a {
  color: var(--hm-muted, #cfcfcf);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hm-footer a:hover,
.hm-footer li.hm-active > a {
  color: var(--hm-accent-light, #fff);
}

.hm-footer ul {
  list-style: none;
}

.hm-footer-main {
  padding: 72px 0 48px;
  row-gap: 40px;
}

/* the template leaves 77px under its footer logo for the newsletter form, which the portal does not have */
.cs_footer.cs_style_1 .cs_logo {
  margin-bottom: 20px;
}

.hm-footer .cs_site_brand_text {
  color: var(--hm-text, #fff);
}

.cs_footer_description {
  max-width: 360px;
  margin: 0 0 24px;
  color: var(--hm-muted, #cfcfcf);
}

.hm-footer-title {
  margin: 0 0 20px;
  font-family: var(--secondary-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-accent-light, #fff);
}

.hm-footer-links li:not(:last-child),
.hm-footer-contact li:not(:last-child) {
  margin-bottom: 10px;
}

/* the list under the description: air above it, and below it before the social icons that may follow */
.hm-footer-left-links {
  margin: 18px 0 20px;
}

.hm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hm-footer-contact li i {
  flex: 0 0 18px;
  margin-top: 5px;
  text-align: center;
  color: var(--hm-accent-light, #fff);
}

/* the social links: circles in the accent color */
.hm-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-footer .hm-social a {
  --hm-btn-fill: var(--hm-accent-light, var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--hm-bg, #fff);
  font-size: 15px;
}

/* the icon keeps its color while the lighter circle rises behind it */
.hm-footer .hm-social a:hover {
  color: var(--hm-bg, #fff);
}

/* the bottom line: copyright, the BottomMenu, the credit */
.hm-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--hm-line, rgba(255, 255, 255, 0.12));
  font-size: 14px;
}

.hm-footer-copyright,
.hm-footer-credit,
.hm-footer-version {
  color: var(--hm-muted, #cfcfcf);
}

.hm-footer-bottom-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 auto 0 0;
}

@media (max-width: 991px) {
  .hm-footer-main {
    padding: 56px 0 32px;
  }

  .hm-footer-bottom-menu {
    margin: 0;
  }
}

/* ===== the error pages and the temporary home page ===== */
.cs_error_page {
  padding-top: calc(var(--hm-header-h, 88px) + 52px) !important;
}

.cs_error_page .cs_error_code {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 96px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1;
  color: var(--accent-color);
}

/* ===== the bar of a preview session (fixed at the bottom of every page, in the warning color of the theme) ===== */
.hm-preview-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background-color: var(--hm-warning);
  color: var(--hm-on-accent);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.hm-preview-bar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hm-preview-bar__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-preview-bar__text {
  flex: 1 1 320px;
}

.hm-preview-bar__until {
  display: block;
  opacity: 0.85;
}

.hm-preview-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* the two buttons of the bar: the way back is filled, the exit is an outline; each turns into the other on hover */
.hm-preview-bar__back,
.hm-preview-bar__back:visited,
.hm-preview-bar__exit,
.hm-preview-bar__exit:visited {
  padding: 6px 14px;
  border: 2px solid var(--hm-on-accent);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hm-preview-bar__back,
.hm-preview-bar__back:visited,
.hm-preview-bar__exit:hover,
.hm-preview-bar__exit:focus {
  background-color: var(--hm-on-accent);
  color: var(--hm-warning);
}

.hm-preview-bar__exit,
.hm-preview-bar__exit:visited,
.hm-preview-bar__back:hover,
.hm-preview-bar__back:focus {
  background-color: transparent;
  color: var(--hm-on-accent);
}

/* an apartment the preview of its project shows (not published, no page of its own in this preview) */
.hm-card.hm-card-preview {
  outline: 2px dashed var(--hm-warning);
  outline-offset: -2px;
}

/* the dark variant of the theme colors every paragraph (.cs_dark p): the note keeps its own colors */
.hm-card .hm-card-preview-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 4px;
  background-color: var(--hm-warning);
  color: var(--hm-on-accent);
  font-size: 13px;
  line-height: 1.4;
}

.hm-card .hm-card-preview-note i {
  margin-top: 2px;
  color: inherit;
}

/* the page keeps clear of the bar: its end and the scroll-up button are above it (the script of the bar gives its real height in
   --hm-preview-bar-h; without it the usual height of the bar) */
body.hm-previewing {
  padding-bottom: calc(var(--hm-preview-bar-h, 88px) + 8px);
}

body.hm-previewing .cs_scrollup_btn {
  bottom: calc(var(--hm-preview-bar-h, 88px) + 24px);
}

/* a phone or a tablet (the text does not fit in one line): a smaller bar, the time on its own line, and more room under the page */
@media (max-width: 991px) {
  .hm-preview-bar {
    font-size: 13px;
  }

  .hm-preview-bar__in {
    gap: 4px 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hm-preview-bar__text {
    flex-basis: 100%;
  }

  .hm-preview-bar__exit,
  .hm-preview-bar__exit:visited,
  .hm-preview-bar__back,
  .hm-preview-bar__back:visited {
    padding: 3px 10px;
  }

  body.hm-previewing {
    padding-bottom: calc(var(--hm-preview-bar-h, 180px) + 8px);
  }

  body.hm-previewing .cs_scrollup_btn {
    bottom: calc(var(--hm-preview-bar-h, 180px) + 24px);
  }
}

/* ===== the maintenance page (no header: the logo and the text of the administrator) ===== */
.cs_maintenance_page {
  padding-top: 80px !important;
}

.cs_maintenance_page .cs_maintenance_logo {
  max-width: 220px;
  max-height: 90px;
}

.cs_maintenance_page .cs_maintenance_name {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 32px;
  font-weight: var(--hm-display-weight, 700);
  color: var(--accent-color);
}

.cs_maintenance_page .cs_maintenance_text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* the fixed header covers the top of the page: a page that does not start with a template section (hero)
   keeps clear of it */
.cs_page_stub {
  padding-top: calc(var(--hm-header-h) + 52px);
  padding-bottom: 80px;
}
