.ttmhb-grid{display:grid;gap:16px;margin:12px 0}
.ttmhb-grid-1{grid-template-columns:1fr}
.ttmhb-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ttmhb-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ttmhb-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ttmhb-field{margin-bottom:14px}
.ttmhb-field label{display:block;margin-bottom:6px}
.ttmhb-subcard{background:#fafafa;border:1px solid #e2e8f0;border-radius:10px;padding:12px}
.ttmhb-media-wrap{display:flex;flex-direction:column;gap:10px}
.ttmhb-media-preview{min-height:90px;background:#fff;border:1px dashed #cbd5e1;border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:center}
.ttmhb-media-placeholder{color:#64748b;font-size:13px;text-align:center}
.ttmhb-field .wp-picker-container{display:block}
.ttmhb-field .wp-picker-input-wrap{display:inline-flex;gap:6px;align-items:center}
.ttmhb-native-color-field{width:72px!important;height:42px!important;min-height:42px!important;padding:3px!important;border-radius:12px!important;cursor:pointer}

/* Amenities are the only unlimited home-builder entries. Keep them compact without open/close toggles. */
.ttmhb-amenities-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 14px}
.ttmhb-amenity-row{margin:0!important}
.ttmhb-amenity-row h4{margin-top:0}
.ttmhb-amenities-repeater [data-ttmhb-add-amenity]{margin-top:4px!important}

@media (max-width: 1100px){
  .ttmhb-grid-4,.ttmhb-grid-3,.ttmhb-grid-2{grid-template-columns:1fr}
}
@media (max-width: 782px){
  .ttmhb-amenities-list{grid-template-columns:1fr}
}

/* v0.7.6 frontend manager shell: hide website header and show Core Launcher style top bar. */
html.ttmhb-frontend-page-html,
html.ttmhb-frontend-page-html body,
body.ttmhb-frontend-page {
  margin: 0 !important;
  margin-top: 0 !important;
  background: #f5f7fb !important;
}
body.ttmhb-frontend-page #wpadminbar {
  display: none !important;
}
body.ttmhb-frontend-page .site-header,
body.ttmhb-frontend-page header.site-header,
body.ttmhb-frontend-page #masthead,
body.ttmhb-frontend-page .elementor-location-header,
body.ttmhb-frontend-page .wp-site-blocks > header,
body.ttmhb-frontend-page .tt-header,
body.ttmhb-frontend-page .main-header,
body.ttmhb-frontend-page .header,
body.ttmhb-frontend-page .hfe-header,
body.ttmhb-frontend-page .ast-primary-header-bar,
body.ttmhb-frontend-page header[role="banner"],
body.ttmhb-frontend-page > header {
  display: none !important;
}
body.ttmhb-frontend-page .site,
body.ttmhb-frontend-page .site-content,
body.ttmhb-frontend-page #content,
body.ttmhb-frontend-page .content-area,
body.ttmhb-frontend-page .site-main,
body.ttmhb-frontend-page main,
body.ttmhb-frontend-page .entry-content,
body.ttmhb-frontend-page .page-content,
body.ttmhb-frontend-page .elementor,
body.ttmhb-frontend-page .elementor-section,
body.ttmhb-frontend-page .elementor-container,
body.ttmhb-frontend-page .elementor-column,
body.ttmhb-frontend-page .elementor-widget-wrap,
body.ttmhb-frontend-page .elementor-widget-container,
body.ttmhb-frontend-page .elementor-widget-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.ttmhb-frontend-page:not(.elementor-editor-active) .ttmhb-frontend-shell[data-ttmhb-frontend="1"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
  background: #f5f7fb !important;
}
.ttmhb-frontend-topbar {
  position: sticky;
  top: 0;
  z-index: 99990;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: #071123;
  color: #fff;
  border-bottom: 1px solid #264674;
  box-shadow: 0 12px 30px rgba(7, 17, 35, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ttmhb-frontend-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 230px;
}
.ttmhb-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d60302;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.ttmhb-frontend-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
}
.ttmhb-frontend-brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 11px;
}
.ttmhb-frontend-topbar-spacer {
  flex: 1;
}
.ttmhb-frontend-core-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #345987;
  background: #091427;
  color: #dfeaff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
}
.ttmhb-frontend-core-link:hover {
  border-color: #d60302;
  color: #fff !important;
}
.ttmhb-frontend-user-badge {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #345987;
  background: #091427;
  border-radius: 26px;
  padding: 0 16px 0 6px;
}
.ttmhb-frontend-user-badge span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18cc82;
  color: #fff;
  font-weight: 900;
}
.ttmhb-frontend-user-badge strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #fff;
  line-height: 1.1;
}
.ttmhb-frontend-user-badge em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
body.ttmhb-frontend-page .ttmhb-frontend-shell .ttmhb-front-wrap,
body.ttmhb-frontend-page .ttmhb-frontend-shell .ttmhb-front-editor {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  padding: 18px 20px 44px !important;
}
body.ttmhb-frontend-page .ttmhb-frontend-shell .ttmhb-front-notice {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}
@media (max-width: 782px) {
  .ttmhb-frontend-topbar {
    min-height: 60px;
    padding: 0 10px;
    gap: 8px;
  }
  .ttmhb-frontend-brand {
    min-width: 0;
  }
  .ttmhb-frontend-brand strong,
  .ttmhb-frontend-brand em,
  .ttmhb-frontend-core-link,
  .ttmhb-frontend-user-badge strong,
  .ttmhb-frontend-user-badge em {
    display: none;
  }
  .ttmhb-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .ttmhb-frontend-user-badge {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  .ttmhb-frontend-user-badge span {
    width: 34px;
    height: 34px;
  }
  body.ttmhb-frontend-page .ttmhb-frontend-shell .ttmhb-front-wrap,
  body.ttmhb-frontend-page .ttmhb-frontend-shell .ttmhb-front-editor {
    padding: 14px 10px 36px !important;
  }
}
