/*
 * The components of the portal (prefix hm-). They use only the tokens the ThemeHelper writes (--hm-*) and fall back to the
 * variables of the Xproperty template when a site does not set a token, so every site gets a consistent look from its own
 * Theme.colors. Do not use fixed colors here.
 *
 *   --accent-color               the accent of the site (the template's variable): fills and borders
 *   --hm-accent-light            the light accent: text on a dark page and hovers
 *   --hm-bg                      the page background
 *   --hm-surface, --hm-surface-2 cards, panels, the footer
 *   --hm-line                    thin borders
 *   --hm-text, --hm-muted        text, secondary text
 *   --hm-success, --hm-warning, --hm-error   the states of an item (available, reserved, sold)
 *   --hm-on-accent               text on a surface in the accent color
 *   --hm-ink                     the dark of the dark button (the call to action band); the on-accent color when it is not set (a site whose
 *                                on-accent color is light, as in its light look, sets a dark one)
 *   --hm-ink-fill                the light the dark button fills with on hover (the text turns to the ink on it); the text color when it is not
 *                                set, which is light in the dark look; a site sets a light one for its light look, where the text color is dark
 *   --hm-btn-text                the text on the accent colored fill of a button (the solid button, the outline button and the menu item
 *                                on hover); a site with a light accent sets a dark one, the text color (--hm-text) when it is not set
 *   --hm-font-display            the font of the titles
 */

/* ===== the rising fill on hover ===== */
/* The hover effect of the Xproperty buttons: a circle in the hover color rises from below the element (600ms) while the
   text changes color. It is on every .hm-btn and can be put on any other element with .hm-fill-hover (the social icons of
   the footer). --hm-btn-fill is the color of the circle. */
.hm-btn,
.hm-fill-hover {
  --hm-btn-fill: var(--accent-color);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hm-btn::before,
.hm-fill-hover::before {
  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;
}

.hm-btn > *,
.hm-fill-hover > * {
  position: relative;
  z-index: 1;
}

.hm-btn:hover::before,
.hm-btn:focus-visible::before,
.hm-fill-hover:hover::before,
.hm-fill-hover:focus-visible::before {
  top: -40%;
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn::before,
  .hm-fill-hover::before {
    transition-duration: 0ms;
  }
}

/* ===== buttons ===== */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  font-family: var(--secondary-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: nowrap;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.58, 0, 0.88, 1), border-color 0.3s cubic-bezier(0.58, 0, 0.88, 1);
}

