/* ==========================================================================
   OATHWOOD GLOBAL NOTIFICATION BELL
   Keep this file independent from page-specific CSS so the bell looks the
   same on Home, Realty, Towns, Property Guide, My Oathwood and future pages.
   ========================================================================== */

#owGlobalShell, #owGlobalShell * { box-sizing: border-box; }
#owGlobalShell {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: "Nunito", system-ui, sans-serif;
  color: #172019;
}

.ow-global-bell {
  position: relative;
  width: 58px;
  height: 58px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 2px solid #e6c35d;
  border-radius: 18px;
  background: linear-gradient(145deg, #1b4632, #10291f);
  color: #fff;
  box-shadow: 0 14px 36px rgba(4, 15, 9, .32);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ow-global-bell:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(4, 15, 9, .4);
  border-color: #f2d277;
}
.ow-global-bell:focus-visible { outline: 3px solid #f0cc78; outline-offset: 4px; }
.ow-bell-glyph { font-size: 1.35rem; line-height: 1; }

.ow-global-count {
  position: absolute;
  right: -7px;
  top: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 2px solid #fff7e7;
  border-radius: 999px;
  background: #c95245;
  color: #fff;
  font-size: .67rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.ow-global-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(410px, calc(100vw - 28px));
  max-height: min(610px, calc(100vh - 120px));
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #c8b88e;
  border-radius: 22px;
  background: #fbf5e8;
  color: #172019;
  box-shadow: 0 28px 80px rgba(3, 13, 8, .38);
  isolation: isolate;
}
.ow-global-panel.open { display: grid; animation: owNotifOpen .15s ease-out; }
@keyframes owNotifOpen { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

.ow-global-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #10291f, #1d4932);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ow-global-head > div { min-width: 0; }
.ow-global-head small {
  display: block;
  margin-bottom: 3px;
  color: #efcb70;
  font-size: .59rem;
  font-weight: 1000;
  letter-spacing: .14em;
}
.ow-global-head strong {
  display: block;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}
.ow-global-head span {
  display: block;
  margin-top: 5px;
  color: #d4e0d1;
  font-size: .73rem;
  line-height: 1.35;
}
.ow-global-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.ow-global-close:hover { background: rgba(255,255,255,.16); }

.ow-global-items {
  min-height: 100px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #9aaa82 transparent;
}
.ow-global-items::-webkit-scrollbar { width: 8px; }
.ow-global-items::-webkit-scrollbar-thumb { background: #9aaa82; border-radius: 99px; }

.ow-global-item {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  margin-bottom: 7px;
  border: 1px solid #e1d4b4;
  border-radius: 14px;
  background: #fffdf6;
}
.ow-global-item:last-child { margin-bottom: 0; }
.ow-global-item.unread {
  border-color: #b8ca91;
  background: linear-gradient(90deg, #edf4df, #fffdf6 70%);
  box-shadow: inset 3px 0 0 #7d9f51;
}
.ow-global-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8edd9;
  font-size: 1.05rem;
}
.ow-global-copy { min-width: 0; }
.ow-global-copy small {
  display: block;
  color: #63804b;
  font-size: .58rem;
  font-weight: 1000;
  letter-spacing: .09em;
}
.ow-global-copy strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: #26372a;
  font-size: .83rem;
  line-height: 1.35;
}
.ow-global-copy time {
  display: block;
  margin-top: 5px;
  color: #7a8278;
  font-size: .67rem;
}

.ow-global-loading, .ow-global-empty {
  padding: 28px 18px;
  text-align: center;
  color: #6d786c;
  font-weight: 800;
}
.ow-global-empty div { font-size: 2rem; margin-bottom: 5px; }
.ow-global-empty strong { display: block; color: #304333; font-family: "Fredoka", sans-serif; font-size: 1.1rem; }
.ow-global-empty span { display: block; margin-top: 3px; font-size: .78rem; font-weight: 700; }

.ow-global-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dfd2b0;
  background: #f2e8cf;
}
.ow-global-actions a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #c5b388;
  border-radius: 10px;
  background: #fff9e9;
  color: #253e2d;
  text-align: center;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 1000;
}
.ow-global-actions a:last-child { background: #173a29; border-color: #173a29; color: #fff; }
.ow-global-actions a:hover { filter: brightness(.98); transform: translateY(-1px); }

.ow-login-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  padding: 10px 14px;
  border: 1px solid #dfbd58;
  border-radius: 999px;
  background: #163727;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  text-decoration: none;
  font: 900 .78rem "Nunito", system-ui, sans-serif;
}

@media (max-width: 600px) {
  #owGlobalShell { right: 12px; bottom: 12px; }
  .ow-global-bell { width: 54px; height: 54px; border-radius: 16px; }
  .ow-global-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    width: auto;
    max-height: min(68vh, 560px);
    border-radius: 18px;
  }
  .ow-global-head { padding: 15px; }
  .ow-global-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ow-global-panel.open { animation: none; }
  .ow-global-bell, .ow-global-actions a { transition: none; }
}

.ow-global-item{text-decoration:none;color:inherit;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.ow-global-item:hover{transform:translateY(-1px);border-color:#b8ca91;box-shadow:0 7px 18px rgba(41,63,40,.09)}

/* Consistent keyboard, touch, and compact-screen controls. */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #629b2c;outline-offset:3px}
button:disabled{cursor:default;opacity:.58}
:where(input,textarea,select){max-width:100%;box-sizing:border-box}
:where(dialog){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
:where(.portal-message,.ow-realty-form-message){overflow-wrap:anywhere}
@media(max-width:700px){input,textarea,select{font-size:16px}button,.button{min-height:44px}.s2-profile-name{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
