
/*
 MEMS V5 — PHASE 52G
 Accommodation shared component corrections.

 Scope: .v5-accommodation-page only.
 Native theme switching.
 No behavior or API modifications.
*/

/* Dark mode */
:root:not([data-v5-theme="light"])
.v5-accommodation-page {
  --g52-card: #14243E;
  --g52-raised: #1B2D4B;
  --g52-field: #10203A;
  --g52-text: #F0F5FF;
  --g52-muted: #A8B9D2;
  --g52-border: #304663;
  --g52-accent: #4C85F7;
  --g52-soft: rgba(76,133,247,.13);
  --g52-shadow: 0 12px 34px rgba(0,0,0,.18);
  color-scheme: dark;
}

/* Light mode */
:root[data-v5-theme="light"]
.v5-accommodation-page {
  --g52-card: #FFFFFF;
  --g52-raised: #F8FAFF;
  --g52-field: #FFFFFF;
  --g52-text: #172B49;
  --g52-muted: #536782;
  --g52-border: #D6E1F0;
  --g52-accent: #295FDA;
  --g52-soft: rgba(41,95,218,.085);
  --g52-shadow: 0 8px 28px rgba(26,55,100,.07);
  color-scheme: light;
}

/* Accommodation and resident cards */
:root .v5-accommodation-page
.v5-profile-card {
  background: var(--g52-card) !important;
  background-image: none !important;
  color: var(--g52-text) !important;
  -webkit-text-fill-color: var(--g52-text) !important;
  border: 1px solid var(--g52-border) !important;
  border-radius: 17px !important;
  box-shadow: var(--g52-shadow) !important;
}

/* Card headings */
:root .v5-accommodation-page
.v5-profile-card :is(h2,h3,h4,strong) {
  color: var(--g52-text) !important;
  -webkit-text-fill-color: var(--g52-text) !important;
}

/* Supporting text and resident counts */
:root .v5-accommodation-page
.v5-registry-subtitle {
  color: var(--g52-muted) !important;
  -webkit-text-fill-color: var(--g52-muted) !important;
}

/* Pagination */
:root .v5-accommodation-page
.v5-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--g52-muted) !important;
}

/* Actual shared buttons */
:root .v5-accommodation-page
.v5-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  background: var(--g52-raised) !important;
  background-image: none !important;
  color: var(--g52-text) !important;
  -webkit-text-fill-color: var(--g52-text) !important;
  border: 1px solid var(--g52-border) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
}

:root .v5-accommodation-page
.v5-page-link:not(:disabled):hover {
  background: var(--g52-soft) !important;
  border-color: var(--g52-accent) !important;
}

:root .v5-accommodation-page
.v5-page-link:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Page indicators */
:root .v5-accommodation-page
.v5-page-indicator {
  color: var(--g52-muted) !important;
  -webkit-text-fill-color: var(--g52-muted) !important;
  font-variant-numeric: tabular-nums;
}

/* Profile links */
:root .v5-accommodation-page
.v5-resident-link {
  color: var(--g52-accent) !important;
  -webkit-text-fill-color: var(--g52-accent) !important;
  text-decoration-color: var(--g52-accent);
}

:root .v5-accommodation-page
.v5-resident-link:hover {
  text-decoration: underline;
}

/* Main search remains theme-aware */
:root .v5-accommodation-page
.v5-search {
  background: var(--g52-field) !important;
  color: var(--g52-text) !important;
  -webkit-text-fill-color: var(--g52-text) !important;
  border-color: var(--g52-border) !important;
}

/* Accommodation detail panel */
:root .v5-accommodation-page
.v5-accommodation-detail {
  background: var(--g52-card) !important;
  color: var(--g52-text) !important;
  border-color: var(--g52-border) !important;
}

/* Feedback messages */
:root .v5-accommodation-page
.v5-registry-error {
  color: #F87171 !important;
}

/* Accessible focus */
:root .v5-accommodation-page
:is(button,a,input):focus-visible {
  outline: 2px solid var(--g52-accent) !important;
  outline-offset: 2px;
}

/* Mobile */
@media (max-width:700px) {
  :root .v5-accommodation-page
  .v5-profile-card {
    border-radius: 15px !important;
  }

  :root .v5-accommodation-page
  .v5-page-link {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion:reduce) {
  :root .v5-accommodation-page
  :is(button,a,input) {
    transition: none !important;
  }
}

/* END MEMS V5 PHASE 52G */