.hm-btn-outline {
  background-color: transparent;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-btn-outline:hover,
.hm-btn-outline:focus-visible {
  color: var(--hm-btn-text, var(--hm-text, #fff));
}

.hm-btn-solid {
  --hm-btn-fill: var(--hm-accent-light, var(--accent-color));
  background-color: var(--accent-color);
  color: var(--hm-btn-text, var(--hm-text, #fff));
}

.hm-btn-solid:hover,
.hm-btn-solid:focus-visible {
  border-color: var(--hm-accent-light, var(--accent-color));
  /* a link: the template's a:hover (color: inherit) would give it the color of its parent, which is dark in the light look */
  color: var(--hm-btn-text, var(--hm-text, #fff));
}

/* The dark button is for an accent colored surface (the call to action band). It is dark in both looks, whatever the page
   color is, with white text; on hover a light circle rises and the text turns dark. */
.hm-btn-dark {
  --hm-btn-fill: var(--hm-ink-fill, var(--hm-text, #fff));
  background-color: var(--hm-ink, var(--hm-on-accent, #10141c));
  border-color: var(--hm-ink, var(--hm-on-accent, #10141c));
  color: #fff;
}

.hm-btn-dark:hover,
.hm-btn-dark:focus-visible {
  color: var(--hm-ink, var(--hm-on-accent, #10141c));
}

/* ===== the switch of the look (dark or light) ===== */
/* a round button in the style of the outline button next to it (the border in the accent, the icon in the light accent, the accent fill on hover);
   the moon (it turns the dark look on) is shown in the light look, the sun in the dark one. Hidden until its script shows it. */
.hm-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  background-color: transparent;
  color: var(--hm-accent-light, var(--accent-color));
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.58, 0, 0.88, 1), background-color 0.3s cubic-bezier(0.58, 0, 0.88, 1);
}

.hm-mode-toggle[hidden] {
  display: none;
}

.hm-mode-toggle:hover,
.hm-mode-toggle:focus-visible {
  background-color: var(--accent-color);
  color: var(--hm-btn-text, var(--hm-text, #fff));
}

.hm-mode-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.cs_dark .hm-mode-icon-dark,
html:not(.cs_dark) .hm-mode-icon-light {
  display: none;
}

/* ===== the icon in a circle (steps, services) ===== */
.hm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  color: var(--hm-accent-light, var(--accent-color));
  font-size: 22px;
}

/* ===== section titles ===== */
/* a small overline, the serif title and a short rule; .hm-section-head-center centers it, a .hm-section-link at the right
   puts the link ("all the apartments") next to the title */
.hm-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 32px;
}

.hm-section-head-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* the small captions in capitals (the overline of a section, of a card and of a block; the link at the head of a section): one look for all of
   them. A new caption of this kind is added to this list, not written again. */
.hm-eyebrow,
.hm-agent-eyebrow,
.hm-agent-bio-title,
.hm-detail-project small,
.hm-section-link {
  font-family: var(--secondary-font);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-agent-eyebrow,
.hm-agent-bio-title,
.hm-detail-project small,
.hm-section-link {
  letter-spacing: 0.12em;
}

.hm-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hm-section-title {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 34px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.2;
  color: var(--hm-text, var(--primary-color));
}

.hm-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  background-color: var(--accent-color);
}

.hm-section-head-center .hm-rule {
  margin-right: auto;
  margin-left: auto;
}

.hm-section-link {
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.hm-section-link i {
  margin-left: 6px;
  transition: transform 0.25s ease;
}

.hm-section-link:hover i {
  transform: translateX(4px);
}

/* ===== cards ===== */
.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
  color: var(--hm-muted, var(--secondary-color));
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.hm-card:hover,
.hm-card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.hm-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--hm-surface-2, var(--gray-color));
}

.hm-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* the call to action in the gap of the last row of cards: the accent as a faint glow and a dashed outline, centered content */
.hm-card-cta {
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 28px;
  border-style: dashed;
  border-color: var(--accent-color);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-color) 16%, transparent) 0%, transparent 70%);
  text-align: center;
}

.hm-card-cta-icon {
  font-size: 40px;
  color: var(--accent-color);
}

.hm-card-cta .hm-card-cta-title {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 26px;
  font-weight: 500;
  color: var(--hm-text, inherit);
}

.hm-card-cta p {
  max-width: 420px;
  margin: 0;
  color: var(--hm-muted, inherit);
}

.hm-card-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

a.hm-card:hover .hm-card-media img,
.hm-card-hover:hover .hm-card-media img {
  transform: scale(1.05);
}

/* the badges (top left) and the favorite button (top right) over the picture */
.hm-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hm-card-media .hm-fav {
  position: absolute;
  top: 12px;
  right: 12px;
}

.hm-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.hm-card-title {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 22px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.25;
  color: var(--hm-text, var(--primary-color));
}

.hm-card-place {
  margin: 0;
  font-size: 14px;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.hm-card-price {
  margin: 8px 0 0;
  font-family: var(--secondary-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-text, var(--primary-color));
}

/* the facts of a property: area, rooms, bathrooms */
.hm-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--hm-line, var(--border-color));
  list-style: none;
  font-size: 13px;
}

.hm-card-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hm-card-meta i {
  color: var(--hm-accent-light, var(--accent-color));
}

/* the service card: a small picture, the icon over its edge, the title and the text */
/* The icon sits over the lower edge of the picture. The picture crops its content (overflow hidden, for the zoom on hover),
   so the icon is not inside it: both are in a wrapper that crops nothing. */
.hm-card-media-wrap {
  position: relative;
}

.hm-card-service .hm-card-media {
  aspect-ratio: 16 / 9;
}

.hm-card-service .hm-icon {
  position: absolute;
  bottom: -24px;
  left: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  background-color: var(--hm-surface, var(--white-color));
  font-size: 18px;
}

.hm-card-service .hm-card-body {
  padding-top: 40px;
}

/* a plain panel (the facts of a project, a document list) */
.hm-panel {
  padding: 24px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
}

/* ===== badges and states ===== */
.hm-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(10, 14, 22, 0.78);
  font-family: var(--secondary-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.hm-badge-accent {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

/* available / reserved / sold: a dot and the label */
.hm-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hm-text, var(--primary-color));
}

.hm-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.hm-status-available::before {
  background-color: var(--hm-success, #2fb36d);
}

.hm-status-reserved::before {
  background-color: var(--hm-warning, #d9a441);
}

.hm-status-sold::before {
  background-color: var(--hm-error, #d95555);
}

/* ===== filter chips ===== */
.hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 999px;
  background-color: transparent;
  font-family: var(--secondary-font);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--hm-muted, var(--secondary-color));
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.hm-chip:hover {
  border-color: var(--accent-color);
  color: var(--hm-text, var(--primary-color));
}

.hm-chip-active,
.hm-chip[aria-pressed="true"] {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

.hm-chip-active:hover,
.hm-chip[aria-pressed="true"]:hover {
  color: var(--hm-on-accent, #fff);
}

/* ===== the favorite (heart) button ===== */
.hm-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(10, 14, 22, 0.55);
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hm-fav:hover,
.hm-fav:focus-visible {
  background-color: rgba(10, 14, 22, 0.8);
  color: var(--hm-accent-light, var(--accent-color));
}

/* chosen: the heart is filled and in the accent color (the regular icon turns solid) */
.hm-fav[aria-pressed="true"] {
  color: var(--accent-color);
}

.hm-fav[aria-pressed="true"] i {
  font-weight: 900;
}

/* ===== pagination ===== */
.hm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--secondary-font);
  font-size: 14px;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-page,
.hm-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.hm-page:hover,
.hm-page-arrow:hover {
  border-color: var(--hm-line, var(--border-color));
  color: var(--hm-text, var(--primary-color));
}

.hm-page-current {
  border-color: var(--accent-color);
  color: var(--hm-text, var(--primary-color));
}

.hm-page-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.hm-page-info {
  color: var(--hm-text, var(--primary-color));
}

/* ===== breadcrumb ===== */
.hm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.6;
}

.hm-breadcrumb a {
  text-decoration: none;
  color: inherit;
}

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

.hm-breadcrumb li[aria-current="page"] {
  color: var(--hm-accent-light, var(--accent-color));
}

/* ===== the call to action band ===== */
.hm-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 32px 40px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--accent-color) 0%, var(--hm-accent-light, var(--accent-color)) 100%);
  color: var(--hm-on-accent, #111);
}

.hm-cta-band .hm-icon {
  width: 72px;
  height: 72px;
  border-color: currentColor;
  font-size: 28px;
  color: inherit;
}

.hm-cta-text {
  flex: 1 1 320px;
}

/* two classes: the template colors every h3 of the dark look (.cs_dark h3), this one must follow the band */
.hm-cta-band .hm-cta-title {
  margin: 0 0 4px;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 30px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.2;
  color: inherit;
}

.hm-cta-text p {
  margin: 0;
  color: inherit;
}

/* ===== numbers and steps ===== */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 24px 0;
  list-style: none;
  border-top: 1px solid var(--hm-line, var(--border-color));
  border-bottom: 1px solid var(--hm-line, var(--border-color));
}

.hm-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hm-stat > i {
  font-size: 30px;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-stat-number {
  display: block;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 32px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.1;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-stat-label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hm-step-number {
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 30px;
  font-weight: var(--hm-display-weight, 700);
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-step-title {
  margin: 0 0 8px;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 22px;
  font-weight: var(--hm-display-weight, 700);
  color: var(--hm-text, var(--primary-color));
}

.hm-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hm-muted, var(--secondary-color));
}

/* ===== form fields ===== */
/* .hm-field is a label, a control and its help or error text; the control is .hm-input, .hm-select or .hm-textarea.
   An error is is-invalid on the control and a .hm-field-error text under it (CakePHP's FormHelper is mapped to these
   in the forms task). */
.hm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.hm-label {
  margin: 0;
  font-family: var(--secondary-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-muted, var(--secondary-color));
}

/* the look of a field of a form (the inputs, the selects, the text areas and the control of the select box): one place, so the fields match */
.hm-input,
select.hm-select,
.hm-textarea,
.hm-tselect .ts-control {
  min-height: 48px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 8px;
  background-color: var(--hm-surface-2, var(--white-color));
  font-family: var(--secondary-font);
  font-size: 15px;
  line-height: 1.4;
  color: var(--hm-text, var(--primary-color));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hm-input,
select.hm-select,
.hm-textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  appearance: none;
  -webkit-appearance: none;
}

.hm-textarea {
  min-height: 120px;
  resize: vertical;
}

.hm-input::placeholder,
.hm-textarea::placeholder {
  color: var(--hm-muted, var(--secondary-color));
  opacity: 0.7;
}

.hm-input:hover,
select.hm-select:hover,
.hm-textarea:hover {
  border-color: var(--hm-accent-light, var(--accent-color));
}

.hm-input:focus,
select.hm-select:focus,
.hm-textarea:focus,
.hm-tselect.focus .ts-control,
.hm-tselect.dropdown-active .ts-control {
  outline: 0;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

/* a soft ring around the focused control, where the browser can mix colors */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hm-input:focus,
  select.hm-select:focus,
  .hm-textarea:focus,
  .hm-range:focus-within,
  .hm-tselect.focus .ts-control,
  .hm-tselect.dropdown-active .ts-control {
    box-shadow: 0 0 0 1px var(--accent-color), 0 0 0 5px color-mix(in srgb, var(--accent-color) 22%, transparent);
  }
}

.hm-input:disabled,
select.hm-select:disabled,
.hm-textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hm-input.is-invalid,
.hm-input.is-invalid:hover,
select.hm-select.is-invalid,
.hm-textarea.is-invalid,
.hm-textarea.is-invalid:hover,
.hm-range.is-invalid,
.hm-tselect.is-invalid .ts-control,
.hm-tselect.is-invalid .ts-control:hover {
  border-color: var(--hm-error, #d95555);
}

.hm-input.is-invalid:focus,
select.hm-select.is-invalid:focus,
.hm-textarea.is-invalid:focus,
.hm-tselect.is-invalid.focus .ts-control,
.hm-tselect.is-invalid.dropdown-active .ts-control {
  border-color: var(--hm-error, #d95555);
  box-shadow: 0 0 0 1px var(--hm-error, #d95555);
}

.hm-help,
.hm-field-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.hm-help {
  color: var(--hm-muted, var(--secondary-color));
}

/* the template's dark theme colors every p (.cs_dark p), so the selector is as strong as that one */
.hm-field-error,
.cs_dark p.hm-field-error {
  color: var(--hm-error, #d95555);
}

/* The select. .hm-select-wrap draws the chevron (it turns while the select is open). The template's Tom Select (class
   tom_select, started by main.js) replaces the native list with the dropdown below; without the script the native select
   stays, so the form still works. Typing in the open dropdown filters the options. */
.hm-select-wrap {
  position: relative;
}

.hm-select-wrap::after {
  content: "\f078";
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
  color: var(--hm-accent-light, var(--accent-color));
  pointer-events: none;
  transition: transform 0.25s ease;
}

.hm-select-wrap:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

select.hm-select {
  padding-right: 42px;
  cursor: pointer;
}

select.hm-select option {
  background-color: var(--hm-surface, var(--white-color));
  color: var(--hm-text, var(--primary-color));
}

/* the Tom Select box looks like an input */
.hm-tselect.ts-wrapper {
  padding: 0;
  border: 0;
  background: transparent;
}

.hm-tselect .ts-control {
  align-items: center;
  padding: 0 42px 0 16px;
  cursor: pointer;
}

/* the chevron is the wrapper's (.hm-select-wrap::after), not the arrow Tom Select draws */
.hm-tselect .ts-control::after,
.hm-tselect.single .ts-control::after {
  display: none;
}

/* Tom Select's own stylesheet whitens the open and the filled box: keep the box of the theme in every state */
.hm-tselect.ts-wrapper .ts-control,
.hm-tselect.ts-wrapper.full .ts-control,
.hm-tselect.ts-wrapper.input-active .ts-control,
.hm-tselect.ts-wrapper.focus .ts-control,
.hm-tselect.ts-wrapper.dropdown-active .ts-control {
  background-color: var(--hm-surface-2, var(--white-color));
}

.hm-searchbar .hm-tselect.ts-wrapper .ts-control,
.hm-searchbar .hm-tselect.ts-wrapper.full .ts-control,
.hm-searchbar .hm-tselect.ts-wrapper.input-active .ts-control,
.hm-searchbar .hm-tselect.ts-wrapper.focus .ts-control,
.hm-searchbar .hm-tselect.ts-wrapper.dropdown-active .ts-control {
  background-color: transparent;
}

.hm-tselect .ts-control:hover {
  border-color: var(--hm-accent-light, var(--accent-color));
}

.hm-tselect .ts-control > .item {
  color: inherit;
}

.hm-tselect .ts-control > input {
  color: var(--hm-text, var(--primary-color));
}

.hm-tselect .ts-control > input::placeholder {
  color: var(--hm-muted, var(--secondary-color));
  opacity: 0.7;
}

/* the open list: a panel with rounded options */
.hm-tselect .ts-dropdown {
  top: calc(100% + 8px);
  z-index: 60;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--hm-text, var(--primary-color));
}

.hm-tselect .ts-dropdown .ts-dropdown-content {
  max-height: 260px;
}

.hm-tselect .ts-dropdown .option {
  position: relative;
  padding: 10px 40px 10px 14px;
  border-radius: 6px;
  font-family: var(--secondary-font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--hm-text, var(--primary-color));
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-tselect .ts-dropdown .option.active {
  background-color: var(--hm-surface-2, var(--gray2-color));
  color: var(--hm-accent-light, var(--accent-color));
}

/* the chosen option has a tick */
.hm-tselect .ts-dropdown .option.selected {
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-tselect .ts-dropdown .option.selected::after {
  content: "\f00c";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
}

.hm-tselect .ts-dropdown .no-results {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--hm-muted, var(--secondary-color));
}

/* check box and radio button with a label: drawn here (the box is the input itself, so it stays a real, focusable control) */
.hm-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hm-muted, var(--secondary-color));
  cursor: pointer;
}

.hm-check input {
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--hm-muted, var(--secondary-color));
  border-radius: 6px;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-check input::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.hm-check input:hover {
  border-color: var(--hm-accent-light, var(--accent-color));
}

.hm-check input:checked {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
}

.hm-check input:checked::before {
  transform: scale(1);
}

.hm-check input:focus-visible {
  outline: 2px solid var(--hm-accent-light, var(--accent-color));
  outline-offset: 2px;
}

.hm-check input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* the radio button: a ring with a dot */
.hm-check input[type="radio"] {
  border-radius: 50%;
}

.hm-check input[type="radio"]::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  clip-path: none;
}

.hm-check input[type="radio"]:checked {
  background-color: transparent;
}

.hm-check:hover {
  color: var(--hm-text, var(--primary-color));
}

.hm-check a {
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

/* from - to: two cells in one box, each with a small tag (MIN / MAX), the number and its unit */
.hm-range {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 8px;
  background-color: var(--hm-surface-2, var(--white-color));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.hm-range:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.hm-range-cell {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  cursor: text;
  transition: background-color 0.2s ease;
}

.hm-range-cell:focus-within {
  background-color: var(--hm-surface, var(--gray2-color));
}

.hm-range-tag {
  flex: 0 0 auto;
  font-family: var(--secondary-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-range-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--secondary-font);
  font-size: 15px;
  color: var(--hm-text, var(--primary-color));
  -moz-appearance: textfield;
}

.hm-range-input::-webkit-outer-spin-button,
.hm-range-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.hm-range-input:focus {
  outline: 0;
}

.hm-range-input::placeholder {
  color: var(--hm-muted, var(--secondary-color));
  opacity: 0.6;
}

.hm-range-unit {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-range-sep {
  flex: 0 0 1px;
  margin: 10px 0;
  background-color: var(--hm-line, var(--border-color));
}

/* ===== the search bar ===== */
.hm-searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, var(--white-color));
}

.hm-searchbar-field {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 4px 20px;
  border-right: 1px solid var(--hm-line, var(--border-color));
}

.hm-searchbar-field > i {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-searchbar-field .hm-field {
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

/* the controls in the bar have no box of their own */
.hm-searchbar .hm-input,
.hm-searchbar select.hm-select,
.hm-searchbar .hm-tselect .ts-control {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  border: 0;
  background-color: transparent;
}

.hm-searchbar select.hm-select,
.hm-searchbar .hm-tselect .ts-control {
  padding-right: 26px;
}

.hm-searchbar .hm-select-wrap::after {
  right: 0;
}

.hm-searchbar .hm-range {
  min-height: 0;
  border: 0;
  background-color: transparent;
}

.hm-searchbar .hm-range-cell {
  padding-right: 8px;
  padding-left: 0;
}

.hm-searchbar .hm-range-cell:focus-within {
  background-color: transparent;
}

.hm-searchbar .hm-range-sep {
  margin: 4px 14px 4px 6px;
}

.hm-searchbar .hm-input:focus,
.hm-searchbar select.hm-select:focus,
.hm-searchbar .hm-range:focus-within,
.hm-searchbar .hm-tselect.focus .ts-control,
.hm-searchbar .hm-tselect.dropdown-active .ts-control {
  box-shadow: none;
}

/* a range needs a wider cell than a select */
.hm-searchbar-field-wide {
  flex-basis: 280px;
  flex-grow: 1.4;
}

.hm-searchbar .hm-tselect .ts-dropdown {
  min-width: 240px;
}

.hm-searchbar .hm-btn {
  flex: 0 0 auto;
  margin-left: 20px;
}

@media (max-width: 991.98px) {
  .hm-searchbar-field {
    flex-basis: 100%;
    padding: 8px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--hm-line, var(--border-color));
  }

  .hm-searchbar .hm-btn {
    flex: 1 1 100%;
    margin: 4px 0 0;
  }
}

/* ===== table ===== */
/* a table that scrolls sideways on a narrow screen instead of breaking the page */
.hm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
}

.hm-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--hm-text, var(--primary-color));
}

.hm-table th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hm-line, var(--border-color));
  font-family: var(--secondary-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--hm-line, var(--border-color));
}

.hm-table tbody tr:first-child td {
  border-top: 0;
}

.hm-table tbody tr:hover td {
  background-color: var(--hm-surface-2, var(--gray2-color));
}

.hm-table .hm-num {
  text-align: right;
  white-space: nowrap;
}

.hm-table-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--hm-muted, var(--secondary-color));
}

/* ===== accordion (question and answer) ===== */
/* built on <details>: it opens and closes without a script */
.hm-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hm-accordion-item {
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 8px;
  background-color: var(--hm-surface, var(--white-color));
  transition: border-color 0.25s ease;
}

.hm-accordion-item[open],
.hm-accordion-item:hover {
  border-color: var(--hm-accent-light, var(--accent-color));
}

.hm-accordion-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  font-family: var(--secondary-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--hm-text, var(--primary-color));
  cursor: pointer;
}

.hm-accordion-item > summary::-webkit-details-marker {
  display: none;
}

.hm-accordion-item > summary::after {
  content: "\f078";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 50%;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
  color: var(--hm-accent-light, var(--accent-color));
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hm-accordion-item > summary:hover::after {
  border-color: var(--hm-accent-light, var(--accent-color));
}

.hm-accordion-item[open] > summary::after {
  transform: rotate(180deg);
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #fff;
}

.hm-accordion-body {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-accordion-body p {
  margin: 0;
}

/* ===== the home page ===== */
.hm-hero {
  padding: calc(var(--hm-header-h, 88px) + 8px) 0 72px;
  background: linear-gradient(180deg, var(--hm-surface-2, var(--white-color)) 0%, var(--hm-bg, transparent) 100%);
}

/* the background picture of the hero (the upload of the administrator): the picture covers the section, the colour of the theme background
   is laid over it so the text keeps its own colour and stays readable; the darkening is the setting of the block. The section does not clip
   (overflow): the layers fill it exactly, and the drop-downs of the search bar reach out of it */
.hm-hero-has-image {
  position: relative;
}

.hm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-hero-has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--hm-bg, transparent);
  pointer-events: none;
}

.hm-hero-overlay-low::after {
  opacity: 0.35;
}

.hm-hero-overlay-medium::after {
  opacity: 0.6;
}

.hm-hero-overlay-high::after {
  opacity: 0.82;
}

/* the part of the picture that stays when the section is flatter than the picture (the setting of the block; the middle is the default) */
.hm-hero-pos-top .hm-hero-bg {
  object-position: center top;
}

.hm-hero-pos-bottom .hm-hero-bg {
  object-position: center bottom;
}

/* the bottom of the picture fades into the colour of the theme background (the setting of the block): the gradient is as high as the level says */
.hm-hero-has-image::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--hm-bg, transparent));
  pointer-events: none;
}

