/**
 * Kasalia — menú compartir (detalle + tarjetas).
 * Extraído del CSS inline de detalle-propiedad para reutilizarlo en listados.
 */
.share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.share-menu.show {
  display: block;
}

.share-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.share-menu a:hover {
  background: #f8f9fa;
}

.share-menu a:last-child {
  border-bottom: none;
}

/* Contenedor fav + share en tarjetas de listado */
.botones-interaccion-superior {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  z-index: 12;
}

.botones-interaccion-superior .favorite-btn,
.botones-interaccion-superior .share-btn {
  position: static;
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  color: rgba(0, 0, 0, 0.9);
  padding: 0;
  flex-shrink: 0;
}

.botones-interaccion-superior .favorite-btn:hover,
.botones-interaccion-superior .share-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.botones-interaccion-superior .favorite-btn svg,
.botones-interaccion-superior .share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.botones-interaccion-superior .favorite-btn.favorited {
  color: rgba(255, 0, 0, 1);
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.35);
}

.botones-interaccion-superior .share-menu {
  top: calc(100% + 6px);
  right: 0;
}

/* Anular position:absolute del favorito suelto cuando va en el grupo fav+share */
.mode-grid .botones-interaccion-superior .favorite-btn,
.mode-map2 .botones-interaccion-superior .favorite-btn,
.mode-map3 .botones-interaccion-superior .favorite-btn,
body.landing .botones-interaccion-superior .favorite-btn {
  position: static;
  top: auto;
  right: auto;
  margin-top: 0;
  z-index: auto;
}

.property-header-actions {
  position: relative;
}
