:root {
  --hm-color-primary: #0f9fa5;
  --hm-color-primary-dark: #087b80;
  --hm-color-primary-light: #eff9f8;
  --hm-color-text: #333;
  --hm-color-muted: #6b7280;
  --hm-color-border: #dde7e6;
  --hm-color-background: #fffdf9;
  --hm-color-danger: #a63b32;
  --hm-color-warning: #8a6100;
  --hm-radius: 10px;
  --hm-shadow: 0 3px 14px rgb(8 71 74 / 8%);
}

.hm-app,
.hm-hero { color: var(--hm-color-text); font-size: 16px; line-height: 1.75; }
.hm-app *, .hm-hero * { box-sizing: border-box; }
.hm-app h1, .hm-app h2, .hm-app h3, .hm-hero h1 { overflow-wrap: anywhere; line-height: 1.4; }
.hm-app a { color: var(--hm-color-primary-dark); }
.hm-app a:hover { text-decoration-thickness: 2px; }
.hm-app :focus-visible, .hm-hero :focus-visible { outline: 3px solid #f0ad2c; outline-offset: 3px; }

.hm-hero { display: grid; gap: 24px; margin: 0 0 36px; padding: 24px; background: var(--hm-color-primary-light); border-radius: 14px; }
.hm-hero__content { align-self: center; }
.hm-hero__content h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 6vw, 2.75rem); }
.hm-hero__content p { margin: 0; }
.hm-hero__image, .hm-hero__placeholder { display: block; width: 100%; height: auto; min-height: 240px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% center; border-radius: var(--hm-radius); }
.hm-hero__placeholder { display: grid; place-items: center; color: var(--hm-color-primary-dark); background: linear-gradient(135deg, #d8f2ef, #eef9f7); border: 1px dashed var(--hm-color-primary); }

.hm-page-header { margin-bottom: 24px; }
.hm-page-header h1 { margin: 8px 0; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.hm-demo-label { display: inline-block; padding: 3px 10px; color: var(--hm-color-primary-dark); background: var(--hm-color-primary-light); border: 1px solid var(--hm-color-primary); border-radius: 999px; font-size: .875rem; font-weight: 700; }
.hm-panel { margin: 0 0 28px; padding: 20px; background: var(--hm-color-primary-light); border: 1px solid var(--hm-color-border); border-radius: var(--hm-radius); }
.hm-panel h2 { margin-top: 0; }
.hm-form { display: grid; gap: 16px; align-items: end; }
.hm-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.hm-form input, .hm-form select { width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px; color: var(--hm-color-text); background: #fff; border: 1px solid #9aa8a7; border-radius: 7px; font: inherit; }
.hm-form input:hover, .hm-form select:hover { border-color: var(--hm-color-primary-dark); }
.hm-form input:focus, .hm-form select:focus { border-color: var(--hm-color-primary-dark); box-shadow: 0 0 0 2px rgb(15 159 165 / 18%); }
.hm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; color: #fff !important; background: var(--hm-color-primary); border: 2px solid var(--hm-color-primary); border-radius: 8px; font: inherit; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none !important; cursor: pointer; }
.hm-button:hover { background: var(--hm-color-primary-dark); border-color: var(--hm-color-primary-dark); }
.hm-button:active { transform: translateY(1px); }
.hm-button:disabled { opacity: .55; cursor: not-allowed; }
.hm-button--secondary { color: var(--hm-color-primary-dark) !important; background: #fff; }
.hm-button--small { min-height: 42px; padding: 7px 13px; font-size: .925rem; }
.hm-reset { display: inline-flex; align-items: center; min-height: 44px; }

.hm-section { margin: 42px 0; }
.hm-status-list, .hm-chip-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.hm-badge { display: inline-block; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.hm-badge--spacious { color: #08735d; background: #e8f8f1; }
.hm-badge--available { color: #176b84; background: #eaf6fa; }
.hm-badge--full { color: #565e67; background: #f2f4f5; }
.hm-badge--over_capacity { color: var(--hm-color-danger); background: #fff0ee; }
.hm-badge--unknown { color: var(--hm-color-warning); background: #fff7d9; }
.hm-note, .hm-demo-notice, .hm-callout { padding: 14px 16px; border-left: 4px solid var(--hm-color-primary); background: var(--hm-color-primary-light); }
.hm-link-sections { display: grid; gap: 24px; margin: 42px 0; }
.hm-chip-list a { display: inline-block; padding: 7px 13px; background: #fff; border: 1px solid var(--hm-color-border); border-radius: 999px; text-decoration: none; }
.hm-chip-list a:hover { background: var(--hm-color-primary-light); border-color: var(--hm-color-primary); }

.hm-result-count { margin: 24px 0 16px; font-size: 1.08rem; font-weight: 700; }
.hm-results { display: grid; gap: 18px; }
.hm-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--hm-color-border); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-card__header { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--hm-color-border); }
.hm-card__header h3 { margin: 0 0 3px; font-size: 1.22rem; }
.hm-card__header p, .hm-card__details p, .hm-card__footer p { margin: 0; color: var(--hm-color-muted); }
.hm-vacancy { margin: 15px 0; font-size: 1.08rem; }
.hm-vacancy strong { font-size: 1.25em; color: var(--hm-color-primary-dark); }
.hm-stats, .hm-ages, .hm-criteria { display: grid; gap: 1px; margin: 0 0 15px; background: var(--hm-color-border); border: 1px solid var(--hm-color-border); }
.hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-stats div, .hm-ages div, .hm-criteria div { min-width: 0; padding: 9px; background: #fff; text-align: center; }
.hm-stats dt, .hm-ages dt { color: var(--hm-color-muted); font-size: .8rem; }
.hm-stats dd, .hm-ages dd { margin: 2px 0 0; font-weight: 700; }
.hm-card__details { margin: 14px 0; }
.hm-card__footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--hm-color-border); }
.hm-card__footer p { font-size: .85rem; }
.hm-empty { padding: 28px; text-align: center; background: var(--hm-color-background); border: 1px dashed var(--hm-color-border); }
.hm-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; padding: 0; list-style: none; }
.hm-pagination a, .hm-pagination span { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 5px; border: 1px solid var(--hm-color-border); border-radius: 6px; text-decoration: none; }
.hm-pagination .current { color: #fff; background: var(--hm-color-primary-dark); border-color: var(--hm-color-primary-dark); }

.hm-guide section { margin: 38px 0; }
.hm-formula { padding: 18px; color: var(--hm-color-primary-dark); background: var(--hm-color-primary-light); border-radius: var(--hm-radius); text-align: center; }
.hm-criteria div { display: flex; gap: 20px; justify-content: space-between; text-align: left; }
.hm-criteria dt { font-weight: 700; }
.hm-criteria dd { margin: 0; }

@media (min-width: 600px) {
  .hm-ages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-link-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 36px; }
  .hm-hero__content { order: 2; }
  .hm-hero__media { order: 1; }
  .hm-form--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-form__wide { grid-column: 1 / -1; }
  .hm-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .hm-filter { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .hm-panel, .hm-card { padding: 15px; }
  .hm-stats { grid-template-columns: 1fr; }
}