/* an eased gradient (soft start and end, no visible edge or banding where it begins): the colour of the theme background in growing steps */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hm-hero-has-image::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      color-mix(in srgb, var(--hm-bg) 1.3%, transparent) 8.1%,
      color-mix(in srgb, var(--hm-bg) 4.9%, transparent) 15.5%,
      color-mix(in srgb, var(--hm-bg) 10.4%, transparent) 22.5%,
      color-mix(in srgb, var(--hm-bg) 17.5%, transparent) 29%,
      color-mix(in srgb, var(--hm-bg) 25.9%, transparent) 35.3%,
      color-mix(in srgb, var(--hm-bg) 35.2%, transparent) 41.2%,
      color-mix(in srgb, var(--hm-bg) 45%, transparent) 47.1%,
      color-mix(in srgb, var(--hm-bg) 55%, transparent) 52.9%,
      color-mix(in srgb, var(--hm-bg) 64.8%, transparent) 58.8%,
      color-mix(in srgb, var(--hm-bg) 74.1%, transparent) 64.7%,
      color-mix(in srgb, var(--hm-bg) 82.5%, transparent) 71%,
      color-mix(in srgb, var(--hm-bg) 89.6%, transparent) 77.5%,
      color-mix(in srgb, var(--hm-bg) 95.1%, transparent) 84.5%,
      color-mix(in srgb, var(--hm-bg) 98.7%, transparent) 91.9%,
      var(--hm-bg) 100%
    );
  }
}

.hm-hero-fade-low::before {
  height: 25%;
}

.hm-hero-fade-medium::before {
  height: 45%;
}

.hm-hero-fade-high::before {
  height: 70%;
}

.hm-hero-has-image > .container {
  position: relative;
  z-index: 2;
}

/* the map in the hero (the setting of the block): the map fills the section, the text and the search bar stay above it, and the map can be
   dragged between them (the text lets the mouse through, the search bar does not); the section is as high as the window or as the hero was */
.hm-hero-map-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* no z-index of its own: the button that loads the map must be above the veil and the fade (a z-index here would make it a layer of its own) */
/* the lower map: the text and the search bar cover the top of the hero, so the section is as high as they need and a map area below them */
.hm-hero-map-hero {
  min-height: 880px;
}

.hm-hero-map-canvas {
  position: absolute;
  inset: 0;
  background-color: var(--hm-surface, transparent);
  transition: opacity 0.3s ease;
}

/* the map moves to another view: it is hidden while the tiles of the new view load (no blown-up tiles of the old zoom) */
.hm-hero-map-canvas.hm-hero-map-moving {
  opacity: 0;
  transition-duration: 0.12s;
}

/* over the map the darkening setting of the block is a veil on the top of the hero (behind the text and the search bar), fading out downwards: the
   markers and the info windows below it are not faded; its strength is the darkening level (the opacity of the classes above) */
.hm-hero-map::after {
  inset: 0 0 auto 0;
  height: 62%;
  background-color: transparent;
  background-image: linear-gradient(to bottom, var(--hm-bg, transparent), transparent);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hm-hero-map::after {
    background-image: linear-gradient(
      to bottom,
      var(--hm-bg) 0%,
      color-mix(in srgb, var(--hm-bg) 98.7%, transparent) 8.1%,
      color-mix(in srgb, var(--hm-bg) 95.1%, transparent) 15.5%,
      color-mix(in srgb, var(--hm-bg) 89.6%, transparent) 22.5%,
      color-mix(in srgb, var(--hm-bg) 82.5%, transparent) 29%,
      color-mix(in srgb, var(--hm-bg) 74.1%, transparent) 35.3%,
      color-mix(in srgb, var(--hm-bg) 64.8%, transparent) 41.2%,
      color-mix(in srgb, var(--hm-bg) 55%, transparent) 47.1%,
      color-mix(in srgb, var(--hm-bg) 45%, transparent) 52.9%,
      color-mix(in srgb, var(--hm-bg) 35.2%, transparent) 58.8%,
      color-mix(in srgb, var(--hm-bg) 25.9%, transparent) 64.7%,
      color-mix(in srgb, var(--hm-bg) 17.5%, transparent) 71%,
      color-mix(in srgb, var(--hm-bg) 10.4%, transparent) 77.5%,
      color-mix(in srgb, var(--hm-bg) 4.9%, transparent) 84.5%,
      color-mix(in srgb, var(--hm-bg) 1.3%, transparent) 91.9%,
      transparent 100%
    );
  }
}

.hm-hero-map > .container,
.hm-hero-map .hm-hero-text {
  pointer-events: none;
}

.hm-hero-map .hm-hero-search {
  pointer-events: auto;
}

/* the text and the search bar over a busy map must stay readable: the veil of the top of the hero is stronger over the map than over a picture, the
   text has a halo in the colour of the page background (as the labels of a map have), the search bar and the chips stand out from the map */
.hm-hero-map.hm-hero-overlay-low::after {
  opacity: 0.55;
}

.hm-hero-map.hm-hero-overlay-medium::after {
  opacity: 0.78;
}

.hm-hero-map.hm-hero-overlay-high::after {
  opacity: 0.92;
}

.hm-hero-map .hm-hero-text {
  text-shadow: 0 0 3px var(--hm-bg, transparent), 0 0 12px var(--hm-bg, transparent), 0 0 26px var(--hm-bg, transparent);
}

.hm-hero-map .hm-hero-search .hm-searchbar {
  border-color: var(--hm-line, var(--border-color));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

/* the shadow is mixed from the colour of the text of the theme (a dark one on a light theme, a light glow on a dark one) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hm-hero-map .hm-hero-search .hm-searchbar {
    box-shadow: 0 14px 36px color-mix(in srgb, var(--hm-text, var(--primary-color, #000000)) 24%, transparent);
  }
}

/* the chips that are not on have a surface of their own over the map and over a picture (the halftone text is lost on the picture) */
.hm-hero-map .hm-hero-search .hm-chip:not(.hm-chip-active):not([aria-pressed="true"]),
.hm-hero-has-image .hm-hero-search .hm-chip:not(.hm-chip-active):not([aria-pressed="true"]) {
  background-color: var(--hm-surface, var(--hm-bg, var(--white-color)));
}

/* before the map loads on a click (one row at the bottom of the hero, under the search bar: the button and the note) and when it can not load */
.hm-hero-map-load,
.hm-hero-map-error {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--hm-text, inherit);
}

.hm-hero-map-load {
  bottom: 16px;
  z-index: 3;
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
}

.hm-hero-map-load .hm-map-note {
  margin: 0;
}

.hm-hero-map-error {
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
}

/* the legend of the pins (when the map has sold real estates too): over the fade, at the bottom left of the hero */
.hm-hero-map-legend {
  position: absolute;
  bottom: 16px;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 12px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 8px;
  background-color: var(--hm-surface, var(--hm-bg, var(--white-color)));
  color: var(--hm-text, inherit);
  align-items: center;
  font-size: 12px;
}

.hm-hero-map-count {
  font-weight: 700;
}

.hm-hero-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* the info window of a marker (the window of the Google is white: its text is dark in every theme) */
.hm-map-iw {
  display: flex;
  gap: 12px;
  max-width: 320px;
  color: #1f2430;
  font-size: 13px;
  line-height: 1.4;
}

.hm-map-iw-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.hm-map-iw-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hm-map-iw-title {
  font-size: 14px;
}

.hm-map-iw-price {
  font-weight: 700;
}

