/* Rental Dashboard + Rasho theme compatibility */

body.rd-has-frontend-toolbar .sticky-nav {
  top: var(--rd-toolbar-height, 46px);
}

body.rd-has-frontend-toolbar .whatsapp-float,
body.rd-has-frontend-toolbar .side-tab-projects {
  z-index: 400;
}

.td-editable {
  display: inline;
}

h1.td-editable,
h2.td-editable,
h3.td-editable,
p.td-editable,
div.td-editable,
li.td-editable {
  display: block;
}

.rnt-gallery {
  margin: 0 0 2rem;
}

.rnt-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rnt-gallery-filter {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-foreground);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.rnt-gallery-filter.is-active,
.rnt-gallery-filter:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}

.rnt-gallery-grid {
  display: grid;
  gap: 1rem;
}

.rnt-gallery-cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.rnt-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.rnt-gallery-empty {
  grid-column: 1 / -1;
  color: var(--color-muted);
  padding: 2rem 0;
}
