/* Property detail — real tabs + tools grid (a11y: roving tabindex + sticky) */
.pb-tabs-wrap {
  margin: 8px 0 20px;
  scroll-margin-top: 8px;
}

/* Keep focused content clear of the sticky tab bar (WCAG 2.4.11) */
html {
  scroll-padding-top: 4.5rem;
}

.pb-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px;
  border: 1px solid var(--line, #ebebeb);
  border-radius: 14px;
  background: #f7f7f7;
  position: sticky;
  top: 0;
  z-index: 8;
}
.pb-tabs::-webkit-scrollbar { display: none; }

.pb-tabs [role="tab"] {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.pb-tabs [role="tab"]:hover { color: #222; background: rgba(255,255,255,0.7); }
.pb-tabs [role="tab"]:focus-visible {
  outline: 2px solid #ff385c;
  outline-offset: 2px;
  z-index: 1;
}
.pb-tabs [role="tab"].is-active,
.pb-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  color: #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Visible keyboard focus — not clipped by sticky bar */
.pb-tabs [role="tab"]:focus {
  outline: none;
}
.pb-tabs [role="tab"]:focus-visible {
  outline: 2px solid #ff385c;
  outline-offset: 2px;
  background: #fff;
  color: #222;
  z-index: 1;
  position: relative;
}

.pb-tab-panels { margin-top: 14px; }
.pb-tab-panels [data-panel][hidden] { display: none !important; }
.pb-tab-panels [data-panel] { animation: pbTabIn 0.18s ease; }
.pb-tab-panels [data-panel]:focus {
  outline: none;
}
.pb-tab-panels [data-panel]:focus-visible {
  outline: 2px solid #c1c1c1;
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes pbTabIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-tab-panels [data-panel] { animation: none; }
}

/* Compact tools grid — replaces stacked left/right strips */
.pb-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.pb-tool-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 120px;
}
.pb-tool-tile:hover {
  border-color: #f5c2cc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}
.pb-tool-tile:focus-visible {
  outline: 2px solid #ff385c;
  outline-offset: 2px;
}
.pb-tool-tile i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff5f7;
  color: #ff385c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.pb-tool-tile strong {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}
.pb-tool-tile span {
  font-size: 12px;
  color: #6a6a6a;
  line-height: 1.4;
  flex: 1;
}
.pb-tool-tile em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #ff385c;
}

.pb-tools-section {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fff;
  padding: 20px 18px;
  margin-bottom: 16px;
}
.pb-tools-section h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pb-tools-section h2 i { color: #ff385c; }
.pb-tools-section .lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6a6a6a;
}

/* Hide legacy TOC when tabs are present */
.pb-tabs-wrap ~ .pb-toc,
[data-pb-tabs] .pb-toc { display: none; }