.hm-map-iw-link {
  margin-top: 4px;
  color: #1a5fb4;
  text-decoration: underline;
}

/* the look settings of the content blocks of the administrator (layout_blocks): the background, the width, the alignment, the columns */
.hm-bg-surface {
  background-color: var(--hm-surface, transparent);
}

.hm-bg-accent {
  background-color: var(--hm-surface-2, var(--hm-surface, transparent));
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hm-bg-accent {
    background-color: color-mix(in srgb, var(--accent-color) 14%, transparent);
  }
}

.hm-layout-narrow .container > *,
.hm-layout-narrow.hm-detail-block > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.hm-layout-center {
  text-align: center;
}

/* the card of a blog post: the cover cut to 16:9 (a neutral place without one), the date, the excerpt and the "more" line */
.hm-card-blog .hm-card-media {
  aspect-ratio: 16 / 9;
}

.hm-card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--hm-muted, var(--accent-color));
}

.hm-card-date {
  margin: 0;
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

.hm-card-excerpt {
  margin: 4px 0 0;
  color: var(--hm-text, inherit);
}

.hm-card-more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 600;
  color: var(--accent-color);
}

/* the page of a blog post: the cover over the text, the other posts under it */
.hm-post-cover {
  padding-bottom: 8px;
}

.hm-post-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hm-post-more .hm-post-back {
  margin: 32px 0 0;
  text-align: center;
}

/* a picture block as a section of a page is closer to the text around it than the other sections are */
.hm-home-section.hm-layout-image {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* the text and the pictures of a page follow each other close: the other blocks (lists, numbers, bands) keep the room of a section */
.hm-home-section.hm-layout-richtext {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* a picture block ("Kép"): the size (narrow, normal, full width of the column) and the place of the picture in the column */
.hm-figure {
  margin: 0;
}

.hm-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.hm-figure-narrow {
  max-width: 480px;
}

.hm-figure-normal {
  max-width: 760px;
}

.hm-figure-full {
  max-width: none;
}

.hm-figure-center {
  margin-right: auto;
  margin-left: auto;
}

.hm-figure-right {
  margin-left: auto;
}

/* a small picture in the text that follows it: on a wide screen it floats and the text runs around it (and under it); the text block holds it */
.hm-figure-wrap::after {
  display: block;
  clear: both;
  content: "";
}

/* the headings of the template clear the floats: here the text, headings too, runs around the picture */
.hm-figure-wrap h1,
.hm-figure-wrap h2,
.hm-figure-wrap h3,
.hm-figure-wrap h4,
.hm-figure-wrap h5,
.hm-figure-wrap h6 {
  clear: none;
}

@media (min-width: 992px) {
  .hm-figure-float {
    width: 42%;
    margin-bottom: 16px;
  }

  /* a picture of the normal size is wider (about the half of the column) and has a place in the text, too */
  .hm-figure-normal.hm-figure-float {
    width: 50%;
    max-width: 560px;
  }

  .hm-figure-float-left {
    float: left;
    margin-right: 32px;
  }

  .hm-figure-float-right {
    float: right;
    margin-left: 32px;
  }
}

@media (max-width: 991.98px) {
  .hm-figure-float {
    margin-bottom: 20px;
  }
}

.hm-figure-caption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--hm-muted, inherit);
}

.hm-layout-center .hm-section-head > div {
  margin-right: auto;
  margin-left: auto;
}

.hm-layout-card .hm-detail-text > :last-child {
  margin-bottom: 0;
}

.hm-accordion.hm-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* the columns of the numbers, the steps and the team the administrator chose; a team with automatic columns fills the row with its two or
   three colleagues */
.hm-stats.hm-cols-2,
.hm-steps.hm-cols-2,
.hm-team.hm-cols-2,
.hm-team-auto.hm-team-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-stats.hm-cols-3,
.hm-steps.hm-cols-3,
.hm-team.hm-cols-3,
.hm-team-auto.hm-team-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-stats.hm-cols-4,
.hm-steps.hm-cols-4,
.hm-team.hm-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* the colleagues of a "Csapatunk" block: the cards of the agents side by side, as many as fit (or the columns of the administrator) */
.hm-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* one colleague (the columns automatic) lies on its side (below); the cards stand at the start of the row, in the middle when the block is
   centered */
.hm-team-auto.hm-team-count-1 {
  grid-template-columns: minmax(0, 900px);
}

.hm-layout-center .hm-team {
  justify-content: center;
}

/* a card of the team fills its cell, its buttons stay at the bottom */
.hm-team > li {
  display: flex;
}

.hm-team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.hm-team-card .hm-agent-actions {
  margin-top: auto;
  padding-top: 22px;
}

.hm-stats-card .hm-stat {
  padding: 20px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
}

.hm-stats-card {
  padding: 0;
  border: 0;
}

