/* Page: Residence Owner */
html:has(.boh-owner),
body:has(.boh-owner) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-owner) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-owner) .boh-shell__main {
  flex: 1;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.boh-owner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boh-owner__scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 6rem;
}

.boh-owner__scroll::-webkit-scrollbar {
  display: none;
}

.boh-owner__scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Header Image layout */
.boh-owner__hero {
  position: relative;
  width: 100%;
  height: 240px;
  flex-shrink: 0;
}

.boh-owner__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-owner__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 60%, var(--boh-color-primary) 100%);
  z-index: 1;
}

.boh-owner__hero-header {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.boh-owner__hero-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--boh-color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-owner__hero-btn:active {
  transform: scale(0.95);
}

.boh-owner__hero-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-owner__hero-title-box {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--boh-color-surface);
  z-index: 10;
}

.boh-owner__hero-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: var(--boh-font-weight-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem 0;
}

.boh-owner__hero-title {
  font-family: var(--boh-font-serif);
  font-size: 24px;
  font-weight: var(--boh-font-weight-600);
  margin: 0;
}

/* Stats Dashboard Grid */
.boh-owner__body {
  padding: 1.5rem var(--boh-space-screen) 0 var(--boh-space-screen);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.boh-owner__stats-row {
  display: flex;
  gap: 0.75rem;
}

.boh-owner__stat-card {
  flex: 1;
  background-color: var(--boh-color-surface);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--boh-shadow-card);
  text-align: center;
  box-sizing: border-box;
}

.boh-owner__stat-number {
  font-weight: var(--boh-font-weight-800);
  font-size: 24px;
  margin: 0;
  line-height: 1.1;
}

.boh-owner__stat-number--primary {
  color: var(--boh-color-primary);
}

.boh-owner__stat-number--accent {
  color: var(--boh-color-accent);
}

.boh-owner__stat-sub {
  font-size: 14px;
  color: color-mix(in srgb, var(--boh-color-muted) 50%, transparent);
  font-weight: var(--boh-font-weight-700);
}

.boh-owner__stat-label {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 10px;
  font-weight: var(--boh-font-weight-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem 0 0 0;
}

/* Privileges Section */
.boh-owner__privileges-title {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 15px;
  margin: 0 0 0.75rem 0;
}

.boh-owner__privileges-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boh-owner__privilege-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.boh-owner__privilege-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--boh-color-primary);
  flex-shrink: 0;
}

.boh-owner__privilege-text {
  color: var(--boh-color-primary);
  font-size: 14px;
}

/* Action Footer */
.boh-owner__footer {
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  border-top: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  padding: 1rem var(--boh-space-screen);
  z-index: 10;
  box-sizing: border-box;
}

.boh-owner__action-btn {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-btn);
  padding: 0.875rem 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-owner__action-btn:active {
  transform: scale(0.98);
}

.boh-owner__action-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
