/* Live, illustrative product screens. All dimensions scale with the preview. */
.property-demo,
.clinic-demo {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  aspect-ratio: 1.6;
  min-height: 330px;
  container-type: inline-size;
  container-name: product-preview;
  overflow: hidden;
  border-radius: 5px;
  text-align: left;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.property-demo *, .clinic-demo * { box-sizing: border-box; }
.property-demo h3, .property-demo h4, .property-demo p,
.clinic-demo h3, .clinic-demo h4, .clinic-demo p { margin: 0; }
.property-demo button, .property-demo input,
.clinic-demo button, .clinic-demo select { font: inherit; letter-spacing: inherit; }
.property-demo button, .clinic-demo button { cursor: pointer; }
.property-demo button:focus-visible, .property-demo input:focus-visible,
.clinic-demo button:focus-visible, .clinic-demo select:focus-visible {
  outline: 2px solid #71ccff;
  outline-offset: 2px;
  z-index: 2;
}
.property-demo [hidden], .clinic-demo [hidden] { display: none !important; }
.demo-icon { flex: 0 0 auto; display: block; width: 2.4cqw; height: 2.4cqw; }
.demo-live-message { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Property intelligence */
.property-demo { background: #101c29; color: #e4edf7; font-size: clamp(13px, 1.85cqw, 18.5px); border: 1px solid #243344; }
.demo-property-sidebar { width: 23%; flex-shrink: 0; display: flex; flex-direction: column; padding: 3cqw 1.6cqw 2.8cqw; background: linear-gradient(100deg,#121d29,#152331); border-right: 1px solid #1e3040; }
.demo-property-brand { display: flex; align-items: center; gap: 1.1cqw; margin: 0 .8cqw 3cqw; color: #b6c5d8; font-size: clamp(12px, 1.55cqw, 15.5px); }
.demo-property-brand .demo-icon { width: 3.2cqw; height: 3.2cqw; }
.demo-property-brand > span { font-weight: 500; }
.demo-property-nav { display: flex; align-items: center; gap: 1.5cqw; border: 0; background: transparent; color: #a3b4c9; width: 100%; padding: 2cqw 1.2cqw; border-radius: .9cqw; text-align: left; font-size: clamp(12px, 1.65cqw, 16.5px) !important; }
.demo-property-nav.is-active { background: #223347; color: #dbe9fa; }
.demo-property-nav:not(.demo-nav-label):hover { color: white; background: #263b51; }
.demo-property-nav .demo-icon { width: 2.4cqw; height: 2.4cqw; }
.demo-save-count { color: #6ac8ff; margin-left: .5cqw; }
.demo-property-user { margin: auto .7cqw 0; display: flex; gap: 1.4cqw; align-items: center; color: #a5b4c8; font-size: clamp(11px, 1.5cqw, 15px); }
.demo-property-user > span:first-child { display: grid; place-items: center; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; color: #88ceff; background: #253c50; font-size: clamp(11px, 1.5cqw, 15px); }
.demo-property-user small { color: #657c94; font-size: clamp(11px, 1.35cqw, 13.5px); }
.demo-property-main { width: 77%; padding: 2.6cqw 2.2cqw 1.8cqw; display: flex; flex-direction: column; min-width: 0; }
.demo-property-top { display: flex; align-items: center; height: 24%; gap: 2.3cqw; margin-bottom: 2.4cqw; }
.demo-property-heading { flex: 1; min-width: 0; }
.demo-property-heading h3 { color: #f1f5fb; font-size: clamp(18px, 2.9cqw, 29px); font-weight: 550; margin-bottom: 2.2cqw; letter-spacing: -.035em; }
.demo-property-search { display: flex; align-items: center; gap: .8cqw; background: #223246; color: #849bb4; padding: 1.5cqw 1.3cqw; border: 1px solid #2a3c50; border-radius: 1.1cqw; }
.demo-property-search .demo-icon { width: 2.2cqw; height: 2.2cqw; }
.demo-property-search input { width: 100%; min-width: 0; padding: 0; background: none; border: 0; color: #e0edfa; outline: 0; font-size: clamp(12px, 1.65cqw, 16.5px); }
.demo-property-search input::placeholder { color: #9bacbf; opacity: 1; }
.demo-property-search input::-webkit-search-cancel-button { cursor: pointer; }
.demo-mini-map { flex: 0 0 24%; height: 100%; background: radial-gradient(ellipse at 72% 33%,#203c54,#172c40); border: 1px solid #2b4156; border-radius: 1.3cqw; overflow: hidden; position: relative; }
.demo-mini-map > svg { width: 100%; height: 100%; stroke: #35506a; stroke-width: 1; }
.demo-mini-map > svg .demo-map-river { stroke: #244668; stroke-width: 4; }
.demo-map-pin { position: absolute; height: 2.5cqw; width: 2.5cqw; background: #edf9ff; border: .65cqw solid #159dff; border-radius: 50%; padding: 0; box-shadow: 0 0 0 .6cqw #0f97ff25, 0 0 1.9cqw #098fff75; transition: transform .2s, box-shadow .2s; }
.demo-map-pin:hover, .demo-map-pin:focus-visible { transform: scale(1.25); box-shadow: 0 0 0 1cqw #0f97ff35, 0 0 2.9cqw #098fffb0; }
.demo-map-pin-1 { left: 21%; top: 52%; }
.demo-map-pin-2 { left: 54%; top: 67%; }
.demo-map-pin-3 { left: 73%; top: 26%; }
.demo-property-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.8cqw; min-height: 0; flex: 1; align-content: start; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #365573 transparent; padding-bottom: 1px; }
.demo-property-card { min-width: 0; background: #16283a; border: 1px solid #263d52; border-radius: 1.3cqw; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.demo-property-card:hover { border-color: #4385b7; transform: translateY(-.6cqw); }
.demo-property-card.is-highlighted { border-color: #65c8ff; box-shadow: 0 0 2cqw #1b9ce83d; }
.demo-property-photo { position: relative; aspect-ratio: .99; overflow: hidden; background: #314457; }
.demo-property-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.demo-property-card:hover img { transform: scale(1.045); }
.demo-save-property { display: grid; place-items: center; position: absolute; right: .9cqw; top: .9cqw; width: 4.3cqw; height: 4.3cqw; border: 1px solid #ffffff29; border-radius: 50%; background: #0717289e; color: white; padding: .9cqw; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s, background .2s; }
.demo-property-card:hover .demo-save-property, .demo-save-property:focus-visible, .demo-save-property[aria-pressed=true] { opacity: 1; }
.demo-save-property .demo-icon { width: 100%; height: 100%; }
.demo-save-property[aria-pressed=true] { color: #9ad9ff; background: #0d6ba7dd; }
.demo-save-property[aria-pressed=true] svg { fill: currentColor; }
.demo-property-info { padding: 1.8cqw 1.3cqw; }
.demo-property-info h4 { color: #f5f9ff; font-size: clamp(13px, 1.95cqw, 19.5px); line-height: 1.3; font-weight: 550; }
.demo-property-info p { color: #a6b6c8; font-size: clamp(12px, 1.65cqw, 16.5px); margin-top: .5cqw; }
.demo-property-category { display: inline-block; font-size: clamp(11px, 1.45cqw, 14.5px); line-height: 1.4; color: #c0d8ee; padding: .55cqw .8cqw; background: #2a415a; border-radius: .65cqw; margin-top: 1.8cqw; }
.demo-property-specs { display: flex; flex-wrap: wrap; align-items: center; gap: .75cqw; margin-top: 1.5cqw; color: #9bb0c6; font-size: clamp(11px, 1.25cqw, 13px); white-space: normal; }
.demo-property-foot { display: flex; align-items: center; justify-content: space-between; color: #7890a9; font-size: clamp(11px, 1.45cqw, 14.5px); margin-top: auto; padding-top: 1.6cqw; }
.demo-property-foot > span:first-child { display: flex; align-items: center; gap: .7cqw; }
.demo-property-foot i { width: .8cqw; height: .8cqw; background: #48b8d2; border-radius: 50%; }
.demo-property-empty { margin: auto 0 !important; align-self: center; text-align: center; color: #e8f2ff; font-size: clamp(14px, 2.4cqw, 24px); }
.demo-property-empty span { display: inline-block; color: #8a9fb6; font-size: clamp(13px, 1.9cqw, 19px); margin-top: 1cqw; }

/* Clinical scheduling */
.clinic-demo { background: #fff; color: #16263c; font-size: clamp(13px, 1.85cqw, 18.5px); border: 1px solid #e0ecf9; }
.demo-clinic-sidebar { flex: 0 0 25.5%; padding: 3.3cqw 1.8cqw 2.4cqw; display: flex; flex-direction: column; background: linear-gradient(100deg,#e5f2ff,#eff7ff); border-right: 1px solid #e1edf9; }
.demo-clinic-brand { color: #1482fa; display: flex; align-items: center; gap: 1cqw; font-size: clamp(14px, 2.35cqw, 23.5px); font-weight: 500; margin: 0 .5cqw 3.1cqw; }
.demo-clinic-brand .demo-icon { width: 3.5cqw; height: 3.5cqw; }
.demo-clinic-nav { display: flex; align-items: center; gap: 1.7cqw; font-size: clamp(12px, 1.7cqw, 17px); color: #4c6280; padding: 1.85cqw 1.1cqw; border-radius: .8cqw; }
.demo-clinic-nav.is-active { background: #d2eaff; color: #0878ed; }
.demo-clinic-nav .demo-icon { width: 2.55cqw; height: 2.55cqw; }
.demo-clinic-user { display: flex; gap: .8cqw; align-items: center; margin: auto .8cqw 0; color: #6e8ba4; font-size: clamp(11px, 1.3cqw, 13px); }
.demo-clinic-user i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #31b894; }
.demo-clinic-main { padding: 3.6cqw 2.8cqw 2.4cqw; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo-clinic-header { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.demo-clinic-header h3 { color: #182436; font-weight: 550; font-size: clamp(18px, 2.55cqw, 25.5px); letter-spacing: -.03em; }
.demo-new-appointment { background: #1388fb; border: 1px solid #1288fb; box-shadow: 0 .3cqw 1cqw #1688e32b; color: #fff; padding: 1.5cqw 1.7cqw; border-radius: .9cqw; font-size: clamp(12px, 1.55cqw, 15.5px) !important; white-space: nowrap; transition: background .2s; }
.demo-new-appointment:hover { background: #0870da; }
.demo-clinic-datebar { display: flex; gap: 2.4cqw; align-items: center; margin: 3.1cqw 0 2.3cqw; color: #49617e; }
.demo-clinic-datebar time { font-size: clamp(12px, 1.7cqw, 17px); white-space: nowrap; }
.demo-date-buttons { display: flex; gap: .7cqw; }
.demo-date-buttons button { background: #fff; color: #7895b5; padding: .6cqw; border-radius: .7cqw; border: 1px solid #e2ebf4; }
.demo-date-buttons button:hover { background: #edf6ff; color: #1688e3; }
.demo-date-buttons .demo-icon { width: 2.1cqw; height: 2.1cqw; }
.demo-icon-prev { transform: rotate(180deg); }
.demo-clinic-day-label { margin-left: auto; color: #7e92ac; font-size: clamp(12px, 1.6cqw, 16px); }
.demo-appointment-list { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c6deef transparent; }
.demo-appointment { display: grid; grid-template-columns: clamp(40px,12.1cqw,121px) minmax(0,1fr) auto; align-items: center; gap: 1cqw; border: 0; border-top: 1px solid #eaf0f6; background: #fff; min-height: 8.15cqw; padding: 1cqw .5cqw; text-align: left; color: #18273d; transition: background .2s; }
.demo-appointment:hover, .demo-appointment:focus-visible { background: #f3f8ff; }
.demo-appointment-time { color: #8295af; font-size: clamp(12px, 1.75cqw, 17.5px); align-self: start; padding-top: .1cqw; }
.demo-appointment-person { display: flex; flex-direction: column; gap: .5cqw; border-left: .45cqw solid #279bfa; padding-left: 1.5cqw; min-width: 0; }
.demo-appointment-person strong { font-weight: 550; color: #273649; font-size: clamp(13px, 1.85cqw, 18.5px); white-space: nowrap; }
.demo-appointment-person > span { color: #71839b; font-size: clamp(12px, 1.6cqw, 16px); white-space: nowrap; }
.demo-appointment-green { border-left-color: #4bc1a0; }
.demo-appointment-gray { border-left-color: #90acd2; }
.demo-appointment-status { display: inline-block; justify-self: end; align-self: center; color: #57758d; font-size: clamp(11px, 1.45cqw, 14.5px); padding: .65cqw .85cqw; border-radius: .6cqw; white-space: nowrap; }
.demo-status-green { background: #def7ef; color: #22a385; }
.demo-status-blue { background: #e0f0ff; color: #1688e3; }
.demo-status-gray { background: #edf3fa; color: #6b88a6; }
.demo-clinic-note { color: #65788f; margin-top: auto !important; padding-top: 1.8cqw; font-size: clamp(11px, 1.3cqw, 13px); text-align: right; }
.demo-appointment-panel { position: absolute; z-index: 5; inset: 4cqw 4cqw 4cqw 27cqw; padding: 4.7cqw; background: #fffffff5; border: 1px solid #c9dfef; border-radius: 2cqw; box-shadow: 0 2cqw 9cqw #223f7340; backdrop-filter: blur(16px); color: #24364c; animation: demo-panel-in .22s ease; }
.demo-panel-close { position: absolute; right: 1.8cqw; top: 1.8cqw; padding: .9cqw; background: #edf5fc; border: 1px solid #d9e8f6; border-radius: .9cqw; color: #3b628c; }
.demo-panel-close .demo-icon { width: 2.5cqw; height: 2.5cqw; }
.demo-panel-eyebrow { display: inline-block; color: #2586d5; font-size: clamp(11px, 1.5cqw, 15px); letter-spacing: .08em; margin-bottom: 2cqw; }
.demo-panel-content h4 { color: #162b44; font-size: clamp(22px, 3.5cqw, 35px); font-weight: 550; margin-bottom: 1cqw; }
.demo-panel-content > p { color: #6f849c; font-size: clamp(13px, 2cqw, 20px); }
.demo-panel-content dl { margin: 4cqw 0; }
.demo-panel-content dl > div { display: flex; justify-content: space-between; gap: 2cqw; border-top: 1px solid #e5eef6; padding: 2cqw 0; font-size: clamp(13px, 1.9cqw, 19px); }
.demo-panel-content dt { color: #7288a0; }
.demo-panel-content dd { margin: 0; }
.demo-panel-sample { display: block; color: #65788f; font-size: clamp(11px, 1.45cqw, 14.5px); margin-top: 2cqw; }
.demo-appointment-form { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2cqw; margin-top: 3cqw; }
.demo-appointment-form label { display: flex; flex-direction: column; gap: 1cqw; color: #657d97; font-size: clamp(13px, 1.8cqw, 18px); }
.demo-appointment-form select { border: 1px solid #d2e1ee; border-radius: .8cqw; background: #fff; color: #243b54; min-width: 0; padding: 1.6cqw .8cqw; font-size: clamp(13px, 1.8cqw, 18px); }
.demo-appointment-submit { grid-column: 1/-1; background: #1688e3; color: #fff; border: 0; border-radius: 1cqw; padding: 2.3cqw; margin-top: 2cqw; font-size: clamp(13px, 2cqw, 20px) !important; }
.demo-appointment-submit:hover { background: #0873c6; }
/* Retain readable type in narrow cards instead of shrinking the whole interface. */
@container product-preview (max-width: 480px) {
  .demo-property-sidebar { width: 12%; padding: 13px 5px; }
  .demo-clinic-sidebar { flex-basis: 12%; padding: 13px 5px; }
  .demo-property-brand, .demo-clinic-brand { justify-content: center; gap: 0; margin: 0 0 16px; }
  .demo-property-brand > span, .demo-clinic-brand > span,
  .demo-property-nav > span, .demo-clinic-nav > span,
  .demo-property-user > span:last-child, .demo-clinic-user { display: none; }
  .demo-property-brand .demo-icon, .demo-clinic-brand .demo-icon { width: 20px; height: 20px; }
  .demo-property-nav, .demo-clinic-nav { justify-content: center; gap: 0; padding: 10px 3px; }
  .demo-property-nav .demo-icon, .demo-clinic-nav .demo-icon { width: 17px; height: 17px; }
  .demo-property-user { justify-content: center; margin: auto 0 0; }
  .demo-property-user > span:first-child { width: 25px; height: 25px; }
  .demo-property-main { width: 88%; padding-block: 14px 10px; }
  .demo-property-top { height: 68px; flex-shrink: 0; gap: 9px; margin-bottom: 12px; }
  .demo-property-heading h3 { margin-bottom: 10px; }
  .demo-property-search { padding: 7px; gap: 5px; }
  .demo-property-search .demo-icon { width: 13px; height: 13px; }
  .demo-mini-map { flex-basis: 23%; }
  .demo-property-info { padding: 9px 6px; }
  .demo-property-info h4 { overflow-wrap: anywhere; }
  .demo-property-category { padding: 3px 4px; margin-top: 8px; }
  .demo-property-specs { gap: 2px 4px; margin-top: 8px; }
  .demo-property-foot { padding-top: 9px; }
  .demo-save-property { width: 23px; height: 23px; padding: 5px; }
  .demo-map-pin { width: 13px; height: 13px; border-width: 3px; }
  .demo-clinic-main { padding-block: 14px 10px; }
  .demo-clinic-header { gap: 7px; }
  .demo-new-appointment { padding: 7px 6px; }
  .demo-clinic-datebar { gap: 8px; margin: 13px 0 9px; }
  .demo-date-buttons { gap: 4px; }
  .demo-date-buttons button { padding: 5px; }
  .demo-date-buttons .demo-icon { width: 12px; height: 12px; }
  .demo-appointment { grid-template-columns: 38px minmax(0,1fr) auto; gap: 5px; min-height: 48px; padding: 7px 0; }
  .demo-appointment-person { padding-left: 7px; gap: 3px; }
  .demo-appointment-person strong, .demo-appointment-person > span { white-space: normal; overflow-wrap: anywhere; }
  .demo-appointment-status { padding: 3px 4px; }
  .demo-clinic-note { padding-top: 8px; }
  .demo-appointment-panel { left: calc(12% + 8px); }
}
@keyframes demo-panel-in { from { opacity: 0; transform: translateY(1.5cqw) scale(.98); } to { opacity: 1; transform: none; } }
@media (hover:none) { .demo-save-property { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .property-demo *, .clinic-demo * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