.hm-cta-band-card {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hm-cta-band-card .hm-cta-text {
  flex: 0 0 auto;
}

/* the caption and the buttons of the band follow the color of the band (the accent text and the accent button vanish on an accent band) */
.hm-cta-band .hm-eyebrow {
  color: inherit;
  opacity: 0.8;
}

.hm-cta-band .hm-btn-outline {
  border-color: currentColor;
  color: inherit;
}

.hm-cta-band .hm-btn-solid {
  --hm-btn-fill: var(--hm-on-accent, #111);
  border-color: var(--hm-text, #fff);
  background-color: var(--hm-text, #fff);
  color: var(--hm-on-accent, #111);
}

/* on hover the button fills with the on-accent color, and its text turns to the text color (the text of the band is the on-accent color too: it
   would not show on the fill) */
.hm-cta-band .hm-btn-solid:hover,
.hm-cta-band .hm-btn-solid:focus-visible {
  color: var(--hm-text, #fff);
}

@media (max-width: 767.98px) {
  .hm-accordion.hm-cols-2,
  .hm-stats[class*="hm-cols-"],
  .hm-steps[class*="hm-cols-"],
  .hm-team[class*="hm-team-count-"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the one colleague on its side (from a tablet up): the portrait, the name and the title on the left, the introduction and the buttons (in a row)
   on the right */
@media (min-width: 768px) {
  .hm-team-auto.hm-team-count-1 .hm-team-card {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    grid-template-areas: "head intro" "head actions";
    grid-template-rows: auto 1fr;
    column-gap: 32px;
  }

  .hm-team-auto.hm-team-count-1 .hm-agent-head {
    grid-area: head;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hm-team-auto.hm-team-count-1 .hm-agent-intro {
    grid-area: intro;
    margin-top: 0;
    -webkit-line-clamp: 6;
  }

  .hm-team-auto.hm-team-count-1 .hm-agent-actions {
    grid-area: actions;
    align-self: end;
  }

  /* the one card and the two wide cards: the buttons stand in a row (they share it, a button that does not fit goes to the next one) */
  .hm-team-auto.hm-team-count-1 .hm-agent-actions,
  .hm-team-auto.hm-team-count-2 .hm-agent-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hm-team-auto.hm-team-count-1 .hm-agent-actions .hm-btn,
  .hm-team-auto.hm-team-count-2 .hm-agent-actions .hm-btn {
    flex: 1 1 auto;
  }
}

/* three colleagues on a tablet: two in a row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hm-team-auto.hm-team-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* a section that is the first thing of a page (a content block of the administrator, or a block that the administrator moved to the top
   of the home page) keeps clear of the fixed header, as the pages without a hero do */
main > .hm-layout-block:first-child,
main > .hm-home-section:first-child {
  padding-top: calc(var(--hm-header-h, 88px) + 52px);
}

/* the hero when the administrator split it (a block stands between the text and the search, or one of them is off) */
.hm-hero-part {
  padding: 48px 0 24px;
}

.hm-hero-part .hm-hero-text {
  margin-bottom: 0;
}

.hm-hero-text {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.hm-hero-title {
  margin: 0 0 16px;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 64px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.1;
}

.hm-hero-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--hm-muted, inherit);
}

/* on a picture the subtitle is the text color in the light look: the halftone muted color is too faint on the veiled picture */
html:not(.cs_dark) .hm-hero-has-image .hm-hero-subtitle {
  color: var(--hm-text, inherit);
}

.hm-hero-search .hm-chips {
  justify-content: center;
  margin-bottom: 16px;
}

.hm-hero-fallback {
  text-align: center;
}

.hm-home-section {
  padding: 40px 0 56px;
}

@media (max-width: 991.98px) {
  .hm-hero {
    padding: calc(var(--hm-header-h, 88px) + 16px) 0 48px;
  }

  .hm-hero-title {
    font-size: 44px;
  }
}

@media (max-width: 575.98px) {
  .hm-hero-title {
    font-size: 34px;
  }

  .hm-hero-subtitle {
    font-size: 16px;
  }
}

/* ===== the list of the real estates ===== */
/* the header of the site is fixed (--hm-header-h) and the page starts under it: the first block of an inner page leaves room for it */
.hm-list-head {
  padding: calc(var(--hm-header-h, 88px) + 32px) 0 8px;
  background: linear-gradient(180deg, var(--hm-surface-2, var(--white-color)) 0%, var(--hm-bg, transparent) 100%);
}

.hm-list-count {
  margin: 0;
  color: var(--hm-muted, inherit);
}

.hm-list-count strong {
  color: var(--hm-text, inherit);
}

.hm-list-search .hm-chips {
  margin-bottom: 16px;
}

/* the filters of the list: the bar and the row under it (ad type, rooms, features) are one box */
.hm-searchbox {
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, var(--white-color));
}

.hm-searchbox .hm-searchbar {
  border: 0;
  border-radius: 12px 12px 0 0;
  background-color: transparent;
}

.hm-searchbox-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin: 0 16px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--hm-line, var(--border-color));
}

.hm-searchbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.hm-searchbox-group .hm-label {
  margin: 0;
}

/* the results bar above the cards: the count and the sort as a button group */
/* a bar with something at its left and the tools at its right: the bar over a list and the head of a block of a detail page */
.hm-list-bar,
.hm-detail-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.hm-list-bar {
  margin-bottom: 24px;
}

.hm-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 999px;
  overflow: hidden;
}

.hm-segment {
  padding: 7px 16px;
  border-left: 1px solid var(--hm-line, var(--border-color));
  font-size: 13px;
  color: inherit;
}

.hm-segment:first-child {
  border-left: 0;
}

.hm-segment:hover {
  color: var(--accent-color);
}

.hm-segment i {
  font-size: 11px;
}

.hm-segment i:first-child {
  margin-right: 6px;
}

.hm-segment i:last-child:not(:first-child) {
  margin-left: 4px;
}

/* the sort of the list: the current choice, the others open on hover, focus or a tap */
.hm-sort {
  position: relative;
}

.hm-sort-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--accent-color);
  border-radius: 999px;
  background-color: var(--accent-color);
  font-family: var(--secondary-font);
  font-size: 13px;
  color: var(--hm-on-accent, #fff);
  cursor: pointer;
}

.hm-sort-current i:first-child {
  margin-right: 0;
}

.hm-sort-chevron {
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.2s;
}

.hm-sort:hover .hm-sort-chevron,
.hm-sort:focus-within .hm-sort-chevron,
.hm-sort.is-open .hm-sort-chevron {
  transform: rotate(180deg);
}

.hm-sort-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  display: none;
  min-width: 220px;
  padding: 8px 0 0;
}

/* the gap between the button and the list is part of the hover area */
.hm-sort:hover .hm-sort-menu,
.hm-sort:focus-within .hm-sort-menu,
.hm-sort.is-open .hm-sort-menu {
  display: block;
}

.hm-sort-menu > a:first-child {
  border-radius: 12px 12px 0 0;
}

.hm-sort-menu > a:last-child {
  border-radius: 0 0 12px 12px;
}

.hm-sort-option {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-top-width: 0;
  background-color: var(--hm-surface, #fff);
  font-size: 13px;
  color: inherit;
  white-space: nowrap;
}

.hm-sort-menu > a:first-child {
  border-top-width: 1px;
}

.hm-sort-option i:first-child {
  width: 18px;
  margin-right: 8px;
  text-align: center;
  color: var(--accent-color);
}

.hm-sort-option i:last-child:not(:first-child),
.hm-sort-current i:nth-child(2):not(.hm-sort-chevron) {
  margin-left: 4px;
}

.hm-sort-option:hover {
  color: var(--accent-color);
}

.hm-sort-option-active {
  font-weight: 600;
  color: var(--accent-color);
}

/* the segments as radio buttons (no script needed) */
.hm-seg-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.hm-seg-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hm-seg-option .hm-segment {
  display: block;
  border-left: 1px solid var(--hm-line, var(--border-color));
}

.hm-seg-option:first-child .hm-segment {
  border-left: 0;
}

.hm-seg-option input:checked + .hm-segment {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

.hm-seg-option input:focus-visible + .hm-segment {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.hm-segment-active,
.hm-segment-active:hover {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

/* a checkbox that looks like a chip (no script needed) */
.hm-chip-check {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.hm-chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hm-chip-check input:checked + .hm-chip {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

.hm-chip-check input:focus-visible + .hm-chip {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* the filters that are set, each removable */
.hm-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 14px;
}

.hm-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 999px;
  background-color: transparent;
  font-family: var(--secondary-font);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hm-muted, inherit);
  opacity: 0.95;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.hm-filter-chip:hover {
  border-color: var(--accent-color);
  color: var(--hm-text, inherit);
}

.hm-filter-chip i {
  font-size: 10px;
  color: var(--accent-color);
}

/* the chips over the first few are folded behind the "+N további" chip (script only: without it every chip shows) */
.hm-filter-chip-more {
  border-style: dashed;
  color: var(--accent-color);
}

.hm-filter-chip-more {
  display: none;
}

.hm-js .hm-filter-chip-more {
  display: inline-flex;
}

/* the folded chips open in a panel under the row, so the content below does not move */
.hm-active-filters {
  position: relative;
}

.hm-chips-rest {
  display: contents;
}

.hm-js .hm-chips-rest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: min(640px, 100%);
  padding: 12px;
}

.hm-js .hm-active-filters.is-expanded .hm-chips-rest {
  display: flex;
}

.hm-list-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.hm-list-head + .hm-home-section {
  padding-top: 32px;
}

.hm-list-head + .hm-home-section .hm-pagination {
  margin-top: 40px;
}

.hm-list-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}


/* the place and the type fields take several values: the field shows the first choice and "+N" for the others, so the bar keeps its
   height; the choices are checkboxes in the list, and removable chips under the bar */
.hm-tselect.multi .ts-control {
  flex-wrap: nowrap;
  overflow: hidden;
}

.hm-tselect.multi .ts-control > div.item,
.hm-tselect.multi .ts-control > div.item.active {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background-color: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hm-text, inherit);
  /* a click on the choice opens the list (the choices are changed there) */
  pointer-events: none;
}

.hm-tselect.multi .ts-control > div.item:nth-child(n+2) {
  display: none;
}

/* the first choice and the input share the line; the input is only wide when there is no choice yet */
.hm-tselect.multi.has-items .ts-control > input {
  flex: 0 0 8px;
  min-width: 8px;
  width: 8px;
}

.hm-tselect.multi .ts-control[data-more]::before {
  content: attr(data-more);
  order: 3;
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background-color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  color: var(--hm-on-accent, #fff);
}

.hm-tselect.multi .ts-control > input {
  order: 2;
}

/* the list: wide enough for the names, the search field on top, the options scroll, the count at the right */
.hm-tselect.multi .ts-dropdown,
.hm-tselect.hm-tselect-search .ts-dropdown {
  text-align: left;
  width: max-content !important;
  min-width: max(100%, 260px);
  max-width: min(420px, 90vw);
}

.hm-tselect.multi .ts-dropdown .dropdown-input-wrap,
.hm-tselect.hm-tselect-search .ts-dropdown .dropdown-input-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--hm-line, var(--border-color));
}

.hm-tselect.multi .ts-dropdown .dropdown-input,
.hm-tselect.hm-tselect-search .ts-dropdown .dropdown-input {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 8px;
  outline: 0;
  background-color: var(--hm-surface-2, transparent);
  box-shadow: none;
  font-family: var(--secondary-font);
  font-size: 14px;
  color: var(--hm-text, inherit);
}

.hm-tselect.multi .ts-dropdown .dropdown-input:focus,
.hm-tselect.hm-tselect-search .ts-dropdown .dropdown-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.hm-tselect.multi .ts-dropdown .dropdown-input::placeholder,
.hm-tselect.hm-tselect-search .ts-dropdown .dropdown-input::placeholder {
  color: var(--hm-muted, inherit);
  opacity: 0.8;
}

.hm-tselect.multi .ts-dropdown .no-results,
.hm-tselect.hm-tselect-search .ts-dropdown .no-results {
  padding: 14px;
  text-align: center;
  color: var(--hm-muted, inherit);
}

/* Tom Select draws a border under the field while the list is open: the field in the bar has none */
.hm-searchbar .hm-tselect.multi .ts-control,
.hm-searchbar .hm-tselect.multi.focus .ts-control,
.hm-searchbar .hm-tselect.multi.dropdown-active .ts-control {
  border: 0 !important;
  box-shadow: none !important;
}

/* while the list is open the plugin takes the choice out of the field: the field keeps its height, so the fields around it do not move */
.hm-searchbar .hm-tselect.multi .ts-control {
  min-height: 18px;
}

.hm-tselect.multi .ts-dropdown .ts-dropdown-content,
.hm-tselect.hm-tselect-search .ts-dropdown .ts-dropdown-content {
  max-height: 320px;
}

.hm-tselect.multi .ts-dropdown .optgroup-header,
.hm-tselect.hm-tselect-search .ts-dropdown .optgroup-header {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  background-color: transparent;
}

.hm-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
  vertical-align: middle;
}

.hm-option span {
  flex: 1 1 auto;
  text-align: left;
}

.hm-counts-busy .hm-field:has(.ts-wrapper.locked) { position: relative; }
.hm-counts-busy .hm-field:has(.ts-wrapper.locked)::after {
  content: ''; position: absolute; bottom: 0.45rem; right: 1.7rem; width: 0.7rem; height: 0.7rem; box-sizing: border-box;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0.6; pointer-events: none;
  animation: hm-counts-spin 0.7s linear infinite;
}
@keyframes hm-counts-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hm-counts-busy .hm-field:has(.ts-wrapper.locked)::after { animation-duration: 2s; } }
.hm-option.is-empty {
  opacity: 0.45;
}

.hm-option small {
  font-size: 13px;
  font-weight: 400;
  color: var(--hm-muted, inherit);
}

/* the options with a checkbox */
.hm-tselect .ts-dropdown .option {
  color: var(--hm-text, inherit);
}

/* a chosen option is a tinted row with a tick: the check box of the plugin is not shown */
.hm-tselect.multi .ts-dropdown .option input.tomselect-checkbox {
  display: none;
}

.hm-tselect.multi .ts-dropdown .option.selected {
  background-color: color-mix(in srgb, var(--accent-color) 14%, transparent);
  font-weight: 600;
}

.hm-tselect.multi .ts-dropdown .option.selected small {
  color: inherit;
}

/* ===== the filters of the list in a panel that slides in from the right ===== */
/* without the script (no .hm-js class) the panel is a plain block at the top of the list and the form works as it is */
.hm-filter-toggle,
.hm-filter-close,
.hm-filter-backdrop {
  display: none;
}

.hm-js .hm-filter-toggle,
.hm-js .hm-filter-close {
  display: inline-flex;
}

.hm-filter-toggle {
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--accent-color);
  border-radius: 999px;
  background-color: transparent;
  font-family: var(--secondary-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-color);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.hm-filter-toggle:hover {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
}

.hm-filter-badge {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--accent-color);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  color: var(--hm-on-accent, #fff);
}

.hm-filter-toggle:hover .hm-filter-badge {
  background-color: var(--hm-on-accent, #fff);
  color: var(--accent-color);
}

.hm-list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hm-filter-panel {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, var(--hm-bg, #fff));
}

.hm-js .hm-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: block;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.hm-js .hm-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: min(460px, 100vw);
  margin: 0;
  border: 0;
  border-radius: 0;
  background-color: var(--hm-bg, #fff);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.is-filters-open {
  overflow: hidden;
}

.is-filters-open .hm-filter-backdrop {
  opacity: 1;
  visibility: visible;
}

.is-filters-open .hm-filter-panel {
  transform: none;
  visibility: visible;
}

.hm-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hm-line, var(--border-color));
}

.hm-filter-panel-head h2 {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 24px;
  font-weight: var(--hm-display-weight, 700);
}

.hm-filter-close {
  align-items: center;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
}

.hm-filter-close:hover {
  color: var(--accent-color);
}

.hm-filter-panel-body {
  flex: 1 1 auto;
  padding: 8px 24px 24px;
}

.hm-js .hm-filter-panel-body {
  overflow-y: auto;
}

.hm-filter-panel-foot {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--hm-line, var(--border-color));
}

