/* Host property → Guides index: table of crew guides / house manuals.
   View: app/views/host/properties/guides/index.html.erb */
@layer components {

.property-guides-index-card {
  padding: 0;
  overflow: hidden;
}

.property-guides-index-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.property-guides-index-table__head {
  display: grid;
  grid-template-columns: minmax(7rem, 1.4fr) minmax(6rem, 1fr) minmax(6rem, 0.9fr);
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.property-guides-index-table__row {
  display: grid;
  grid-template-columns: minmax(7rem, 1.4fr) minmax(6rem, 1fr) minmax(6rem, 0.9fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--ease-default, ease) 0.15s;
}

.property-guides-index-table__row:last-child {
  border-bottom: none;
}

.property-guides-index-table__row:hover,
.property-guides-index-table__row:focus-visible {
  background: var(--color-primary-tint);
  outline: none;
}

.property-guides-index-table__row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-border-focus);
}

.property-guides-index-table__td {
  font-size: var(--text-sm);
  line-height: 1.4;
  word-break: break-word;
}

.property-guides-index-table__td--addresses {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.property-guides-index-table__td--guide {
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 42rem) {
  .property-guides-index-table__head {
    display: none;
  }

  .property-guides-index-table__row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-block: var(--space-4);
  }

  .property-guides-index-table__td--guide {
    padding-top: var(--space-1);
    border-top: 1px solid var(--color-slate-08);
  }
}

}