.hm-js .hm-filter-panel-foot {
  background-color: var(--hm-bg, #fff);
}

.hm-filter-panel-foot .hm-btn:last-child {
  flex: 1 1 auto;
}

/* the form in the panel: the fields one under the other */
.hm-filter-panel .hm-searchbox {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hm-filter-panel .hm-searchbar {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hm-filter-panel .hm-searchbar-field,
.hm-filter-panel .hm-searchbar-field-wide {
  flex: none;
  padding: 16px 0;
  border-right: 0;
  border-bottom: 1px solid var(--hm-line, var(--border-color));
}

.hm-js .hm-filter-panel .hm-searchbar > .hm-btn {
  display: none;
}

.hm-filter-panel .hm-searchbox-row {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 0;
}

.hm-filter-panel .hm-searchbox-group {
  flex-direction: column;
  align-items: flex-start;
}

.hm-filter-panel .hm-segmented {
  max-width: 100%;
}

/* the filters that are set, under the title; the last one clears them all */
.hm-filter-clear {
  padding: 3px 4px;
  border: 0;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  color: var(--hm-muted, var(--accent-color));
}

.hm-filter-clear:hover {
  color: var(--hm-text, inherit);
}

/* the offer of round amounts under a price field */
.hm-field {
  position: relative;
}

.hm-suggest {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 6px;
}

.hm-suggest[hidden] {
  display: none;
}

.hm-suggest button {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: var(--secondary-font);
  font-size: 13px;
  text-align: left;
  color: var(--hm-text, inherit);
  cursor: pointer;
}

.hm-suggest button:hover {
  background-color: color-mix(in srgb, var(--accent-color) 14%, transparent);
  color: var(--accent-color);
}

/* the question mark next to a filter and its explanation */
.hm-help {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

.hm-help-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  color: var(--hm-muted, inherit);
  opacity: 0.8;
  cursor: help;
  transition: color 0.2s, opacity 0.2s;
}

.hm-help-button:hover,
.hm-help-button:focus-visible,
.hm-help.is-open .hm-help-button {
  color: var(--accent-color);
  opacity: 1;
}

.hm-help-bubble {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: -8px;
  display: none;
  width: min(280px, 70vw);
  padding: 12px 14px;
}

.hm-help:hover .hm-help-bubble,
.hm-help.is-open .hm-help-bubble {
  display: block;
}

/* the number of the photos of a real estate, in the corner of its picture */
.hm-card-media .hm-card-marks {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.hm-card-marks .hm-card-photos[data-tip],
.hm-card-marks .hm-card-videos[data-tip],
.hm-card-marks .hm-card-plans[data-tip] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  background-color: rgba(10, 14, 22, 0.78);
  font-family: var(--secondary-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.hm-card-photos i,
.hm-card-videos i,
.hm-card-plans i {
  font-size: 11px;
}

/* the explanation of a small mark on a card (a badge, a fact, the heart) when the pointer is over it */
.hm-card [data-tip] {
  position: relative;
}

.hm-card [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  max-width: 210px;
  padding: 7px 10px;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.hm-card [data-tip][data-tip-end]::after {
  left: auto;
  right: 0;
}

.hm-card [data-tip][data-tip-up]::after {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(4px);
}

.hm-card [data-tip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* one look for every bubble: the explanation of a filter, the explanation on a card, the offer of the price amounts and the folded
   filter chips. The colors come from the theme (surface, line, text), so a light and a dark site each get their own. */
.hm-help-bubble,
.hm-card [data-tip]::after,
.hm-suggest,
.hm-js .hm-chips-rest {
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface-2, var(--hm-surface, #fff));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-family: var(--secondary-font);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hm-text, inherit);
}

.hm-help-bubble,
.hm-card [data-tip]::after {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== the detail page of a real estate ===== */
.hm-detail-head {
  padding: calc(var(--hm-header-h, 88px) + 32px) 0 8px;
  background: linear-gradient(180deg, var(--hm-surface-2, var(--white-color)) 0%, var(--hm-bg, transparent) 100%);
}

/* the breadcrumb with the way back to the search (shown by search-return.js) on the right */
.hm-detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.hm-back {
  font-size: 13px;
  text-decoration: none;
  color: var(--hm-text, var(--primary-color));
}

.hm-back[hidden] {
  display: none;
}

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

.hm-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.hm-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

/* the badges sit on the page here, not on a photo: the dark overlay of the card would vanish into the background */
.hm-detail-badges .hm-badge:not(.hm-badge-accent) {
  border: 1px solid var(--hm-line, var(--border-color));
  background-color: var(--hm-surface-2, var(--gray-color));
  color: var(--hm-text, var(--primary-color));
}

.hm-detail-title .hm-section-title {
  margin: 0;
}

.hm-detail-place {
  margin: 12px 0 0;
  color: var(--hm-muted, inherit);
}

.hm-detail-place i {
  margin-right: 6px;
  color: var(--accent-color);
}

.hm-detail-price {
  text-align: right;
}

.hm-detail-price strong {
  display: block;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 34px;
  font-weight: var(--hm-display-weight, 700);
  line-height: 1.2;
  color: var(--accent-color);
}

.hm-detail-price span {
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

.hm-detail-body {
  padding: 24px 0 56px;
}

/* the gallery: the big picture and a grid of the others; every picture opens the lightbox */
.hm-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
  margin-bottom: 40px;
}

.hm-gallery-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hm-gallery-main,
.hm-gallery-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--hm-surface-2, transparent);
}

/* the picture that has the focus (after the lightbox is closed with Esc, or with the keyboard): the accent of the site, inside the picture,
   instead of the white and blue ring of the browser */
.hm-gallery > a:focus {
  outline: 0;
}

.hm-gallery > a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -4px;
}

.hm-gallery > a {
  /* the template gives its gallery items a fixed width (.cs_gallery_item): here the grid decides */
  width: auto;
  min-width: 0;
  min-height: 0;
}

/* the picture fills its cell and never sizes it (a large picture would stretch the grid) */
.hm-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-gallery a:hover img {
  transform: scale(1.04);
}

.hm-gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 26px 14px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 100%);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  pointer-events: none;
}

.hm-gallery-thumb .hm-gallery-caption {
  padding: 22px 10px 7px;
  font-size: 12px;
}

/* the videos of the real estate: a picture with a play mark, the player of YouTube loads on a click (video-consent.js) */
.hm-videos {
  display: grid;
  gap: 16px;
}

.hm-videos-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-video {
  margin: 0;
}

/* a row that scrolls sideways (carousel.js has the arrows): the videos of the home page and of a project, the featured real estates of the home
   page. Three items in view, two on a tablet, one with the beginning of the next on a phone; --hm-snap-gap is the gap between the items. */
.hm-videos-home,
.hm-cards-home {
  display: flex;
  gap: var(--hm-snap-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hm-videos-home::-webkit-scrollbar,
.hm-cards-home::-webkit-scrollbar {
  display: none;
}

.hm-videos-home .hm-video,
.hm-cards-home .hm-cards-item {
  flex: 0 0 calc((100% - 2 * var(--hm-snap-gap)) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 991.98px) {
  .hm-videos-home .hm-video,
  .hm-cards-home .hm-cards-item {
    flex-basis: calc((100% - var(--hm-snap-gap)) / 2);
  }
}

@media (max-width: 575.98px) {
  .hm-videos-home .hm-video,
  .hm-cards-home .hm-cards-item {
    flex-basis: 86%;
  }
}

/* the videos: the title of the video and the real estate under it */
.hm-videos-home {
  --hm-snap-gap: 16px;
}

/* the featured real estates: the padding leaves room for the lift of a card on hover, which the scrolling row would cut */
.hm-cards-home {
  --hm-snap-gap: 24px;
  margin: -8px 0;
  padding: 8px 0;
}


/* the arrows and the link "all the real estates" side by side in the head of the section */
.hm-section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 28px;
}

/* the arrows of the carousel are in the head of the section; they show only when the row scrolls */
.hm-carousel-nav {
  display: none;
  gap: 10px;
}

.hm-carousel.is-scrollable .hm-carousel-nav {
  display: flex;
  align-items: center;
}

/* "1–3 / 12": the videos in view and all of them */
.hm-carousel-count {
  margin-right: 6px;
  font-family: var(--secondary-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-muted, inherit);
}

/* the progress under the row: the thumb is as wide as the part in view and moves with the row */
.hm-carousel-progress {
  display: none;
  position: relative;
  height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background-color: var(--hm-line, var(--border-color));
}

.hm-carousel.is-scrollable .hm-carousel-progress {
  display: block;
}

.hm-carousel-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  min-width: 24px;
  border-radius: 2px;
  background-color: var(--accent-color);
  transition: left 0.15s ease-out;
}

.hm-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  background-color: transparent;
  font-size: 15px;
  color: var(--accent-color);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hm-carousel-btn:hover:not(:disabled),
.hm-carousel-btn:focus-visible:not(:disabled) {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
  outline: 0;
}

.hm-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.hm-videos-home .hm-video-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-videos-home .hm-video-title strong {
  font-weight: 600;
  color: var(--hm-text, inherit);
}

.hm-videos-home .hm-video-title a {
  text-decoration: none;
  color: var(--accent-color);
}

.hm-videos-home .hm-video-title a:hover {
  text-decoration: underline;
}

.hm-video-play,
.hm-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.hm-video-play {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-color: var(--hm-surface-2, var(--gray-color));
  cursor: pointer;
}

.hm-video-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-video-play:hover img {
  transform: scale(1.03);
}

.hm-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background-color: var(--accent-color);
  font-size: 22px;
  color: var(--hm-on-accent, #fff);
  transition: transform 0.2s ease;
}

.hm-video-icon i {
  margin-left: 4px;
}

.hm-video-play:hover .hm-video-icon {
  transform: scale(1.08);
}

.hm-video-play:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hm-video-title {
  margin-top: 8px;
  font-size: 14px;
  color: var(--hm-muted, inherit);
}

/* the window of a video: a large player over the page, which is blurred (like the one behind the photos); video-consent.js opens it */
html.hm-video-open {
  overflow: hidden;
}

.hm-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background-color: rgba(8, 10, 16, 0.74);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: hm-video-in 0.2s ease;
}

@keyframes hm-video-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-video-overlay {
    animation: none;
  }
}

.hm-video-content {
  /* as wide as the window allows, but not higher than it: 16:9 */
  width: min(100%, 1800px, calc((100vh - 140px) * 16 / 9));
}

.hm-video-overlay .hm-video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background-color: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hm-video-overlay .hm-video-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.hm-video-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  font-size: 15px;
  color: #fff;
}

.hm-video-caption-title {
  font-weight: 600;
}

.hm-video-caption-link {
  font-size: 13px;
  text-decoration: underline;
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-video-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  font-size: 18px;
  line-height: 40px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hm-video-close:hover,
.hm-video-close:focus-visible {
  background-color: var(--accent-color);
  color: var(--hm-on-accent, #fff);
  outline: 0;
}

.hm-video-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--hm-muted, inherit);
}

.hm-video-note a {
  text-decoration: underline;
  color: var(--accent-color);
}

@media (max-width: 575.98px) {
  .hm-videos-n2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the floor plans of the real estate: a picture each, whole (the plan is never cropped), the lightbox shows it larger */
.hm-plans {
  display: grid;
  gap: 16px;
}

.hm-plans-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-plans-n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-plan {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 10px;
  background-color: var(--hm-surface-2, var(--white-color));
  /* the template gives its gallery items a fixed width (.cs_gallery_item): here the grid decides */
  width: auto;
  min-width: 0;
}

.hm-plan img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.hm-plan:hover img {
  transform: scale(1.02);
}

/* no ring on the floor plan: the lightbox gives the focus back to it when it is closed, and the ring then looked like a selection */
.hm-plan:focus,
.hm-plan:focus-visible {
  outline: 0;
}

.hm-plan-caption {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--hm-line, var(--border-color));
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

@media (max-width: 991.98px) {
  .hm-plans-n3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hm-plans-n2,
  .hm-plans-n3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hm-gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: var(--secondary-font);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.hm-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, transparent);
  list-style: none;
}

.hm-detail-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* balanced rows: six facts are three and three, four are two and two on a narrower column (no lone fact on a second row) */
.hm-detail-facts-n6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
  .hm-detail-facts-n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* a phone: two facts in a row instead of a tall single column */
@media (max-width: 575.98px) {
  .hm-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 18px 16px;
  }

  .hm-detail-facts li {
    gap: 10px;
  }
}

.hm-detail-facts i {
  width: 20px;
  font-size: 20px;
  text-align: center;
  color: var(--accent-color);
}

.hm-detail-facts span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--hm-text, inherit);
}

.hm-detail-facts small {
  font-size: 12px;
  font-weight: 400;
  color: var(--hm-muted, inherit);
}

.hm-detail-block {
  margin-top: 40px;
}

/* the main column of a detail page: its blocks stand in the order the administrator chose, and each used to bring its own margin (the blocks a
   top margin, the facts and the project a bottom one), so a pair had no space between when the margin was not on the side that touches. Here
   the space between two blocks is one and the same for every pair; the margins of the blocks and of what is in them are not used at the edges (div.: it wins over them) */
div.hm-detail-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

div.hm-detail-main > * {
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* a block is one element (see the detail pages): the margins of what is inside it do not add to the space between the blocks */
.hm-detail-section > :first-child {
  margin-top: 0;
}

.hm-detail-section > :last-child {
  margin-bottom: 0;
}

.hm-detail-heading {
  margin: 0 0 18px;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 26px;
  font-weight: var(--hm-display-weight, 700);
}

.hm-detail-text {
  line-height: 1.8;
  color: var(--hm-muted, inherit);
}

.hm-detail-text p {
  margin: 0 0 14px;
}

/* a link of a text is underlined in the accent color; a button in a text (class hm-btn) keeps the look of the button */
.hm-detail-text a:not(.hm-btn) {
  color: var(--accent-color);
  text-decoration: underline;
}

.hm-detail-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.hm-detail-data > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hm-line, var(--border-color));
}

.hm-detail-data dt {
  font-weight: 400;
  color: var(--hm-muted, inherit);
}

.hm-detail-data dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--hm-text, inherit);
}

.hm-detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-detail-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 999px;
  font-size: 14px;
  color: var(--hm-text, inherit);
}

.hm-detail-features i {
  font-size: 11px;
  color: var(--accent-color);
}

/* the side of the page (the person in charge, the inquiry, the map) sticks under the header while the page scrolls, next to the main
   column (two columns), on every height of the screen. When it is higher than the screen its bottom is seen only when it is let go; it
   sticks only as long as the main column is longer than the side. One column (a phone, a tablet): nothing sticks. */
.hm-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 992px) {
  .hm-detail-aside {
    position: sticky;
    top: calc(var(--hm-header-h, 88px) + 12px);
  }
}

.hm-agent {
  padding: 26px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background: linear-gradient(180deg, var(--hm-surface-2, var(--white-color)) 0%, var(--hm-surface, var(--white-color)) 70%);
}

/* the small caption above the name, like the captions of the sections */
.hm-agent-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.hm-agent-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hm-agent-head strong {
  display: block;
  font-size: 17px;
  color: var(--hm-text, inherit);
}

.hm-agent-head span:not(.hm-agent-avatar) {
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

.hm-agent-avatar {
  display: inline-flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--hm-surface, var(--white-color)), 0 0 0 5px var(--accent-color);
  background-color: var(--accent-color);
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 24px;
  font-weight: 700;
  color: var(--hm-on-accent, #fff);
}

/* the portrait of the agent instead of the monogram */
.hm-agent-photo {
  object-fit: cover;
  background-color: var(--hm-surface-2, var(--gray-color));
}

.hm-agent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.hm-agent-actions .hm-btn {
  justify-content: center;
}

/* the introduction on the card of a colleague (the team block): a few lines, the whole is on the page of the agent */
.hm-agent-intro {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hm-muted, inherit);
}

/* the address of the e-mail under the name and the title (the cards of the team block) */
.hm-agent-head .hm-agent-head-email {
  display: block;
  margin-top: 2px;
  word-break: break-all;
}

.hm-agent-contact {
  margin: -2px 0 6px;
  text-align: center;
  font-size: 13px;
  color: var(--hm-muted, inherit);
  word-break: break-all;
}

/* the portrait and the name of the card lead to the page of the agent */
.hm-agent-link {
  display: inline-flex;
  flex: 0 0 72px;
  border-radius: 50%;
}

.hm-agent-link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 6px;
}

.hm-agent-link .hm-agent-avatar {
  transition: box-shadow 0.2s ease;
}

.hm-agent-link:hover .hm-agent-avatar {
  box-shadow: 0 0 0 3px var(--hm-surface, var(--white-color)), 0 0 0 7px var(--accent-color);
}

.hm-agent-head strong a {
  color: inherit;
  text-decoration: none;
}

.hm-agent-head strong a:hover {
  color: var(--accent-color);
}

.hm-agent-head .hm-agent-count {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--secondary-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-color);
  text-decoration: none;
}

.hm-agent-head .hm-agent-count:hover {
  text-decoration: underline;
}

/* the page of the agent: the portrait, the name and the ways to reach the agent, then the introduction */
.hm-agent-page .hm-breadcrumb {
  margin-bottom: 28px;
}

.hm-agent-profile {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hm-agent-portrait {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--hm-surface, var(--white-color)), 0 0 0 7px var(--accent-color);
  background-color: var(--hm-surface-2, var(--gray-color));
}

.hm-agent-portrait.hm-agent-avatar {
  display: inline-flex;
  font-size: 64px;
}

.hm-agent-intro .hm-section-title {
  margin-bottom: 6px;
}

.hm-agent-title {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--hm-muted, inherit);
}

.hm-agent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hm-agent-bio {
  max-width: 760px;
  margin: 44px 0 16px;
}

.hm-agent-bio-title {
  margin: 0 0 14px;
  font-size: 12px;
}

.hm-agent-bio p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--hm-text, inherit);
}

@media (max-width: 767.98px) {
  .hm-agent-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hm-agent-portrait {
    flex-basis: 140px;
    width: 140px;
    height: 140px;
  }

  .hm-agent-portrait.hm-agent-avatar {
    font-size: 46px;
  }

  .hm-agent-links .hm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* the layout follows the number of the pictures (none is left over, none is stretched) */
.hm-gallery-n1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 460px;
}

.hm-gallery-n1 .hm-gallery-main {
  grid-row: 1;
}

.hm-gallery-n2 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: 440px;
}

.hm-gallery-n2 .hm-gallery-main {
  grid-row: 1;
}

.hm-gallery-n3 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.hm-gallery-n4 .hm-gallery-thumb:nth-child(4) {
  grid-column: 2 / span 2;
}

@media (max-width: 991.98px) {
  .hm-gallery,
  .hm-gallery-n1,
  .hm-gallery-n2,
  .hm-gallery-n3,
  .hm-gallery-n4,
  .hm-gallery-n5 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* the first row is the main picture over both columns, the others are the thumbnails (the row of the main picture has
       to be as high as the picture, or the picture lies over the next row) */
    grid-template-rows: 280px;
    grid-auto-rows: 150px;
  }

  .hm-gallery .hm-gallery-main {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  /* the small pictures of a phone have room for two lines of the caption */
  .hm-gallery-thumb .hm-gallery-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .hm-gallery .hm-gallery-thumb,
  .hm-gallery-n4 .hm-gallery-thumb:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .hm-gallery-n2 .hm-gallery-thumb,
  .hm-gallery-n4 .hm-gallery-thumb:nth-child(4) {
    grid-column: 1 / span 2;
  }

  .hm-detail-price {
    text-align: left;
  }

}

@media (max-width: 575.98px) {
  .hm-detail-data {
    grid-template-columns: 1fr;
  }

  .hm-detail-price strong {
    font-size: 28px;
  }
}

/* the lightbox of the galleries: the page behind it blurred and tinted with the background of the theme (the template's is white), the
   controls in the text color of the theme, the accent of the site on the active parts */
.lg-backdrop {
  background-color: color-mix(in srgb, var(--hm-bg, var(--white-color)) 35%, transparent);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.lg-outer .lg-thumb-outer {
  background-color: color-mix(in srgb, var(--hm-bg, var(--white-color)) 80%, transparent);
}

.lg-toolbar .lg-icon,
#lg-counter,
.lg-actions .lg-next,
.lg-actions .lg-prev {
  color: var(--hm-text, var(--primary-color));
}

.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover,
.lg-toolbar .lg-icon:hover {
  color: var(--accent-color);
}

.lg-sub-html {
  color: var(--hm-text, var(--primary-color));
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
  border-color: var(--accent-color);
}

.lg-progress-bar .lg-progress {
  background-color: var(--accent-color);
}

/* the line under a detail page that has fewer than two similar real estates */
.hm-detail-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 32px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, transparent);
}

.hm-detail-more p {
  margin: 0;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 22px;
  color: var(--hm-text, inherit);
}

/* the map under the agent: a card with the place, a button that loads the map, and a link to open it */
.hm-map {
  overflow: hidden;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, transparent);
}

.hm-map-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 24px 8px;
  text-align: center;
}

.hm-map-body i {
  margin-bottom: 6px;
  font-size: 30px;
  color: var(--accent-color);
}

.hm-map-body strong {
  color: var(--hm-text, inherit);
}

.hm-map-body span {
  color: var(--hm-muted, inherit);
}

.hm-map-body small {
  margin-top: 6px;
  font-size: 12px;
  color: var(--hm-muted, inherit);
}

.hm-map-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 24px;
}

.hm-map-actions .hm-btn {
  justify-content: center;
}

.hm-map-note {
  margin: 0;
  font-size: 12px;
  color: var(--hm-muted, inherit);
}

.hm-map-open {
  font-size: 13px;
  text-decoration: underline;
  color: var(--accent-color);
}

.hm-map-frame {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* the embed has no dark style: on a dark theme the map is inverted (the hue turned back so the water stays blue) */
.cs_dark .hm-map-frame {
  filter: invert(92%) hue-rotate(180deg) contrast(88%) saturate(80%);
}

.hm-map.is-loaded .hm-map-actions {
  padding-top: 14px;
}

/* the contact bar at the bottom of a phone: the agent card is far down the page there */
.hm-contact-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .hm-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hm-line, var(--border-color));
    background-color: var(--hm-surface, var(--white-color));
  }

  .hm-contact-bar .hm-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  body:has(.hm-contact-bar) {
    padding-bottom: 72px;
  }

  /* the back to top button of the template sits above the bar, not on it */
  body:has(.hm-contact-bar) .cs_scrollup_btn {
    right: 16px;
    bottom: 84px;
  }
}

/* the project of a real estate: a line on its card and a block on its page */
.hm-card-project-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
}

.hm-card-project-name i {
  font-size: 13px;
}

.hm-detail-project {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-left: 3px solid var(--accent-color);
  border-radius: 10px;
  background-color: var(--hm-surface, var(--white-color));
}

.hm-detail-project > i {
  font-size: 26px;
  color: var(--accent-color);
}

.hm-detail-project > div {
  flex: 1 1 220px;
  min-width: 0;
}

.hm-detail-project small {
  display: block;
  font-size: 11px;
}

.hm-detail-project strong {
  display: block;
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 20px;
  color: var(--hm-text, inherit);
}

/* the text of the project, not the label of the button next to it (it has its own color, also on hover) */
.hm-detail-project > div > span {
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

/* the page of a project: the picture (as wide as the facts under it) next to the map */
.hm-project-place {
  margin: 6px 0 12px;
  color: var(--hm-muted, inherit);
}

.hm-project-place i {
  margin-right: 6px;
  color: var(--accent-color);
}

.hm-project-top {
  margin-top: 4px;
}

.hm-project-photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background-color: var(--hm-surface-2, var(--gray-color));
}

.hm-project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-project-top .hm-detail-facts {
  margin-top: 24px;
}

.hm-project-head + .hm-home-section {
  padding-top: 40px;
}

/* next to the picture the map is as tall as the picture and the facts under it, its content in the middle; the loaded map fills the whole
   box, only the thin bar with the link (and the note of the place) stays under it */
@media (min-width: 992px) {
  .hm-project-top .hm-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .hm-project-top .hm-map.is-loaded {
    justify-content: flex-start;
  }

  .hm-project-top .hm-map.is-loaded .hm-map-frame {
    flex: 1 1 auto;
    height: auto;
    min-height: 320px;
  }

  .hm-project-top .hm-map.is-loaded .hm-map-actions {
    flex: 0 0 auto;
  }
}

/* the note of the place is in the body of the box before the map loads, and in the bar under the map after it */
.hm-map:not(.is-loaded) .hm-map-approx {
  display: none;
}

.hm-map-approx {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--hm-muted, inherit);
}

/* the page of a project: the kinds of the apartments (by the number of the rooms), the note under the properties */
.hm-project-types {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background-color: var(--hm-surface, transparent);
}

.hm-project-types li {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px 16px;
  padding: 16px 22px;
  color: var(--hm-muted, inherit);
}

.hm-project-types li + li {
  border-top: 1px solid var(--hm-line, var(--border-color));
}

.hm-project-types strong {
  font-family: var(--hm-font-display, var(--primary-font));
  font-size: 18px;
  font-weight: 500;
  color: var(--hm-text, inherit);
}

.hm-project-types-price {
  font-weight: 600;
  color: var(--accent-color);
  text-align: right;
}

@media (max-width: 575.98px) {
  .hm-project-types li {
    grid-template-columns: 1fr 1fr;
  }

  .hm-project-types-price {
    text-align: left;
  }
}

.hm-project-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--hm-muted, inherit);
}

.hm-project-about,
.hm-project-media {
  padding-top: 24px;
}

/* the head of a block of a detail page with the arrows of a carousel at its right (the videos of a project, as on the home page) */
.hm-detail-block-head {
  margin-bottom: 20px;
}

.hm-detail-block-head .hm-detail-heading {
  margin: 0;
}

/* a floor plan of a project: the card and, under it, the apartment it belongs to (a link to its page) */
.hm-plan-item {
  min-width: 0;
}

.hm-plan-estate {
  display: block;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

a.hm-plan-estate:hover {
  text-decoration: underline;
}

.hm-plan-estate i {
  margin-left: 4px;
  font-size: 11px;
}

/* The template makes the body a scroll container (overflow: auto + hidden): a sticky element (the side of a detail page: the agent card)
   then sticks to the body, which never scrolls, so it never sticks. The page scrolls in the window and the sideways overflow is only cut
   (clip does not make a scroll container), so sticky works. (A page with the scroll off keeps its overflow: hidden.) */
html body:not(.scroll_off) {
  overflow: visible;
  overflow-x: clip;
}


/* ===== the forms of the visitors (contact, valuation, appointment) ===== */
/* the trap field: a person does not see it (a program that fills every field does) */
.hm-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* the message about a form as a whole (it was sent, or it could not be) */
.hm-form-notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-left-width: 4px;
  border-radius: 8px;
  background-color: var(--hm-surface-2, var(--white-color));
  font-size: 15px;
  line-height: 1.5;
  color: var(--hm-text, var(--primary-color));
}

.hm-form-notice-success {
  border-left-color: var(--accent-color);
}

.hm-form-notice-error {
  border-left-color: var(--hm-error, #d95555);
}

.hm-inquiry-intro {
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--hm-muted, var(--secondary-color));
}

.hm-inquiry-estate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-weight: 600;
}

.hm-inquiry-panel {
  padding: 24px;
}

.hm-inquiry-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.hm-inquiry-intro {
  margin: -8px 0 16px;
  color: var(--hm-muted);
}

.hm-site-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.hm-site-contact li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.hm-site-contact i {
  width: 18px;
  color: var(--accent-color);
  text-align: center;
}

/* the checkbox of the consent: an error is its text in the color of the errors */
.hm-check.is-invalid span {
  color: var(--hm-error, #d95555);
}

/* ===== the calendar of the date fields (flatpickr, started by inquiry-form.js) ===== */
/* the field that shows the date: an input of the theme, with the calendar icon of the portal */
.hm-date-input {
  width: 100%;
  padding: 0 42px 0 16px;
  background-image: none;
  cursor: pointer;
}

.hm-field:has(.hm-date-input) {
  position: relative;
}

.hm-calendar.flatpickr-calendar {
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--hm-line, var(--border-color));
  border-radius: 12px;
  background: var(--hm-surface, var(--white-color));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-family: var(--secondary-font);
  color: var(--hm-text, var(--primary-color));
}

.hm-calendar.flatpickr-calendar.arrowTop::before,
.hm-calendar.flatpickr-calendar.arrowTop::after,
.hm-calendar.flatpickr-calendar.arrowBottom::before,
.hm-calendar.flatpickr-calendar.arrowBottom::after {
  display: none;
}

.hm-calendar .flatpickr-months {
  align-items: center;
  height: 40px;
  margin-bottom: 6px;
}

/* the month and the year are one line in the middle of the head (flatpickr positions them absolutely: the head needs its height) */
.hm-calendar .flatpickr-months .flatpickr-month {
  height: 40px;
  background: transparent;
  color: var(--hm-text, var(--primary-color));
  fill: currentColor;
}

.hm-calendar .flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  top: 0;
  left: 12.5%;
  width: 75%;
  height: 40px;
  padding: 0;
  background: transparent;
  color: var(--hm-text, var(--primary-color));
  font-family: var(--primary-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.hm-calendar .flatpickr-current-month .cur-month {
  margin: 0;
  color: inherit;
  font-weight: 600;
}

.hm-calendar .flatpickr-current-month .numInputWrapper {
  width: 5ch;
}

.hm-calendar .flatpickr-current-month input.cur-year {
  height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

.hm-calendar .numInputWrapper span {
  display: none;
}

.hm-calendar .flatpickr-months .flatpickr-prev-month,
.hm-calendar .flatpickr-months .flatpickr-next-month {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  color: var(--hm-accent-light, var(--accent-color));
  fill: currentColor;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.hm-calendar .flatpickr-months .flatpickr-prev-month:hover,
.hm-calendar .flatpickr-months .flatpickr-next-month:hover {
  background: var(--hm-line, var(--border-color));
  color: var(--hm-accent-light, var(--accent-color));
}

.hm-calendar .flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
.hm-calendar .flatpickr-months .flatpickr-next-month.flatpickr-disabled {
  opacity: 0.3;
}

.hm-calendar span.flatpickr-weekday {
  background: transparent;
  color: var(--hm-muted, var(--secondary-color));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-calendar .flatpickr-days,
.hm-calendar .dayContainer {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.hm-calendar .flatpickr-day {
  max-width: none;
  height: 38px;
  line-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hm-text, var(--primary-color));
}

.hm-calendar .flatpickr-day:hover,
.hm-calendar .flatpickr-day:focus {
  border-color: var(--hm-line, var(--border-color));
  background: var(--hm-line, var(--border-color));
}

.hm-calendar .flatpickr-day.today {
  border-color: var(--accent-color);
}

.hm-calendar .flatpickr-day.selected,
.hm-calendar .flatpickr-day.selected:hover,
.hm-calendar .flatpickr-day.selected:focus {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: var(--hm-on-accent, #fff);
  font-weight: 600;
}

.hm-calendar .flatpickr-day.prevMonthDay,
.hm-calendar .flatpickr-day.nextMonthDay {
  color: var(--hm-muted, var(--secondary-color));
  opacity: 0.55;
}

.hm-calendar .flatpickr-day.flatpickr-disabled,
.hm-calendar .flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  color: var(--hm-muted, var(--secondary-color));
  opacity: 0.35;
  cursor: not-allowed;
}

/* the map of the office under the contact data of a form page */
.hm-inquiry-map {
  margin-top: 20px;
}

/* ===== the styles of a formatted text (the content of the pages and the blocks) =====
   The editor of the admin offers these (Sites.textStyles of the admin config) and the portal keeps only these classes of a text, so a
   text can be given a look without any other attribute. Only tokens are used, as everywhere here. */
.hm-text-lead {
  font-size: 1.25em;
  line-height: 1.6;
  color: var(--hm-text, inherit);
}

.hm-text-note {
  font-size: .875em;
  line-height: 1.5;
  color: var(--hm-muted, inherit);
}

.hm-text-callout {
  margin: 1.25em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent-color);
  background: var(--hm-surface, transparent);
  color: var(--hm-text, inherit);
}

/* the alignment of a text: a class (not a style attribute) so the look follows this definition, see the text editors of the admin */
.hm-text-left {
  text-align: left;
}

.hm-text-center {
  text-align: center;
}

.hm-text-right {
  text-align: right;
}

.hm-text-justify {
  text-align: justify;
}

/* the blocks of the detail page: one or two columns (the setting of the block; auto is the look the blocks had), a long text that folds up, the
   height of the map */
.hm-detail-data.hm-cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

.hm-detail-features.hm-cols-1,
.hm-detail-features.hm-cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hm-detail-features.hm-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-detail-features.hm-cols-1 li,
.hm-detail-features.hm-cols-2 li {
  border-radius: 10px;
}

@media (max-width: 575.98px) {
  .hm-detail-data.hm-cols-2,
  .hm-detail-features.hm-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hm-collapsible.is-collapsed {
  position: relative;
  max-height: 14em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

.hm-collapse-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
}

.hm-map-low .hm-map-frame {
  height: 200px;
}

.hm-map-high .hm-map-frame {
  height: 440px;
}
